Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Le Menez2018-01-09 05:09:46 -0500
committerQuentin Le Menez2018-01-09 08:18:15 -0500
commitd98116b5b376f18b6cf626ba4158a35fe9a4a64e (patch)
tree4458c9c5ada0a216b385813a56ea9a9b8c7b6509 /plugins/uml/properties
parent453e99bc2dcbd5fabad100f9d0d5f682013c3b19 (diff)
downloadorg.eclipse.papyrus-d98116b5b376f18b6cf626ba4158a35fe9a4a64e.tar.gz
org.eclipse.papyrus-d98116b5b376f18b6cf626ba4158a35fe9a4a64e.tar.xz
org.eclipse.papyrus-d98116b5b376f18b6cf626ba4158a35fe9a4a64e.zip
Bug 515367 - [releng] Uniformization of the end of lines to Unix standard
- Format the EOL of all the files matched by: grep -rIUs . | xargs -Ifile dos2unix -k 'file' Change-Id: I5c41d540a9a67b50de9b912ab35e16cc9a912961 Signed-off-by: Quentin Le Menez <quentin.lemenez@cea.fr>
Diffstat (limited to 'plugins/uml/properties')
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/.settings/org.eclipse.jdt.core.prefs582
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/.settings/org.eclipse.ltk.core.refactoring.prefs6
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/.settings/org.eclipse.m2m.qvt.oml.mmodel.urimap4
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/META-INF/MANIFEST.MF54
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/OSGI-INF/l10n/bundle.properties10
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/about.html56
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/model/FieldSelection.ecore54
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/model/FieldSelection.genmodel56
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/schema/org.eclipse.papyrus.customization.properties.generation.generator.exsd204
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/schema/org.eclipse.papyrus.customization.properties.generation.layout.exsd204
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/ContextElement.java184
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelection.java126
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionFactory.java142
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionPackage.java1016
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/PropertyDefinition.java236
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/ContextElementImpl.java554
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionFactoryImpl.java378
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionImpl.java400
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionPackageImpl.java708
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/PropertyDefinitionImpl.java600
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionAdapterFactory.java348
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionSwitch.java356
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/Activator.java218
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/extensionpoint/GeneratorExtensionPoint.java124
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/extensionpoint/LayoutExtensionPoint.java122
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/AbstractQVTGenerator.java568
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/EcoreGenerator.java758
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/EditContextGenerator.java242
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/IGenerator.java298
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/ProfileGenerator.java744
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/layout/ILayoutGenerator.java114
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/messages/Messages.java220
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/messages/messages.properties82
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/providers/DataContextPropertiesContentProvider.java70
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/providers/DataContextPropertiesLabelProvider.java254
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/validators/AbstractValidator.java96
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/validators/SourceValidator.java146
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/validators/TargetValidator.java74
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/AbstractCreateContextPage.java114
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/CreateContextMainPage.java190
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/GeneratorPage.java642
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/SelectFieldsPage.java670
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/SelectOutputPage.java398
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/widget/ExtensionFilter.java122
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/widget/FileChooser.java468
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/widget/TernaryButton.java436
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.xtext/.classpath14
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.xtext/.settings/org.eclipse.jdt.core.prefs582
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.xtext/about.html56
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.xtext/build.properties20
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.xtext/plugin.properties16
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties.xtext/src/org/eclipse/papyrus/uml/properties/xtext/sheet/AdvancedEditingPropertySectionFilter.java102
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/.settings/org.eclipse.jdt.core.prefs582
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/LanguagePreferences.ecore42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/LanguagePreferences.genmodel50
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx10550
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleAcceptCallAction.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleAcceptEventAction.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleActionInputPin.xwt54
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleActivity.xwt50
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleActivityEdge.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleActivityFinalNode.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleActivityNode.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleActivityParameterNode.xwt44
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleActor.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleAddStructuralFeatureValueAction.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleAddVariableValueAction.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleArtifact.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleAssociation.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleAssociationClass.xwt44
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleBehavior.xwt44
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleBehavioralFeature.xwt46
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleBehavioredClassifier.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleBroadcastSignalAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleCallAction.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleCallBehaviorAction.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleCallOperationAction.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleCentralBufferNode.xwt44
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleClass.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleClassifier.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleClearAssociationAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleClearStructuralFeatureAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleClearVariableAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleCollaboration.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleCommunicationPath.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleComponent.xwt46
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleConditionalNode.xwt50
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleConnector.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleControlFlow.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleControlNode.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleCreateLinkAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleCreateLinkObjectAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleCreateObjectAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleDataStoreNode.xwt44
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleDataType.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleDecisionNode.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleDeploymentSpecification.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleDestroyLinkAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleDestroyObjectAction.xwt46
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleDevice.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleEncapsulatedClassifier.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleEnumeration.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleExecutableNode.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleExecutionEnvironment.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleExpansionNode.xwt44
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleExpansionRegion.xwt44
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleExtension.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleExtensionEnd.xwt62
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleExtensionPoint.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleFeature.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleFinalNode.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleFlowFinalNode.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleFunctionBehavior.xwt44
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleInformationItem.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleInputPin.xwt56
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleInteraction.xwt44
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleInterface.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleInvocationAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleLinkAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleLoopNode.xwt44
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleMergeNode.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleNode.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleObjectFlow.xwt44
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleObjectNode.xwt46
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleOpaqueAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleOpaqueBehavior.xwt44
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleOperation.xwt48
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleOutputPin.xwt56
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultiplePin.xwt56
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultiplePort.xwt66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultiplePrimitiveType.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleProperty.xwt66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleProtocolStateMachine.xwt44
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleProtocolTransition.xwt30
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleRaiseExceptionAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleReadExtentAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleReadIsClassifiedObjectAction.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleReadLinkAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleReadLinkObjectEndAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleReadLinkObjectEndQualifierAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleReadSelfAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleReadStructuralFeatureAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleReadVariableAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleReception.xwt46
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleReclassifyObjectAction.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleRedefinableElement.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleRedefinableTemplateSignature.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleReduceAction.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleRemoveStructuralFeatureValueAction.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleRemoveVariableValueAction.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleReplyAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleSendObjectAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleSendSignalAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleSequenceNode.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleSignal.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleStartClassifierBehaviorAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleStartObjectBehaviorAction.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleStateMachine.xwt44
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleStereotype.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleStructuralFeature.xwt52
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleStructuralFeatureAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleStructuredActivityNode.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleStructuredClassifier.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleTestIdentityAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleUnmarshallAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleUseCase.xwt40
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleValuePin.xwt54
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleValueSpecificationAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleVariableAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleWriteLinkAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleWriteStructuralFeatureAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/MultipleWriteVariableAction.xwt28
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleAcceptCallAction.xwt96
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleAcceptEventAction.xwt82
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleAction.xwt60
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleActivity.xwt92
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleActivityEdge.xwt60
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleActivityFinalNode.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleActivityNode.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleActivityParameterNode.xwt96
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleActor.xwt66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleAddStructuralFeatureValueAction.xwt104
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleAddVariableValueAction.xwt96
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleArtifact.xwt80
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleAssociationClass.xwt72
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleBehavior.xwt84
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleBehavioralFeature.xwt78
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleBehavioredClassifier.xwt66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleBroadcastSignalAction.xwt82
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleCallAction.xwt94
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleCallBehaviorAction.xwt98
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleCallOperationAction.xwt102
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleCentralBufferNode.xwt92
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleClass.xwt88
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleClassifier.xwt66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleClearAssociationAction.xwt78
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleClearStructuralFeatureAction.xwt82
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleClearVariableAction.xwt74
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleCollaboration.xwt72
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleCommunicationPath.xwt80
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleComponent.xwt76
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleConditionalNode.xwt90
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleConnector.xwt68
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleConstraint.xwt66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleControlFlow.xwt60
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleControlNode.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleCreateLinkAction.xwt66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleCreateLinkObjectAction.xwt80
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleCreateObjectAction.xwt78
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleDataStoreNode.xwt92
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleDataType.xwt68
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleDeploymentSpecification.xwt88
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleDestroyLinkAction.xwt66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleDestroyObjectAction.xwt92
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleDevice.xwt68
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleEncapsulatedClassifier.xwt66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleEnumeration.xwt70
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleExecutableNode.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleExecutionEnvironment.xwt68
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleExpansionNode.xwt100
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleExpansionRegion.xwt84
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleExtensionEnd.xwt108
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleExtensionPoint.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleFeature.xwt54
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleFinalState.xwt76
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleFlowFinalNode.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleFunctionBehavior.xwt90
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleInformationItem.xwt70
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleInputPin.xwt106
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleInteraction.xwt82
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleInterface.xwt100
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleInvocationAction.xwt78
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleLinkAction.xwt66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleLoopNode.xwt106
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleMergeNode.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleNode.xwt68
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleObjectFlow.xwt76
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleObjectNode.xwt92
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleOpaqueAction.xwt56
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleOpaqueBehavior.xwt90
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleOpaqueExpression.xwt74
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleOperation.xwt96
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleOutputPin.xwt106
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SinglePin.xwt106
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SinglePort.xwt116
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SinglePrimitiveType.xwt66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleProperty.xwt82
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleProtocolStateMachine.xwt84
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleProtocolTransition.xwt78
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleRaiseExceptionAction.xwt74
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleReadExtentAction.xwt78
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleReadIsClassifiedObjectAction.xwt96
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleReadLinkAction.xwt80
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleReadLinkObjectEndAction.xwt82
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleReadLinkObjectEndQualifierAction.xwt82
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleReadSelfAction.xwt74
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleReadStructuralFeatureAction.xwt82
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleReadVariableAction.xwt78
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleReception.xwt90
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleReclassifyObjectAction.xwt96
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleRedefinableElement.xwt42
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleRedefinableTemplateSignature.xwt56
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleReduceAction.xwt94
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleRemoveStructuralFeatureValueAction.xwt104
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleRemoveVariableValueAction.xwt96
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleReplyAction.xwt82
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleSendObjectAction.xwt82
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleSendSignalAction.xwt86
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleSequenceNode.xwt78
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleSignal.xwt68
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleStartObjectBehaviorAction.xwt98
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleState.xwt66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleStateMachine.xwt84
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleStereotype.xwt54
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleStructuralFeature.xwt84
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleStructuralFeatureAction.xwt78
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleStructuredActivityNode.xwt74
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleStructuredClassifier.xwt66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleTestIdentityAction.xwt82
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleUnmarshallAction.xwt82
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleUseCase.xwt66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleValuePin.xwt108
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleValueSpecificationAction.xwt78
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleVariableAction.xwt74
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleWriteLinkAction.xwt66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleWriteStructuralFeatureAction.xwt86
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleWriteVariableAction.xwt78
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UMLNotation/UMLNotation.ctx166
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/about.html56
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/build.properties12
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/schema/org.eclipse.papyrus.uml.properties.datatype.exsd218
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/schema/org.eclipse.papyrus.uml.properties.languageEditor.exsd218
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src-gen/org/eclipse/papyrus/uml/properties/languagepreferences/Editor.java112
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src-gen/org/eclipse/papyrus/uml/properties/languagepreferences/Language.java170
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src-gen/org/eclipse/papyrus/uml/properties/languagepreferences/Preferences.java182
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src-gen/org/eclipse/papyrus/uml/properties/languagepreferences/impl/EditorImpl.java356
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src-gen/org/eclipse/papyrus/uml/properties/languagepreferences/impl/LanguageImpl.java496
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src-gen/org/eclipse/papyrus/uml/properties/languagepreferences/impl/PreferencesImpl.java538
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src-gen/org/eclipse/papyrus/uml/properties/languagepreferences/impl/languagepreferencesFactoryImpl.java266
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src-gen/org/eclipse/papyrus/uml/properties/languagepreferences/impl/languagepreferencesPackageImpl.java598
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src-gen/org/eclipse/papyrus/uml/properties/languagepreferences/languagepreferencesFactory.java140
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src-gen/org/eclipse/papyrus/uml/properties/languagepreferences/languagepreferencesPackage.java818
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src-gen/org/eclipse/papyrus/uml/properties/languagepreferences/util/languagepreferencesAdapterFactory.java348
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src-gen/org/eclipse/papyrus/uml/properties/languagepreferences/util/languagepreferencesSwitch.java352
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/Activator.java228
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/constraints/HasStereotypeConstraint.java206
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/constraints/IsDataTypeConstraint.java134
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/constraints/IsUMLDatatypeInstance.java104
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/constraints/UmlInstanceOfConstraint.java192
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/creation/ConnectorTypeEditorFactory.java90
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/creation/ExpressionLanguageFactory.java198
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/databinding/MaskValueObservableList.java218
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/databinding/StereotypeAppearanceObservableValue.java590
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/databinding/StereotypeApplicationObservableList.java588
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/datatype/DataTypeObservableValue.java60
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/datatype/DataTypeProvider.java118
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/datatype/StringDataTypeObservableValue.java90
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/datatype/StructuredDataTypeObservableValue.java130
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/expression/ExpressionList.java588
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/extensionpoint/LanguageEditorExtensionPoint.java104
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/preferences/LanguagePreferences.java110
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/preferences/LanguageRegistry.java392
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/actions/AbstractPackageImportAction.java216
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/compositeforview/AppliedProfileCompositeWithView.java440
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/compositeforview/AppliedStereotypePropertyCompositeWithView.java340
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/compositeforview/IViewComposite.java66
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/compositeforview/ProfileElementWithDisplayContentProvider.java392
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/compositeforview/ProfileElementWithDisplayLabelProvider.java202
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/compositeforview/StereotypePropertiesDoubleClickListener.java146
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/compositesformodel/AppliedProfileCompositeOnModel.java1320
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/compositesformodel/ISectionComposite.java86
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/dialogs/FileSelectionFilter.java144
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/dialogs/FileSelectionValidator.java88
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/dialogs/StereotypeQualifiedLabelProvider.java76
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/items/DataTypeItems.java116
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/panels/AbstractPanel.java144
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/panels/AppliedProfilePanel.java346
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/panels/AppliedStereotypePanel.java374
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/panels/DefaultPanel.java156
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/section/AppliedProfileSection.java246
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/section/AppliedStereotypeDisplaySection.java208
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/profile/ui/section/AppliedStereotypeKindAppearanceSection.java870
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/providers/CommentContentProvider.java198
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/util/StereotypeAppearanceConstants.java98
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/ExpressionLanguageEditor.java110
346 files changed, 27242 insertions, 27242 deletions
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/.settings/org.eclipse.jdt.core.prefs b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/.settings/org.eclipse.jdt.core.prefs
index 62a08f4494d..b3aa6d60f94 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/.settings/org.eclipse.jdt.core.prefs
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/.settings/org.eclipse.jdt.core.prefs
@@ -1,291 +1,291 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
-org.eclipse.jdt.core.compiler.compliance=1.8
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.8
-org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_assignment=0
-org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
-org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
-org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
-org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
-org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
-org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
-org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
-org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_after_package=1
-org.eclipse.jdt.core.formatter.blank_lines_before_field=0
-org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
-org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
-org.eclipse.jdt.core.formatter.blank_lines_before_method=1
-org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
-org.eclipse.jdt.core.formatter.blank_lines_before_package=0
-org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
-org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
-org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
-org.eclipse.jdt.core.formatter.comment.format_block_comments=true
-org.eclipse.jdt.core.formatter.comment.format_header=false
-org.eclipse.jdt.core.formatter.comment.format_html=true
-org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
-org.eclipse.jdt.core.formatter.comment.format_line_comments=true
-org.eclipse.jdt.core.formatter.comment.format_source_code=true
-org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
-org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
-org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
-org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
-org.eclipse.jdt.core.formatter.comment.line_length=260
-org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
-org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
-org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
-org.eclipse.jdt.core.formatter.compact_else_if=true
-org.eclipse.jdt.core.formatter.continuation_indentation=2
-org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
-org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
-org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
-org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
-org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
-org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_empty_lines=false
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
-org.eclipse.jdt.core.formatter.indentation.size=4
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
-org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
-org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
-org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.join_lines_in_comments=false
-org.eclipse.jdt.core.formatter.join_wrapped_lines=false
-org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.lineSplit=260
-org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
-org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5
-org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
-org.eclipse.jdt.core.formatter.tabulation.char=tab
-org.eclipse.jdt.core.formatter.tabulation.size=4
-org.eclipse.jdt.core.formatter.use_on_off_tags=false
-org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
-org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
-org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
-org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.compliance=1.8
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.8
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=260
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=false
+org.eclipse.jdt.core.formatter.join_wrapped_lines=false
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=260
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/.settings/org.eclipse.ltk.core.refactoring.prefs b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/.settings/org.eclipse.ltk.core.refactoring.prefs
index 97424a1b74b..8356f9968bf 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/.settings/org.eclipse.ltk.core.refactoring.prefs
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -1,3 +1,3 @@
-#Mon Jan 10 15:34:01 CET 2011
-eclipse.preferences.version=1
-org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
+#Mon Jan 10 15:34:01 CET 2011
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/.settings/org.eclipse.m2m.qvt.oml.mmodel.urimap b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/.settings/org.eclipse.m2m.qvt.oml.mmodel.urimap
index eefc2508728..7e3277faf47 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/.settings/org.eclipse.m2m.qvt.oml.mmodel.urimap
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/.settings/org.eclipse.m2m.qvt.oml.mmodel.urimap
@@ -1,2 +1,2 @@
-<?xml version="1.0" encoding="ASCII"?>
-<uriMap:MappingContainer xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:uriMap="http:///www.eclipse.org/m2m/qvt/oml/MModelUriMap/1.0.0"/>
+<?xml version="1.0" encoding="ASCII"?>
+<uriMap:MappingContainer xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:uriMap="http:///www.eclipse.org/m2m/qvt/oml/MModelUriMap/1.0.0"/>
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/META-INF/MANIFEST.MF b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/META-INF/MANIFEST.MF
index 418be75ef7a..e6b23dbe20a 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/META-INF/MANIFEST.MF
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/META-INF/MANIFEST.MF
@@ -1,27 +1,27 @@
-Manifest-Version: 1.0
-Export-Package: org.eclipse.papyrus.customization.properties.generation,
- org.eclipse.papyrus.customization.properties.generation.generators,
- org.eclipse.papyrus.customization.properties.generation.layout,
- org.eclipse.papyrus.customization.properties.generation.validators,
- org.eclipse.papyrus.customization.properties.generation.wizard,
- org.eclipse.papyrus.customization.properties.generation.wizard.widget
-Require-Bundle: org.eclipse.m2m.qvt.oml;bundle-version="[3.6.0,4.0.0)";visibility:=reexport,
- org.eclipse.papyrus.infra.properties.edit;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.uml2.uml;bundle-version="[5.3.0,6.0.0)";visibility:=reexport,
- org.eclipse.papyrus.views.properties;bundle-version="[4.0.0,5.0.0)",
- org.eclipse.papyrus.views.properties.model.xwt;bundle-version="[2.0.0,3.0.0)",
- org.eclipse.m2m.qvt.oml.project;bundle-version="[3.6.0,4.0.0)",
- org.eclipse.papyrus.views.properties.toolsmiths;bundle-version="[2.0.0,3.0.0)",
- org.eclipse.jface.databinding;bundle-version="[1.8.0,2.0.0)"
-Bundle-Vendor: %Bundle-Vendor
-Bundle-ActivationPolicy: lazy
-Bundle-ClassPath: .,
- bin
-Bundle-Version: 2.1.0.qualifier
-Eclipse-BuddyPolicy: dependent
-Bundle-Name: %Bundle-Name
-Bundle-ManifestVersion: 2
-Bundle-Activator: org.eclipse.papyrus.customization.properties.generation.Activator
-Bundle-Description: %pluginDescription
-Bundle-SymbolicName: org.eclipse.papyrus.uml.properties.generation;singleton:=true
-Bundle-RequiredExecutionEnvironment: JavaSE-1.8
+Manifest-Version: 1.0
+Export-Package: org.eclipse.papyrus.customization.properties.generation,
+ org.eclipse.papyrus.customization.properties.generation.generators,
+ org.eclipse.papyrus.customization.properties.generation.layout,
+ org.eclipse.papyrus.customization.properties.generation.validators,
+ org.eclipse.papyrus.customization.properties.generation.wizard,
+ org.eclipse.papyrus.customization.properties.generation.wizard.widget
+Require-Bundle: org.eclipse.m2m.qvt.oml;bundle-version="[3.6.0,4.0.0)";visibility:=reexport,
+ org.eclipse.papyrus.infra.properties.edit;bundle-version="[3.0.0,4.0.0)",
+ org.eclipse.uml2.uml;bundle-version="[5.3.0,6.0.0)";visibility:=reexport,
+ org.eclipse.papyrus.views.properties;bundle-version="[4.0.0,5.0.0)",
+ org.eclipse.papyrus.views.properties.model.xwt;bundle-version="[2.0.0,3.0.0)",
+ org.eclipse.m2m.qvt.oml.project;bundle-version="[3.6.0,4.0.0)",
+ org.eclipse.papyrus.views.properties.toolsmiths;bundle-version="[2.0.0,3.0.0)",
+ org.eclipse.jface.databinding;bundle-version="[1.8.0,2.0.0)"
+Bundle-Vendor: %Bundle-Vendor
+Bundle-ActivationPolicy: lazy
+Bundle-ClassPath: .,
+ bin
+Bundle-Version: 2.1.0.qualifier
+Eclipse-BuddyPolicy: dependent
+Bundle-Name: %Bundle-Name
+Bundle-ManifestVersion: 2
+Bundle-Activator: org.eclipse.papyrus.customization.properties.generation.Activator
+Bundle-Description: %pluginDescription
+Bundle-SymbolicName: org.eclipse.papyrus.uml.properties.generation;singleton:=true
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/OSGI-INF/l10n/bundle.properties b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/OSGI-INF/l10n/bundle.properties
index 7d0be6566da..6fd42bf7329 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/OSGI-INF/l10n/bundle.properties
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/OSGI-INF/l10n/bundle.properties
@@ -1,6 +1,6 @@
-#Properties file for org.eclipse.papyrus.uml.properties.generation
-Bundle-Vendor = Eclipse Modeling Project
-Bundle-Name = Papyrus properties generation
-generation.wizard.name = Property view configuration
-extension-point.generator = Property view Generator
+#Properties file for org.eclipse.papyrus.uml.properties.generation
+Bundle-Vendor = Eclipse Modeling Project
+Bundle-Name = Papyrus properties generation
+generation.wizard.name = Property view configuration
+extension-point.generator = Property view Generator
extension-point.layoutgenerator = Property View layout generator \ No newline at end of file
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/about.html b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/about.html
index 82d49bf5f81..d35d5aed64c 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/about.html
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/about.html
@@ -1,28 +1,28 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>June 5, 2007</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
-
-</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 5, 2007</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/model/FieldSelection.ecore b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/model/FieldSelection.ecore
index 1c396cdf130..12b0feec799 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/model/FieldSelection.ecore
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/model/FieldSelection.ecore
@@ -1,27 +1,27 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="fieldselection"
- nsURI="http://www.eclipse.org/papyrus/properties/fieldSelection" nsPrefix="fs">
- <eClassifiers xsi:type="ecore:EClass" name="FieldSelection">
- <eStructuralFeatures xsi:type="ecore:EReference" name="fields" upperBound="-1"
- eType="#//PropertyDefinition" containment="true"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="contextElements" upperBound="-1"
- eType="#//ContextElement" containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="PropertyDefinition">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="valueSingle" lowerBound="1"
- eType="#//Value" defaultValueLiteral="DEFAULT"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="valueMultiple" lowerBound="1"
- eType="#//Value" defaultValueLiteral="DEFAULT"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="ContextElement">
- <eStructuralFeatures xsi:type="ecore:EReference" name="elements" upperBound="-1"
- eType="#//ContextElement" containment="true"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="properties" upperBound="-1"
- eType="#//PropertyDefinition" containment="true"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EDataType" name="Value" instanceClassName="org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State"/>
-</ecore:EPackage>
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="fieldselection"
+ nsURI="http://www.eclipse.org/papyrus/properties/fieldSelection" nsPrefix="fs">
+ <eClassifiers xsi:type="ecore:EClass" name="FieldSelection">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="fields" upperBound="-1"
+ eType="#//PropertyDefinition" containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="contextElements" upperBound="-1"
+ eType="#//ContextElement" containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="PropertyDefinition">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="valueSingle" lowerBound="1"
+ eType="#//Value" defaultValueLiteral="DEFAULT"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="valueMultiple" lowerBound="1"
+ eType="#//Value" defaultValueLiteral="DEFAULT"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ContextElement">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="elements" upperBound="-1"
+ eType="#//ContextElement" containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="properties" upperBound="-1"
+ eType="#//PropertyDefinition" containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="Value" instanceClassName="org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State"/>
+</ecore:EPackage>
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/model/FieldSelection.genmodel b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/model/FieldSelection.genmodel
index 29fde5c4db8..c6585241266 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/model/FieldSelection.genmodel
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/model/FieldSelection.genmodel
@@ -1,28 +1,28 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.papyrus.customization.properties.generation/src-gen"
- editDirectory="/org.eclipse.papyrus.customization.properties.generation.edit/src-gen" editorDirectory="/org.eclipse.papyrus.customization.properties.generation.editor/src-gen"
- modelPluginID="org.eclipse.papyrus.customization.properties.generation" modelName="FieldSelection"
- testsDirectory="/org.eclipse.papyrus.customization.properties.generation.tests/src-gen" importerID="org.eclipse.emf.importer.ecore"
- complianceLevel="5.0" copyrightFields="false">
- <foreignModel>FieldSelection.ecore</foreignModel>
- <genPackages prefix="FieldSelection" basePackage="org.eclipse.papyrus.customization.properties.generation"
- disposableProviderFactory="true" ecorePackage="FieldSelection.ecore#/">
- <genDataTypes ecoreDataType="FieldSelection.ecore#//Value"/>
- <genClasses ecoreClass="FieldSelection.ecore#//FieldSelection">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FieldSelection.ecore#//FieldSelection/fields"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FieldSelection.ecore#//FieldSelection/contextElements"/>
- </genClasses>
- <genClasses ecoreClass="FieldSelection.ecore#//PropertyDefinition">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FieldSelection.ecore#//PropertyDefinition/name"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FieldSelection.ecore#//PropertyDefinition/valueSingle"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FieldSelection.ecore#//PropertyDefinition/valueMultiple"/>
- </genClasses>
- <genClasses ecoreClass="FieldSelection.ecore#//ContextElement">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FieldSelection.ecore#//ContextElement/elements"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FieldSelection.ecore#//ContextElement/properties"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FieldSelection.ecore#//ContextElement/name"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.papyrus.customization.properties.generation/src-gen"
+ editDirectory="/org.eclipse.papyrus.customization.properties.generation.edit/src-gen" editorDirectory="/org.eclipse.papyrus.customization.properties.generation.editor/src-gen"
+ modelPluginID="org.eclipse.papyrus.customization.properties.generation" modelName="FieldSelection"
+ testsDirectory="/org.eclipse.papyrus.customization.properties.generation.tests/src-gen" importerID="org.eclipse.emf.importer.ecore"
+ complianceLevel="5.0" copyrightFields="false">
+ <foreignModel>FieldSelection.ecore</foreignModel>
+ <genPackages prefix="FieldSelection" basePackage="org.eclipse.papyrus.customization.properties.generation"
+ disposableProviderFactory="true" ecorePackage="FieldSelection.ecore#/">
+ <genDataTypes ecoreDataType="FieldSelection.ecore#//Value"/>
+ <genClasses ecoreClass="FieldSelection.ecore#//FieldSelection">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FieldSelection.ecore#//FieldSelection/fields"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FieldSelection.ecore#//FieldSelection/contextElements"/>
+ </genClasses>
+ <genClasses ecoreClass="FieldSelection.ecore#//PropertyDefinition">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FieldSelection.ecore#//PropertyDefinition/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FieldSelection.ecore#//PropertyDefinition/valueSingle"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FieldSelection.ecore#//PropertyDefinition/valueMultiple"/>
+ </genClasses>
+ <genClasses ecoreClass="FieldSelection.ecore#//ContextElement">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FieldSelection.ecore#//ContextElement/elements"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FieldSelection.ecore#//ContextElement/properties"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FieldSelection.ecore#//ContextElement/name"/>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/schema/org.eclipse.papyrus.customization.properties.generation.generator.exsd b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/schema/org.eclipse.papyrus.customization.properties.generation.generator.exsd
index 635073b5c3e..7a5c0ae9e72 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/schema/org.eclipse.papyrus.customization.properties.generation.generator.exsd
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/schema/org.eclipse.papyrus.customization.properties.generation.generator.exsd
@@ -1,102 +1,102 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.papyrus.customization.properties.generation" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.papyrus.customization.properties.generation" id="org.eclipse.papyrus.customization.properties.generation.generator" name="Property view Generator"/>
- </appinfo>
- <documentation>
- [Enter description of this extension point.]
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence>
- <element ref="generator" minOccurs="1" maxOccurs="unbounded"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="generator">
- <complexType>
- <attribute name="generator" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.papyrus.customization.properties.generation.generators.Generator"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <annotation>
- <appinfo>
- <meta.section type="since"/>
- </appinfo>
- <documentation>
- [Enter the first release in which this extension point appears.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- [Enter extension point usage example here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="apiinfo"/>
- </appinfo>
- <documentation>
- [Enter API information here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="implementation"/>
- </appinfo>
- <documentation>
- [Enter information about supplied implementation of this extension point.]
- </documentation>
- </annotation>
-
-
-</schema>
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.eclipse.papyrus.customization.properties.generation" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appinfo>
+ <meta.schema plugin="org.eclipse.papyrus.customization.properties.generation" id="org.eclipse.papyrus.customization.properties.generation.generator" name="Property view Generator"/>
+ </appinfo>
+ <documentation>
+ [Enter description of this extension point.]
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appinfo>
+ <meta.element />
+ </appinfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="generator" minOccurs="1" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute translatable="true"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="generator">
+ <complexType>
+ <attribute name="generator" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="java" basedOn=":org.eclipse.papyrus.customization.properties.generation.generators.Generator"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="since"/>
+ </appinfo>
+ <documentation>
+ [Enter the first release in which this extension point appears.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="examples"/>
+ </appinfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="apiinfo"/>
+ </appinfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="implementation"/>
+ </appinfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+
+</schema>
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/schema/org.eclipse.papyrus.customization.properties.generation.layout.exsd b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/schema/org.eclipse.papyrus.customization.properties.generation.layout.exsd
index 042d3f9e9a9..c5d23d80d2b 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/schema/org.eclipse.papyrus.customization.properties.generation.layout.exsd
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/schema/org.eclipse.papyrus.customization.properties.generation.layout.exsd
@@ -1,102 +1,102 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.papyrus.customization.properties.generation" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.papyrus.customization.properties.generation" id="org.eclipse.papyrus.customization.properties.generation.layout" name="Property View layout generator"/>
- </appinfo>
- <documentation>
- [Enter description of this extension point.]
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence>
- <element ref="generator" minOccurs="1" maxOccurs="unbounded"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="generator">
- <complexType>
- <attribute name="generator" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.papyrus.customization.properties.generation.layout.LayoutGenerator"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <annotation>
- <appinfo>
- <meta.section type="since"/>
- </appinfo>
- <documentation>
- [Enter the first release in which this extension point appears.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- [Enter extension point usage example here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="apiinfo"/>
- </appinfo>
- <documentation>
- [Enter API information here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="implementation"/>
- </appinfo>
- <documentation>
- [Enter information about supplied implementation of this extension point.]
- </documentation>
- </annotation>
-
-
-</schema>
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.eclipse.papyrus.customization.properties.generation" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appinfo>
+ <meta.schema plugin="org.eclipse.papyrus.customization.properties.generation" id="org.eclipse.papyrus.customization.properties.generation.layout" name="Property View layout generator"/>
+ </appinfo>
+ <documentation>
+ [Enter description of this extension point.]
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appinfo>
+ <meta.element />
+ </appinfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="generator" minOccurs="1" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute translatable="true"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="generator">
+ <complexType>
+ <attribute name="generator" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="java" basedOn=":org.eclipse.papyrus.customization.properties.generation.layout.LayoutGenerator"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="since"/>
+ </appinfo>
+ <documentation>
+ [Enter the first release in which this extension point appears.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="examples"/>
+ </appinfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="apiinfo"/>
+ </appinfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="implementation"/>
+ </appinfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+
+</schema>
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/ContextElement.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/ContextElement.java
index aa985272179..88c8bac2ef3 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/ContextElement.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/ContextElement.java
@@ -1,92 +1,92 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.properties.generation.fieldselection;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Context Element</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getElements <em>Elements</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getProperties <em>Properties</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getContextElement()
- * @model
- * @generated
- */
-public interface ContextElement extends EObject {
-
- /**
- * Returns the value of the '<em><b>Elements</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Elements</em>' containment reference list.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getContextElement_Elements()
- * @model containment="true"
- * @generated
- */
- EList<ContextElement> getElements();
-
- /**
- * Returns the value of the '<em><b>Properties</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Properties</em>' containment reference list isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Properties</em>' containment reference list.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getContextElement_Properties()
- * @model containment="true"
- * @generated
- */
- EList<PropertyDefinition> getProperties();
-
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getContextElement_Name()
- * @model required="true"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
-} // ContextElement
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.customization.properties.generation.fieldselection;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Context Element</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getElements <em>Elements</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getProperties <em>Properties</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getContextElement()
+ * @model
+ * @generated
+ */
+public interface ContextElement extends EObject {
+
+ /**
+ * Returns the value of the '<em><b>Elements</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Elements</em>' containment reference list.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getContextElement_Elements()
+ * @model containment="true"
+ * @generated
+ */
+ EList<ContextElement> getElements();
+
+ /**
+ * Returns the value of the '<em><b>Properties</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Properties</em>' containment reference list isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Properties</em>' containment reference list.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getContextElement_Properties()
+ * @model containment="true"
+ * @generated
+ */
+ EList<PropertyDefinition> getProperties();
+
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getContextElement_Name()
+ * @model required="true"
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+} // ContextElement
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelection.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelection.java
index 16addfaf4e3..115fe3f9b51 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelection.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelection.java
@@ -1,63 +1,63 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.properties.generation.fieldselection;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Field Selection</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getFields <em>Fields</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getContextElements <em>Context Elements</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getFieldSelection()
- * @model
- * @generated
- */
-public interface FieldSelection extends EObject {
-
- /**
- * Returns the value of the '<em><b>Fields</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Fields</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>Fields</em>' containment reference list.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getFieldSelection_Fields()
- * @model containment="true"
- * @generated
- */
- EList<PropertyDefinition> getFields();
-
- /**
- * Returns the value of the '<em><b>Context Elements</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Context Elements</em>' containment reference list isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Context Elements</em>' containment reference list.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getFieldSelection_ContextElements()
- * @model containment="true"
- * @generated
- */
- EList<ContextElement> getContextElements();
-
-} // FieldSelection
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.customization.properties.generation.fieldselection;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Field Selection</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getFields <em>Fields</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getContextElements <em>Context Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getFieldSelection()
+ * @model
+ * @generated
+ */
+public interface FieldSelection extends EObject {
+
+ /**
+ * Returns the value of the '<em><b>Fields</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Fields</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>Fields</em>' containment reference list.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getFieldSelection_Fields()
+ * @model containment="true"
+ * @generated
+ */
+ EList<PropertyDefinition> getFields();
+
+ /**
+ * Returns the value of the '<em><b>Context Elements</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Context Elements</em>' containment reference list isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Context Elements</em>' containment reference list.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getFieldSelection_ContextElements()
+ * @model containment="true"
+ * @generated
+ */
+ EList<ContextElement> getContextElements();
+
+} // FieldSelection
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionFactory.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionFactory.java
index 5632454f329..e9b2de0ce7c 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionFactory.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionFactory.java
@@ -1,71 +1,71 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.properties.generation.fieldselection;
-
-import org.eclipse.emf.ecore.EFactory;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage
- * @generated
- */
-public interface FieldSelectionFactory extends EFactory {
-
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- FieldSelectionFactory eINSTANCE = org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Field Selection</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Field Selection</em>'.
- * @generated
- */
- FieldSelection createFieldSelection();
-
- /**
- * Returns a new object of class '<em>Property Definition</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Property Definition</em>'.
- * @generated
- */
- PropertyDefinition createPropertyDefinition();
-
- /**
- * Returns a new object of class '<em>Context Element</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Context Element</em>'.
- * @generated
- */
- ContextElement createContextElement();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the package supported by this factory.
- * @generated
- */
- FieldSelectionPackage getFieldSelectionPackage();
-
-} // FieldSelectionFactory
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.customization.properties.generation.fieldselection;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage
+ * @generated
+ */
+public interface FieldSelectionFactory extends EFactory {
+
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ FieldSelectionFactory eINSTANCE = org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Field Selection</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Field Selection</em>'.
+ * @generated
+ */
+ FieldSelection createFieldSelection();
+
+ /**
+ * Returns a new object of class '<em>Property Definition</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Property Definition</em>'.
+ * @generated
+ */
+ PropertyDefinition createPropertyDefinition();
+
+ /**
+ * Returns a new object of class '<em>Context Element</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Context Element</em>'.
+ * @generated
+ */
+ ContextElement createContextElement();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the package supported by this factory.
+ * @generated
+ */
+ FieldSelectionPackage getFieldSelectionPackage();
+
+} // FieldSelectionFactory
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionPackage.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionPackage.java
index 287e0c608ee..1d684804831 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionPackage.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/FieldSelectionPackage.java
@@ -1,508 +1,508 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.properties.generation.fieldselection;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Package</b> for the model.
- * It contains accessors for the meta objects to represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionFactory
- * @model kind="package"
- * @generated
- */
-public interface FieldSelectionPackage extends EPackage {
-
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNAME = "fieldselection";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/papyrus/properties/fieldSelection";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_PREFIX = "fs";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- FieldSelectionPackage eINSTANCE = org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl <em>Field Selection</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getFieldSelection()
- * @generated
- */
- int FIELD_SELECTION = 0;
-
- /**
- * The feature id for the '<em><b>Fields</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int FIELD_SELECTION__FIELDS = 0;
-
- /**
- * The feature id for the '<em><b>Context Elements</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int FIELD_SELECTION__CONTEXT_ELEMENTS = 1;
-
- /**
- * The number of structural features of the '<em>Field Selection</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int FIELD_SELECTION_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl <em>Property Definition</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getPropertyDefinition()
- * @generated
- */
- int PROPERTY_DEFINITION = 1;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_DEFINITION__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Value Single</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_DEFINITION__VALUE_SINGLE = 1;
-
- /**
- * The feature id for the '<em><b>Value Multiple</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_DEFINITION__VALUE_MULTIPLE = 2;
-
- /**
- * The number of structural features of the '<em>Property Definition</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_DEFINITION_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl <em>Context Element</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getContextElement()
- * @generated
- */
- int CONTEXT_ELEMENT = 2;
-
- /**
- * The feature id for the '<em><b>Elements</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONTEXT_ELEMENT__ELEMENTS = 0;
-
- /**
- * The feature id for the '<em><b>Properties</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONTEXT_ELEMENT__PROPERTIES = 1;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONTEXT_ELEMENT__NAME = 2;
-
- /**
- * The number of structural features of the '<em>Context Element</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONTEXT_ELEMENT_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '<em>Value</em>' data type.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getValue()
- * @generated
- */
- int VALUE = 3;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection <em>Field Selection</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Field Selection</em>'.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection
- * @generated
- */
- EClass getFieldSelection();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getFields <em>Fields</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Fields</em>'.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getFields()
- * @see #getFieldSelection()
- * @generated
- */
- EReference getFieldSelection_Fields();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getContextElements <em>Context Elements</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Context Elements</em>'.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getContextElements()
- * @see #getFieldSelection()
- * @generated
- */
- EReference getFieldSelection_ContextElements();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition <em>Property Definition</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Property Definition</em>'.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition
- * @generated
- */
- EClass getPropertyDefinition();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getName()
- * @see #getPropertyDefinition()
- * @generated
- */
- EAttribute getPropertyDefinition_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueSingle <em>Value Single</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Value Single</em>'.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueSingle()
- * @see #getPropertyDefinition()
- * @generated
- */
- EAttribute getPropertyDefinition_ValueSingle();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueMultiple <em>Value Multiple</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Value Multiple</em>'.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueMultiple()
- * @see #getPropertyDefinition()
- * @generated
- */
- EAttribute getPropertyDefinition_ValueMultiple();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement <em>Context Element</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Context Element</em>'.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement
- * @generated
- */
- EClass getContextElement();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getElements <em>Elements</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Elements</em>'.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getElements()
- * @see #getContextElement()
- * @generated
- */
- EReference getContextElement_Elements();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getProperties <em>Properties</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Properties</em>'.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getProperties()
- * @see #getContextElement()
- * @generated
- */
- EReference getContextElement_Properties();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getName()
- * @see #getContextElement()
- * @generated
- */
- EAttribute getContextElement_Name();
-
- /**
- * Returns the meta object for data type '{@link org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State <em>Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for data type '<em>Value</em>'.
- * @see org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State
- * @model instanceClass="org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State"
- * @generated
- */
- EDataType getValue();
-
- /**
- * 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
- */
- FieldSelectionFactory getFieldSelectionFactory();
-
- /**
- * <!-- begin-user-doc -->
- * Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- *
- * @generated
- */
- interface Literals {
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl <em>Field Selection</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getFieldSelection()
- * @generated
- */
- EClass FIELD_SELECTION = eINSTANCE.getFieldSelection();
-
- /**
- * The meta object literal for the '<em><b>Fields</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference FIELD_SELECTION__FIELDS = eINSTANCE.getFieldSelection_Fields();
-
- /**
- * The meta object literal for the '<em><b>Context Elements</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference FIELD_SELECTION__CONTEXT_ELEMENTS = eINSTANCE.getFieldSelection_ContextElements();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl <em>Property Definition</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getPropertyDefinition()
- * @generated
- */
- EClass PROPERTY_DEFINITION = eINSTANCE.getPropertyDefinition();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PROPERTY_DEFINITION__NAME = eINSTANCE.getPropertyDefinition_Name();
-
- /**
- * The meta object literal for the '<em><b>Value Single</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PROPERTY_DEFINITION__VALUE_SINGLE = eINSTANCE.getPropertyDefinition_ValueSingle();
-
- /**
- * The meta object literal for the '<em><b>Value Multiple</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PROPERTY_DEFINITION__VALUE_MULTIPLE = eINSTANCE.getPropertyDefinition_ValueMultiple();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl <em>Context Element</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getContextElement()
- * @generated
- */
- EClass CONTEXT_ELEMENT = eINSTANCE.getContextElement();
-
- /**
- * The meta object literal for the '<em><b>Elements</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference CONTEXT_ELEMENT__ELEMENTS = eINSTANCE.getContextElement_Elements();
-
- /**
- * The meta object literal for the '<em><b>Properties</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference CONTEXT_ELEMENT__PROPERTIES = eINSTANCE.getContextElement_Properties();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute CONTEXT_ELEMENT__NAME = eINSTANCE.getContextElement_Name();
-
- /**
- * The meta object literal for the '<em>Value</em>' data type.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getValue()
- * @generated
- */
- EDataType VALUE = eINSTANCE.getValue();
-
- }
-
-} // FieldSelectionPackage
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.customization.properties.generation.fieldselection;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface FieldSelectionPackage extends EPackage {
+
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNAME = "fieldselection";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNS_URI = "http://www.eclipse.org/papyrus/properties/fieldSelection";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNS_PREFIX = "fs";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ FieldSelectionPackage eINSTANCE = org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl <em>Field Selection</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getFieldSelection()
+ * @generated
+ */
+ int FIELD_SELECTION = 0;
+
+ /**
+ * The feature id for the '<em><b>Fields</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int FIELD_SELECTION__FIELDS = 0;
+
+ /**
+ * The feature id for the '<em><b>Context Elements</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int FIELD_SELECTION__CONTEXT_ELEMENTS = 1;
+
+ /**
+ * The number of structural features of the '<em>Field Selection</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int FIELD_SELECTION_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl <em>Property Definition</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getPropertyDefinition()
+ * @generated
+ */
+ int PROPERTY_DEFINITION = 1;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_DEFINITION__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Value Single</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_DEFINITION__VALUE_SINGLE = 1;
+
+ /**
+ * The feature id for the '<em><b>Value Multiple</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_DEFINITION__VALUE_MULTIPLE = 2;
+
+ /**
+ * The number of structural features of the '<em>Property Definition</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_DEFINITION_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl <em>Context Element</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getContextElement()
+ * @generated
+ */
+ int CONTEXT_ELEMENT = 2;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTEXT_ELEMENT__ELEMENTS = 0;
+
+ /**
+ * The feature id for the '<em><b>Properties</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTEXT_ELEMENT__PROPERTIES = 1;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTEXT_ELEMENT__NAME = 2;
+
+ /**
+ * The number of structural features of the '<em>Context Element</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTEXT_ELEMENT_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '<em>Value</em>' data type.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getValue()
+ * @generated
+ */
+ int VALUE = 3;
+
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection <em>Field Selection</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Field Selection</em>'.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection
+ * @generated
+ */
+ EClass getFieldSelection();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getFields <em>Fields</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Fields</em>'.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getFields()
+ * @see #getFieldSelection()
+ * @generated
+ */
+ EReference getFieldSelection_Fields();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getContextElements <em>Context Elements</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Context Elements</em>'.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection#getContextElements()
+ * @see #getFieldSelection()
+ * @generated
+ */
+ EReference getFieldSelection_ContextElements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition <em>Property Definition</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Property Definition</em>'.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition
+ * @generated
+ */
+ EClass getPropertyDefinition();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getName()
+ * @see #getPropertyDefinition()
+ * @generated
+ */
+ EAttribute getPropertyDefinition_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueSingle <em>Value Single</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Value Single</em>'.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueSingle()
+ * @see #getPropertyDefinition()
+ * @generated
+ */
+ EAttribute getPropertyDefinition_ValueSingle();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueMultiple <em>Value Multiple</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Value Multiple</em>'.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueMultiple()
+ * @see #getPropertyDefinition()
+ * @generated
+ */
+ EAttribute getPropertyDefinition_ValueMultiple();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement <em>Context Element</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Context Element</em>'.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement
+ * @generated
+ */
+ EClass getContextElement();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getElements <em>Elements</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Elements</em>'.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getElements()
+ * @see #getContextElement()
+ * @generated
+ */
+ EReference getContextElement_Elements();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getProperties <em>Properties</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Properties</em>'.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getProperties()
+ * @see #getContextElement()
+ * @generated
+ */
+ EReference getContextElement_Properties();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement#getName()
+ * @see #getContextElement()
+ * @generated
+ */
+ EAttribute getContextElement_Name();
+
+ /**
+ * Returns the meta object for data type '{@link org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State <em>Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for data type '<em>Value</em>'.
+ * @see org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State
+ * @model instanceClass="org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State"
+ * @generated
+ */
+ EDataType getValue();
+
+ /**
+ * 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
+ */
+ FieldSelectionFactory getFieldSelectionFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ interface Literals {
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl <em>Field Selection</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getFieldSelection()
+ * @generated
+ */
+ EClass FIELD_SELECTION = eINSTANCE.getFieldSelection();
+
+ /**
+ * The meta object literal for the '<em><b>Fields</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference FIELD_SELECTION__FIELDS = eINSTANCE.getFieldSelection_Fields();
+
+ /**
+ * The meta object literal for the '<em><b>Context Elements</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference FIELD_SELECTION__CONTEXT_ELEMENTS = eINSTANCE.getFieldSelection_ContextElements();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl <em>Property Definition</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getPropertyDefinition()
+ * @generated
+ */
+ EClass PROPERTY_DEFINITION = eINSTANCE.getPropertyDefinition();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PROPERTY_DEFINITION__NAME = eINSTANCE.getPropertyDefinition_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Value Single</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PROPERTY_DEFINITION__VALUE_SINGLE = eINSTANCE.getPropertyDefinition_ValueSingle();
+
+ /**
+ * The meta object literal for the '<em><b>Value Multiple</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PROPERTY_DEFINITION__VALUE_MULTIPLE = eINSTANCE.getPropertyDefinition_ValueMultiple();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl <em>Context Element</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getContextElement()
+ * @generated
+ */
+ EClass CONTEXT_ELEMENT = eINSTANCE.getContextElement();
+
+ /**
+ * The meta object literal for the '<em><b>Elements</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference CONTEXT_ELEMENT__ELEMENTS = eINSTANCE.getContextElement_Elements();
+
+ /**
+ * The meta object literal for the '<em><b>Properties</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference CONTEXT_ELEMENT__PROPERTIES = eINSTANCE.getContextElement_Properties();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute CONTEXT_ELEMENT__NAME = eINSTANCE.getContextElement_Name();
+
+ /**
+ * The meta object literal for the '<em>Value</em>' data type.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionPackageImpl#getValue()
+ * @generated
+ */
+ EDataType VALUE = eINSTANCE.getValue();
+
+ }
+
+} // FieldSelectionPackage
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/PropertyDefinition.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/PropertyDefinition.java
index 694011b2fa3..9cbca0a7e7b 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/PropertyDefinition.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/PropertyDefinition.java
@@ -1,118 +1,118 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.properties.generation.fieldselection;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Property Definition</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueSingle <em>Value Single</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueMultiple <em>Value Multiple</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getPropertyDefinition()
- * @model
- * @generated
- */
-public interface PropertyDefinition extends EObject {
-
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getPropertyDefinition_Name()
- * @model required="true"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Value Single</b></em>' attribute.
- * The default value is <code>"DEFAULT"</code>.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Value Single</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Value Single</em>' attribute.
- * @see #setValueSingle(State)
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getPropertyDefinition_ValueSingle()
- * @model default="DEFAULT" dataType="org.eclipse.papyrus.customization.properties.generation.fieldselection.Value" required="true"
- * @generated
- */
- State getValueSingle();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueSingle <em>Value Single</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Value Single</em>' attribute.
- * @see #getValueSingle()
- * @generated
- */
- void setValueSingle(State value);
-
- /**
- * Returns the value of the '<em><b>Value Multiple</b></em>' attribute.
- * The default value is <code>"DEFAULT"</code>.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Value Multiple</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Value Multiple</em>' attribute.
- * @see #setValueMultiple(State)
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getPropertyDefinition_ValueMultiple()
- * @model default="DEFAULT" dataType="org.eclipse.papyrus.customization.properties.generation.fieldselection.Value" required="true"
- * @generated
- */
- State getValueMultiple();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueMultiple <em>Value Multiple</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Value Multiple</em>' attribute.
- * @see #getValueMultiple()
- * @generated
- */
- void setValueMultiple(State value);
-
-} // PropertyDefinition
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.customization.properties.generation.fieldselection;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Property Definition</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueSingle <em>Value Single</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueMultiple <em>Value Multiple</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getPropertyDefinition()
+ * @model
+ * @generated
+ */
+public interface PropertyDefinition extends EObject {
+
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getPropertyDefinition_Name()
+ * @model required="true"
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Value Single</b></em>' attribute.
+ * The default value is <code>"DEFAULT"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Value Single</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Value Single</em>' attribute.
+ * @see #setValueSingle(State)
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getPropertyDefinition_ValueSingle()
+ * @model default="DEFAULT" dataType="org.eclipse.papyrus.customization.properties.generation.fieldselection.Value" required="true"
+ * @generated
+ */
+ State getValueSingle();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueSingle <em>Value Single</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Value Single</em>' attribute.
+ * @see #getValueSingle()
+ * @generated
+ */
+ void setValueSingle(State value);
+
+ /**
+ * Returns the value of the '<em><b>Value Multiple</b></em>' attribute.
+ * The default value is <code>"DEFAULT"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Value Multiple</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Value Multiple</em>' attribute.
+ * @see #setValueMultiple(State)
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#getPropertyDefinition_ValueMultiple()
+ * @model default="DEFAULT" dataType="org.eclipse.papyrus.customization.properties.generation.fieldselection.Value" required="true"
+ * @generated
+ */
+ State getValueMultiple();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition#getValueMultiple <em>Value Multiple</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Value Multiple</em>' attribute.
+ * @see #getValueMultiple()
+ * @generated
+ */
+ void setValueMultiple(State value);
+
+} // PropertyDefinition
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/ContextElementImpl.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/ContextElementImpl.java
index 8080c9c7f8f..7fcda7d9e39 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/ContextElementImpl.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/ContextElementImpl.java
@@ -1,277 +1,277 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.properties.generation.fieldselection.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Context Element</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl#getElements <em>Elements</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl#getProperties <em>Properties</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ContextElementImpl extends EObjectImpl implements ContextElement {
-
- /**
- * The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getElements()
- * @generated
- * @ordered
- */
- protected EList<ContextElement> elements;
-
- /**
- * The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getProperties()
- * @generated
- * @ordered
- */
- protected EList<PropertyDefinition> properties;
-
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ContextElementImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return FieldSelectionPackage.Literals.CONTEXT_ELEMENT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<ContextElement> getElements() {
- if (elements == null) {
- elements = new EObjectContainmentEList<ContextElement>(ContextElement.class, this, FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS);
- }
- return elements;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<PropertyDefinition> getProperties() {
- if (properties == null) {
- properties = new EObjectContainmentEList<PropertyDefinition>(PropertyDefinition.class, this, FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES);
- }
- return properties;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, FieldSelectionPackage.CONTEXT_ELEMENT__NAME, oldName, name));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
- return ((InternalEList<?>) getElements()).basicRemove(otherEnd, msgs);
- case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
- return ((InternalEList<?>) getProperties()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
- return getElements();
- case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
- return getProperties();
- case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
- return getName();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
- getElements().clear();
- getElements().addAll((Collection<? extends ContextElement>) newValue);
- return;
- case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
- getProperties().clear();
- getProperties().addAll((Collection<? extends PropertyDefinition>) newValue);
- return;
- case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
- setName((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
- getElements().clear();
- return;
- case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
- getProperties().clear();
- return;
- case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
- setName(NAME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
- return elements != null && !elements.isEmpty();
- case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
- return properties != null && !properties.isEmpty();
- case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} // ContextElementImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.customization.properties.generation.fieldselection.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Context Element</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl#getElements <em>Elements</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl#getProperties <em>Properties</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.ContextElementImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ContextElementImpl extends EObjectImpl implements ContextElement {
+
+ /**
+ * The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<ContextElement> elements;
+
+ /**
+ * The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getProperties()
+ * @generated
+ * @ordered
+ */
+ protected EList<PropertyDefinition> properties;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ContextElementImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return FieldSelectionPackage.Literals.CONTEXT_ELEMENT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<ContextElement> getElements() {
+ if (elements == null) {
+ elements = new EObjectContainmentEList<ContextElement>(ContextElement.class, this, FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS);
+ }
+ return elements;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<PropertyDefinition> getProperties() {
+ if (properties == null) {
+ properties = new EObjectContainmentEList<PropertyDefinition>(PropertyDefinition.class, this, FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES);
+ }
+ return properties;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, FieldSelectionPackage.CONTEXT_ELEMENT__NAME, oldName, name));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
+ return ((InternalEList<?>) getElements()).basicRemove(otherEnd, msgs);
+ case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
+ return ((InternalEList<?>) getProperties()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
+ return getElements();
+ case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
+ return getProperties();
+ case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
+ return getName();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
+ getElements().clear();
+ getElements().addAll((Collection<? extends ContextElement>) newValue);
+ return;
+ case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
+ getProperties().clear();
+ getProperties().addAll((Collection<? extends PropertyDefinition>) newValue);
+ return;
+ case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
+ setName((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
+ getElements().clear();
+ return;
+ case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
+ getProperties().clear();
+ return;
+ case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case FieldSelectionPackage.CONTEXT_ELEMENT__ELEMENTS:
+ return elements != null && !elements.isEmpty();
+ case FieldSelectionPackage.CONTEXT_ELEMENT__PROPERTIES:
+ return properties != null && !properties.isEmpty();
+ case FieldSelectionPackage.CONTEXT_ELEMENT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) {
+ return super.toString();
+ }
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(')');
+ return result.toString();
+ }
+
+} // ContextElementImpl
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionFactoryImpl.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionFactoryImpl.java
index f7c62389c69..0bb5f2bc44d 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionFactoryImpl.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionFactoryImpl.java
@@ -1,189 +1,189 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.properties.generation.fieldselection.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionFactory;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
-import org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class FieldSelectionFactoryImpl extends EFactoryImpl implements FieldSelectionFactory {
-
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static FieldSelectionFactory init() {
- try {
- FieldSelectionFactory theFieldSelectionFactory = (FieldSelectionFactory) EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/properties/fieldSelection");
- if (theFieldSelectionFactory != null) {
- return theFieldSelectionFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new FieldSelectionFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public FieldSelectionFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case FieldSelectionPackage.FIELD_SELECTION:
- return createFieldSelection();
- case FieldSelectionPackage.PROPERTY_DEFINITION:
- return createPropertyDefinition();
- case FieldSelectionPackage.CONTEXT_ELEMENT:
- return createContextElement();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object createFromString(EDataType eDataType, String initialValue) {
- switch (eDataType.getClassifierID()) {
- case FieldSelectionPackage.VALUE:
- return createValueFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String convertToString(EDataType eDataType, Object instanceValue) {
- switch (eDataType.getClassifierID()) {
- case FieldSelectionPackage.VALUE:
- return convertValueToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public FieldSelection createFieldSelection() {
- FieldSelectionImpl fieldSelection = new FieldSelectionImpl();
- return fieldSelection;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public PropertyDefinition createPropertyDefinition() {
- PropertyDefinitionImpl propertyDefinition = new PropertyDefinitionImpl();
- return propertyDefinition;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ContextElement createContextElement() {
- ContextElementImpl contextElement = new ContextElementImpl();
- return contextElement;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public State createValueFromString(EDataType eDataType, String initialValue) {
- return (State) super.createFromString(eDataType, initialValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String convertValueToString(EDataType eDataType, Object instanceValue) {
- return super.convertToString(eDataType, instanceValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public FieldSelectionPackage getFieldSelectionPackage() {
- return (FieldSelectionPackage) getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static FieldSelectionPackage getPackage() {
- return FieldSelectionPackage.eINSTANCE;
- }
-
-} // FieldSelectionFactoryImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.customization.properties.generation.fieldselection.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionFactory;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
+import org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class FieldSelectionFactoryImpl extends EFactoryImpl implements FieldSelectionFactory {
+
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static FieldSelectionFactory init() {
+ try {
+ FieldSelectionFactory theFieldSelectionFactory = (FieldSelectionFactory) EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/properties/fieldSelection");
+ if (theFieldSelectionFactory != null) {
+ return theFieldSelectionFactory;
+ }
+ } catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new FieldSelectionFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public FieldSelectionFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case FieldSelectionPackage.FIELD_SELECTION:
+ return createFieldSelection();
+ case FieldSelectionPackage.PROPERTY_DEFINITION:
+ return createPropertyDefinition();
+ case FieldSelectionPackage.CONTEXT_ELEMENT:
+ return createContextElement();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object createFromString(EDataType eDataType, String initialValue) {
+ switch (eDataType.getClassifierID()) {
+ case FieldSelectionPackage.VALUE:
+ return createValueFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String convertToString(EDataType eDataType, Object instanceValue) {
+ switch (eDataType.getClassifierID()) {
+ case FieldSelectionPackage.VALUE:
+ return convertValueToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public FieldSelection createFieldSelection() {
+ FieldSelectionImpl fieldSelection = new FieldSelectionImpl();
+ return fieldSelection;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PropertyDefinition createPropertyDefinition() {
+ PropertyDefinitionImpl propertyDefinition = new PropertyDefinitionImpl();
+ return propertyDefinition;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ContextElement createContextElement() {
+ ContextElementImpl contextElement = new ContextElementImpl();
+ return contextElement;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public State createValueFromString(EDataType eDataType, String initialValue) {
+ return (State) super.createFromString(eDataType, initialValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String convertValueToString(EDataType eDataType, Object instanceValue) {
+ return super.convertToString(eDataType, instanceValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public FieldSelectionPackage getFieldSelectionPackage() {
+ return (FieldSelectionPackage) getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static FieldSelectionPackage getPackage() {
+ return FieldSelectionPackage.eINSTANCE;
+ }
+
+} // FieldSelectionFactoryImpl
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionImpl.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionImpl.java
index 949e6317da9..8e7f345c882 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionImpl.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionImpl.java
@@ -1,200 +1,200 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.properties.generation.fieldselection.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Field Selection</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl#getFields <em>Fields</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl#getContextElements <em>Context Elements</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class FieldSelectionImpl extends EObjectImpl implements FieldSelection {
-
- /**
- * The cached value of the '{@link #getFields() <em>Fields</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getFields()
- * @generated
- * @ordered
- */
- protected EList<PropertyDefinition> fields;
-
- /**
- * The cached value of the '{@link #getContextElements() <em>Context Elements</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getContextElements()
- * @generated
- * @ordered
- */
- protected EList<ContextElement> contextElements;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected FieldSelectionImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return FieldSelectionPackage.Literals.FIELD_SELECTION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<PropertyDefinition> getFields() {
- if (fields == null) {
- fields = new EObjectContainmentEList<PropertyDefinition>(PropertyDefinition.class, this, FieldSelectionPackage.FIELD_SELECTION__FIELDS);
- }
- return fields;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<ContextElement> getContextElements() {
- if (contextElements == null) {
- contextElements = new EObjectContainmentEList<ContextElement>(ContextElement.class, this, FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS);
- }
- return contextElements;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
- return ((InternalEList<?>) getFields()).basicRemove(otherEnd, msgs);
- case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
- return ((InternalEList<?>) getContextElements()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
- return getFields();
- case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
- return getContextElements();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
- getFields().clear();
- getFields().addAll((Collection<? extends PropertyDefinition>) newValue);
- return;
- case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
- getContextElements().clear();
- getContextElements().addAll((Collection<? extends ContextElement>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
- getFields().clear();
- return;
- case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
- getContextElements().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
- return fields != null && !fields.isEmpty();
- case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
- return contextElements != null && !contextElements.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} // FieldSelectionImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.customization.properties.generation.fieldselection.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Field Selection</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl#getFields <em>Fields</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.FieldSelectionImpl#getContextElements <em>Context Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class FieldSelectionImpl extends EObjectImpl implements FieldSelection {
+
+ /**
+ * The cached value of the '{@link #getFields() <em>Fields</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getFields()
+ * @generated
+ * @ordered
+ */
+ protected EList<PropertyDefinition> fields;
+
+ /**
+ * The cached value of the '{@link #getContextElements() <em>Context Elements</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getContextElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<ContextElement> contextElements;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected FieldSelectionImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return FieldSelectionPackage.Literals.FIELD_SELECTION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<PropertyDefinition> getFields() {
+ if (fields == null) {
+ fields = new EObjectContainmentEList<PropertyDefinition>(PropertyDefinition.class, this, FieldSelectionPackage.FIELD_SELECTION__FIELDS);
+ }
+ return fields;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<ContextElement> getContextElements() {
+ if (contextElements == null) {
+ contextElements = new EObjectContainmentEList<ContextElement>(ContextElement.class, this, FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS);
+ }
+ return contextElements;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
+ return ((InternalEList<?>) getFields()).basicRemove(otherEnd, msgs);
+ case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
+ return ((InternalEList<?>) getContextElements()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
+ return getFields();
+ case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
+ return getContextElements();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
+ getFields().clear();
+ getFields().addAll((Collection<? extends PropertyDefinition>) newValue);
+ return;
+ case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
+ getContextElements().clear();
+ getContextElements().addAll((Collection<? extends ContextElement>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
+ getFields().clear();
+ return;
+ case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
+ getContextElements().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case FieldSelectionPackage.FIELD_SELECTION__FIELDS:
+ return fields != null && !fields.isEmpty();
+ case FieldSelectionPackage.FIELD_SELECTION__CONTEXT_ELEMENTS:
+ return contextElements != null && !contextElements.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // FieldSelectionImpl
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionPackageImpl.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionPackageImpl.java
index 45cdfa65c55..4d46c6b4a3b 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionPackageImpl.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/FieldSelectionPackageImpl.java
@@ -1,354 +1,354 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.properties.generation.fieldselection.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionFactory;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
-import org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSelectionPackage {
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass fieldSelectionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass propertyDefinitionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass contextElementEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EDataType valueEDataType = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>
- * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private FieldSelectionPackageImpl() {
- super(eNS_URI, FieldSelectionFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
- *
- * <p>
- * This method is used to initialize {@link FieldSelectionPackage#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 FieldSelectionPackage init() {
- if (isInited) {
- return (FieldSelectionPackage) EPackage.Registry.INSTANCE.getEPackage(FieldSelectionPackage.eNS_URI);
- }
-
- // Obtain or create and register package
- FieldSelectionPackageImpl theFieldSelectionPackage = (FieldSelectionPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof FieldSelectionPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new FieldSelectionPackageImpl());
-
- isInited = true;
-
- // Create package meta-data objects
- theFieldSelectionPackage.createPackageContents();
-
- // Initialize created meta-data
- theFieldSelectionPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theFieldSelectionPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(FieldSelectionPackage.eNS_URI, theFieldSelectionPackage);
- return theFieldSelectionPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getFieldSelection() {
- return fieldSelectionEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getFieldSelection_Fields() {
- return (EReference) fieldSelectionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getFieldSelection_ContextElements() {
- return (EReference) fieldSelectionEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getPropertyDefinition() {
- return propertyDefinitionEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getPropertyDefinition_Name() {
- return (EAttribute) propertyDefinitionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getPropertyDefinition_ValueSingle() {
- return (EAttribute) propertyDefinitionEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getPropertyDefinition_ValueMultiple() {
- return (EAttribute) propertyDefinitionEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getContextElement() {
- return contextElementEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getContextElement_Elements() {
- return (EReference) contextElementEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getContextElement_Properties() {
- return (EReference) contextElementEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getContextElement_Name() {
- return (EAttribute) contextElementEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EDataType getValue() {
- return valueEDataType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public FieldSelectionFactory getFieldSelectionFactory() {
- return (FieldSelectionFactory) getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void createPackageContents() {
- if (isCreated) {
- return;
- }
- isCreated = true;
-
- // Create classes and their features
- fieldSelectionEClass = createEClass(FIELD_SELECTION);
- createEReference(fieldSelectionEClass, FIELD_SELECTION__FIELDS);
- createEReference(fieldSelectionEClass, FIELD_SELECTION__CONTEXT_ELEMENTS);
-
- propertyDefinitionEClass = createEClass(PROPERTY_DEFINITION);
- createEAttribute(propertyDefinitionEClass, PROPERTY_DEFINITION__NAME);
- createEAttribute(propertyDefinitionEClass, PROPERTY_DEFINITION__VALUE_SINGLE);
- createEAttribute(propertyDefinitionEClass, PROPERTY_DEFINITION__VALUE_MULTIPLE);
-
- contextElementEClass = createEClass(CONTEXT_ELEMENT);
- createEReference(contextElementEClass, CONTEXT_ELEMENT__ELEMENTS);
- createEReference(contextElementEClass, CONTEXT_ELEMENT__PROPERTIES);
- createEAttribute(contextElementEClass, CONTEXT_ELEMENT__NAME);
-
- // Create data types
- valueEDataType = createEDataType(VALUE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) {
- return;
- }
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
-
- // Initialize classes and features; add operations and parameters
- initEClass(fieldSelectionEClass, FieldSelection.class, "FieldSelection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getFieldSelection_Fields(), this.getPropertyDefinition(), null, "fields", null, 0, -1, FieldSelection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
- initEReference(getFieldSelection_ContextElements(), this.getContextElement(), null, "contextElements", null, 0, -1, FieldSelection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, IS_ORDERED);
-
- initEClass(propertyDefinitionEClass, PropertyDefinition.class, "PropertyDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getPropertyDefinition_Name(), ecorePackage.getEString(), "name", null, 1, 1, PropertyDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPropertyDefinition_ValueSingle(), this.getValue(), "valueSingle", "DEFAULT", 1, 1, PropertyDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPropertyDefinition_ValueMultiple(), this.getValue(), "valueMultiple", "DEFAULT", 1, 1, PropertyDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(contextElementEClass, ContextElement.class, "ContextElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getContextElement_Elements(), this.getContextElement(), null, "elements", null, 0, -1, ContextElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
- initEReference(getContextElement_Properties(), this.getPropertyDefinition(), null, "properties", null, 0, -1, ContextElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
- initEAttribute(getContextElement_Name(), ecorePackage.getEString(), "name", null, 1, 1, ContextElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Initialize data types
- initEDataType(valueEDataType, State.class, "Value", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} // FieldSelectionPackageImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.customization.properties.generation.fieldselection.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionFactory;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
+import org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class FieldSelectionPackageImpl extends EPackageImpl implements FieldSelectionPackage {
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass fieldSelectionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass propertyDefinitionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass contextElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EDataType valueEDataType = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private FieldSelectionPackageImpl() {
+ super(eNS_URI, FieldSelectionFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>
+ * This method is used to initialize {@link FieldSelectionPackage#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 FieldSelectionPackage init() {
+ if (isInited) {
+ return (FieldSelectionPackage) EPackage.Registry.INSTANCE.getEPackage(FieldSelectionPackage.eNS_URI);
+ }
+
+ // Obtain or create and register package
+ FieldSelectionPackageImpl theFieldSelectionPackage = (FieldSelectionPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof FieldSelectionPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new FieldSelectionPackageImpl());
+
+ isInited = true;
+
+ // Create package meta-data objects
+ theFieldSelectionPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theFieldSelectionPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theFieldSelectionPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(FieldSelectionPackage.eNS_URI, theFieldSelectionPackage);
+ return theFieldSelectionPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getFieldSelection() {
+ return fieldSelectionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getFieldSelection_Fields() {
+ return (EReference) fieldSelectionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getFieldSelection_ContextElements() {
+ return (EReference) fieldSelectionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getPropertyDefinition() {
+ return propertyDefinitionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getPropertyDefinition_Name() {
+ return (EAttribute) propertyDefinitionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getPropertyDefinition_ValueSingle() {
+ return (EAttribute) propertyDefinitionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getPropertyDefinition_ValueMultiple() {
+ return (EAttribute) propertyDefinitionEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getContextElement() {
+ return contextElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getContextElement_Elements() {
+ return (EReference) contextElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getContextElement_Properties() {
+ return (EReference) contextElementEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getContextElement_Name() {
+ return (EAttribute) contextElementEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EDataType getValue() {
+ return valueEDataType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public FieldSelectionFactory getFieldSelectionFactory() {
+ return (FieldSelectionFactory) getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) {
+ return;
+ }
+ isCreated = true;
+
+ // Create classes and their features
+ fieldSelectionEClass = createEClass(FIELD_SELECTION);
+ createEReference(fieldSelectionEClass, FIELD_SELECTION__FIELDS);
+ createEReference(fieldSelectionEClass, FIELD_SELECTION__CONTEXT_ELEMENTS);
+
+ propertyDefinitionEClass = createEClass(PROPERTY_DEFINITION);
+ createEAttribute(propertyDefinitionEClass, PROPERTY_DEFINITION__NAME);
+ createEAttribute(propertyDefinitionEClass, PROPERTY_DEFINITION__VALUE_SINGLE);
+ createEAttribute(propertyDefinitionEClass, PROPERTY_DEFINITION__VALUE_MULTIPLE);
+
+ contextElementEClass = createEClass(CONTEXT_ELEMENT);
+ createEReference(contextElementEClass, CONTEXT_ELEMENT__ELEMENTS);
+ createEReference(contextElementEClass, CONTEXT_ELEMENT__PROPERTIES);
+ createEAttribute(contextElementEClass, CONTEXT_ELEMENT__NAME);
+
+ // Create data types
+ valueEDataType = createEDataType(VALUE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) {
+ return;
+ }
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(fieldSelectionEClass, FieldSelection.class, "FieldSelection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getFieldSelection_Fields(), this.getPropertyDefinition(), null, "fields", null, 0, -1, FieldSelection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEReference(getFieldSelection_ContextElements(), this.getContextElement(), null, "contextElements", null, 0, -1, FieldSelection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(propertyDefinitionEClass, PropertyDefinition.class, "PropertyDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getPropertyDefinition_Name(), ecorePackage.getEString(), "name", null, 1, 1, PropertyDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPropertyDefinition_ValueSingle(), this.getValue(), "valueSingle", "DEFAULT", 1, 1, PropertyDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPropertyDefinition_ValueMultiple(), this.getValue(), "valueMultiple", "DEFAULT", 1, 1, PropertyDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(contextElementEClass, ContextElement.class, "ContextElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getContextElement_Elements(), this.getContextElement(), null, "elements", null, 0, -1, ContextElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEReference(getContextElement_Properties(), this.getPropertyDefinition(), null, "properties", null, 0, -1, ContextElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getContextElement_Name(), ecorePackage.getEString(), "name", null, 1, 1, ContextElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Initialize data types
+ initEDataType(valueEDataType, State.class, "Value", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} // FieldSelectionPackageImpl
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/PropertyDefinitionImpl.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/PropertyDefinitionImpl.java
index 26a72221bb2..16a60fd10e7 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/PropertyDefinitionImpl.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/impl/PropertyDefinitionImpl.java
@@ -1,300 +1,300 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.properties.generation.fieldselection.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionFactory;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
-import org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Property Definition</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl#getValueSingle <em>Value Single</em>}</li>
- * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl#getValueMultiple <em>Value Multiple</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefinition {
-
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getValueSingle() <em>Value Single</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValueSingle()
- * @generated
- * @ordered
- */
- protected static final State VALUE_SINGLE_EDEFAULT = (State) FieldSelectionFactory.eINSTANCE.createFromString(FieldSelectionPackage.eINSTANCE.getValue(), "DEFAULT");
-
- /**
- * The cached value of the '{@link #getValueSingle() <em>Value Single</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValueSingle()
- * @generated
- * @ordered
- */
- protected State valueSingle = VALUE_SINGLE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getValueMultiple() <em>Value Multiple</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValueMultiple()
- * @generated
- * @ordered
- */
- protected static final State VALUE_MULTIPLE_EDEFAULT = (State) FieldSelectionFactory.eINSTANCE.createFromString(FieldSelectionPackage.eINSTANCE.getValue(), "DEFAULT");
-
- /**
- * The cached value of the '{@link #getValueMultiple() <em>Value Multiple</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValueMultiple()
- * @generated
- * @ordered
- */
- protected State valueMultiple = VALUE_MULTIPLE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected PropertyDefinitionImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return FieldSelectionPackage.Literals.PROPERTY_DEFINITION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, FieldSelectionPackage.PROPERTY_DEFINITION__NAME, oldName, name));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public State getValueSingle() {
- return valueSingle;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setValueSingle(State newValueSingle) {
- State oldValueSingle = valueSingle;
- valueSingle = newValueSingle;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE, oldValueSingle, valueSingle));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public State getValueMultiple() {
- return valueMultiple;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setValueMultiple(State newValueMultiple) {
- State oldValueMultiple = valueMultiple;
- valueMultiple = newValueMultiple;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE, oldValueMultiple, valueMultiple));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
- return getName();
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
- return getValueSingle();
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
- return getValueMultiple();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
- setName((String) newValue);
- return;
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
- setValueSingle((State) newValue);
- return;
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
- setValueMultiple((State) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
- setName(NAME_EDEFAULT);
- return;
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
- setValueSingle(VALUE_SINGLE_EDEFAULT);
- return;
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
- setValueMultiple(VALUE_MULTIPLE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
- return VALUE_SINGLE_EDEFAULT == null ? valueSingle != null : !VALUE_SINGLE_EDEFAULT.equals(valueSingle);
- case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
- return VALUE_MULTIPLE_EDEFAULT == null ? valueMultiple != null : !VALUE_MULTIPLE_EDEFAULT.equals(valueMultiple);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", valueSingle: ");
- result.append(valueSingle);
- result.append(", valueMultiple: ");
- result.append(valueMultiple);
- result.append(')');
- return result.toString();
- }
-
-} // PropertyDefinitionImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.customization.properties.generation.fieldselection.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionFactory;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
+import org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton.State;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Property Definition</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl#getValueSingle <em>Value Single</em>}</li>
+ * <li>{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.impl.PropertyDefinitionImpl#getValueMultiple <em>Value Multiple</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class PropertyDefinitionImpl extends EObjectImpl implements PropertyDefinition {
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getValueSingle() <em>Value Single</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getValueSingle()
+ * @generated
+ * @ordered
+ */
+ protected static final State VALUE_SINGLE_EDEFAULT = (State) FieldSelectionFactory.eINSTANCE.createFromString(FieldSelectionPackage.eINSTANCE.getValue(), "DEFAULT");
+
+ /**
+ * The cached value of the '{@link #getValueSingle() <em>Value Single</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getValueSingle()
+ * @generated
+ * @ordered
+ */
+ protected State valueSingle = VALUE_SINGLE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getValueMultiple() <em>Value Multiple</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getValueMultiple()
+ * @generated
+ * @ordered
+ */
+ protected static final State VALUE_MULTIPLE_EDEFAULT = (State) FieldSelectionFactory.eINSTANCE.createFromString(FieldSelectionPackage.eINSTANCE.getValue(), "DEFAULT");
+
+ /**
+ * The cached value of the '{@link #getValueMultiple() <em>Value Multiple</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getValueMultiple()
+ * @generated
+ * @ordered
+ */
+ protected State valueMultiple = VALUE_MULTIPLE_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected PropertyDefinitionImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return FieldSelectionPackage.Literals.PROPERTY_DEFINITION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, FieldSelectionPackage.PROPERTY_DEFINITION__NAME, oldName, name));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public State getValueSingle() {
+ return valueSingle;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setValueSingle(State newValueSingle) {
+ State oldValueSingle = valueSingle;
+ valueSingle = newValueSingle;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE, oldValueSingle, valueSingle));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public State getValueMultiple() {
+ return valueMultiple;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setValueMultiple(State newValueMultiple) {
+ State oldValueMultiple = valueMultiple;
+ valueMultiple = newValueMultiple;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE, oldValueMultiple, valueMultiple));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
+ return getName();
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
+ return getValueSingle();
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
+ return getValueMultiple();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
+ setName((String) newValue);
+ return;
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
+ setValueSingle((State) newValue);
+ return;
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
+ setValueMultiple((State) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
+ setValueSingle(VALUE_SINGLE_EDEFAULT);
+ return;
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
+ setValueMultiple(VALUE_MULTIPLE_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case FieldSelectionPackage.PROPERTY_DEFINITION__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_SINGLE:
+ return VALUE_SINGLE_EDEFAULT == null ? valueSingle != null : !VALUE_SINGLE_EDEFAULT.equals(valueSingle);
+ case FieldSelectionPackage.PROPERTY_DEFINITION__VALUE_MULTIPLE:
+ return VALUE_MULTIPLE_EDEFAULT == null ? valueMultiple != null : !VALUE_MULTIPLE_EDEFAULT.equals(valueMultiple);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) {
+ return super.toString();
+ }
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(", valueSingle: ");
+ result.append(valueSingle);
+ result.append(", valueMultiple: ");
+ result.append(valueMultiple);
+ result.append(')');
+ return result.toString();
+ }
+
+} // PropertyDefinitionImpl
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionAdapterFactory.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionAdapterFactory.java
index 6aafbe1766f..643030f7600 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionAdapterFactory.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionAdapterFactory.java
@@ -1,174 +1,174 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.properties.generation.fieldselection.util;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the model.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage
- * @generated
- */
-public class FieldSelectionAdapterFactory extends AdapterFactoryImpl {
-
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static FieldSelectionPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public FieldSelectionAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = FieldSelectionPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- *
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object) {
- if (object == modelPackage) {
- return true;
- }
- if (object instanceof EObject) {
- return ((EObject) object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected FieldSelectionSwitch<Adapter> modelSwitch = new FieldSelectionSwitch<Adapter>() {
- @Override
- public Adapter caseFieldSelection(FieldSelection object) {
- return createFieldSelectionAdapter();
- }
-
- @Override
- public Adapter casePropertyDefinition(PropertyDefinition object) {
- return createPropertyDefinitionAdapter();
- }
-
- @Override
- public Adapter caseContextElement(ContextElement object) {
- return createContextElementAdapter();
- }
-
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param target
- * the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject) target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection <em>Field Selection</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.customization.properties.generation.fieldselection.FieldSelection
- * @generated
- */
- public Adapter createFieldSelectionAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition <em>Property Definition</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.customization.properties.generation.fieldselection.PropertyDefinition
- * @generated
- */
- public Adapter createPropertyDefinitionAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement <em>Context Element</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement
- * @generated
- */
- public Adapter createContextElementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
-} // FieldSelectionAdapterFactory
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.customization.properties.generation.fieldselection.util;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage
+ * @generated
+ */
+public class FieldSelectionAdapterFactory extends AdapterFactoryImpl {
+
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected static FieldSelectionPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public FieldSelectionAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = FieldSelectionPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc -->
+ * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+ * <!-- end-user-doc -->
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject) object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected FieldSelectionSwitch<Adapter> modelSwitch = new FieldSelectionSwitch<Adapter>() {
+ @Override
+ public Adapter caseFieldSelection(FieldSelection object) {
+ return createFieldSelectionAdapter();
+ }
+
+ @Override
+ public Adapter casePropertyDefinition(PropertyDefinition object) {
+ return createPropertyDefinitionAdapter();
+ }
+
+ @Override
+ public Adapter caseContextElement(ContextElement object) {
+ return createContextElementAdapter();
+ }
+
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @param target
+ * the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject) target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection <em>Field Selection</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.customization.properties.generation.fieldselection.FieldSelection
+ * @generated
+ */
+ public Adapter createFieldSelectionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition <em>Property Definition</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.customization.properties.generation.fieldselection.PropertyDefinition
+ * @generated
+ */
+ public Adapter createPropertyDefinitionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement <em>Context Element</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement
+ * @generated
+ */
+ public Adapter createContextElementAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} // FieldSelectionAdapterFactory
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionSwitch.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionSwitch.java
index 1151b7c653c..7fd419c3f10 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionSwitch.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src-gen/org/eclipse/papyrus/customization/properties/generation/fieldselection/util/FieldSelectionSwitch.java
@@ -1,178 +1,178 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.eclipse.papyrus.customization.properties.generation.fieldselection.util;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.util.Switch;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage
- * @generated
- */
-public class FieldSelectionSwitch<T> extends
- Switch<T> {
-
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static FieldSelectionPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public FieldSelectionSwitch() {
- if (modelPackage == null) {
- modelPackage = FieldSelectionPackage.eINSTANCE;
- }
- }
-
- /**
- * Checks whether this is a switch for the given package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @parameter ePackage the package in question.
- * @return whether this is a switch for the given package.
- * @generated
- */
- @Override
- protected boolean isSwitchFor(EPackage ePackage) {
- return ePackage == modelPackage;
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- @Override
- protected T doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case FieldSelectionPackage.FIELD_SELECTION: {
- FieldSelection fieldSelection = (FieldSelection) theEObject;
- T result = caseFieldSelection(fieldSelection);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case FieldSelectionPackage.PROPERTY_DEFINITION: {
- PropertyDefinition propertyDefinition = (PropertyDefinition) theEObject;
- T result = casePropertyDefinition(propertyDefinition);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case FieldSelectionPackage.CONTEXT_ELEMENT: {
- ContextElement contextElement = (ContextElement) theEObject;
- T result = caseContextElement(contextElement);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Field Selection</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Field Selection</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseFieldSelection(FieldSelection object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Property Definition</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Property Definition</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePropertyDefinition(PropertyDefinition object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Context Element</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Context Element</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseContextElement(ContextElement object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- @Override
- public T defaultCase(EObject object) {
- return null;
- }
-
-} // FieldSelectionSwitch
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.customization.properties.generation.fieldselection.util;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.util.Switch;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage
+ * @generated
+ */
+public class FieldSelectionSwitch<T> extends
+ Switch<T> {
+
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected static FieldSelectionPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public FieldSelectionSwitch() {
+ if (modelPackage == null) {
+ modelPackage = FieldSelectionPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Checks whether this is a switch for the given package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @parameter ePackage the package in question.
+ * @return whether this is a switch for the given package.
+ * @generated
+ */
+ @Override
+ protected boolean isSwitchFor(EPackage ePackage) {
+ return ePackage == modelPackage;
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case FieldSelectionPackage.FIELD_SELECTION: {
+ FieldSelection fieldSelection = (FieldSelection) theEObject;
+ T result = caseFieldSelection(fieldSelection);
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case FieldSelectionPackage.PROPERTY_DEFINITION: {
+ PropertyDefinition propertyDefinition = (PropertyDefinition) theEObject;
+ T result = casePropertyDefinition(propertyDefinition);
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case FieldSelectionPackage.CONTEXT_ELEMENT: {
+ ContextElement contextElement = (ContextElement) theEObject;
+ T result = caseContextElement(contextElement);
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Field Selection</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Field Selection</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFieldSelection(FieldSelection object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Property Definition</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Property Definition</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T casePropertyDefinition(PropertyDefinition object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Context Element</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Context Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseContextElement(ContextElement object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} // FieldSelectionSwitch
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/Activator.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/Activator.java
index e7b20642d54..3e315bd155e 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/Activator.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/Activator.java
@@ -1,109 +1,109 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation;
-
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.resource.ImageRegistry;
-import org.eclipse.papyrus.customization.properties.generation.extensionpoint.GeneratorExtensionPoint;
-import org.eclipse.papyrus.customization.properties.generation.extensionpoint.LayoutExtensionPoint;
-import org.eclipse.papyrus.infra.core.log.LogHelper;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/** The activator class controls the plug-in life cycle */
-public class Activator extends AbstractUIPlugin {
-
- /** the plug-in's logger */
- public static LogHelper log;
-
- /** The plug-in ID */
- public static final String PLUGIN_ID = "org.eclipse.papyrus.uml.properties.generation"; //$NON-NLS-1$
-
- // The shared instance
- private static Activator plugin;
-
- @Override
- public void start(final BundleContext context) throws Exception {
- super.start(context);
- Activator.plugin = this;
- log = new LogHelper(plugin);
-
- new GeneratorExtensionPoint();
- new LayoutExtensionPoint();
- }
-
- @Override
- public void stop(final BundleContext context) throws Exception {
- Activator.plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return Activator.plugin;
- }
-
- /**
- * Returns the image at the given path from this plugin
- *
- * @param path
- * the path of the image to be displayed
- * @return The Image at the given location, or null if it couldn't be found
- */
- public Image getImage(String path) {
- return getImage(PLUGIN_ID, path);
- }
-
- /**
- * Returns the image descriptor at the given path from this plugin
- *
- * @param path
- * the path of the image to be displayed
- * @return The Image Descriptor at the given location, or null if it couldn't be found
- */
- public ImageDescriptor getImageDescriptor(String path) {
- final ImageRegistry registry = getImageRegistry();
- String key = PLUGIN_ID + "/" + path; //$NON-NLS-1$
- ImageDescriptor descriptor = registry.getDescriptor(key);
- if (descriptor == null) {
- registry.put(key, AbstractUIPlugin.imageDescriptorFromPlugin(PLUGIN_ID, path));
- descriptor = registry.getDescriptor(key);
- }
- return descriptor;
- }
-
- /**
- * Returns the image from the given image descriptor
- *
- * @param pluginId
- * The plugin in which the image is located
- * @param path
- * The path to the image from the plugin
- * @return
- * The Image at the given location, or null if it couldn't be found
- */
- public Image getImage(String pluginId, String path) {
- final ImageRegistry registry = getImageRegistry();
- String key = pluginId + "/" + path; //$NON-NLS-1$
- Image image = registry.get(key);
- if (image == null) {
- registry.put(key, AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, path));
- image = registry.get(key);
- }
- return image;
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.papyrus.customization.properties.generation.extensionpoint.GeneratorExtensionPoint;
+import org.eclipse.papyrus.customization.properties.generation.extensionpoint.LayoutExtensionPoint;
+import org.eclipse.papyrus.infra.core.log.LogHelper;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/** The activator class controls the plug-in life cycle */
+public class Activator extends AbstractUIPlugin {
+
+ /** the plug-in's logger */
+ public static LogHelper log;
+
+ /** The plug-in ID */
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.uml.properties.generation"; //$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ @Override
+ public void start(final BundleContext context) throws Exception {
+ super.start(context);
+ Activator.plugin = this;
+ log = new LogHelper(plugin);
+
+ new GeneratorExtensionPoint();
+ new LayoutExtensionPoint();
+ }
+
+ @Override
+ public void stop(final BundleContext context) throws Exception {
+ Activator.plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return Activator.plugin;
+ }
+
+ /**
+ * Returns the image at the given path from this plugin
+ *
+ * @param path
+ * the path of the image to be displayed
+ * @return The Image at the given location, or null if it couldn't be found
+ */
+ public Image getImage(String path) {
+ return getImage(PLUGIN_ID, path);
+ }
+
+ /**
+ * Returns the image descriptor at the given path from this plugin
+ *
+ * @param path
+ * the path of the image to be displayed
+ * @return The Image Descriptor at the given location, or null if it couldn't be found
+ */
+ public ImageDescriptor getImageDescriptor(String path) {
+ final ImageRegistry registry = getImageRegistry();
+ String key = PLUGIN_ID + "/" + path; //$NON-NLS-1$
+ ImageDescriptor descriptor = registry.getDescriptor(key);
+ if (descriptor == null) {
+ registry.put(key, AbstractUIPlugin.imageDescriptorFromPlugin(PLUGIN_ID, path));
+ descriptor = registry.getDescriptor(key);
+ }
+ return descriptor;
+ }
+
+ /**
+ * Returns the image from the given image descriptor
+ *
+ * @param pluginId
+ * The plugin in which the image is located
+ * @param path
+ * The path to the image from the plugin
+ * @return
+ * The Image at the given location, or null if it couldn't be found
+ */
+ public Image getImage(String pluginId, String path) {
+ final ImageRegistry registry = getImageRegistry();
+ String key = pluginId + "/" + path; //$NON-NLS-1$
+ Image image = registry.get(key);
+ if (image == null) {
+ registry.put(key, AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, path));
+ image = registry.get(key);
+ }
+ return image;
+ }
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/extensionpoint/GeneratorExtensionPoint.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/extensionpoint/GeneratorExtensionPoint.java
index 8a7a011a201..dad10f6e337 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/extensionpoint/GeneratorExtensionPoint.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/extensionpoint/GeneratorExtensionPoint.java
@@ -1,62 +1,62 @@
-/*****************************************************************************
- * Copyright (c) 2010, 2014 CEA LIST and others.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Christian W. Damus (CEA) - bug 422257
- *
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.extensionpoint;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.papyrus.customization.properties.generation.Activator;
-import org.eclipse.papyrus.customization.properties.generation.generators.IGenerator;
-import org.eclipse.papyrus.infra.tools.util.ClassLoaderHelper;
-
-/**
- * Handles the extension point org.eclipse.papyrus.customization.properties.generation.generator
- * Registers the given Generator to the Property view generation wizard
- *
- * @author Camille Letavernier
- */
-public class GeneratorExtensionPoint {
-
- private final String EXTENSION_ID = "org.eclipse.papyrus.customization.properties.generation.generator"; //$NON-NLS-1$
-
- private final List<IGenerator> generators;
-
- /**
- * Constructor.
- */
- public GeneratorExtensionPoint() {
-
- IConfigurationElement[] config = Platform.getExtensionRegistry().getConfigurationElementsFor(EXTENSION_ID);
-
- List<IGenerator> generators = new ArrayList<IGenerator>(2);
- for (IConfigurationElement e : config) {
- String generatorClassName = e.getAttribute("generator"); //$NON-NLS-1$
- IGenerator generator = ClassLoaderHelper.newInstance(generatorClassName, IGenerator.class);
- if (generator == null) {
- Activator.log.warn("Cannot instantiate the generator : " + generatorClassName); //$NON-NLS-1$
- continue;
- }
- generators.add(generator);
- }
-
- this.generators = Collections.unmodifiableList(generators);
- }
-
- public List<IGenerator> getGenerators() {
- return generators;
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2010, 2014 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ * Christian W. Damus (CEA) - bug 422257
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.extensionpoint;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.papyrus.customization.properties.generation.Activator;
+import org.eclipse.papyrus.customization.properties.generation.generators.IGenerator;
+import org.eclipse.papyrus.infra.tools.util.ClassLoaderHelper;
+
+/**
+ * Handles the extension point org.eclipse.papyrus.customization.properties.generation.generator
+ * Registers the given Generator to the Property view generation wizard
+ *
+ * @author Camille Letavernier
+ */
+public class GeneratorExtensionPoint {
+
+ private final String EXTENSION_ID = "org.eclipse.papyrus.customization.properties.generation.generator"; //$NON-NLS-1$
+
+ private final List<IGenerator> generators;
+
+ /**
+ * Constructor.
+ */
+ public GeneratorExtensionPoint() {
+
+ IConfigurationElement[] config = Platform.getExtensionRegistry().getConfigurationElementsFor(EXTENSION_ID);
+
+ List<IGenerator> generators = new ArrayList<IGenerator>(2);
+ for (IConfigurationElement e : config) {
+ String generatorClassName = e.getAttribute("generator"); //$NON-NLS-1$
+ IGenerator generator = ClassLoaderHelper.newInstance(generatorClassName, IGenerator.class);
+ if (generator == null) {
+ Activator.log.warn("Cannot instantiate the generator : " + generatorClassName); //$NON-NLS-1$
+ continue;
+ }
+ generators.add(generator);
+ }
+
+ this.generators = Collections.unmodifiableList(generators);
+ }
+
+ public List<IGenerator> getGenerators() {
+ return generators;
+ }
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/extensionpoint/LayoutExtensionPoint.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/extensionpoint/LayoutExtensionPoint.java
index a04720cdf5e..bfc4c873e34 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/extensionpoint/LayoutExtensionPoint.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/extensionpoint/LayoutExtensionPoint.java
@@ -1,61 +1,61 @@
-/*****************************************************************************
- * Copyright (c) 2010, 2014 CEA LIST and others.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Christian W. Damus (CEA) - bug 422257
- *
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.extensionpoint;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.papyrus.customization.properties.generation.Activator;
-import org.eclipse.papyrus.customization.properties.generation.layout.ILayoutGenerator;
-import org.eclipse.papyrus.infra.tools.util.ClassLoaderHelper;
-
-/**
- * Handles the extension point org.eclipse.papyrus.customization.properties.generation.layout
- * Registers the given layout Generator to the Property view generation wizard
- *
- * @author Camille Letavernier
- */
-public class LayoutExtensionPoint {
-
- private final String EXTENSION_ID = "org.eclipse.papyrus.customization.properties.generation.layout"; //$NON-NLS-1$
-
- private final List<ILayoutGenerator> generators;
-
- /**
- * Constructor.
- */
- public LayoutExtensionPoint() {
- IConfigurationElement[] config = Platform.getExtensionRegistry().getConfigurationElementsFor(EXTENSION_ID);
-
- List<ILayoutGenerator> generators = new ArrayList<ILayoutGenerator>(2);
- for (IConfigurationElement e : config) {
- String generatorClassName = e.getAttribute("generator"); //$NON-NLS-1$
- ILayoutGenerator generator = ClassLoaderHelper.newInstance(generatorClassName, ILayoutGenerator.class);
- if (generator == null) {
- Activator.log.warn("Cannot instantiate the layout generator : " + generatorClassName); //$NON-NLS-1$
- continue;
- }
- generators.add(generator);
- }
-
- this.generators = Collections.unmodifiableList(generators);
- }
-
- public List<ILayoutGenerator> getGenerators() {
- return generators;
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2010, 2014 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ * Christian W. Damus (CEA) - bug 422257
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.extensionpoint;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.papyrus.customization.properties.generation.Activator;
+import org.eclipse.papyrus.customization.properties.generation.layout.ILayoutGenerator;
+import org.eclipse.papyrus.infra.tools.util.ClassLoaderHelper;
+
+/**
+ * Handles the extension point org.eclipse.papyrus.customization.properties.generation.layout
+ * Registers the given layout Generator to the Property view generation wizard
+ *
+ * @author Camille Letavernier
+ */
+public class LayoutExtensionPoint {
+
+ private final String EXTENSION_ID = "org.eclipse.papyrus.customization.properties.generation.layout"; //$NON-NLS-1$
+
+ private final List<ILayoutGenerator> generators;
+
+ /**
+ * Constructor.
+ */
+ public LayoutExtensionPoint() {
+ IConfigurationElement[] config = Platform.getExtensionRegistry().getConfigurationElementsFor(EXTENSION_ID);
+
+ List<ILayoutGenerator> generators = new ArrayList<ILayoutGenerator>(2);
+ for (IConfigurationElement e : config) {
+ String generatorClassName = e.getAttribute("generator"); //$NON-NLS-1$
+ ILayoutGenerator generator = ClassLoaderHelper.newInstance(generatorClassName, ILayoutGenerator.class);
+ if (generator == null) {
+ Activator.log.warn("Cannot instantiate the layout generator : " + generatorClassName); //$NON-NLS-1$
+ continue;
+ }
+ generators.add(generator);
+ }
+
+ this.generators = Collections.unmodifiableList(generators);
+ }
+
+ public List<ILayoutGenerator> getGenerators() {
+ return generators;
+ }
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/AbstractQVTGenerator.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/AbstractQVTGenerator.java
index 7e664840de4..56291f2299e 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/AbstractQVTGenerator.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/AbstractQVTGenerator.java
@@ -1,284 +1,284 @@
-/*****************************************************************************
- * Copyright (c) 2010, 2014 CEA LIST and others.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Thibault Le Ouay t.leouay@sherpa-eng.com - Strategy improvement of generated files
- * Christian W. Damus (CEA) - bug 422257
- *
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.generators;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.databinding.observable.value.IObservableValue;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.emf.common.util.BasicDiagnostic;
-import org.eclipse.emf.common.util.Diagnostic;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.m2m.qvt.oml.BasicModelExtent;
-import org.eclipse.m2m.qvt.oml.ExecutionContextImpl;
-import org.eclipse.m2m.qvt.oml.ExecutionDiagnostic;
-import org.eclipse.m2m.qvt.oml.ModelExtent;
-import org.eclipse.m2m.qvt.oml.TransformationExecutor;
-import org.eclipse.papyrus.customization.properties.generation.Activator;
-import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
-import org.eclipse.papyrus.infra.properties.contexts.Context;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-
-/**
- * An Abstract generator based on QVTO transformations.
- * Subclasses should specify the .qvto file and ModelExtents, as well as the
- * SWT widgets allowing the user to chose the input models.
- *
- * @author Camille Letavernier
- */
-public abstract class AbstractQVTGenerator implements IGenerator, Listener {
-
- /**
- * The Contexts created by the transformation.
- */
- protected List<Context> generatedContexts;
-
- /**
- * The output ModelExtent
- */
- protected ModelExtent out;
-
- private Set<Listener> listeners = new HashSet<Listener>();
-
- private int strategy;
-
- private Collection<ResourceSet> scratchResourceSets;
-
- public List<Context> generate(List<URI> targetURI) {
-
- switch (strategy) {
- case 0:
- generatedContexts = generateSameFile(targetURI);
- break;
- case 1:
- generatedContexts = generateSameFile(targetURI);
- break;
- case 2:
- generatedContexts = generateDifferentFile(targetURI);
- break;
- default:
- generatedContexts = null;
- }
- return generatedContexts;
- }
-
- public void dispose() {
- if (scratchResourceSets != null) {
- for (ResourceSet next : scratchResourceSets) {
- EMFHelper.unload(next);
- }
- scratchResourceSets = null;
- }
- }
-
-
-
- /**
- * @return the list of in/out/inout ModelExtents (including the OutContextExtent)
- * Implementors should ensure they add the outContextExtent to the list.
- */
- abstract protected List<ModelExtent> getModelExtents();
-
- /**
- * @return the ModelExtent containing the generated context
- */
- protected ModelExtent getOutContextExtent() {
- if (out == null) {
- out = new BasicModelExtent();
- }
-
- return out;
- }
-
- /**
- * @return the URI of the QVTO transformation file.
- */
- abstract protected URI getTransformationURI();
-
- /**
- * Loads the EObject from the given URI.
- *
- * @param uri
- * The URI from which the EObject is loaded
- * @return
- * The loaded EObject, or null if an error occured
- * @throws IOException
- * If the URI isn't a valid EObject
- */
- protected EObject loadEMFModel(URI uri) throws IOException {
- ResourceSet resourceSet = createResourceSet();
- try {
- Resource resource = resourceSet.getResource(uri, true);
- if (resource != null) {
- if (!resource.getContents().isEmpty()) {
- return resource.getContents().get(0);
- }
- }
- } catch (Exception ex) {
- throw new IOException(ex.toString());
- }
-
- return null;
- }
-
- protected final ResourceSet createResourceSet() {
- ResourceSet result = new ResourceSetImpl();
- if (scratchResourceSets == null) {
- scratchResourceSets = new ArrayList<ResourceSet>();
- }
- scratchResourceSets.add(result);
- return result;
- }
-
- public void addListener(Listener listener) {
- listeners.add(listener);
- }
-
- public void removeListener(Listener listener) {
- listeners.remove(listener);
- }
-
- public void handleEvent(Event event) {
- for (Listener listener : listeners) {
- listener.handleEvent(event);
- }
- }
-
- /**
- * Return the generated Context from a list of EObjects
- *
- * @param outObjects
- * The list of EObjects from which the context will be retrieved
- * @return
- * The main generated context
- */
- protected List<Context> getContexts(List<EObject> outObjects) {
- List<Context> result = new LinkedList<Context>();
-
- for (Object objectResult : outObjects) {
- if (objectResult instanceof Context) {
- result.add((Context) objectResult);
- }
- }
-
- return result;
- }
-
-
- public abstract IObservableValue getObservableValue();
-
- public void setStrategy(int strategy) {
- this.strategy = strategy;
- }
-
- private List<Context> generateSameFile(List<URI> targetURI) {
-
- URI transformationURI = getTransformationURI();
-
- TransformationExecutor executor = new TransformationExecutor(transformationURI);
- Diagnostic diagnostic = executor.loadTransformation();
- if (diagnostic.getSeverity() != Diagnostic.OK) {
- Activator.log.warn("Cannot load the transformation : " + transformationURI);
- return generatedContexts = null;
- }
- List<ModelExtent> extents = getModelExtents();
-
-
- ExecutionContextImpl context = new ExecutionContextImpl();
- context.setConfigProperty("keepModeling", true); //$NON-NLS-1$
-
- // context.setLog(new WriterLog(new OutputStreamWriter(System.out)));
-
- ExecutionDiagnostic result = executor.execute(context, extents.toArray(new ModelExtent[0]));
-
- if (result.getSeverity() == org.eclipse.emf.common.util.Diagnostic.OK) {
- List<EObject> outObjects = getOutContextExtent().getContents();
- Object objectResult = outObjects.get(0);
- if (!(objectResult instanceof Context)) {
- return null;
- }
-
- ResourceSet resourceSet = createResourceSet();
- Resource contextResource = resourceSet.createResource(targetURI.get(0));
- contextResource.getContents().addAll(outObjects);
-
- return generatedContexts = getContexts(outObjects);
- } else {
- IStatus status = BasicDiagnostic.toIStatus(result);
- Activator.log.warn(String.format("%s : %s", status.getPlugin(), status.getMessage()));
- }
- return generatedContexts = null;
- }
-
- protected abstract List<ModelExtent> getModelExtents(int i);
-
- private List<Context> generateDifferentFile(List<URI> targetURI) {
-
- URI transformationURI = getTransformationURI();
-
- TransformationExecutor executor = new TransformationExecutor(transformationURI);
- Diagnostic diagnostic = executor.loadTransformation();
- if (diagnostic.getSeverity() != Diagnostic.OK) {
- Activator.log.warn("Cannot load the transformation : " + transformationURI);
- return generatedContexts = null;
- }
- List<ModelExtent> extents = null;
- ExecutionContextImpl context = new ExecutionContextImpl();
- context.setConfigProperty("keepModeling", true); //$NON-NLS-1$
- // context.setLog(new WriterLog(new OutputStreamWriter(System.out)));
- List<Context> temp = new LinkedList<Context>();
-
- for (int i = 0; i < targetURI.size(); i++) {
- extents = getModelExtents(i);
-
-
-
- ExecutionDiagnostic result = executor.execute(context, extents.toArray(new ModelExtent[0]));
-
- if (result.getSeverity() == org.eclipse.emf.common.util.Diagnostic.OK) {
- List<EObject> outObjects = getOutContextExtent().getContents();
- Object objectResult = outObjects.get(0);
- if (!(objectResult instanceof Context)) {
- return null;
- }
- ResourceSet resourceSet = createResourceSet();
- Resource contextResource = resourceSet.createResource(targetURI.get(i));
- contextResource.getContents().addAll(outObjects);
- temp.addAll(getContexts(outObjects));
-
- } else {
- IStatus status = BasicDiagnostic.toIStatus(result);
- Activator.log.warn(String.format("%s : %s", status.getPlugin(), status.getMessage()));
- }
- }
-
- return temp;
-
- }
-
-
-
-}
+/*****************************************************************************
+ * Copyright (c) 2010, 2014 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ * Thibault Le Ouay t.leouay@sherpa-eng.com - Strategy improvement of generated files
+ * Christian W. Damus (CEA) - bug 422257
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.generators;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Set;
+
+import org.eclipse.core.databinding.observable.value.IObservableValue;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.emf.common.util.BasicDiagnostic;
+import org.eclipse.emf.common.util.Diagnostic;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
+import org.eclipse.m2m.qvt.oml.BasicModelExtent;
+import org.eclipse.m2m.qvt.oml.ExecutionContextImpl;
+import org.eclipse.m2m.qvt.oml.ExecutionDiagnostic;
+import org.eclipse.m2m.qvt.oml.ModelExtent;
+import org.eclipse.m2m.qvt.oml.TransformationExecutor;
+import org.eclipse.papyrus.customization.properties.generation.Activator;
+import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
+import org.eclipse.papyrus.infra.properties.contexts.Context;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Listener;
+
+/**
+ * An Abstract generator based on QVTO transformations.
+ * Subclasses should specify the .qvto file and ModelExtents, as well as the
+ * SWT widgets allowing the user to chose the input models.
+ *
+ * @author Camille Letavernier
+ */
+public abstract class AbstractQVTGenerator implements IGenerator, Listener {
+
+ /**
+ * The Contexts created by the transformation.
+ */
+ protected List<Context> generatedContexts;
+
+ /**
+ * The output ModelExtent
+ */
+ protected ModelExtent out;
+
+ private Set<Listener> listeners = new HashSet<Listener>();
+
+ private int strategy;
+
+ private Collection<ResourceSet> scratchResourceSets;
+
+ public List<Context> generate(List<URI> targetURI) {
+
+ switch (strategy) {
+ case 0:
+ generatedContexts = generateSameFile(targetURI);
+ break;
+ case 1:
+ generatedContexts = generateSameFile(targetURI);
+ break;
+ case 2:
+ generatedContexts = generateDifferentFile(targetURI);
+ break;
+ default:
+ generatedContexts = null;
+ }
+ return generatedContexts;
+ }
+
+ public void dispose() {
+ if (scratchResourceSets != null) {
+ for (ResourceSet next : scratchResourceSets) {
+ EMFHelper.unload(next);
+ }
+ scratchResourceSets = null;
+ }
+ }
+
+
+
+ /**
+ * @return the list of in/out/inout ModelExtents (including the OutContextExtent)
+ * Implementors should ensure they add the outContextExtent to the list.
+ */
+ abstract protected List<ModelExtent> getModelExtents();
+
+ /**
+ * @return the ModelExtent containing the generated context
+ */
+ protected ModelExtent getOutContextExtent() {
+ if (out == null) {
+ out = new BasicModelExtent();
+ }
+
+ return out;
+ }
+
+ /**
+ * @return the URI of the QVTO transformation file.
+ */
+ abstract protected URI getTransformationURI();
+
+ /**
+ * Loads the EObject from the given URI.
+ *
+ * @param uri
+ * The URI from which the EObject is loaded
+ * @return
+ * The loaded EObject, or null if an error occured
+ * @throws IOException
+ * If the URI isn't a valid EObject
+ */
+ protected EObject loadEMFModel(URI uri) throws IOException {
+ ResourceSet resourceSet = createResourceSet();
+ try {
+ Resource resource = resourceSet.getResource(uri, true);
+ if (resource != null) {
+ if (!resource.getContents().isEmpty()) {
+ return resource.getContents().get(0);
+ }
+ }
+ } catch (Exception ex) {
+ throw new IOException(ex.toString());
+ }
+
+ return null;
+ }
+
+ protected final ResourceSet createResourceSet() {
+ ResourceSet result = new ResourceSetImpl();
+ if (scratchResourceSets == null) {
+ scratchResourceSets = new ArrayList<ResourceSet>();
+ }
+ scratchResourceSets.add(result);
+ return result;
+ }
+
+ public void addListener(Listener listener) {
+ listeners.add(listener);
+ }
+
+ public void removeListener(Listener listener) {
+ listeners.remove(listener);
+ }
+
+ public void handleEvent(Event event) {
+ for (Listener listener : listeners) {
+ listener.handleEvent(event);
+ }
+ }
+
+ /**
+ * Return the generated Context from a list of EObjects
+ *
+ * @param outObjects
+ * The list of EObjects from which the context will be retrieved
+ * @return
+ * The main generated context
+ */
+ protected List<Context> getContexts(List<EObject> outObjects) {
+ List<Context> result = new LinkedList<Context>();
+
+ for (Object objectResult : outObjects) {
+ if (objectResult instanceof Context) {
+ result.add((Context) objectResult);
+ }
+ }
+
+ return result;
+ }
+
+
+ public abstract IObservableValue getObservableValue();
+
+ public void setStrategy(int strategy) {
+ this.strategy = strategy;
+ }
+
+ private List<Context> generateSameFile(List<URI> targetURI) {
+
+ URI transformationURI = getTransformationURI();
+
+ TransformationExecutor executor = new TransformationExecutor(transformationURI);
+ Diagnostic diagnostic = executor.loadTransformation();
+ if (diagnostic.getSeverity() != Diagnostic.OK) {
+ Activator.log.warn("Cannot load the transformation : " + transformationURI);
+ return generatedContexts = null;
+ }
+ List<ModelExtent> extents = getModelExtents();
+
+
+ ExecutionContextImpl context = new ExecutionContextImpl();
+ context.setConfigProperty("keepModeling", true); //$NON-NLS-1$
+
+ // context.setLog(new WriterLog(new OutputStreamWriter(System.out)));
+
+ ExecutionDiagnostic result = executor.execute(context, extents.toArray(new ModelExtent[0]));
+
+ if (result.getSeverity() == org.eclipse.emf.common.util.Diagnostic.OK) {
+ List<EObject> outObjects = getOutContextExtent().getContents();
+ Object objectResult = outObjects.get(0);
+ if (!(objectResult instanceof Context)) {
+ return null;
+ }
+
+ ResourceSet resourceSet = createResourceSet();
+ Resource contextResource = resourceSet.createResource(targetURI.get(0));
+ contextResource.getContents().addAll(outObjects);
+
+ return generatedContexts = getContexts(outObjects);
+ } else {
+ IStatus status = BasicDiagnostic.toIStatus(result);
+ Activator.log.warn(String.format("%s : %s", status.getPlugin(), status.getMessage()));
+ }
+ return generatedContexts = null;
+ }
+
+ protected abstract List<ModelExtent> getModelExtents(int i);
+
+ private List<Context> generateDifferentFile(List<URI> targetURI) {
+
+ URI transformationURI = getTransformationURI();
+
+ TransformationExecutor executor = new TransformationExecutor(transformationURI);
+ Diagnostic diagnostic = executor.loadTransformation();
+ if (diagnostic.getSeverity() != Diagnostic.OK) {
+ Activator.log.warn("Cannot load the transformation : " + transformationURI);
+ return generatedContexts = null;
+ }
+ List<ModelExtent> extents = null;
+ ExecutionContextImpl context = new ExecutionContextImpl();
+ context.setConfigProperty("keepModeling", true); //$NON-NLS-1$
+ // context.setLog(new WriterLog(new OutputStreamWriter(System.out)));
+ List<Context> temp = new LinkedList<Context>();
+
+ for (int i = 0; i < targetURI.size(); i++) {
+ extents = getModelExtents(i);
+
+
+
+ ExecutionDiagnostic result = executor.execute(context, extents.toArray(new ModelExtent[0]));
+
+ if (result.getSeverity() == org.eclipse.emf.common.util.Diagnostic.OK) {
+ List<EObject> outObjects = getOutContextExtent().getContents();
+ Object objectResult = outObjects.get(0);
+ if (!(objectResult instanceof Context)) {
+ return null;
+ }
+ ResourceSet resourceSet = createResourceSet();
+ Resource contextResource = resourceSet.createResource(targetURI.get(i));
+ contextResource.getContents().addAll(outObjects);
+ temp.addAll(getContexts(outObjects));
+
+ } else {
+ IStatus status = BasicDiagnostic.toIStatus(result);
+ Activator.log.warn(String.format("%s : %s", status.getPlugin(), status.getMessage()));
+ }
+ }
+
+ return temp;
+
+ }
+
+
+
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/EcoreGenerator.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/EcoreGenerator.java
index c9d1b229e7a..50e57bc25a8 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/EcoreGenerator.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/EcoreGenerator.java
@@ -1,379 +1,379 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Thibault Le Ouay t.leouay@sherpa-eng.com - Strategy improvement of generated files
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.generators;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.databinding.observable.value.IObservableValue;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.common.util.TreeIterator;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EClassifier;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.m2m.qvt.oml.BasicModelExtent;
-import org.eclipse.m2m.qvt.oml.ModelExtent;
-import org.eclipse.papyrus.customization.properties.generation.Activator;
-import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
-import org.eclipse.papyrus.customization.properties.generation.wizard.widget.FileChooser;
-import org.eclipse.papyrus.infra.properties.contexts.DataContextElement;
-import org.eclipse.papyrus.infra.properties.contexts.Property;
-import org.eclipse.papyrus.views.properties.root.PropertiesRoot;
-import org.eclipse.papyrus.views.properties.runtime.ConfigurationManager;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-
-/**
- * An IGenerator to create Property view contexts from an Ecore metamodel FIXME
- * : The generator doesn't seem to keep the Metaclass inheritance
- *
- * @author Camille Letavernier
- */
-public class EcoreGenerator extends AbstractQVTGenerator {
-
- private FileChooser sourceFileChooser;
-
- protected EPackage ecorePackage;
-
- protected List<EPackage> listEPackages;
-
- public void createControls(Composite parent) {
- Composite root = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout(2, false);
- layout.marginWidth = 0;
- root.setLayout(layout);
-
- Label sourceLabel = new Label(root, SWT.NONE);
- sourceLabel.setText(Messages.EcoreGenerator_source);
- GridData data = new GridData();
- data.widthHint = 100;
- sourceLabel.setLayoutData(data);
-
- sourceFileChooser = new FileChooser(root, false);
- sourceFileChooser.setFilterExtensions(new String[] { "ecore" }); //$NON-NLS-1$
- sourceFileChooser.addListener(this);
-
- listEPackages = new ArrayList<EPackage>();
-
- }
-
- public String getDescription() {
- return Messages.EcoreGenerator_ecoreGeneratorDescription;
- }
-
- public boolean isReady() {
- return sourceFileChooser.getFilePath() != null;
- }
-
- public String getName() {
- return Messages.EcoreGenerator_ecoreGeneratorName;
- }
-
- public boolean isSelectedSingle(Property property) {
- EStructuralFeature feature = getFeature(property);
- if (feature == null) {
- return false;
- }
-
- if (feature.isDerived()) {
- return false;
- }
-
- if (!feature.isChangeable()) {
- return false;
- }
-
- if (feature instanceof EReference) {
- EReference reference = (EReference) feature;
- if (reference.isContainer() || reference.isContainment()) {
- return false;
- }
- }
-
- return true;
- }
-
- /**
- * Retrieve the EStructuralFeature corresponding to the given property
- *
- * @param property
- * @return The EStructuralFeature corresponding to the given property
- */
- protected EStructuralFeature getFeature(Property property) {
- List<String> path = getPath(property);
- path.remove(0); // Root = EPackage
-
- EPackage currentPackage = ecorePackage;
-
- EClassifier classifier = findClassifier(path, currentPackage);
- if (classifier == null) {
- return null;
- }
-
- if (!(classifier instanceof EClass)) {
- return null;
- }
-
- EClass eClass = (EClass) classifier;
- return eClass.getEStructuralFeature(property.getName());
- }
-
- /**
- * Retrieve the Classifier corresponding to the given path, in the given
- * EPackage
- *
- * @param path
- * The list of package and subpackages names, and the classifier
- * name, i.e. the list of segments in the classifier's qualified
- * name
- * @param source
- * The root EPackage in which the classifier should be retrieved
- * @return The corresponding EClassifier, or null if it couldn't be
- * retrieved
- */
- protected EClassifier findClassifier(List<String> path, EPackage source) {
- String qualifier = path.get(0);
- EClassifier classifier = source.getEClassifier(qualifier);
- if (classifier == null) {
- source = findSubPackage(source, qualifier);
- if (source == null) {
- return null;
- }
- path.remove(0);
- return findClassifier(path, source);
- } else {
- return classifier;
- }
- }
-
- /**
- * Retrieve the subpackage corresponding to the given packageName, in the
- * given package
- *
- * @param currentPackage
- * The EPackage in which the subpackage should be found
- * @param packageName
- * The name of the EPackage to find
- * @return The corresponding EPackage, or null if it couldn't be found
- */
- protected EPackage findSubPackage(EPackage currentPackage, String packageName) {
- for (EPackage pack : currentPackage.getESubpackages()) {
- if (pack.getName().equals(packageName)) {
- return pack;
- }
- }
- return null;
- }
-
- private List<String> getPath(Property property) {
- List<String> result = getPath(property.getContextElement());
- return result;
- }
-
- private List<String> getPath(DataContextElement element) {
- List<String> result;
- if (element.getPackage() == null) {
- result = new LinkedList<String>();
- } else {
- result = getPath(element.getPackage());
- }
-
- result.add(element.getName());
- return result;
- }
-
- public boolean isSelectedMultiple(Property property) {
- if (!isSelectedSingle(property)) {
- return false;
- }
-
- EStructuralFeature feature = getFeature(property);
-
- Set<String> validDataTypes = new HashSet<String>(Arrays.asList(new String[] { "int", "boolean", "float", "double" })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
-
- if (feature.getEType() instanceof EDataType) {
- if (validDataTypes.contains(((EDataType) feature.getEType()).getInstanceTypeName())) {
- return true;
- }
- }
-
- if (feature.getEType() instanceof EEnum) {
- return true;
- }
-
- return false;
- }
-
- public boolean isSelectedSingle(Property property, DataContextElement element) {
- return isSelectedSingle(property);
- }
-
- public boolean isSelectedMultiple(Property property, DataContextElement element) {
- return isSelectedMultiple(property);
- }
-
- @Override
- protected URI getTransformationURI() {
- return URI.createPlatformPluginURI(Activator.PLUGIN_ID + "/transforms/ecore2datacontext.qvto", true); //$NON-NLS-1$
- }
-
-
- @Override
- protected List<ModelExtent> getModelExtents() {
- LinkedList<ModelExtent> result = new LinkedList<ModelExtent>();
- ModelExtent temp = new BasicModelExtent();
- ModelExtent inPackage = new BasicModelExtent(Collections.singletonList(ecorePackage));
-
-
-
- PropertiesRoot root = ConfigurationManager.getInstance().getPropertiesRoot();
- ModelExtent inRoot = new BasicModelExtent(Collections.singletonList(root));
- if (!listEPackages.isEmpty()) {
- temp.setContents(listEPackages);
- if (!listEPackages.contains(ecorePackage)) {
- result.add(temp); // if the root package isnt selected
- } else {
- result.add(inPackage);
- }
- result.add(temp);
-
- } else {
- // Basic Method
- result.add(inPackage);
- result.add(inPackage);
- }
-
- result.add(inRoot);
- result.add(getOutContextExtent());
- return result;
-
- }
-
- @Override
- public IObservableValue getObservableValue() {
- return sourceFileChooser.getObservableValue();
- }
-
- public List<Object> getExternalReference() {
-
- URI packageURI = URI.createPlatformResourceURI(sourceFileChooser.getFilePath(), true);
-
- try {
- ecorePackage = (EPackage) loadEMFModel(packageURI);
- } catch (IOException e) {
- // nothing
- }
-
- EcoreUtil.resolveAll(ecorePackage);
-
- List<Object> listePackage = new ArrayList<Object>();
- if (!listePackage.contains(ecorePackage)) {
- listePackage.add(ecorePackage);
- }
-
- TreeIterator<Notifier> tree = ecorePackage.eResource().getResourceSet().getAllContents();
- while (tree.hasNext()) {
- Notifier next = tree.next();
- if (!(next instanceof EObject)) {
- continue;
- }
-
- EObject object = (EObject) next;
- if (object instanceof EStructuralFeature) {
- EStructuralFeature feature = (EStructuralFeature) object;
- EClass eClass = feature.getEContainingClass();
- if (eClass != null) {
- EClassifier classifier = feature.getEType();
- EPackage targetPackage = null;
- if (classifier != null) {
- targetPackage = classifier.getEPackage();
- }
- if (targetPackage != null) {
- if (!ecorePackage.equals(targetPackage)) {
- if (!listePackage.contains(targetPackage)) {
- listePackage.add(targetPackage);
- }
-
- }
- }
- }
- }
- if (object instanceof EClass) {
-
- EClass eclass = (EClass) object;
- List<EClass> liste = eclass.getESuperTypes();
- for (EClass item : liste) {
- if (!listePackage.contains(item.getEPackage())) {
- listePackage.add(item.getEPackage());
- }
-
- }
- }
-
- }
-
- return listePackage;
- }
-
- public void addCheckElement(Object obj) {
-
- if (obj instanceof EPackage) {
- EPackage pack = (EPackage) obj;
- listEPackages.add(pack);
- }
-
- }
-
-
- @Override
- protected List<ModelExtent> getModelExtents(int i) {
- EPackage currentPackage = listEPackages.get(i);
- try {
-
- ModelExtent inPackage = new BasicModelExtent(Collections.singletonList(currentPackage));
- PropertiesRoot root = ConfigurationManager.getInstance().getPropertiesRoot();
- ModelExtent inRoot = new BasicModelExtent(Collections.singletonList(root));
- LinkedList<ModelExtent> result = new LinkedList<ModelExtent>();
- result.add(inPackage);
- result.add(inPackage);
- result.add(inRoot);
- result.add(getOutContextExtent());
-
- return result;
-
- } catch (Exception ex) {
- return null;
-
- }
-
- }
-
-
-
-}
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ * Thibault Le Ouay t.leouay@sherpa-eng.com - Strategy improvement of generated files
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.generators;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Set;
+
+import org.eclipse.core.databinding.observable.value.IObservableValue;
+import org.eclipse.emf.common.notify.Notifier;
+import org.eclipse.emf.common.util.TreeIterator;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EClassifier;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.m2m.qvt.oml.BasicModelExtent;
+import org.eclipse.m2m.qvt.oml.ModelExtent;
+import org.eclipse.papyrus.customization.properties.generation.Activator;
+import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
+import org.eclipse.papyrus.customization.properties.generation.wizard.widget.FileChooser;
+import org.eclipse.papyrus.infra.properties.contexts.DataContextElement;
+import org.eclipse.papyrus.infra.properties.contexts.Property;
+import org.eclipse.papyrus.views.properties.root.PropertiesRoot;
+import org.eclipse.papyrus.views.properties.runtime.ConfigurationManager;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+
+/**
+ * An IGenerator to create Property view contexts from an Ecore metamodel FIXME
+ * : The generator doesn't seem to keep the Metaclass inheritance
+ *
+ * @author Camille Letavernier
+ */
+public class EcoreGenerator extends AbstractQVTGenerator {
+
+ private FileChooser sourceFileChooser;
+
+ protected EPackage ecorePackage;
+
+ protected List<EPackage> listEPackages;
+
+ public void createControls(Composite parent) {
+ Composite root = new Composite(parent, SWT.NONE);
+ GridLayout layout = new GridLayout(2, false);
+ layout.marginWidth = 0;
+ root.setLayout(layout);
+
+ Label sourceLabel = new Label(root, SWT.NONE);
+ sourceLabel.setText(Messages.EcoreGenerator_source);
+ GridData data = new GridData();
+ data.widthHint = 100;
+ sourceLabel.setLayoutData(data);
+
+ sourceFileChooser = new FileChooser(root, false);
+ sourceFileChooser.setFilterExtensions(new String[] { "ecore" }); //$NON-NLS-1$
+ sourceFileChooser.addListener(this);
+
+ listEPackages = new ArrayList<EPackage>();
+
+ }
+
+ public String getDescription() {
+ return Messages.EcoreGenerator_ecoreGeneratorDescription;
+ }
+
+ public boolean isReady() {
+ return sourceFileChooser.getFilePath() != null;
+ }
+
+ public String getName() {
+ return Messages.EcoreGenerator_ecoreGeneratorName;
+ }
+
+ public boolean isSelectedSingle(Property property) {
+ EStructuralFeature feature = getFeature(property);
+ if (feature == null) {
+ return false;
+ }
+
+ if (feature.isDerived()) {
+ return false;
+ }
+
+ if (!feature.isChangeable()) {
+ return false;
+ }
+
+ if (feature instanceof EReference) {
+ EReference reference = (EReference) feature;
+ if (reference.isContainer() || reference.isContainment()) {
+ return false;
+ }
+ }
+
+ return true;
+ }
+
+ /**
+ * Retrieve the EStructuralFeature corresponding to the given property
+ *
+ * @param property
+ * @return The EStructuralFeature corresponding to the given property
+ */
+ protected EStructuralFeature getFeature(Property property) {
+ List<String> path = getPath(property);
+ path.remove(0); // Root = EPackage
+
+ EPackage currentPackage = ecorePackage;
+
+ EClassifier classifier = findClassifier(path, currentPackage);
+ if (classifier == null) {
+ return null;
+ }
+
+ if (!(classifier instanceof EClass)) {
+ return null;
+ }
+
+ EClass eClass = (EClass) classifier;
+ return eClass.getEStructuralFeature(property.getName());
+ }
+
+ /**
+ * Retrieve the Classifier corresponding to the given path, in the given
+ * EPackage
+ *
+ * @param path
+ * The list of package and subpackages names, and the classifier
+ * name, i.e. the list of segments in the classifier's qualified
+ * name
+ * @param source
+ * The root EPackage in which the classifier should be retrieved
+ * @return The corresponding EClassifier, or null if it couldn't be
+ * retrieved
+ */
+ protected EClassifier findClassifier(List<String> path, EPackage source) {
+ String qualifier = path.get(0);
+ EClassifier classifier = source.getEClassifier(qualifier);
+ if (classifier == null) {
+ source = findSubPackage(source, qualifier);
+ if (source == null) {
+ return null;
+ }
+ path.remove(0);
+ return findClassifier(path, source);
+ } else {
+ return classifier;
+ }
+ }
+
+ /**
+ * Retrieve the subpackage corresponding to the given packageName, in the
+ * given package
+ *
+ * @param currentPackage
+ * The EPackage in which the subpackage should be found
+ * @param packageName
+ * The name of the EPackage to find
+ * @return The corresponding EPackage, or null if it couldn't be found
+ */
+ protected EPackage findSubPackage(EPackage currentPackage, String packageName) {
+ for (EPackage pack : currentPackage.getESubpackages()) {
+ if (pack.getName().equals(packageName)) {
+ return pack;
+ }
+ }
+ return null;
+ }
+
+ private List<String> getPath(Property property) {
+ List<String> result = getPath(property.getContextElement());
+ return result;
+ }
+
+ private List<String> getPath(DataContextElement element) {
+ List<String> result;
+ if (element.getPackage() == null) {
+ result = new LinkedList<String>();
+ } else {
+ result = getPath(element.getPackage());
+ }
+
+ result.add(element.getName());
+ return result;
+ }
+
+ public boolean isSelectedMultiple(Property property) {
+ if (!isSelectedSingle(property)) {
+ return false;
+ }
+
+ EStructuralFeature feature = getFeature(property);
+
+ Set<String> validDataTypes = new HashSet<String>(Arrays.asList(new String[] { "int", "boolean", "float", "double" })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+
+ if (feature.getEType() instanceof EDataType) {
+ if (validDataTypes.contains(((EDataType) feature.getEType()).getInstanceTypeName())) {
+ return true;
+ }
+ }
+
+ if (feature.getEType() instanceof EEnum) {
+ return true;
+ }
+
+ return false;
+ }
+
+ public boolean isSelectedSingle(Property property, DataContextElement element) {
+ return isSelectedSingle(property);
+ }
+
+ public boolean isSelectedMultiple(Property property, DataContextElement element) {
+ return isSelectedMultiple(property);
+ }
+
+ @Override
+ protected URI getTransformationURI() {
+ return URI.createPlatformPluginURI(Activator.PLUGIN_ID + "/transforms/ecore2datacontext.qvto", true); //$NON-NLS-1$
+ }
+
+
+ @Override
+ protected List<ModelExtent> getModelExtents() {
+ LinkedList<ModelExtent> result = new LinkedList<ModelExtent>();
+ ModelExtent temp = new BasicModelExtent();
+ ModelExtent inPackage = new BasicModelExtent(Collections.singletonList(ecorePackage));
+
+
+
+ PropertiesRoot root = ConfigurationManager.getInstance().getPropertiesRoot();
+ ModelExtent inRoot = new BasicModelExtent(Collections.singletonList(root));
+ if (!listEPackages.isEmpty()) {
+ temp.setContents(listEPackages);
+ if (!listEPackages.contains(ecorePackage)) {
+ result.add(temp); // if the root package isnt selected
+ } else {
+ result.add(inPackage);
+ }
+ result.add(temp);
+
+ } else {
+ // Basic Method
+ result.add(inPackage);
+ result.add(inPackage);
+ }
+
+ result.add(inRoot);
+ result.add(getOutContextExtent());
+ return result;
+
+ }
+
+ @Override
+ public IObservableValue getObservableValue() {
+ return sourceFileChooser.getObservableValue();
+ }
+
+ public List<Object> getExternalReference() {
+
+ URI packageURI = URI.createPlatformResourceURI(sourceFileChooser.getFilePath(), true);
+
+ try {
+ ecorePackage = (EPackage) loadEMFModel(packageURI);
+ } catch (IOException e) {
+ // nothing
+ }
+
+ EcoreUtil.resolveAll(ecorePackage);
+
+ List<Object> listePackage = new ArrayList<Object>();
+ if (!listePackage.contains(ecorePackage)) {
+ listePackage.add(ecorePackage);
+ }
+
+ TreeIterator<Notifier> tree = ecorePackage.eResource().getResourceSet().getAllContents();
+ while (tree.hasNext()) {
+ Notifier next = tree.next();
+ if (!(next instanceof EObject)) {
+ continue;
+ }
+
+ EObject object = (EObject) next;
+ if (object instanceof EStructuralFeature) {
+ EStructuralFeature feature = (EStructuralFeature) object;
+ EClass eClass = feature.getEContainingClass();
+ if (eClass != null) {
+ EClassifier classifier = feature.getEType();
+ EPackage targetPackage = null;
+ if (classifier != null) {
+ targetPackage = classifier.getEPackage();
+ }
+ if (targetPackage != null) {
+ if (!ecorePackage.equals(targetPackage)) {
+ if (!listePackage.contains(targetPackage)) {
+ listePackage.add(targetPackage);
+ }
+
+ }
+ }
+ }
+ }
+ if (object instanceof EClass) {
+
+ EClass eclass = (EClass) object;
+ List<EClass> liste = eclass.getESuperTypes();
+ for (EClass item : liste) {
+ if (!listePackage.contains(item.getEPackage())) {
+ listePackage.add(item.getEPackage());
+ }
+
+ }
+ }
+
+ }
+
+ return listePackage;
+ }
+
+ public void addCheckElement(Object obj) {
+
+ if (obj instanceof EPackage) {
+ EPackage pack = (EPackage) obj;
+ listEPackages.add(pack);
+ }
+
+ }
+
+
+ @Override
+ protected List<ModelExtent> getModelExtents(int i) {
+ EPackage currentPackage = listEPackages.get(i);
+ try {
+
+ ModelExtent inPackage = new BasicModelExtent(Collections.singletonList(currentPackage));
+ PropertiesRoot root = ConfigurationManager.getInstance().getPropertiesRoot();
+ ModelExtent inRoot = new BasicModelExtent(Collections.singletonList(root));
+ LinkedList<ModelExtent> result = new LinkedList<ModelExtent>();
+ result.add(inPackage);
+ result.add(inPackage);
+ result.add(inRoot);
+ result.add(getOutContextExtent());
+
+ return result;
+
+ } catch (Exception ex) {
+ return null;
+
+ }
+
+ }
+
+
+
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/EditContextGenerator.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/EditContextGenerator.java
index a880f20c51d..023e68f9634 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/EditContextGenerator.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/EditContextGenerator.java
@@ -1,121 +1,121 @@
-/*****************************************************************************
- * Copyright (c) 2010, 2014 CEA LIST and others.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Thibault Le Ouay t.leouay@sherpa-eng.com
- * Christian W. Damus (CEA) - bug 422257
- *
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.generators;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.core.databinding.observable.value.IObservableValue;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
-import org.eclipse.papyrus.infra.properties.contexts.Context;
-import org.eclipse.papyrus.infra.properties.contexts.DataContextElement;
-import org.eclipse.papyrus.infra.properties.contexts.Property;
-import org.eclipse.papyrus.infra.properties.contexts.View;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Listener;
-
-/**
- * Incubation
- *
- * An implementation of IGenerator used to re-generate a Context from an existing one
- *
- * @author Camille Letavernier
- */
-public class EditContextGenerator implements IGenerator {
-
- public void dispose() {
-
-
- }
-
- public List<Context> generate(List<URI> targetURI) {
-
- return null;
- }
-
- public void createControls(Composite parent) {
-
-
- }
-
- public String getDescription() {
- return Messages.EditContextGenerator_generateNewContext;
- }
-
- public boolean isReady() {
-
- return false;
- }
-
- public String getName() {
- return Messages.EditContextGenerator_importExistingContext;
- }
-
- public boolean isSelectedSingle(Property property) {
-
- return false;
- }
-
- public boolean isSelectedMultiple(Property property) {
-
- return false;
- }
-
- public boolean isSelectedSingle(Property property, DataContextElement element) {
-
- return false;
- }
-
- public boolean isSelectedMultiple(Property property, DataContextElement element) {
-
- return false;
- }
-
- public void addListener(Listener listener) {
-
- }
-
- public List<DataContextElement> getContextElementsFor(Collection<Context> contexts, View view) {
-
- throw new UnsupportedOperationException();
- }
-
- public void removeListener(Listener listener) {
-
-
- }
-
- public IObservableValue getObservableValue() {
-
- return null;
- }
-
- public List<Object> getExternalReference() {
-
- return null;
- }
-
- public void setStrategy(int strategy) {
-
-
- }
-
- public void addCheckElement(Object obj) {
-
-
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2010, 2014 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ * Thibault Le Ouay t.leouay@sherpa-eng.com
+ * Christian W. Damus (CEA) - bug 422257
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.generators;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.core.databinding.observable.value.IObservableValue;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
+import org.eclipse.papyrus.infra.properties.contexts.Context;
+import org.eclipse.papyrus.infra.properties.contexts.DataContextElement;
+import org.eclipse.papyrus.infra.properties.contexts.Property;
+import org.eclipse.papyrus.infra.properties.contexts.View;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Listener;
+
+/**
+ * Incubation
+ *
+ * An implementation of IGenerator used to re-generate a Context from an existing one
+ *
+ * @author Camille Letavernier
+ */
+public class EditContextGenerator implements IGenerator {
+
+ public void dispose() {
+
+
+ }
+
+ public List<Context> generate(List<URI> targetURI) {
+
+ return null;
+ }
+
+ public void createControls(Composite parent) {
+
+
+ }
+
+ public String getDescription() {
+ return Messages.EditContextGenerator_generateNewContext;
+ }
+
+ public boolean isReady() {
+
+ return false;
+ }
+
+ public String getName() {
+ return Messages.EditContextGenerator_importExistingContext;
+ }
+
+ public boolean isSelectedSingle(Property property) {
+
+ return false;
+ }
+
+ public boolean isSelectedMultiple(Property property) {
+
+ return false;
+ }
+
+ public boolean isSelectedSingle(Property property, DataContextElement element) {
+
+ return false;
+ }
+
+ public boolean isSelectedMultiple(Property property, DataContextElement element) {
+
+ return false;
+ }
+
+ public void addListener(Listener listener) {
+
+ }
+
+ public List<DataContextElement> getContextElementsFor(Collection<Context> contexts, View view) {
+
+ throw new UnsupportedOperationException();
+ }
+
+ public void removeListener(Listener listener) {
+
+
+ }
+
+ public IObservableValue getObservableValue() {
+
+ return null;
+ }
+
+ public List<Object> getExternalReference() {
+
+ return null;
+ }
+
+ public void setStrategy(int strategy) {
+
+
+ }
+
+ public void addCheckElement(Object obj) {
+
+
+ }
+
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/IGenerator.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/IGenerator.java
index 683ab418956..67bf01c8600 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/IGenerator.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/IGenerator.java
@@ -1,149 +1,149 @@
-/*****************************************************************************
- * Copyright (c) 2010, 2014 CEA LIST and others.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Thibault Le Ouay t.leouay@sherpa-eng.com - Strategy improvement of generated files
- * Christian W. Damus (CEA) - bug 422257
- *
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.generators;
-
-import java.util.List;
-
-import org.eclipse.core.databinding.observable.value.IObservableValue;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.papyrus.infra.properties.contexts.Context;
-import org.eclipse.papyrus.infra.properties.contexts.DataContextElement;
-import org.eclipse.papyrus.infra.properties.contexts.Property;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Listener;
-
-/**
- * A Generator is intended to output a partial Context model.
- * This context model should only contain DataContextElements and Properties
- * (i.e. it should not contain any View or Tabs)
- * The Generator should also implement an heuristic, which will determine
- * for each Property if it should be displayed in the Property view or not,
- * for both Single and Multiple selection
- *
- * @author Camille Letavernier
- *
- */
-public interface IGenerator {
-
- /**
- * Generates the partial context, and persists it to the given target URI
- *
- * @param targetURI
- * @return The generated Context
- */
- public List<Context> generate(List<URI> targetURI);
-
- /**
- * Creates the controls for this Generator. The generator is responsible
- * for displaying any Control useful for editing its options, and listening
- * for changes on them.
- *
- * @param parent
- * The Composite in which the controls will be displayed
- */
- public void createControls(Composite parent);
-
- /**
- * Gets the description for this Generator
- *
- * @return The description
- */
- public String getDescription();
-
- /**
- * Tests if this Generator's settings are all set and valid
- *
- * @return true if all options are set and valid
- */
- public boolean isReady();
-
- /**
- * Gets the name for this Generator
- *
- * @return The name
- */
- public String getName();
-
- /**
- * Tests if a field should be displayed for this Property when
- * exactly one instance of this property's parent element is selected.
- *
- * @param property
- * @return
- */
- public boolean isSelectedSingle(Property property);
-
- /**
- * Tests if a field should be displayed for this Property when
- * at least two instances of this property's parent element are selected.
- *
- * @param property
- * @return
- */
- public boolean isSelectedMultiple(Property property);
-
- /**
- * Tests if a field should be displayed for this Property when
- * exactly one instance of the given element is selected. The difference
- * with {@link #isSelectedSingle(Property)} is that this method takes the inheritance
- * into account, i.e. the property belongs to a Superclass of the given DataContextElement
- *
- * @param property
- * @param element
- * @return
- */
- public boolean isSelectedSingle(Property property, DataContextElement element);
-
- /**
- * Tests if a field should be displayed for this Property when
- * at least two instances of the given element are selected. The difference
- * with {@link #isSelectedMultiple(Property)} is that this method takes the inheritance
- * into account, i.e. the property belongs to a Superclass of the given DataContextElement
- *
- * @param property
- * @param element
- * @return
- */
- public boolean isSelectedMultiple(Property property, DataContextElement element);
-
- /**
- * Adds a Change Listener to this generator. The Listener should be notified
- * each time the generator's {@link #isReady()} value changes
- *
- * @param listener
- */
- public void addListener(Listener listener);
-
- /**
- * Removes a Change Listener from this generator.
- *
- * @param listener
- */
- public void removeListener(Listener listener);
-
- public List<Object> getExternalReference();
-
- public IObservableValue getObservableValue();
-
- public void setStrategy(int strategy);
-
- public void addCheckElement(Object obj);
-
- /**
- * Disposes of any resources allocated by me when I am no longer needed.
- */
- public void dispose();
-
-}
+/*****************************************************************************
+ * Copyright (c) 2010, 2014 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ * Thibault Le Ouay t.leouay@sherpa-eng.com - Strategy improvement of generated files
+ * Christian W. Damus (CEA) - bug 422257
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.generators;
+
+import java.util.List;
+
+import org.eclipse.core.databinding.observable.value.IObservableValue;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.papyrus.infra.properties.contexts.Context;
+import org.eclipse.papyrus.infra.properties.contexts.DataContextElement;
+import org.eclipse.papyrus.infra.properties.contexts.Property;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Listener;
+
+/**
+ * A Generator is intended to output a partial Context model.
+ * This context model should only contain DataContextElements and Properties
+ * (i.e. it should not contain any View or Tabs)
+ * The Generator should also implement an heuristic, which will determine
+ * for each Property if it should be displayed in the Property view or not,
+ * for both Single and Multiple selection
+ *
+ * @author Camille Letavernier
+ *
+ */
+public interface IGenerator {
+
+ /**
+ * Generates the partial context, and persists it to the given target URI
+ *
+ * @param targetURI
+ * @return The generated Context
+ */
+ public List<Context> generate(List<URI> targetURI);
+
+ /**
+ * Creates the controls for this Generator. The generator is responsible
+ * for displaying any Control useful for editing its options, and listening
+ * for changes on them.
+ *
+ * @param parent
+ * The Composite in which the controls will be displayed
+ */
+ public void createControls(Composite parent);
+
+ /**
+ * Gets the description for this Generator
+ *
+ * @return The description
+ */
+ public String getDescription();
+
+ /**
+ * Tests if this Generator's settings are all set and valid
+ *
+ * @return true if all options are set and valid
+ */
+ public boolean isReady();
+
+ /**
+ * Gets the name for this Generator
+ *
+ * @return The name
+ */
+ public String getName();
+
+ /**
+ * Tests if a field should be displayed for this Property when
+ * exactly one instance of this property's parent element is selected.
+ *
+ * @param property
+ * @return
+ */
+ public boolean isSelectedSingle(Property property);
+
+ /**
+ * Tests if a field should be displayed for this Property when
+ * at least two instances of this property's parent element are selected.
+ *
+ * @param property
+ * @return
+ */
+ public boolean isSelectedMultiple(Property property);
+
+ /**
+ * Tests if a field should be displayed for this Property when
+ * exactly one instance of the given element is selected. The difference
+ * with {@link #isSelectedSingle(Property)} is that this method takes the inheritance
+ * into account, i.e. the property belongs to a Superclass of the given DataContextElement
+ *
+ * @param property
+ * @param element
+ * @return
+ */
+ public boolean isSelectedSingle(Property property, DataContextElement element);
+
+ /**
+ * Tests if a field should be displayed for this Property when
+ * at least two instances of the given element are selected. The difference
+ * with {@link #isSelectedMultiple(Property)} is that this method takes the inheritance
+ * into account, i.e. the property belongs to a Superclass of the given DataContextElement
+ *
+ * @param property
+ * @param element
+ * @return
+ */
+ public boolean isSelectedMultiple(Property property, DataContextElement element);
+
+ /**
+ * Adds a Change Listener to this generator. The Listener should be notified
+ * each time the generator's {@link #isReady()} value changes
+ *
+ * @param listener
+ */
+ public void addListener(Listener listener);
+
+ /**
+ * Removes a Change Listener from this generator.
+ *
+ * @param listener
+ */
+ public void removeListener(Listener listener);
+
+ public List<Object> getExternalReference();
+
+ public IObservableValue getObservableValue();
+
+ public void setStrategy(int strategy);
+
+ public void addCheckElement(Object obj);
+
+ /**
+ * Disposes of any resources allocated by me when I am no longer needed.
+ */
+ public void dispose();
+
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/ProfileGenerator.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/ProfileGenerator.java
index db44891524f..dafac4ce874 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/ProfileGenerator.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/generators/ProfileGenerator.java
@@ -1,372 +1,372 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Thibault Le Ouay t.leouay@sherpa-eng.com - Strategy improvement of generated files
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.generators;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.databinding.observable.value.IObservableValue;
-import org.eclipse.emf.common.util.TreeIterator;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.m2m.qvt.oml.BasicModelExtent;
-import org.eclipse.m2m.qvt.oml.ModelExtent;
-import org.eclipse.papyrus.customization.properties.generation.Activator;
-import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
-import org.eclipse.papyrus.customization.properties.generation.wizard.widget.FileChooser;
-import org.eclipse.papyrus.infra.properties.contexts.Context;
-import org.eclipse.papyrus.infra.properties.contexts.DataContextElement;
-import org.eclipse.papyrus.infra.properties.contexts.Property;
-import org.eclipse.papyrus.infra.widgets.providers.FileExtensions;
-import org.eclipse.papyrus.views.properties.root.PropertiesRoot;
-import org.eclipse.papyrus.views.properties.runtime.ConfigurationManager;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.uml2.uml.Classifier;
-import org.eclipse.uml2.uml.Enumeration;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.PackageImport;
-import org.eclipse.uml2.uml.PrimitiveType;
-import org.eclipse.uml2.uml.Profile;
-
-/**
- * An IGenerator for building Contexts from a UML Profile
- *
- * @author Camille Letavernier
- */
-
-// FIXME warning if all profiles have the same name overwrite the same file
-public class ProfileGenerator extends AbstractQVTGenerator {
-
- private FileChooser sourceFileChooser;
-
- private Profile umlProfile;
-
- private List<Object> list;
-
- private List<EObject> listEObject;
-
-
- @Override
- public void createControls(Composite parent) {
- Composite root = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout(2, false);
- layout.marginWidth = 0;
- root.setLayout(layout);
-
- Label sourceLabel = new Label(root, SWT.NONE);
- sourceLabel.setText(Messages.ProfileGenerator_source);
- GridData data = new GridData();
- data.widthHint = 100;
- sourceLabel.setLayoutData(data);
-
- sourceFileChooser = new FileChooser(root, false);
- sourceFileChooser.setFilterExtensions(FileExtensions.umlProfileExtensions);
- sourceFileChooser.addListener(this);
- listEObject = new ArrayList<>();
- }
-
- @Override
- public String getDescription() {
- return Messages.ProfileGenerator_description;
- }
-
- @Override
- public boolean isReady() {
- return sourceFileChooser.getFilePath() != null;
- }
-
- @Override
- public String getName() {
- return Messages.ProfileGenerator_name;
- }
-
- @Override
- protected List<ModelExtent> getModelExtents() {
- LinkedList<ModelExtent> result = new LinkedList<>();
- ModelExtent inPackage = new BasicModelExtent();
- List<EObject> liste = new ArrayList<>();
- if (!listEObject.isEmpty()) {
- for (EObject currentEObject : listEObject) {
- EObject tempEObject = null;
- try {
- tempEObject = loadEMFModel(currentEObject.eResource().getURI());
- liste.add(tempEObject);
-
- } catch (IOException e) {
- }
- }
- } else {
- liste.add(umlProfile);
-
-
- }
- inPackage.setContents(liste);
-
- URI umlURI = URI.createURI("ppe:/context/org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx", true);
- Context umlContext = null;
- try {
- umlContext = (Context) loadEMFModel(umlURI);
- } catch (IOException e) {
- e.printStackTrace();
- }
- if (umlContext == null) {
- Activator.log.warn("Cannot find the UML Property View configuration");
- }
-
- ModelExtent inUml = new BasicModelExtent(Collections.singletonList(umlContext));
-
- PropertiesRoot root = ConfigurationManager.getInstance().getPropertiesRoot();
- ModelExtent inRoot = new BasicModelExtent(Collections.singletonList(root));
-
- result.add(inPackage);
- result.add(getOutContextExtent());
- result.add(inUml);
- result.add(inRoot);
-
- return result;
- }
-
-
- @Override
- protected URI getTransformationURI() {
- return URI.createPlatformPluginURI(Activator.PLUGIN_ID + "/transforms/profile2datacontext.qvto", true); //$NON-NLS-1$
- }
-
- /**
- * Retrieve the Classifier corresponding to the given path, in the given
- * Package
- *
- * @param path
- * The list of package and subpackages names, and the classifier
- * name, i.e. the list of segments in the classifier qualified
- * name e.g. : SysML::Blocks::Block : ["SysML", "Blocks",
- * "Block"]
- * @param rootPackage
- * The root Package in which the stereotype should be retrieved
- * @return The corresponding Classifier, or null if it couldn't be retrieved
- */
- protected Classifier findClassifier(List<String> path, Package rootPackage) {
- NamedElement element = rootPackage.getOwnedMember(path.get(0));
- path.remove(0);
- if (path.size() == 0) {
- if (element instanceof Classifier) {
- return (Classifier) element;
- }
- } else {
- if (element instanceof Package) {
- return findClassifier(path, (Package) element);
- }
- }
- return null;
- }
-
- private List<String> getPath(Property property) {
- List<String> result = getPath(property.getContextElement());
- return result;
- }
-
- private List<String> getPath(DataContextElement element) {
- List<String> result;
- if (element.getPackage() == null) {
- result = new LinkedList<>();
- } else {
- result = getPath(element.getPackage());
- }
-
- result.add(element.getName());
- return result;
- }
-
- /**
- * Retrieve the UML Property corresponding to the given Property view
- * context Property
- *
- * @param property
- * @return
- */
- public org.eclipse.uml2.uml.Property getAttribute(Property property) {
- List<String> path = getPath(property);
-
- Package propertyRootPackage = findPackage(path.remove(0));
- if (propertyRootPackage == null) {
- return null;
- }
-
- Classifier classifier = findClassifier(path, propertyRootPackage);
- if (classifier == null) {
- return null;
- }
-
- org.eclipse.uml2.uml.Property attribute = classifier.getAttribute(property.getName(), null);
- return attribute;
- }
-
- public Package findPackage(String name) {
- for (Resource resource : umlProfile.eResource().getResourceSet().getResources()) {
- for (Object rootElement : resource.getContents()) {
- if (rootElement instanceof Package) {
- Package rootPackage = (Package) rootElement;
- if (name.equals(rootPackage.getName())) {
- return rootPackage;
- }
- }
- }
- }
- return null;
- }
-
- @Override
- public boolean isSelectedSingle(Property property) {
- org.eclipse.uml2.uml.Property attribute = getAttribute(property);
- if (attribute == null) {
- Activator.log.warn("Cannot find the Property corresponding to " + getPath(property)); //$NON-NLS-1$
- return false;
- }
-
- if (attribute.isDerived()) {
- return false;
- }
-
- if (attribute.isReadOnly()) {
- return false;
- }
-
- return true;
- }
-
- @Override
- public boolean isSelectedMultiple(Property property) {
- if (!isSelectedSingle(property)) {
- return false;
- }
-
- org.eclipse.uml2.uml.Property attribute = getAttribute(property);
-
- Set<String> validDataTypes = new HashSet<>(Arrays.asList(new String[] { "Integer", "Boolean", "Float", "Double" })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
-
- if (attribute.getType() instanceof PrimitiveType) {
- return validDataTypes.contains(((PrimitiveType) attribute.getType()).getName());
- }
-
- if (attribute.getType() instanceof Enumeration) {
- return true;
- }
-
- return false;
- }
-
- @Override
- public boolean isSelectedSingle(Property property, DataContextElement element) {
- return isSelectedSingle(property);
- }
-
- @Override
- public boolean isSelectedMultiple(Property property, DataContextElement element) {
- return isSelectedMultiple(property);
- }
-
- @Override
- public IObservableValue getObservableValue() {
- return sourceFileChooser.getObservableValue();
- }
-
- @Override
- public List<Object> getExternalReference() {
- URI packageURI = URI.createPlatformResourceURI(sourceFileChooser.getFilePath(), true);
- try {
- umlProfile = (Profile) loadEMFModel(packageURI);
- } catch (IOException e) {
- // nothing
- }
- list = new ArrayList<>();
- list.add(umlProfile);
-
- TreeIterator<EObject> tree = umlProfile.eAllContents();
- while (tree.hasNext()) {
- Object obj = tree.next();
- if (obj instanceof PackageImport) {
- PackageImport currentPackage = (PackageImport) obj;
- if (!list.contains(currentPackage.getImportedPackage())) {
- list.add(currentPackage.getImportedPackage());
- }
- }
-
-
- }
-
- return list;
- }
-
-
- @Override
- public void addCheckElement(Object obj) {
- if (obj instanceof EObject) {
- EObject current = (EObject) obj;
- if (!listEObject.contains(current)) {
- listEObject.add(current);
- }
- }
-
- }
-
-
-
-
- @Override
- protected List<ModelExtent> getModelExtents(int i) {
- try {
- ModelExtent inProfile = null;
-
- if (listEObject.get(i) instanceof Package) {
- Package currentPackage = (Package) listEObject.get(i);
- umlProfile = (Profile) loadEMFModel(currentPackage.eResource().getURI());
- inProfile = new BasicModelExtent(Collections.singletonList(umlProfile));
-
- }
- URI umlURI = URI.createURI("ppe:/context/org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx", true);
- Context umlContext = (Context) loadEMFModel(umlURI);
- if (umlContext == null) {
- Activator.log.warn("Cannot find the UML Property View configuration");
- }
- ModelExtent inUml = new BasicModelExtent(Collections.singletonList(umlContext));
-
- PropertiesRoot root = ConfigurationManager.getInstance().getPropertiesRoot();
- ModelExtent inRoot = new BasicModelExtent(Collections.singletonList(root));
-
- LinkedList<ModelExtent> result = new LinkedList<>();
- result.add(inProfile);
- result.add(getOutContextExtent());
- result.add(inUml);
- result.add(inRoot);
-
- return result;
- } catch (Exception ex) {
- Activator.log.error(ex);
- }
-
- return null;
-
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ * Thibault Le Ouay t.leouay@sherpa-eng.com - Strategy improvement of generated files
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.generators;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Set;
+
+import org.eclipse.core.databinding.observable.value.IObservableValue;
+import org.eclipse.emf.common.util.TreeIterator;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.m2m.qvt.oml.BasicModelExtent;
+import org.eclipse.m2m.qvt.oml.ModelExtent;
+import org.eclipse.papyrus.customization.properties.generation.Activator;
+import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
+import org.eclipse.papyrus.customization.properties.generation.wizard.widget.FileChooser;
+import org.eclipse.papyrus.infra.properties.contexts.Context;
+import org.eclipse.papyrus.infra.properties.contexts.DataContextElement;
+import org.eclipse.papyrus.infra.properties.contexts.Property;
+import org.eclipse.papyrus.infra.widgets.providers.FileExtensions;
+import org.eclipse.papyrus.views.properties.root.PropertiesRoot;
+import org.eclipse.papyrus.views.properties.runtime.ConfigurationManager;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.uml2.uml.Classifier;
+import org.eclipse.uml2.uml.Enumeration;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.PackageImport;
+import org.eclipse.uml2.uml.PrimitiveType;
+import org.eclipse.uml2.uml.Profile;
+
+/**
+ * An IGenerator for building Contexts from a UML Profile
+ *
+ * @author Camille Letavernier
+ */
+
+// FIXME warning if all profiles have the same name overwrite the same file
+public class ProfileGenerator extends AbstractQVTGenerator {
+
+ private FileChooser sourceFileChooser;
+
+ private Profile umlProfile;
+
+ private List<Object> list;
+
+ private List<EObject> listEObject;
+
+
+ @Override
+ public void createControls(Composite parent) {
+ Composite root = new Composite(parent, SWT.NONE);
+ GridLayout layout = new GridLayout(2, false);
+ layout.marginWidth = 0;
+ root.setLayout(layout);
+
+ Label sourceLabel = new Label(root, SWT.NONE);
+ sourceLabel.setText(Messages.ProfileGenerator_source);
+ GridData data = new GridData();
+ data.widthHint = 100;
+ sourceLabel.setLayoutData(data);
+
+ sourceFileChooser = new FileChooser(root, false);
+ sourceFileChooser.setFilterExtensions(FileExtensions.umlProfileExtensions);
+ sourceFileChooser.addListener(this);
+ listEObject = new ArrayList<>();
+ }
+
+ @Override
+ public String getDescription() {
+ return Messages.ProfileGenerator_description;
+ }
+
+ @Override
+ public boolean isReady() {
+ return sourceFileChooser.getFilePath() != null;
+ }
+
+ @Override
+ public String getName() {
+ return Messages.ProfileGenerator_name;
+ }
+
+ @Override
+ protected List<ModelExtent> getModelExtents() {
+ LinkedList<ModelExtent> result = new LinkedList<>();
+ ModelExtent inPackage = new BasicModelExtent();
+ List<EObject> liste = new ArrayList<>();
+ if (!listEObject.isEmpty()) {
+ for (EObject currentEObject : listEObject) {
+ EObject tempEObject = null;
+ try {
+ tempEObject = loadEMFModel(currentEObject.eResource().getURI());
+ liste.add(tempEObject);
+
+ } catch (IOException e) {
+ }
+ }
+ } else {
+ liste.add(umlProfile);
+
+
+ }
+ inPackage.setContents(liste);
+
+ URI umlURI = URI.createURI("ppe:/context/org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx", true);
+ Context umlContext = null;
+ try {
+ umlContext = (Context) loadEMFModel(umlURI);
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ if (umlContext == null) {
+ Activator.log.warn("Cannot find the UML Property View configuration");
+ }
+
+ ModelExtent inUml = new BasicModelExtent(Collections.singletonList(umlContext));
+
+ PropertiesRoot root = ConfigurationManager.getInstance().getPropertiesRoot();
+ ModelExtent inRoot = new BasicModelExtent(Collections.singletonList(root));
+
+ result.add(inPackage);
+ result.add(getOutContextExtent());
+ result.add(inUml);
+ result.add(inRoot);
+
+ return result;
+ }
+
+
+ @Override
+ protected URI getTransformationURI() {
+ return URI.createPlatformPluginURI(Activator.PLUGIN_ID + "/transforms/profile2datacontext.qvto", true); //$NON-NLS-1$
+ }
+
+ /**
+ * Retrieve the Classifier corresponding to the given path, in the given
+ * Package
+ *
+ * @param path
+ * The list of package and subpackages names, and the classifier
+ * name, i.e. the list of segments in the classifier qualified
+ * name e.g. : SysML::Blocks::Block : ["SysML", "Blocks",
+ * "Block"]
+ * @param rootPackage
+ * The root Package in which the stereotype should be retrieved
+ * @return The corresponding Classifier, or null if it couldn't be retrieved
+ */
+ protected Classifier findClassifier(List<String> path, Package rootPackage) {
+ NamedElement element = rootPackage.getOwnedMember(path.get(0));
+ path.remove(0);
+ if (path.size() == 0) {
+ if (element instanceof Classifier) {
+ return (Classifier) element;
+ }
+ } else {
+ if (element instanceof Package) {
+ return findClassifier(path, (Package) element);
+ }
+ }
+ return null;
+ }
+
+ private List<String> getPath(Property property) {
+ List<String> result = getPath(property.getContextElement());
+ return result;
+ }
+
+ private List<String> getPath(DataContextElement element) {
+ List<String> result;
+ if (element.getPackage() == null) {
+ result = new LinkedList<>();
+ } else {
+ result = getPath(element.getPackage());
+ }
+
+ result.add(element.getName());
+ return result;
+ }
+
+ /**
+ * Retrieve the UML Property corresponding to the given Property view
+ * context Property
+ *
+ * @param property
+ * @return
+ */
+ public org.eclipse.uml2.uml.Property getAttribute(Property property) {
+ List<String> path = getPath(property);
+
+ Package propertyRootPackage = findPackage(path.remove(0));
+ if (propertyRootPackage == null) {
+ return null;
+ }
+
+ Classifier classifier = findClassifier(path, propertyRootPackage);
+ if (classifier == null) {
+ return null;
+ }
+
+ org.eclipse.uml2.uml.Property attribute = classifier.getAttribute(property.getName(), null);
+ return attribute;
+ }
+
+ public Package findPackage(String name) {
+ for (Resource resource : umlProfile.eResource().getResourceSet().getResources()) {
+ for (Object rootElement : resource.getContents()) {
+ if (rootElement instanceof Package) {
+ Package rootPackage = (Package) rootElement;
+ if (name.equals(rootPackage.getName())) {
+ return rootPackage;
+ }
+ }
+ }
+ }
+ return null;
+ }
+
+ @Override
+ public boolean isSelectedSingle(Property property) {
+ org.eclipse.uml2.uml.Property attribute = getAttribute(property);
+ if (attribute == null) {
+ Activator.log.warn("Cannot find the Property corresponding to " + getPath(property)); //$NON-NLS-1$
+ return false;
+ }
+
+ if (attribute.isDerived()) {
+ return false;
+ }
+
+ if (attribute.isReadOnly()) {
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public boolean isSelectedMultiple(Property property) {
+ if (!isSelectedSingle(property)) {
+ return false;
+ }
+
+ org.eclipse.uml2.uml.Property attribute = getAttribute(property);
+
+ Set<String> validDataTypes = new HashSet<>(Arrays.asList(new String[] { "Integer", "Boolean", "Float", "Double" })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+
+ if (attribute.getType() instanceof PrimitiveType) {
+ return validDataTypes.contains(((PrimitiveType) attribute.getType()).getName());
+ }
+
+ if (attribute.getType() instanceof Enumeration) {
+ return true;
+ }
+
+ return false;
+ }
+
+ @Override
+ public boolean isSelectedSingle(Property property, DataContextElement element) {
+ return isSelectedSingle(property);
+ }
+
+ @Override
+ public boolean isSelectedMultiple(Property property, DataContextElement element) {
+ return isSelectedMultiple(property);
+ }
+
+ @Override
+ public IObservableValue getObservableValue() {
+ return sourceFileChooser.getObservableValue();
+ }
+
+ @Override
+ public List<Object> getExternalReference() {
+ URI packageURI = URI.createPlatformResourceURI(sourceFileChooser.getFilePath(), true);
+ try {
+ umlProfile = (Profile) loadEMFModel(packageURI);
+ } catch (IOException e) {
+ // nothing
+ }
+ list = new ArrayList<>();
+ list.add(umlProfile);
+
+ TreeIterator<EObject> tree = umlProfile.eAllContents();
+ while (tree.hasNext()) {
+ Object obj = tree.next();
+ if (obj instanceof PackageImport) {
+ PackageImport currentPackage = (PackageImport) obj;
+ if (!list.contains(currentPackage.getImportedPackage())) {
+ list.add(currentPackage.getImportedPackage());
+ }
+ }
+
+
+ }
+
+ return list;
+ }
+
+
+ @Override
+ public void addCheckElement(Object obj) {
+ if (obj instanceof EObject) {
+ EObject current = (EObject) obj;
+ if (!listEObject.contains(current)) {
+ listEObject.add(current);
+ }
+ }
+
+ }
+
+
+
+
+ @Override
+ protected List<ModelExtent> getModelExtents(int i) {
+ try {
+ ModelExtent inProfile = null;
+
+ if (listEObject.get(i) instanceof Package) {
+ Package currentPackage = (Package) listEObject.get(i);
+ umlProfile = (Profile) loadEMFModel(currentPackage.eResource().getURI());
+ inProfile = new BasicModelExtent(Collections.singletonList(umlProfile));
+
+ }
+ URI umlURI = URI.createURI("ppe:/context/org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx", true);
+ Context umlContext = (Context) loadEMFModel(umlURI);
+ if (umlContext == null) {
+ Activator.log.warn("Cannot find the UML Property View configuration");
+ }
+ ModelExtent inUml = new BasicModelExtent(Collections.singletonList(umlContext));
+
+ PropertiesRoot root = ConfigurationManager.getInstance().getPropertiesRoot();
+ ModelExtent inRoot = new BasicModelExtent(Collections.singletonList(root));
+
+ LinkedList<ModelExtent> result = new LinkedList<>();
+ result.add(inProfile);
+ result.add(getOutContextExtent());
+ result.add(inUml);
+ result.add(inRoot);
+
+ return result;
+ } catch (Exception ex) {
+ Activator.log.error(ex);
+ }
+
+ return null;
+
+ }
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/layout/ILayoutGenerator.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/layout/ILayoutGenerator.java
index b20c6034afc..7683ee850be 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/layout/ILayoutGenerator.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/layout/ILayoutGenerator.java
@@ -1,57 +1,57 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.layout;
-
-import java.util.List;
-
-import org.eclipse.papyrus.customization.properties.generation.generators.IGenerator;
-import org.eclipse.papyrus.infra.properties.contexts.Section;
-import org.eclipse.papyrus.infra.properties.contexts.View;
-import org.eclipse.papyrus.infra.properties.ui.PropertyEditor;
-
-/**
- * An interface for defining Layout generators.
- * Layout generators are responsible for building a List of sections from a list
- * of Property editors.
- *
- * @author Camille Letavernier
- */
-public interface ILayoutGenerator {
-
- /**
- * Return a list of Sections from a list of property editors.
- * Each section should be placed in the parent's resourceSet
- *
- * @param editors
- * The list of editors to layout
- * @param parent
- * The view owning the resulting list of sections
- * @return
- * The list of sections owning the input editors
- */
- public List<Section> layoutElements(List<PropertyEditor> editors, View parent);
-
- /**
- * @return the name of the Layout generator
- */
- public String getName();
-
- /**
- * Sets the generator used to generate the Property view configuration
- *
- * @param generator
- */
- // TODO : This method has been added for a specific case (Profile layout).
- // It should be removed when we have a better way to retrieve the source
- // profile
- public void setGenerator(IGenerator generator);
-}
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.layout;
+
+import java.util.List;
+
+import org.eclipse.papyrus.customization.properties.generation.generators.IGenerator;
+import org.eclipse.papyrus.infra.properties.contexts.Section;
+import org.eclipse.papyrus.infra.properties.contexts.View;
+import org.eclipse.papyrus.infra.properties.ui.PropertyEditor;
+
+/**
+ * An interface for defining Layout generators.
+ * Layout generators are responsible for building a List of sections from a list
+ * of Property editors.
+ *
+ * @author Camille Letavernier
+ */
+public interface ILayoutGenerator {
+
+ /**
+ * Return a list of Sections from a list of property editors.
+ * Each section should be placed in the parent's resourceSet
+ *
+ * @param editors
+ * The list of editors to layout
+ * @param parent
+ * The view owning the resulting list of sections
+ * @return
+ * The list of sections owning the input editors
+ */
+ public List<Section> layoutElements(List<PropertyEditor> editors, View parent);
+
+ /**
+ * @return the name of the Layout generator
+ */
+ public String getName();
+
+ /**
+ * Sets the generator used to generate the Property view configuration
+ *
+ * @param generator
+ */
+ // TODO : This method has been added for a specific case (Profile layout).
+ // It should be removed when we have a better way to retrieve the source
+ // profile
+ public void setGenerator(IGenerator generator);
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/messages/Messages.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/messages/Messages.java
index 8ee5b92666d..1064d55f2d0 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/messages/Messages.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/messages/Messages.java
@@ -1,110 +1,110 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.messages;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS {
-
- private static final String BUNDLE_NAME = "org.eclipse.papyrus.customization.properties.generation.messages.messages"; //$NON-NLS-1$
-
- public static String EcoreGenerator_ecoreGeneratorDescription;
-
- public static String EcoreGenerator_ecoreGeneratorName;
-
- public static String EcoreGenerator_source;
-
- public static String EditContextGenerator_generateNewContext;
-
- public static String EditContextGenerator_importExistingContext;
-
- public static String ProfileGenerator_description;
-
- public static String ProfileGenerator_name;
-
- public static String ProfileGenerator_source;
-
- public static String StandardLayoutGenerator_name;
-
- public static String CreateContextMainPage_description;
-
- public static String CreateContextMainPage_title;
-
- public static String CreateContextWizard_pageTitle;
-
- public static String CreateContextWizard_propertyViewGenerationError;
-
- public static String CreateContextWizard_propertyViewGenerationJobName;
-
- public static String GeneratorPage_layoutGenerator;
-
- public static String GeneratorPage_target;
-
- public static String GeneratorPage_title;
-
- public static String SelectFieldsPage_availableFields;
-
- public static String SelectFieldsPage_description;
-
- public static String SelectFieldsPage_descriptionNotAvailable;
-
- public static String SelectFieldsPage_displayMultiple;
-
- public static String SelectFieldsPage_displaySingle;
-
- public static String SelectFieldsPage_field;
-
- public static String SelectFieldsPage_selectFields;
-
- public static String SelectFieldsPage_title;
-
- public static String SelectOutputPage_0;
-
- public static String SelectOutputPage_1;
-
- public static String SelectOutputPage_2;
-
- public static String SelectOutputPage_3;
-
- public static String SelectOutputPage_4;
-
- public static String SourceValidator_2;
-
- public static String SourceValidator_4;
-
- public static String SourceValidator_5;
-
- public static String SourceValidator_6;
-
- public static String SourceValidator_7;
-
- public static String FileChooser_browseWorkspace;
-
- public static String TargetValidator_2;
-
- public static String TargetValidator_3;
-
- public static String TernaryButton_defaultFalse;
-
- public static String TernaryButton_defaultTrue;
-
- public static String TernaryButton_false;
-
- public static String TernaryButton_true;
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
- private Messages() {
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2011 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.messages;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+
+ private static final String BUNDLE_NAME = "org.eclipse.papyrus.customization.properties.generation.messages.messages"; //$NON-NLS-1$
+
+ public static String EcoreGenerator_ecoreGeneratorDescription;
+
+ public static String EcoreGenerator_ecoreGeneratorName;
+
+ public static String EcoreGenerator_source;
+
+ public static String EditContextGenerator_generateNewContext;
+
+ public static String EditContextGenerator_importExistingContext;
+
+ public static String ProfileGenerator_description;
+
+ public static String ProfileGenerator_name;
+
+ public static String ProfileGenerator_source;
+
+ public static String StandardLayoutGenerator_name;
+
+ public static String CreateContextMainPage_description;
+
+ public static String CreateContextMainPage_title;
+
+ public static String CreateContextWizard_pageTitle;
+
+ public static String CreateContextWizard_propertyViewGenerationError;
+
+ public static String CreateContextWizard_propertyViewGenerationJobName;
+
+ public static String GeneratorPage_layoutGenerator;
+
+ public static String GeneratorPage_target;
+
+ public static String GeneratorPage_title;
+
+ public static String SelectFieldsPage_availableFields;
+
+ public static String SelectFieldsPage_description;
+
+ public static String SelectFieldsPage_descriptionNotAvailable;
+
+ public static String SelectFieldsPage_displayMultiple;
+
+ public static String SelectFieldsPage_displaySingle;
+
+ public static String SelectFieldsPage_field;
+
+ public static String SelectFieldsPage_selectFields;
+
+ public static String SelectFieldsPage_title;
+
+ public static String SelectOutputPage_0;
+
+ public static String SelectOutputPage_1;
+
+ public static String SelectOutputPage_2;
+
+ public static String SelectOutputPage_3;
+
+ public static String SelectOutputPage_4;
+
+ public static String SourceValidator_2;
+
+ public static String SourceValidator_4;
+
+ public static String SourceValidator_5;
+
+ public static String SourceValidator_6;
+
+ public static String SourceValidator_7;
+
+ public static String FileChooser_browseWorkspace;
+
+ public static String TargetValidator_2;
+
+ public static String TargetValidator_3;
+
+ public static String TernaryButton_defaultFalse;
+
+ public static String TernaryButton_defaultTrue;
+
+ public static String TernaryButton_false;
+
+ public static String TernaryButton_true;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/messages/messages.properties b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/messages/messages.properties
index abe6c8fc5ba..9908eafe619 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/messages/messages.properties
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/messages/messages.properties
@@ -1,42 +1,42 @@
-EcoreGenerator_ecoreGeneratorDescription=Generate a new Property View context from an Ecore Metamodel\nChose the Ecore file corresponding to your metamodel
-EcoreGenerator_ecoreGeneratorName=Create from Ecore Metamodel
-EcoreGenerator_source=Source :
-EditContextGenerator_generateNewContext=Generates a new context from an existing one
-EditContextGenerator_importExistingContext=Import existing context
-ProfileGenerator_description=Generate a new Property View context from a UML Profile\nChose the UML Profile corresponding to your metamodel
-ProfileGenerator_name=Create from UML Profile
-ProfileGenerator_source=Source :
-StandardLayoutGenerator_name=Standard layout generator
-CreateContextMainPage_description=Generate a new Property View context from a Metamodel
-CreateContextMainPage_title=Create context
-CreateContextWizard_pageTitle=New Property view Context
-CreateContextWizard_propertyViewGenerationError=An error occured while generating the property view for
-CreateContextWizard_propertyViewGenerationJobName=Property View Generation for
-GeneratorPage_layoutGenerator=Layout generator :
-GeneratorPage_target=Target :
-GeneratorPage_title=Generator page
-SelectFieldsPage_availableFields=Available fields :
-SelectFieldsPage_description=Description
-SelectFieldsPage_descriptionNotAvailable=N/A
-SelectFieldsPage_displayMultiple=Display multiple
-SelectFieldsPage_displaySingle=Display single
-SelectFieldsPage_field=Field
-SelectFieldsPage_selectFields=Select the fields you want to be displayed in the Property view
-SelectFieldsPage_title=Select fields
+EcoreGenerator_ecoreGeneratorDescription=Generate a new Property View context from an Ecore Metamodel\nChose the Ecore file corresponding to your metamodel
+EcoreGenerator_ecoreGeneratorName=Create from Ecore Metamodel
+EcoreGenerator_source=Source :
+EditContextGenerator_generateNewContext=Generates a new context from an existing one
+EditContextGenerator_importExistingContext=Import existing context
+ProfileGenerator_description=Generate a new Property View context from a UML Profile\nChose the UML Profile corresponding to your metamodel
+ProfileGenerator_name=Create from UML Profile
+ProfileGenerator_source=Source :
+StandardLayoutGenerator_name=Standard layout generator
+CreateContextMainPage_description=Generate a new Property View context from a Metamodel
+CreateContextMainPage_title=Create context
+CreateContextWizard_pageTitle=New Property view Context
+CreateContextWizard_propertyViewGenerationError=An error occured while generating the property view for
+CreateContextWizard_propertyViewGenerationJobName=Property View Generation for
+GeneratorPage_layoutGenerator=Layout generator :
+GeneratorPage_target=Target :
+GeneratorPage_title=Generator page
+SelectFieldsPage_availableFields=Available fields :
+SelectFieldsPage_description=Description
+SelectFieldsPage_descriptionNotAvailable=N/A
+SelectFieldsPage_displayMultiple=Display multiple
+SelectFieldsPage_displaySingle=Display single
+SelectFieldsPage_field=Field
+SelectFieldsPage_selectFields=Select the fields you want to be displayed in the Property view
+SelectFieldsPage_title=Select fields
SelectOutputPage_0=Output context Page
-SelectOutputPage_1= How would you like to generate your new View Property ? \n Select your strategy and your source
-SelectOutputPage_2=Don't generate dependencies
-SelectOutputPage_3=Generate dependencies in the same file
-SelectOutputPage_4=Generate dependencies in different files
-SourceValidator_2=Source file should be a .Ecore file
-SourceValidator_4=Source file should be a .Uml file
-SourceValidator_5=Source file does not exist in workspace
-SourceValidator_6=Source must not be blank
-SourceValidator_7=Target file should be .CTX file
-FileChooser_browseWorkspace=Browse workspace...
-TargetValidator_2=Target File should be a .ctx file
-TargetValidator_3=Specify a target file
-TernaryButton_defaultFalse=Default (False)
-TernaryButton_defaultTrue=Default (True)
-TernaryButton_false=False
-TernaryButton_true=True
+SelectOutputPage_1= How would you like to generate your new View Property ? \n Select your strategy and your source
+SelectOutputPage_2=Don't generate dependencies
+SelectOutputPage_3=Generate dependencies in the same file
+SelectOutputPage_4=Generate dependencies in different files
+SourceValidator_2=Source file should be a .Ecore file
+SourceValidator_4=Source file should be a .Uml file
+SourceValidator_5=Source file does not exist in workspace
+SourceValidator_6=Source must not be blank
+SourceValidator_7=Target file should be .CTX file
+FileChooser_browseWorkspace=Browse workspace...
+TargetValidator_2=Target File should be a .ctx file
+TargetValidator_3=Specify a target file
+TernaryButton_defaultFalse=Default (False)
+TernaryButton_defaultTrue=Default (True)
+TernaryButton_false=False
+TernaryButton_true=True
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/providers/DataContextPropertiesContentProvider.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/providers/DataContextPropertiesContentProvider.java
index 326ca6c37cc..eb9fda62e59 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/providers/DataContextPropertiesContentProvider.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/providers/DataContextPropertiesContentProvider.java
@@ -1,35 +1,35 @@
-/*****************************************************************************
- * Copyright (c) 2012 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.providers;
-
-import java.util.List;
-
-import org.eclipse.papyrus.infra.properties.contexts.Context;
-import org.eclipse.papyrus.views.properties.toolsmiths.providers.PropertyContentProvider;
-
-
-public class DataContextPropertiesContentProvider extends PropertyContentProvider {
-
- private final List<Context> contexts;
-
- public DataContextPropertiesContentProvider(List<Context> contexts) {
- super(contexts.get(0));
- this.contexts = contexts;
- }
-
- @Override
- public Object[] getElements() {
- // We're only interested in the generated contexts ; not in their dependencies
- return contexts.toArray();
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.providers;
+
+import java.util.List;
+
+import org.eclipse.papyrus.infra.properties.contexts.Context;
+import org.eclipse.papyrus.views.properties.toolsmiths.providers.PropertyContentProvider;
+
+
+public class DataContextPropertiesContentProvider extends PropertyContentProvider {
+
+ private final List<Context> contexts;
+
+ public DataContextPropertiesContentProvider(List<Context> contexts) {
+ super(contexts.get(0));
+ this.contexts = contexts;
+ }
+
+ @Override
+ public Object[] getElements() {
+ // We're only interested in the generated contexts ; not in their dependencies
+ return contexts.toArray();
+ }
+
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/providers/DataContextPropertiesLabelProvider.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/providers/DataContextPropertiesLabelProvider.java
index 2bbaa125c9a..16790e3f895 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/providers/DataContextPropertiesLabelProvider.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/providers/DataContextPropertiesLabelProvider.java
@@ -1,127 +1,127 @@
-/*****************************************************************************
- * Copyright (c) 2012 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.providers;
-
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.StyledCellLabelProvider;
-import org.eclipse.jface.viewers.StyledString;
-import org.eclipse.jface.viewers.ViewerCell;
-import org.eclipse.papyrus.customization.properties.generation.wizard.SelectFieldsPage;
-import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
-import org.eclipse.papyrus.infra.properties.contexts.Property;
-import org.eclipse.papyrus.views.properties.toolsmiths.providers.ContextLabelProvider;
-import org.eclipse.swt.graphics.Image;
-
-public class DataContextPropertiesLabelProvider extends StyledCellLabelProvider {
-
- private final SelectFieldsPage selectFieldsPage;
-
- private final ILabelProvider labelProvider;
-
- public DataContextPropertiesLabelProvider(SelectFieldsPage selectFieldsPage) {
- this.selectFieldsPage = selectFieldsPage;
- labelProvider = new ContextLabelProvider();
- }
-
- @Override
- public void update(ViewerCell cell) {
- Object element = cell.getElement();
- int columnIndex = cell.getColumnIndex();
-
- StyledString styleText = getStyledText(element, columnIndex);
-
- cell.setText(styleText.getString());
- cell.setStyleRanges(styleText.getStyleRanges());
- cell.setImage(getImage(element, columnIndex));
- }
-
- protected StyledString getStyledText(Object element, int columnIndex) {
- String text = getText(element, columnIndex);
-
- if (columnIndex == selectFieldsPage.fieldColumn) {
- EObject eObject = EMFHelper.getEObject(element);
- if (!(eObject instanceof Property)) {
- StyledString styledString = new StyledString(text, StyledString.QUALIFIER_STYLER);
-
- return styledString;
- }
- }
-
- // if(columnIndex == selectFieldsPage.selectionSingleColumn) {
- // //Nothing
- // }
- //
- // if(columnIndex == selectFieldsPage.selectionMultipleColumn) {
- // //Nothing
- // }
- //
- // if(columnIndex == selectFieldsPage.descriptionColumn) {
- // //Nothing
- // }
-
- // Default
- return new StyledString(text);
- }
-
- protected String getText(Object element, int columnIndex) {
- if (columnIndex == selectFieldsPage.fieldColumn) {
- return labelProvider.getText(element);
- }
-
- // if(columnIndex == selectFieldsPage.selectionSingleColumn) {
- // //Nothing
- // }
- //
- // if(columnIndex == selectFieldsPage.selectionMultipleColumn) {
- // //Nothing
- // }
-
- if (columnIndex == selectFieldsPage.descriptionColumn) {
- EObject eObject = EMFHelper.getEObject(element);
- if (eObject instanceof Property) {
- String description = ((Property) element).getDescription();
- if (description != null) {
- return description.replaceAll("[\n\r]+", "\\\\");
- }
-
- return "";
- }
- }
-
- // Default
- return "";
- }
-
- protected Image getImage(Object element, int columnIndex) {
- if (columnIndex == selectFieldsPage.fieldColumn) {
- return labelProvider.getImage(element);
- }
-
- // if(columnIndex == selectFieldsPage.selectionSingleColumn) {
- // //Nothing
- // }
- //
- // if(columnIndex == selectFieldsPage.selectionMultipleColumn) {
- // //Nothing
- // }
- //
- // if(columnIndex == selectFieldsPage.descriptionColumn) {
- // //Nothing
- // }
-
- // Default
- return null;
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.providers;
+
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.jface.viewers.StyledCellLabelProvider;
+import org.eclipse.jface.viewers.StyledString;
+import org.eclipse.jface.viewers.ViewerCell;
+import org.eclipse.papyrus.customization.properties.generation.wizard.SelectFieldsPage;
+import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
+import org.eclipse.papyrus.infra.properties.contexts.Property;
+import org.eclipse.papyrus.views.properties.toolsmiths.providers.ContextLabelProvider;
+import org.eclipse.swt.graphics.Image;
+
+public class DataContextPropertiesLabelProvider extends StyledCellLabelProvider {
+
+ private final SelectFieldsPage selectFieldsPage;
+
+ private final ILabelProvider labelProvider;
+
+ public DataContextPropertiesLabelProvider(SelectFieldsPage selectFieldsPage) {
+ this.selectFieldsPage = selectFieldsPage;
+ labelProvider = new ContextLabelProvider();
+ }
+
+ @Override
+ public void update(ViewerCell cell) {
+ Object element = cell.getElement();
+ int columnIndex = cell.getColumnIndex();
+
+ StyledString styleText = getStyledText(element, columnIndex);
+
+ cell.setText(styleText.getString());
+ cell.setStyleRanges(styleText.getStyleRanges());
+ cell.setImage(getImage(element, columnIndex));
+ }
+
+ protected StyledString getStyledText(Object element, int columnIndex) {
+ String text = getText(element, columnIndex);
+
+ if (columnIndex == selectFieldsPage.fieldColumn) {
+ EObject eObject = EMFHelper.getEObject(element);
+ if (!(eObject instanceof Property)) {
+ StyledString styledString = new StyledString(text, StyledString.QUALIFIER_STYLER);
+
+ return styledString;
+ }
+ }
+
+ // if(columnIndex == selectFieldsPage.selectionSingleColumn) {
+ // //Nothing
+ // }
+ //
+ // if(columnIndex == selectFieldsPage.selectionMultipleColumn) {
+ // //Nothing
+ // }
+ //
+ // if(columnIndex == selectFieldsPage.descriptionColumn) {
+ // //Nothing
+ // }
+
+ // Default
+ return new StyledString(text);
+ }
+
+ protected String getText(Object element, int columnIndex) {
+ if (columnIndex == selectFieldsPage.fieldColumn) {
+ return labelProvider.getText(element);
+ }
+
+ // if(columnIndex == selectFieldsPage.selectionSingleColumn) {
+ // //Nothing
+ // }
+ //
+ // if(columnIndex == selectFieldsPage.selectionMultipleColumn) {
+ // //Nothing
+ // }
+
+ if (columnIndex == selectFieldsPage.descriptionColumn) {
+ EObject eObject = EMFHelper.getEObject(element);
+ if (eObject instanceof Property) {
+ String description = ((Property) element).getDescription();
+ if (description != null) {
+ return description.replaceAll("[\n\r]+", "\\\\");
+ }
+
+ return "";
+ }
+ }
+
+ // Default
+ return "";
+ }
+
+ protected Image getImage(Object element, int columnIndex) {
+ if (columnIndex == selectFieldsPage.fieldColumn) {
+ return labelProvider.getImage(element);
+ }
+
+ // if(columnIndex == selectFieldsPage.selectionSingleColumn) {
+ // //Nothing
+ // }
+ //
+ // if(columnIndex == selectFieldsPage.selectionMultipleColumn) {
+ // //Nothing
+ // }
+ //
+ // if(columnIndex == selectFieldsPage.descriptionColumn) {
+ // //Nothing
+ // }
+
+ // Default
+ return null;
+ }
+
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/validators/AbstractValidator.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/validators/AbstractValidator.java
index a1d242723fb..cc3e39f828d 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/validators/AbstractValidator.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/validators/AbstractValidator.java
@@ -1,49 +1,49 @@
-/*****************************************************************************
- * 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:
- * Thibault Le Ouay t.leouay@sherpa-eng.com
- *****************************************************************************/
-
-
-package org.eclipse.papyrus.customization.properties.generation.validators;
-
-import org.eclipse.core.databinding.validation.IValidator;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.papyrus.infra.widgets.Activator;
-
-public abstract class AbstractValidator implements IValidator {
-
- protected String pluginId;
-
- public void setPluginID(String pluginId) {
- this.pluginId = pluginId;
- }
-
- protected IStatus error(String message) {
- return new Status(IStatus.ERROR, getPluginId(), message);
- }
-
- /**
- * @since 2.1
- */
- protected IStatus warning(String message) {
- return new Status(IStatus.WARNING, getPluginId(), message);
- }
-
- public String getPluginId() {
- if (pluginId == null) {
- return Activator.PLUGIN_ID;
- } else {
- return pluginId;
- }
- }
-
-
+/*****************************************************************************
+ * 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:
+ * Thibault Le Ouay t.leouay@sherpa-eng.com
+ *****************************************************************************/
+
+
+package org.eclipse.papyrus.customization.properties.generation.validators;
+
+import org.eclipse.core.databinding.validation.IValidator;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.papyrus.infra.widgets.Activator;
+
+public abstract class AbstractValidator implements IValidator {
+
+ protected String pluginId;
+
+ public void setPluginID(String pluginId) {
+ this.pluginId = pluginId;
+ }
+
+ protected IStatus error(String message) {
+ return new Status(IStatus.ERROR, getPluginId(), message);
+ }
+
+ /**
+ * @since 2.1
+ */
+ protected IStatus warning(String message) {
+ return new Status(IStatus.WARNING, getPluginId(), message);
+ }
+
+ public String getPluginId() {
+ if (pluginId == null) {
+ return Activator.PLUGIN_ID;
+ } else {
+ return pluginId;
+ }
+ }
+
+
} \ No newline at end of file
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/validators/SourceValidator.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/validators/SourceValidator.java
index 720a430983e..eaeb3d39ebb 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/validators/SourceValidator.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/validators/SourceValidator.java
@@ -1,73 +1,73 @@
-/*****************************************************************************
- * 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:
- * Thibault Le Ouay t.leouay@sherpa-eng.com
- *****************************************************************************/
-
-
-package org.eclipse.papyrus.customization.properties.generation.validators;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IWorkspaceRoot;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.papyrus.customization.properties.generation.generators.EcoreGenerator;
-import org.eclipse.papyrus.customization.properties.generation.generators.IGenerator;
-import org.eclipse.papyrus.customization.properties.generation.generators.ProfileGenerator;
-import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
-
-public class SourceValidator extends AbstractValidator {
- protected IGenerator generator;
-
- public SourceValidator(IGenerator generator) {
- this.generator = generator;
- }
-
- public IStatus validate(Object value) {
- if (value instanceof String) {
- String s = (String) value;
- if (!s.equals("")) { //$NON-NLS-1$
- if (this.generator instanceof EcoreGenerator) {
- if (!s.endsWith("ecore")) { //$NON-NLS-1$
- return warning(Messages.SourceValidator_2);
- }
- } else if (this.generator instanceof ProfileGenerator) {
- if (!s.endsWith("uml")) { //$NON-NLS-1$
- return warning(Messages.SourceValidator_4);
- }
- }
-
- IWorkspaceRoot myWorkspaceRoot = ResourcesPlugin.getWorkspace()
- .getRoot();
- IFile file = null;
- try {
- IPath path = new Path(s);
- file = myWorkspaceRoot.getFile(path);
-
- } catch (IllegalArgumentException ex) {
- return error(ex.getMessage());
- }
- if (!file.exists()) {
- return error(Messages.SourceValidator_5);
-
- }
- } else {
- return error(Messages.SourceValidator_6);
- }
-
- return Status.OK_STATUS;
-
- }
- return error(Messages.SourceValidator_7);
- }
-
-}
+/*****************************************************************************
+ * 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:
+ * Thibault Le Ouay t.leouay@sherpa-eng.com
+ *****************************************************************************/
+
+
+package org.eclipse.papyrus.customization.properties.generation.validators;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IWorkspaceRoot;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.papyrus.customization.properties.generation.generators.EcoreGenerator;
+import org.eclipse.papyrus.customization.properties.generation.generators.IGenerator;
+import org.eclipse.papyrus.customization.properties.generation.generators.ProfileGenerator;
+import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
+
+public class SourceValidator extends AbstractValidator {
+ protected IGenerator generator;
+
+ public SourceValidator(IGenerator generator) {
+ this.generator = generator;
+ }
+
+ public IStatus validate(Object value) {
+ if (value instanceof String) {
+ String s = (String) value;
+ if (!s.equals("")) { //$NON-NLS-1$
+ if (this.generator instanceof EcoreGenerator) {
+ if (!s.endsWith("ecore")) { //$NON-NLS-1$
+ return warning(Messages.SourceValidator_2);
+ }
+ } else if (this.generator instanceof ProfileGenerator) {
+ if (!s.endsWith("uml")) { //$NON-NLS-1$
+ return warning(Messages.SourceValidator_4);
+ }
+ }
+
+ IWorkspaceRoot myWorkspaceRoot = ResourcesPlugin.getWorkspace()
+ .getRoot();
+ IFile file = null;
+ try {
+ IPath path = new Path(s);
+ file = myWorkspaceRoot.getFile(path);
+
+ } catch (IllegalArgumentException ex) {
+ return error(ex.getMessage());
+ }
+ if (!file.exists()) {
+ return error(Messages.SourceValidator_5);
+
+ }
+ } else {
+ return error(Messages.SourceValidator_6);
+ }
+
+ return Status.OK_STATUS;
+
+ }
+ return error(Messages.SourceValidator_7);
+ }
+
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/validators/TargetValidator.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/validators/TargetValidator.java
index 7aae8904862..8c5b9db3c52 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/validators/TargetValidator.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/validators/TargetValidator.java
@@ -1,37 +1,37 @@
-/*****************************************************************************
- * 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:
- * Thibault Le Ouay t.leouay@sherpa-eng.com
- *****************************************************************************/
-
-package org.eclipse.papyrus.customization.properties.generation.validators;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
-
-public class TargetValidator extends AbstractValidator {
-
-
- public IStatus validate(Object value) {
- if (value instanceof String) {
- String s = (String) value;
- if (!s.equals("")) { //$NON-NLS-1$
- if (!s.endsWith("ctx")) { //$NON-NLS-1$
- return error(Messages.TargetValidator_2);
- }
- } else {
- return error(Messages.TargetValidator_3);
- }
- }
-
- return Status.OK_STATUS;
- }
-
-}
+/*****************************************************************************
+ * 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:
+ * Thibault Le Ouay t.leouay@sherpa-eng.com
+ *****************************************************************************/
+
+package org.eclipse.papyrus.customization.properties.generation.validators;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
+
+public class TargetValidator extends AbstractValidator {
+
+
+ public IStatus validate(Object value) {
+ if (value instanceof String) {
+ String s = (String) value;
+ if (!s.equals("")) { //$NON-NLS-1$
+ if (!s.endsWith("ctx")) { //$NON-NLS-1$
+ return error(Messages.TargetValidator_2);
+ }
+ } else {
+ return error(Messages.TargetValidator_3);
+ }
+ }
+
+ return Status.OK_STATUS;
+ }
+
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/AbstractCreateContextPage.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/AbstractCreateContextPage.java
index 53a460ee9d4..587b7a420ab 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/AbstractCreateContextPage.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/AbstractCreateContextPage.java
@@ -1,57 +1,57 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.wizard;
-
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.wizard.WizardPage;
-
-/**
- * An abstract WizardPage for the CreateContext wizard, providing helper
- * methods to its implementers
- *
- * @author Camille Letavernier
- */
-public abstract class AbstractCreateContextPage extends WizardPage {
-
- /**
- * Builds a new WizardPage with the given pageName
- * Constructor.
- *
- * @param pageName
- * The name of this wizard page
- */
- public AbstractCreateContextPage(String pageName) {
- super(pageName);
- }
-
- /**
- *
- * Builds a new WizardPage with the given pageName, title and image
- *
- * @param pageName
- * the name of the page
- * @param title
- * the title for this wizard page, or <code>null</code> if none
- * @param titleImage
- * the image descriptor for the title of this wizard page,
- * or <code>null</code> if none
- */
- public AbstractCreateContextPage(String pageName, String title, ImageDescriptor titleImage) {
- super(pageName, title, titleImage);
- }
-
- @Override
- public CreateContextWizard getWizard() {
- return (CreateContextWizard) super.getWizard();
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.wizard;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.wizard.WizardPage;
+
+/**
+ * An abstract WizardPage for the CreateContext wizard, providing helper
+ * methods to its implementers
+ *
+ * @author Camille Letavernier
+ */
+public abstract class AbstractCreateContextPage extends WizardPage {
+
+ /**
+ * Builds a new WizardPage with the given pageName
+ * Constructor.
+ *
+ * @param pageName
+ * The name of this wizard page
+ */
+ public AbstractCreateContextPage(String pageName) {
+ super(pageName);
+ }
+
+ /**
+ *
+ * Builds a new WizardPage with the given pageName, title and image
+ *
+ * @param pageName
+ * the name of the page
+ * @param title
+ * the title for this wizard page, or <code>null</code> if none
+ * @param titleImage
+ * the image descriptor for the title of this wizard page,
+ * or <code>null</code> if none
+ */
+ public AbstractCreateContextPage(String pageName, String title, ImageDescriptor titleImage) {
+ super(pageName, title, titleImage);
+ }
+
+ @Override
+ public CreateContextWizard getWizard() {
+ return (CreateContextWizard) super.getWizard();
+ }
+
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/CreateContextMainPage.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/CreateContextMainPage.java
index bffba34409c..68a57f54b92 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/CreateContextMainPage.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/CreateContextMainPage.java
@@ -1,95 +1,95 @@
-/*****************************************************************************
- * Copyright (c) 2010, 2014 CEA LIST and others.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Thibault Le Ouay t.leouay@sherpa-eng.com - Add SelectOutputPage
- * Christian W. Damus (CEA) - bug 422257
- *
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.wizard;
-
-import java.util.List;
-
-import org.eclipse.jface.wizard.IWizardPage;
-import org.eclipse.papyrus.customization.properties.generation.extensionpoint.GeneratorExtensionPoint;
-import org.eclipse.papyrus.customization.properties.generation.generators.IGenerator;
-import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.CCombo;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-
-/**
- * A WizardPage for selecting the method of generation (e.g. from Ecore
- * Metamodel or from Profile model)
- *
- * @author Camille Letavernier
- *
- */
-public class CreateContextMainPage extends AbstractCreateContextPage implements Listener {
-
- private CCombo combo;
-
- private final List<IGenerator> generators;
-
- /**
- * Constructor
- */
- public CreateContextMainPage() {
- super(Messages.CreateContextMainPage_title);
-
- generators = new GeneratorExtensionPoint().getGenerators();
- }
-
- @Override
- public void dispose() {
- try {
- for (IGenerator next : generators) {
- next.dispose();
- }
- } finally {
- super.dispose();
- }
- }
-
- public void createControl(Composite parent) {
- Composite root = new Composite(parent, SWT.NONE);
- root.setLayout(new GridLayout(1, false));
-
- combo = new CCombo(root, SWT.BORDER);
- for (IGenerator generator : generators) {
- combo.add(generator.getName());
- }
- combo.setEditable(false);
- combo.setBackground(new Color(combo.getDisplay(), 255, 255, 255));
- combo.select(0);
- combo.addListener(SWT.Selection, this);
- combo.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
-
- setControl(root);
- setDescription(Messages.CreateContextMainPage_description);
- }
-
- @Override
- public IWizardPage getNextPage() {
- int selection = combo.getSelectionIndex();
- getWizard().setGenerator(generators.get(selection));
- // getWizard().generatorPage.clearTarget();
- return getWizard().generatorPage;
- }
-
- public void handleEvent(Event event) {
- super.setPageComplete(true);
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2010, 2014 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ * Thibault Le Ouay t.leouay@sherpa-eng.com - Add SelectOutputPage
+ * Christian W. Damus (CEA) - bug 422257
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.wizard;
+
+import java.util.List;
+
+import org.eclipse.jface.wizard.IWizardPage;
+import org.eclipse.papyrus.customization.properties.generation.extensionpoint.GeneratorExtensionPoint;
+import org.eclipse.papyrus.customization.properties.generation.generators.IGenerator;
+import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.CCombo;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Listener;
+
+/**
+ * A WizardPage for selecting the method of generation (e.g. from Ecore
+ * Metamodel or from Profile model)
+ *
+ * @author Camille Letavernier
+ *
+ */
+public class CreateContextMainPage extends AbstractCreateContextPage implements Listener {
+
+ private CCombo combo;
+
+ private final List<IGenerator> generators;
+
+ /**
+ * Constructor
+ */
+ public CreateContextMainPage() {
+ super(Messages.CreateContextMainPage_title);
+
+ generators = new GeneratorExtensionPoint().getGenerators();
+ }
+
+ @Override
+ public void dispose() {
+ try {
+ for (IGenerator next : generators) {
+ next.dispose();
+ }
+ } finally {
+ super.dispose();
+ }
+ }
+
+ public void createControl(Composite parent) {
+ Composite root = new Composite(parent, SWT.NONE);
+ root.setLayout(new GridLayout(1, false));
+
+ combo = new CCombo(root, SWT.BORDER);
+ for (IGenerator generator : generators) {
+ combo.add(generator.getName());
+ }
+ combo.setEditable(false);
+ combo.setBackground(new Color(combo.getDisplay(), 255, 255, 255));
+ combo.select(0);
+ combo.addListener(SWT.Selection, this);
+ combo.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+
+ setControl(root);
+ setDescription(Messages.CreateContextMainPage_description);
+ }
+
+ @Override
+ public IWizardPage getNextPage() {
+ int selection = combo.getSelectionIndex();
+ getWizard().setGenerator(generators.get(selection));
+ // getWizard().generatorPage.clearTarget();
+ return getWizard().generatorPage;
+ }
+
+ public void handleEvent(Event event) {
+ super.setPageComplete(true);
+ }
+
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/GeneratorPage.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/GeneratorPage.java
index 720ec925260..56fe7cd89e6 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/GeneratorPage.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/GeneratorPage.java
@@ -1,321 +1,321 @@
-/*****************************************************************************
- * Copyright (c) 2010, 2014 CEA LIST and others.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Thibault Le Ouay t.leouay@sherpa-eng.com - Strategy improvement of generated files
- * Christian W. Damus (CEA) - bug 422257
- *
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.wizard;
-
-import java.util.List;
-
-import org.eclipse.core.databinding.Binding;
-import org.eclipse.core.databinding.DataBindingContext;
-import org.eclipse.core.databinding.UpdateValueStrategy;
-import org.eclipse.core.databinding.conversion.IConverter;
-import org.eclipse.core.databinding.observable.value.IObservableValue;
-import org.eclipse.core.databinding.observable.value.IValueChangeListener;
-import org.eclipse.core.databinding.observable.value.ValueChangeEvent;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.jface.databinding.wizard.WizardPageSupport;
-import org.eclipse.jface.wizard.IWizardPage;
-import org.eclipse.papyrus.customization.properties.generation.extensionpoint.LayoutExtensionPoint;
-import org.eclipse.papyrus.customization.properties.generation.generators.IGenerator;
-import org.eclipse.papyrus.customization.properties.generation.layout.ILayoutGenerator;
-import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
-import org.eclipse.papyrus.customization.properties.generation.validators.SourceValidator;
-import org.eclipse.papyrus.customization.properties.generation.validators.TargetValidator;
-import org.eclipse.papyrus.customization.properties.generation.wizard.widget.FileChooser;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.CCombo;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.layout.FillLayout;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Listener;
-
-/**
- * A WizardPage to display the selected generator's options, as well as the
- * context's target file. The options depend on the selected generator.
- *
- * @author Camille Letavernier
- */
-public class GeneratorPage extends AbstractCreateContextPage implements Listener {
-
- private final List<ILayoutGenerator> layoutGenerators;
-
- protected IGenerator generator;
-
- private Composite root, generatorControl;
-
- protected FileChooser targetFileChooser;
-
- private CCombo layoutCombo;
-
- protected IObservableValue srcTextObservable;
-
- protected IObservableValue targetTextObservable;
-
- protected UpdateValueStrategy srcFieldStrategy;
-
- protected UpdateValueStrategy targetFieldStrategy;
-
- protected SourceValidator srcValidator;
-
- protected TargetValidator targetValidator;
-
- protected Binding binding;
-
- protected DataBindingContext ctx;
-
- protected boolean next = false;
-
- protected URI oldURI;
-
- /**
- * Constructor.
- */
- public GeneratorPage() {
- super(Messages.GeneratorPage_title);
- ctx = new DataBindingContext();
- srcFieldStrategy = new UpdateValueStrategy();
- targetFieldStrategy = new UpdateValueStrategy();
-
- layoutGenerators = new LayoutExtensionPoint().getGenerators();
- }
-
- /**
- * Sets the IGenerator for this wizard, and displays its controls in the
- * page.
- *
- * @param generator
- */
- public void setGenerator(IGenerator generator) {
- cleanGeneratorControl();
- generator.addListener(this);
-
- setDescription(generator.getDescription());
- this.generator = generator;
- generator.createControls(generatorControl);
- generatorControl.layout();
- srcTextObservable = this.generator.getObservableValue();
- root.layout();
- }
-
- @Override
- public void dispose() {
- this.generator.removeListener(this);
- }
-
- @Override
- public boolean isPageComplete() {
- return targetFileChooser.getFilePath() != null && (generator != null && generator.isReady());
- }
-
- private void cleanGeneratorControl() {
- for (Control control : generatorControl.getChildren()) {
- control.dispose();
- }
- }
-
- @Override
- public void createControl(Composite parent) {
- root = new Composite(parent, SWT.NONE);
- root.setLayout(new GridLayout(2, false));
- root.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- generatorControl = new Composite(root, SWT.NONE);
- generatorControl.setLayout(new FillLayout());
- generatorControl.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 2, 1));
-
- Label layoutGeneratorLabel = new Label(root, SWT.NONE);
- layoutGeneratorLabel.setText(Messages.GeneratorPage_layoutGenerator);
- GridData data = new GridData();
- data.widthHint = 100;
- layoutGeneratorLabel.setLayoutData(data);
-
- layoutCombo = new CCombo(root, SWT.BORDER);
- layoutCombo.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
- layoutCombo.setEditable(false);
- layoutCombo.setBackground(new Color(layoutCombo.getDisplay(), 255, 255, 255));
- for (ILayoutGenerator layoutGenerator : layoutGenerators) {
- layoutCombo.add(layoutGenerator.getName());
- }
- layoutCombo.select(0);
-
- Label targetLabel = new Label(root, SWT.NONE);
- targetLabel.setText(Messages.GeneratorPage_target);
- data = new GridData();
- data.widthHint = 100;
- targetLabel.setLayoutData(data);
-
- targetFileChooser = new FileChooser(root, true);
- targetFileChooser.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
- targetFileChooser.addListener(this);
- targetTextObservable = targetFileChooser.getObservableValue();
- targetFileChooser.setFilterExtensions(new String[] { "ctx" });
- if (targetFieldStrategy != null) {
- targetFieldStrategy.setConverter(new IConverter() {
-
- @Override
- public Object getToType() {
-
- return String.class;
- }
-
- @Override
- public Object getFromType() {
- return String.class;
- }
-
- @Override
- public String convert(Object fromObject) {
- if (srcTextObservable != null) {
- return (String) srcTextObservable.getValue();
- } else if (targetFileChooser.getFilePath() != null) {
- return targetFileChooser.getFilePath();
-
- }
- return "";
- }
- });
- }
- if (srcFieldStrategy != null) {
- srcFieldStrategy.setConverter(new IConverter() {
-
- @Override
- public Object getToType() {
- return String.class;
- }
-
- @Override
- public Object getFromType() {
- return String.class;
- }
-
- @Override
- public String convert(Object fromObject) {
-
- if (fromObject instanceof String) {
- String stringObject = (String) fromObject;
- if (stringObject.equals("")) {
- return "";
- }
- String[] result = stringObject.split("/");
- String filename = result[result.length - 1];
- String[] ext = filename.split("\\.");
- StringBuilder builder = new StringBuilder();
-
- if (targetTextObservable != null) {
- String s = (String) targetTextObservable.getValue();
- if (!s.equals("")) {
- String original[] = s.split("/");
- builder.append("/");
- for (int i = 1; i < original.length - 1; i++) {
- builder.append(original[i]);
- builder.append("/");
-
- }
- } else {
- builder.append("/");
- builder.append(result[1]);
- builder.append("/properties/");
- }
- }
-
- builder.append(ext[0]);
- builder.append(".ctx");
- return builder.toString();
- }
- return "";
- }
- });
- }
- WizardPageSupport.create(this, ctx);
-
-
- setControl(root);
- }
-
- @Override
- public void handleEvent(Event event) {
-
- String filePath = targetFileChooser.getFilePath();
-
- if (filePath != null) {
- super.getContainer().updateButtons();
- }
-
-
-
- }
-
- @Override
- public IWizardPage getNextPage() {
- int selection = layoutCombo.getSelectionIndex();
- getWizard().layoutGenerator = layoutGenerators.get(selection);
- oldURI = URI.createPlatformResourceURI(targetFileChooser.getFilePath(), true);
-
- return super.getNextPage();
- }
-
- public void doBinding() {
- if (srcTextObservable != null || targetTextObservable != null) {
-
- srcValidator = new SourceValidator(generator);
- targetValidator = new TargetValidator();
- srcFieldStrategy.setAfterGetValidator(srcValidator);
- srcFieldStrategy.setAfterConvertValidator(targetValidator);
- targetFieldStrategy.setAfterGetValidator(targetValidator);
- targetFieldStrategy.setAfterConvertValidator(srcValidator);
- binding = ctx.bindValue(srcTextObservable, targetTextObservable, srcFieldStrategy, targetFieldStrategy);
-
- }
- }
-
- @Override
- public boolean canFlipToNextPage() {
- binding.getValidationStatus().addValueChangeListener(new IValueChangeListener() {
-
- @Override
- public void handleValueChange(ValueChangeEvent event) {
- IStatus status = (IStatus) event.diff.getNewValue();
- if (status.isOK() || status.getSeverity() == IStatus.WARNING) {
- setNext(true);
- } else {
- setNext(false);
- }
- }
-
- });
-
-
- return this.next;
- }
-
- public void setNext(boolean next) {
- this.next = next;
- super.getContainer().updateButtons();
-
-
- }
-
-
- public void setStrategy(int strategy) {
- this.generator.setStrategy(strategy);
-
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2010, 2014 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ * Thibault Le Ouay t.leouay@sherpa-eng.com - Strategy improvement of generated files
+ * Christian W. Damus (CEA) - bug 422257
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.wizard;
+
+import java.util.List;
+
+import org.eclipse.core.databinding.Binding;
+import org.eclipse.core.databinding.DataBindingContext;
+import org.eclipse.core.databinding.UpdateValueStrategy;
+import org.eclipse.core.databinding.conversion.IConverter;
+import org.eclipse.core.databinding.observable.value.IObservableValue;
+import org.eclipse.core.databinding.observable.value.IValueChangeListener;
+import org.eclipse.core.databinding.observable.value.ValueChangeEvent;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.jface.databinding.wizard.WizardPageSupport;
+import org.eclipse.jface.wizard.IWizardPage;
+import org.eclipse.papyrus.customization.properties.generation.extensionpoint.LayoutExtensionPoint;
+import org.eclipse.papyrus.customization.properties.generation.generators.IGenerator;
+import org.eclipse.papyrus.customization.properties.generation.layout.ILayoutGenerator;
+import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
+import org.eclipse.papyrus.customization.properties.generation.validators.SourceValidator;
+import org.eclipse.papyrus.customization.properties.generation.validators.TargetValidator;
+import org.eclipse.papyrus.customization.properties.generation.wizard.widget.FileChooser;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.CCombo;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Listener;
+
+/**
+ * A WizardPage to display the selected generator's options, as well as the
+ * context's target file. The options depend on the selected generator.
+ *
+ * @author Camille Letavernier
+ */
+public class GeneratorPage extends AbstractCreateContextPage implements Listener {
+
+ private final List<ILayoutGenerator> layoutGenerators;
+
+ protected IGenerator generator;
+
+ private Composite root, generatorControl;
+
+ protected FileChooser targetFileChooser;
+
+ private CCombo layoutCombo;
+
+ protected IObservableValue srcTextObservable;
+
+ protected IObservableValue targetTextObservable;
+
+ protected UpdateValueStrategy srcFieldStrategy;
+
+ protected UpdateValueStrategy targetFieldStrategy;
+
+ protected SourceValidator srcValidator;
+
+ protected TargetValidator targetValidator;
+
+ protected Binding binding;
+
+ protected DataBindingContext ctx;
+
+ protected boolean next = false;
+
+ protected URI oldURI;
+
+ /**
+ * Constructor.
+ */
+ public GeneratorPage() {
+ super(Messages.GeneratorPage_title);
+ ctx = new DataBindingContext();
+ srcFieldStrategy = new UpdateValueStrategy();
+ targetFieldStrategy = new UpdateValueStrategy();
+
+ layoutGenerators = new LayoutExtensionPoint().getGenerators();
+ }
+
+ /**
+ * Sets the IGenerator for this wizard, and displays its controls in the
+ * page.
+ *
+ * @param generator
+ */
+ public void setGenerator(IGenerator generator) {
+ cleanGeneratorControl();
+ generator.addListener(this);
+
+ setDescription(generator.getDescription());
+ this.generator = generator;
+ generator.createControls(generatorControl);
+ generatorControl.layout();
+ srcTextObservable = this.generator.getObservableValue();
+ root.layout();
+ }
+
+ @Override
+ public void dispose() {
+ this.generator.removeListener(this);
+ }
+
+ @Override
+ public boolean isPageComplete() {
+ return targetFileChooser.getFilePath() != null && (generator != null && generator.isReady());
+ }
+
+ private void cleanGeneratorControl() {
+ for (Control control : generatorControl.getChildren()) {
+ control.dispose();
+ }
+ }
+
+ @Override
+ public void createControl(Composite parent) {
+ root = new Composite(parent, SWT.NONE);
+ root.setLayout(new GridLayout(2, false));
+ root.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+
+ generatorControl = new Composite(root, SWT.NONE);
+ generatorControl.setLayout(new FillLayout());
+ generatorControl.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 2, 1));
+
+ Label layoutGeneratorLabel = new Label(root, SWT.NONE);
+ layoutGeneratorLabel.setText(Messages.GeneratorPage_layoutGenerator);
+ GridData data = new GridData();
+ data.widthHint = 100;
+ layoutGeneratorLabel.setLayoutData(data);
+
+ layoutCombo = new CCombo(root, SWT.BORDER);
+ layoutCombo.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+ layoutCombo.setEditable(false);
+ layoutCombo.setBackground(new Color(layoutCombo.getDisplay(), 255, 255, 255));
+ for (ILayoutGenerator layoutGenerator : layoutGenerators) {
+ layoutCombo.add(layoutGenerator.getName());
+ }
+ layoutCombo.select(0);
+
+ Label targetLabel = new Label(root, SWT.NONE);
+ targetLabel.setText(Messages.GeneratorPage_target);
+ data = new GridData();
+ data.widthHint = 100;
+ targetLabel.setLayoutData(data);
+
+ targetFileChooser = new FileChooser(root, true);
+ targetFileChooser.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+ targetFileChooser.addListener(this);
+ targetTextObservable = targetFileChooser.getObservableValue();
+ targetFileChooser.setFilterExtensions(new String[] { "ctx" });
+ if (targetFieldStrategy != null) {
+ targetFieldStrategy.setConverter(new IConverter() {
+
+ @Override
+ public Object getToType() {
+
+ return String.class;
+ }
+
+ @Override
+ public Object getFromType() {
+ return String.class;
+ }
+
+ @Override
+ public String convert(Object fromObject) {
+ if (srcTextObservable != null) {
+ return (String) srcTextObservable.getValue();
+ } else if (targetFileChooser.getFilePath() != null) {
+ return targetFileChooser.getFilePath();
+
+ }
+ return "";
+ }
+ });
+ }
+ if (srcFieldStrategy != null) {
+ srcFieldStrategy.setConverter(new IConverter() {
+
+ @Override
+ public Object getToType() {
+ return String.class;
+ }
+
+ @Override
+ public Object getFromType() {
+ return String.class;
+ }
+
+ @Override
+ public String convert(Object fromObject) {
+
+ if (fromObject instanceof String) {
+ String stringObject = (String) fromObject;
+ if (stringObject.equals("")) {
+ return "";
+ }
+ String[] result = stringObject.split("/");
+ String filename = result[result.length - 1];
+ String[] ext = filename.split("\\.");
+ StringBuilder builder = new StringBuilder();
+
+ if (targetTextObservable != null) {
+ String s = (String) targetTextObservable.getValue();
+ if (!s.equals("")) {
+ String original[] = s.split("/");
+ builder.append("/");
+ for (int i = 1; i < original.length - 1; i++) {
+ builder.append(original[i]);
+ builder.append("/");
+
+ }
+ } else {
+ builder.append("/");
+ builder.append(result[1]);
+ builder.append("/properties/");
+ }
+ }
+
+ builder.append(ext[0]);
+ builder.append(".ctx");
+ return builder.toString();
+ }
+ return "";
+ }
+ });
+ }
+ WizardPageSupport.create(this, ctx);
+
+
+ setControl(root);
+ }
+
+ @Override
+ public void handleEvent(Event event) {
+
+ String filePath = targetFileChooser.getFilePath();
+
+ if (filePath != null) {
+ super.getContainer().updateButtons();
+ }
+
+
+
+ }
+
+ @Override
+ public IWizardPage getNextPage() {
+ int selection = layoutCombo.getSelectionIndex();
+ getWizard().layoutGenerator = layoutGenerators.get(selection);
+ oldURI = URI.createPlatformResourceURI(targetFileChooser.getFilePath(), true);
+
+ return super.getNextPage();
+ }
+
+ public void doBinding() {
+ if (srcTextObservable != null || targetTextObservable != null) {
+
+ srcValidator = new SourceValidator(generator);
+ targetValidator = new TargetValidator();
+ srcFieldStrategy.setAfterGetValidator(srcValidator);
+ srcFieldStrategy.setAfterConvertValidator(targetValidator);
+ targetFieldStrategy.setAfterGetValidator(targetValidator);
+ targetFieldStrategy.setAfterConvertValidator(srcValidator);
+ binding = ctx.bindValue(srcTextObservable, targetTextObservable, srcFieldStrategy, targetFieldStrategy);
+
+ }
+ }
+
+ @Override
+ public boolean canFlipToNextPage() {
+ binding.getValidationStatus().addValueChangeListener(new IValueChangeListener() {
+
+ @Override
+ public void handleValueChange(ValueChangeEvent event) {
+ IStatus status = (IStatus) event.diff.getNewValue();
+ if (status.isOK() || status.getSeverity() == IStatus.WARNING) {
+ setNext(true);
+ } else {
+ setNext(false);
+ }
+ }
+
+ });
+
+
+ return this.next;
+ }
+
+ public void setNext(boolean next) {
+ this.next = next;
+ super.getContainer().updateButtons();
+
+
+ }
+
+
+ public void setStrategy(int strategy) {
+ this.generator.setStrategy(strategy);
+
+ }
+
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/SelectFieldsPage.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/SelectFieldsPage.java
index 631eacbb11c..3bbf4f164c6 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/SelectFieldsPage.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/SelectFieldsPage.java
@@ -1,335 +1,335 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.wizard;
-
-import java.util.List;
-
-import org.eclipse.core.databinding.observable.value.IObservableValue;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.databinding.EMFProperties;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jface.viewers.ColumnWeightData;
-import org.eclipse.jface.viewers.TableLayout;
-import org.eclipse.jface.viewers.TreeViewer;
-import org.eclipse.papyrus.customization.properties.generation.Activator;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionFactory;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
-import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
-import org.eclipse.papyrus.customization.properties.generation.generators.IGenerator;
-import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
-import org.eclipse.papyrus.customization.properties.generation.providers.DataContextPropertiesContentProvider;
-import org.eclipse.papyrus.customization.properties.generation.providers.DataContextPropertiesLabelProvider;
-import org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton;
-import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
-import org.eclipse.papyrus.infra.properties.contexts.Context;
-import org.eclipse.papyrus.infra.properties.contexts.DataContextElement;
-import org.eclipse.papyrus.infra.properties.contexts.DataContextPackage;
-import org.eclipse.papyrus.infra.properties.contexts.DataContextRoot;
-import org.eclipse.papyrus.infra.properties.contexts.Property;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.TreeEditor;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Tree;
-import org.eclipse.swt.widgets.TreeColumn;
-import org.eclipse.swt.widgets.TreeItem;
-
-/**
- * A WizardPage to choose the fields that will be displayed in the Property view.
- * For each property, the choice can be either "True", "False" or "Default".
- * The visibility of properties marked as Default is decided by the Generator.
- * When the context is regenerated, the visibility of properties marked as default
- * may change (If the generator is changed)
- *
- * @author Camille Letavernier
- */
-public class SelectFieldsPage extends AbstractCreateContextPage {
-
- private List<URI> targetURI;
-
- private List<Context> contexts;
-
- private Composite root;
-
- private FieldSelection fieldSelection;
-
- public int fieldColumn = -1, selectionSingleColumn = -1, selectionMultipleColumn = -1, descriptionColumn = -1;
-
- private int columnId = 0;
-
-
- /**
- * Constructor.
- */
- protected SelectFieldsPage() {
- super(Messages.SelectFieldsPage_title);
- }
-
- public void createControl(Composite parent) {
- root = new Composite(parent, SWT.NONE);
- root.setLayout(new GridLayout(1, true));
-
- setControl(root);
- setPageComplete(false);
-
- setDescription(Messages.SelectFieldsPage_selectFields);
- }
-
- /**
- * Sets the generated partial context
- *
- * @param context
- * The partially generated context
- */
- public void setContexts(List<Context> contexts) {
- if (contexts == null || contexts.isEmpty()) {
- Activator.log.warn("Generated context is null"); //$NON-NLS-1$
- return;
- }
-
- this.contexts = contexts;
-
- fieldSelection = createNewFieldSelection();
-
- getWizard().setContexts(contexts);
-
- Label label = new Label(root, SWT.NONE);
- label.setText(Messages.SelectFieldsPage_availableFields);
-
- TreeViewer viewer = new TreeViewer(root, SWT.BORDER);
- Tree tree = viewer.getTree();
- tree.setBackground(tree.getDisplay().getSystemColor(SWT.COLOR_WHITE));
- tree.setLayout(new TableLayout());
- tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- fieldColumn = addColumn(tree, Messages.SelectFieldsPage_field, 40, 200);
- selectionSingleColumn = addColumn(tree, Messages.SelectFieldsPage_displaySingle, 25, 120);
- selectionMultipleColumn = addColumn(tree, Messages.SelectFieldsPage_displayMultiple, 25, 120);
- descriptionColumn = addColumn(tree, Messages.SelectFieldsPage_description, 60, 300);
-
- tree.setHeaderVisible(true);
-
- viewer.setContentProvider(new DataContextPropertiesContentProvider(contexts));
- viewer.setLabelProvider(new DataContextPropertiesLabelProvider(this));
- viewer.setInput(new Object());
-
- viewer.expandAll();
-
- installEditors(viewer);
-
- root.layout();
- }
-
- /**
- * Creates a column in the treeViewer and returns its id
- */
- private int addColumn(Tree tree, String label, int weight, int minimumWidth) {
- TreeColumn column = new TreeColumn(tree, SWT.NONE);
-
- column.setText(label);
- column.setResizable(true);
- ((TableLayout) tree.getLayout()).addColumnData(new ColumnWeightData(weight, minimumWidth));
-
- return columnId++;
- }
-
- private void installEditors(TreeViewer viewer) {
- Tree tree = viewer.getTree();
-
- for (TreeItem treeItem : tree.getItems()) {
- installEditors(treeItem);
- }
- }
-
- private void installEditors(TreeItem treeItem) {
-
- EObject eObject = EMFHelper.getEObject(treeItem.getData());
- if (eObject instanceof Property) {
- Property property = (Property) eObject;
-
- boolean defaultSingleValue = getGenerator().isSelectedSingle(property);
- boolean defaultMultipleValue = getGenerator().isSelectedMultiple(property);
-
- PropertyDefinition propertyDefinition = getWizard().getPropertyDefinition(fieldSelection, property);
-
- IObservableValue singleValue = EMFProperties.value(FieldSelectionPackage.eINSTANCE.getPropertyDefinition_ValueSingle()).observe(propertyDefinition);
- IObservableValue multipleValue = EMFProperties.value(FieldSelectionPackage.eINSTANCE.getPropertyDefinition_ValueMultiple()).observe(propertyDefinition);
-
- createTreeEditor(treeItem, selectionSingleColumn, defaultSingleValue, singleValue);
- createTreeEditor(treeItem, selectionMultipleColumn, defaultMultipleValue, multipleValue);
- }
-
- for (TreeItem subItem : treeItem.getItems()) {
- installEditors(subItem);
- }
-
- }
-
- private void createTreeEditor(TreeItem treeItem, int columnIndex, boolean defaultValue, IObservableValue observable) {
- Tree tree = treeItem.getParent();
-
- TernaryButton button = new TernaryButton(tree, defaultValue);
-
- TreeEditor editor = new TreeEditor(tree);
- editor.horizontalAlignment = SWT.CENTER;
- editor.grabHorizontal = true;
-
- editor.setEditor(button, treeItem, columnIndex);
-
- button.setObservable(observable);
- }
-
- private FieldSelection createNewFieldSelection() {
- FieldSelection selection = FieldSelectionFactory.eINSTANCE.createFieldSelection();
-
- for (Context context : contexts) {
- for (DataContextRoot dataContextRoot : context.getDataContexts()) {
- ContextElement definition = createContextPackage(dataContextRoot);
- selection.getContextElements().add(definition);
- }
- }
-
- return selection;
- }
-
- private ContextElement createContextPackage(DataContextPackage sourcePackage) {
- ContextElement element = createContextElement(sourcePackage);
-
- for (DataContextElement sourceElement : sourcePackage.getElements()) {
- ContextElement subElement;
- if (sourceElement instanceof DataContextPackage) {
- subElement = createContextPackage((DataContextPackage) sourceElement);
- } else {
- subElement = createContextElement(sourceElement);
- }
- element.getElements().add(subElement);
- }
- return element;
- }
-
- private ContextElement createContextElement(DataContextElement sourceElement) {
- ContextElement element = FieldSelectionFactory.eINSTANCE.createContextElement();
- element.setName(sourceElement.getName());
-
- for (Property property : sourceElement.getProperties()) {
- PropertyDefinition propertyDefinition = FieldSelectionFactory.eINSTANCE.createPropertyDefinition();
- propertyDefinition.setName(property.getName());
- propertyDefinition.setValueSingle(TernaryButton.State.DEFAULT);
- propertyDefinition.setValueMultiple(TernaryButton.State.DEFAULT);
- element.getProperties().add(propertyDefinition);
- }
-
- return element;
- }
-
- private void displayFields(DataContextElement contextElement, TreeViewer treeViewer) {
-
- // if(contextElement.getProperties().size() > 0) {
- //
- // Label separator = new Label(fields, SWT.SEPARATOR | SWT.HORIZONTAL);
- // GridData data = new GridData(SWT.FILL, SWT.CENTER, true, false, 4, 1);
- // separator.setLayoutData(data);
- //
- // Label elementName = new Label(fields, SWT.NONE);
- // elementName.setText(contextElement.getName());
- // FontData[] fontDatas = elementName.getFont().getFontData();
- // for(FontData fontData : fontDatas) {
- // fontData.setStyle(SWT.BOLD);
- // // fontData.setHeight(fontData.getHeight() + 2);
- // }
- // elementName.setFont(new Font(elementName.getDisplay(), fontDatas));
- //
- // data = new GridData(SWT.FILL, SWT.CENTER, true, false, 4, 1);
- // elementName.setLayoutData(data);
- //
- // Label separator2 = new Label(fields, SWT.SEPARATOR | SWT.HORIZONTAL);
- // data = new GridData(SWT.FILL, SWT.CENTER, true, false, 4, 1);
- // separator2.setLayoutData(data);
- //
- // for(Property property : contextElement.getProperties()) {
- // Label label = new Label(fields, SWT.NONE);
- // label.setText(property.getName());
- //
- // TernaryButton showSingle = new TernaryButton(fields, getGenerator().isSelectedSingle(property));
- // TernaryButton showMultiple = new TernaryButton(fields, getGenerator().isSelectedMultiple(property));
- //
- // PropertyDefinition propertyDefinition = getWizard().getPropertyDefinition(fieldSelection, property);
- //
- // IObservableValue singleValue = EMFProperties.value(FieldSelectionPackage.eINSTANCE.getPropertyDefinition_ValueSingle()).observe(propertyDefinition);
- // IObservableValue multipleValue = EMFProperties.value(FieldSelectionPackage.eINSTANCE.getPropertyDefinition_ValueMultiple()).observe(propertyDefinition);
- //
- // showSingle.setObservable(singleValue);
- // showMultiple.setObservable(multipleValue);
- //
- // Label description = new Label(fields, SWT.WRAP);
- // String propertyDescription = "";// property.getTooltipText(); //$NON-NLS-1$
- // if(propertyDescription == null || propertyDescription.trim().equals("")) { //$NON-NLS-1$
- // propertyDescription = Messages.SelectFieldsPage_descriptionNotAvailable;
- // description.setAlignment(SWT.CENTER);
- // }
- // description.setText(propertyDescription);
- //
- // data = new GridData(SWT.FILL, SWT.CENTER, true, false);
- // label.setLayoutData(data);
- // data = new GridData(SWT.FILL, SWT.CENTER, true, false);
- // showSingle.setLayoutData(data);
- // data = new GridData(SWT.FILL, SWT.CENTER, true, false);
- // showMultiple.setLayoutData(data);
- // data = new GridData(SWT.CENTER, SWT.CENTER, true, false);
- // data.widthHint = 500;
- // description.setLayoutData(data);
- // }
- // }
- //
- // if(contextElement instanceof DataContextPackage) {
- // DataContextPackage contextPackage = (DataContextPackage)contextElement;
- // for(DataContextElement element : contextPackage.getElements()) {
- // displayFields(element, treeViewer);
- // }
- // }
- }
-
- private IGenerator getGenerator() {
- return getWizard().generator;
- }
-
- /**
- * Sets the URI of the generated context
- *
- * @param uri
- * The URI of the generated context
- */
- public void setTargetURI(List<URI> uri) {
- this.targetURI = uri;
- }
-
- @Override
- public void setVisible(boolean visible) {
- super.setPageComplete(true);
- super.setVisible(visible);
- if (contexts == null && visible) {
- setContexts(getWizard().generator.generate(targetURI));
- }
- }
-
- /**
- * @return the result of the user's field selection
- */
- public FieldSelection getFieldSelection() {
- return fieldSelection;
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.wizard;
+
+import java.util.List;
+
+import org.eclipse.core.databinding.observable.value.IObservableValue;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.databinding.EMFProperties;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.jface.viewers.ColumnWeightData;
+import org.eclipse.jface.viewers.TableLayout;
+import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.papyrus.customization.properties.generation.Activator;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.ContextElement;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelection;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionFactory;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.FieldSelectionPackage;
+import org.eclipse.papyrus.customization.properties.generation.fieldselection.PropertyDefinition;
+import org.eclipse.papyrus.customization.properties.generation.generators.IGenerator;
+import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
+import org.eclipse.papyrus.customization.properties.generation.providers.DataContextPropertiesContentProvider;
+import org.eclipse.papyrus.customization.properties.generation.providers.DataContextPropertiesLabelProvider;
+import org.eclipse.papyrus.customization.properties.generation.wizard.widget.TernaryButton;
+import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
+import org.eclipse.papyrus.infra.properties.contexts.Context;
+import org.eclipse.papyrus.infra.properties.contexts.DataContextElement;
+import org.eclipse.papyrus.infra.properties.contexts.DataContextPackage;
+import org.eclipse.papyrus.infra.properties.contexts.DataContextRoot;
+import org.eclipse.papyrus.infra.properties.contexts.Property;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.TreeEditor;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Tree;
+import org.eclipse.swt.widgets.TreeColumn;
+import org.eclipse.swt.widgets.TreeItem;
+
+/**
+ * A WizardPage to choose the fields that will be displayed in the Property view.
+ * For each property, the choice can be either "True", "False" or "Default".
+ * The visibility of properties marked as Default is decided by the Generator.
+ * When the context is regenerated, the visibility of properties marked as default
+ * may change (If the generator is changed)
+ *
+ * @author Camille Letavernier
+ */
+public class SelectFieldsPage extends AbstractCreateContextPage {
+
+ private List<URI> targetURI;
+
+ private List<Context> contexts;
+
+ private Composite root;
+
+ private FieldSelection fieldSelection;
+
+ public int fieldColumn = -1, selectionSingleColumn = -1, selectionMultipleColumn = -1, descriptionColumn = -1;
+
+ private int columnId = 0;
+
+
+ /**
+ * Constructor.
+ */
+ protected SelectFieldsPage() {
+ super(Messages.SelectFieldsPage_title);
+ }
+
+ public void createControl(Composite parent) {
+ root = new Composite(parent, SWT.NONE);
+ root.setLayout(new GridLayout(1, true));
+
+ setControl(root);
+ setPageComplete(false);
+
+ setDescription(Messages.SelectFieldsPage_selectFields);
+ }
+
+ /**
+ * Sets the generated partial context
+ *
+ * @param context
+ * The partially generated context
+ */
+ public void setContexts(List<Context> contexts) {
+ if (contexts == null || contexts.isEmpty()) {
+ Activator.log.warn("Generated context is null"); //$NON-NLS-1$
+ return;
+ }
+
+ this.contexts = contexts;
+
+ fieldSelection = createNewFieldSelection();
+
+ getWizard().setContexts(contexts);
+
+ Label label = new Label(root, SWT.NONE);
+ label.setText(Messages.SelectFieldsPage_availableFields);
+
+ TreeViewer viewer = new TreeViewer(root, SWT.BORDER);
+ Tree tree = viewer.getTree();
+ tree.setBackground(tree.getDisplay().getSystemColor(SWT.COLOR_WHITE));
+ tree.setLayout(new TableLayout());
+ tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+
+ fieldColumn = addColumn(tree, Messages.SelectFieldsPage_field, 40, 200);
+ selectionSingleColumn = addColumn(tree, Messages.SelectFieldsPage_displaySingle, 25, 120);
+ selectionMultipleColumn = addColumn(tree, Messages.SelectFieldsPage_displayMultiple, 25, 120);
+ descriptionColumn = addColumn(tree, Messages.SelectFieldsPage_description, 60, 300);
+
+ tree.setHeaderVisible(true);
+
+ viewer.setContentProvider(new DataContextPropertiesContentProvider(contexts));
+ viewer.setLabelProvider(new DataContextPropertiesLabelProvider(this));
+ viewer.setInput(new Object());
+
+ viewer.expandAll();
+
+ installEditors(viewer);
+
+ root.layout();
+ }
+
+ /**
+ * Creates a column in the treeViewer and returns its id
+ */
+ private int addColumn(Tree tree, String label, int weight, int minimumWidth) {
+ TreeColumn column = new TreeColumn(tree, SWT.NONE);
+
+ column.setText(label);
+ column.setResizable(true);
+ ((TableLayout) tree.getLayout()).addColumnData(new ColumnWeightData(weight, minimumWidth));
+
+ return columnId++;
+ }
+
+ private void installEditors(TreeViewer viewer) {
+ Tree tree = viewer.getTree();
+
+ for (TreeItem treeItem : tree.getItems()) {
+ installEditors(treeItem);
+ }
+ }
+
+ private void installEditors(TreeItem treeItem) {
+
+ EObject eObject = EMFHelper.getEObject(treeItem.getData());
+ if (eObject instanceof Property) {
+ Property property = (Property) eObject;
+
+ boolean defaultSingleValue = getGenerator().isSelectedSingle(property);
+ boolean defaultMultipleValue = getGenerator().isSelectedMultiple(property);
+
+ PropertyDefinition propertyDefinition = getWizard().getPropertyDefinition(fieldSelection, property);
+
+ IObservableValue singleValue = EMFProperties.value(FieldSelectionPackage.eINSTANCE.getPropertyDefinition_ValueSingle()).observe(propertyDefinition);
+ IObservableValue multipleValue = EMFProperties.value(FieldSelectionPackage.eINSTANCE.getPropertyDefinition_ValueMultiple()).observe(propertyDefinition);
+
+ createTreeEditor(treeItem, selectionSingleColumn, defaultSingleValue, singleValue);
+ createTreeEditor(treeItem, selectionMultipleColumn, defaultMultipleValue, multipleValue);
+ }
+
+ for (TreeItem subItem : treeItem.getItems()) {
+ installEditors(subItem);
+ }
+
+ }
+
+ private void createTreeEditor(TreeItem treeItem, int columnIndex, boolean defaultValue, IObservableValue observable) {
+ Tree tree = treeItem.getParent();
+
+ TernaryButton button = new TernaryButton(tree, defaultValue);
+
+ TreeEditor editor = new TreeEditor(tree);
+ editor.horizontalAlignment = SWT.CENTER;
+ editor.grabHorizontal = true;
+
+ editor.setEditor(button, treeItem, columnIndex);
+
+ button.setObservable(observable);
+ }
+
+ private FieldSelection createNewFieldSelection() {
+ FieldSelection selection = FieldSelectionFactory.eINSTANCE.createFieldSelection();
+
+ for (Context context : contexts) {
+ for (DataContextRoot dataContextRoot : context.getDataContexts()) {
+ ContextElement definition = createContextPackage(dataContextRoot);
+ selection.getContextElements().add(definition);
+ }
+ }
+
+ return selection;
+ }
+
+ private ContextElement createContextPackage(DataContextPackage sourcePackage) {
+ ContextElement element = createContextElement(sourcePackage);
+
+ for (DataContextElement sourceElement : sourcePackage.getElements()) {
+ ContextElement subElement;
+ if (sourceElement instanceof DataContextPackage) {
+ subElement = createContextPackage((DataContextPackage) sourceElement);
+ } else {
+ subElement = createContextElement(sourceElement);
+ }
+ element.getElements().add(subElement);
+ }
+ return element;
+ }
+
+ private ContextElement createContextElement(DataContextElement sourceElement) {
+ ContextElement element = FieldSelectionFactory.eINSTANCE.createContextElement();
+ element.setName(sourceElement.getName());
+
+ for (Property property : sourceElement.getProperties()) {
+ PropertyDefinition propertyDefinition = FieldSelectionFactory.eINSTANCE.createPropertyDefinition();
+ propertyDefinition.setName(property.getName());
+ propertyDefinition.setValueSingle(TernaryButton.State.DEFAULT);
+ propertyDefinition.setValueMultiple(TernaryButton.State.DEFAULT);
+ element.getProperties().add(propertyDefinition);
+ }
+
+ return element;
+ }
+
+ private void displayFields(DataContextElement contextElement, TreeViewer treeViewer) {
+
+ // if(contextElement.getProperties().size() > 0) {
+ //
+ // Label separator = new Label(fields, SWT.SEPARATOR | SWT.HORIZONTAL);
+ // GridData data = new GridData(SWT.FILL, SWT.CENTER, true, false, 4, 1);
+ // separator.setLayoutData(data);
+ //
+ // Label elementName = new Label(fields, SWT.NONE);
+ // elementName.setText(contextElement.getName());
+ // FontData[] fontDatas = elementName.getFont().getFontData();
+ // for(FontData fontData : fontDatas) {
+ // fontData.setStyle(SWT.BOLD);
+ // // fontData.setHeight(fontData.getHeight() + 2);
+ // }
+ // elementName.setFont(new Font(elementName.getDisplay(), fontDatas));
+ //
+ // data = new GridData(SWT.FILL, SWT.CENTER, true, false, 4, 1);
+ // elementName.setLayoutData(data);
+ //
+ // Label separator2 = new Label(fields, SWT.SEPARATOR | SWT.HORIZONTAL);
+ // data = new GridData(SWT.FILL, SWT.CENTER, true, false, 4, 1);
+ // separator2.setLayoutData(data);
+ //
+ // for(Property property : contextElement.getProperties()) {
+ // Label label = new Label(fields, SWT.NONE);
+ // label.setText(property.getName());
+ //
+ // TernaryButton showSingle = new TernaryButton(fields, getGenerator().isSelectedSingle(property));
+ // TernaryButton showMultiple = new TernaryButton(fields, getGenerator().isSelectedMultiple(property));
+ //
+ // PropertyDefinition propertyDefinition = getWizard().getPropertyDefinition(fieldSelection, property);
+ //
+ // IObservableValue singleValue = EMFProperties.value(FieldSelectionPackage.eINSTANCE.getPropertyDefinition_ValueSingle()).observe(propertyDefinition);
+ // IObservableValue multipleValue = EMFProperties.value(FieldSelectionPackage.eINSTANCE.getPropertyDefinition_ValueMultiple()).observe(propertyDefinition);
+ //
+ // showSingle.setObservable(singleValue);
+ // showMultiple.setObservable(multipleValue);
+ //
+ // Label description = new Label(fields, SWT.WRAP);
+ // String propertyDescription = "";// property.getTooltipText(); //$NON-NLS-1$
+ // if(propertyDescription == null || propertyDescription.trim().equals("")) { //$NON-NLS-1$
+ // propertyDescription = Messages.SelectFieldsPage_descriptionNotAvailable;
+ // description.setAlignment(SWT.CENTER);
+ // }
+ // description.setText(propertyDescription);
+ //
+ // data = new GridData(SWT.FILL, SWT.CENTER, true, false);
+ // label.setLayoutData(data);
+ // data = new GridData(SWT.FILL, SWT.CENTER, true, false);
+ // showSingle.setLayoutData(data);
+ // data = new GridData(SWT.FILL, SWT.CENTER, true, false);
+ // showMultiple.setLayoutData(data);
+ // data = new GridData(SWT.CENTER, SWT.CENTER, true, false);
+ // data.widthHint = 500;
+ // description.setLayoutData(data);
+ // }
+ // }
+ //
+ // if(contextElement instanceof DataContextPackage) {
+ // DataContextPackage contextPackage = (DataContextPackage)contextElement;
+ // for(DataContextElement element : contextPackage.getElements()) {
+ // displayFields(element, treeViewer);
+ // }
+ // }
+ }
+
+ private IGenerator getGenerator() {
+ return getWizard().generator;
+ }
+
+ /**
+ * Sets the URI of the generated context
+ *
+ * @param uri
+ * The URI of the generated context
+ */
+ public void setTargetURI(List<URI> uri) {
+ this.targetURI = uri;
+ }
+
+ @Override
+ public void setVisible(boolean visible) {
+ super.setPageComplete(true);
+ super.setVisible(visible);
+ if (contexts == null && visible) {
+ setContexts(getWizard().generator.generate(targetURI));
+ }
+ }
+
+ /**
+ * @return the result of the user's field selection
+ */
+ public FieldSelection getFieldSelection() {
+ return fieldSelection;
+ }
+
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/SelectOutputPage.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/SelectOutputPage.java
index 3ad07dde918..7861315abc5 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/SelectOutputPage.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/SelectOutputPage.java
@@ -1,199 +1,199 @@
-/*****************************************************************************
- * 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:
- * Thibault Le Ouay t.leouay@sherpa-eng.com
- *****************************************************************************/
-
-package org.eclipse.papyrus.customization.properties.generation.wizard;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.jface.viewers.ArrayContentProvider;
-import org.eclipse.jface.viewers.CheckStateChangedEvent;
-import org.eclipse.jface.viewers.CheckboxTableViewer;
-import org.eclipse.jface.viewers.ColumnLabelProvider;
-import org.eclipse.jface.viewers.ICheckStateListener;
-import org.eclipse.jface.viewers.ViewerSorter;
-import org.eclipse.jface.wizard.IWizardPage;
-import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.CCombo;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.uml2.uml.Package;
-
-public class SelectOutputPage extends AbstractCreateContextPage implements Listener {
-
- private CheckboxTableViewer viewer;
-
- protected CCombo combo;
-
- private Table table;
-
- public SelectOutputPage() {
- super(Messages.SelectOutputPage_0);
- }
-
- public void createControl(Composite parent) {
-
- Composite root = new Composite(parent, SWT.NONE);
- root.setLayout(new GridLayout(1, false));
-
- combo = new CCombo(root, SWT.BORDER);
- setDescription(Messages.SelectOutputPage_1);
- combo.add(Messages.SelectOutputPage_2);
- combo.add(Messages.SelectOutputPage_3);
- combo.add(Messages.SelectOutputPage_4);
- combo.setEditable(false);
- combo.setBackground(new Color(combo.getDisplay(), 255, 255, 255));
- combo.select(0);
- combo.addListener(SWT.Selection, this);
- combo.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
-
- setControl(root);
- viewer = new CheckboxTableViewer(root, SWT.MULTI | SWT.H_SCROLL | SWT.FILL | SWT.FULL_SELECTION | SWT.BORDER);
- table = viewer.getTable();
- table.setVisible(false);
- table.setHeaderVisible(true);
- viewer.setContentProvider(new ArrayContentProvider());
-
- GridData gridData = new GridData();
- gridData.verticalAlignment = GridData.FILL;
- gridData.horizontalSpan = 1;
- gridData.grabExcessHorizontalSpace = true;
- gridData.grabExcessVerticalSpace = true;
- gridData.horizontalAlignment = GridData.FILL;
-
- viewer.getControl().setLayoutData(gridData);
- viewer.setLabelProvider(new ColumnLabelProvider() {
-
- @Override
- public String getText(Object element) {
-
- if (element instanceof EPackage) {
- EPackage p = (EPackage) element;
- return "Ecore package Name : " + p.getName(); //$NON-NLS-1$
-
- }
- if (element instanceof Package) {
- Package p = (Package) element;
- return "Profile name : " + p.getName(); //$NON-NLS-1$
- }
- return null;
- }
-
- });
- viewer.setInput(new Object());
- viewer.setSorter(new ViewerSorter());
- viewer.addCheckStateListener(new ICheckStateListener() {
-
- public void checkStateChanged(CheckStateChangedEvent event) {
- UpdateButton();
-
- }
- });
- }
-
- public void handleEvent(Event event) {
-
- if (combo.getSelectionIndex() != 0) {
- table.setVisible(true);
-
- } else {
- table.setVisible(false);
- }
- canFlipToNextPage();
- super.getContainer().updateButtons();
- }
-
- public void setSelectorData() {
-
- viewer.setInput(getWizard().generator.getExternalReference());
- }
-
- @Override
- public void setVisible(boolean visible) {
- super.setVisible(visible);
-
- if (visible) {
- setSelectorData();
- }
- }
-
- @Override
- public IWizardPage getNextPage() {
- int selection = combo.getSelectionIndex();
- getWizard().selectFieldsPage.setTargetURI(getListPackage(selection));
- getWizard().generatorPage.setStrategy(selection);
- return getWizard().selectFieldsPage;
- }
-
- public List<URI> getListPackage(int selection) {
- List<URI> list = new ArrayList<URI>();
-
- if (selection == 0) {
- list.add(getWizard().generatorPage.oldURI);
-
- } else {
- for (Object o : viewer.getCheckedElements()) {
- if (o instanceof EPackage) {
- EPackage p = (EPackage) o;
- if (selection == 1) {
- list.add(getWizard().generatorPage.oldURI);
- } else {
- String temp = getWizard().generatorPage.oldURI.toString();
- temp = temp.substring(0, temp.lastIndexOf("/")); //$NON-NLS-1$
- String result = temp + "/" + p.getName() + ".ctx"; //$NON-NLS-1$ //$NON-NLS-2$
- list.add(URI.createURI(result, true));
- }
- getWizard().generator.addCheckElement(o);
- }
- if (o instanceof Package) {
- Package p = (Package) o;
- if (selection == 1) {
- list.add(getWizard().generatorPage.oldURI);
- } else {
- String temp = getWizard().generatorPage.oldURI.toString();
- temp = temp.substring(0, temp.lastIndexOf("/")); //$NON-NLS-1$
- String result = temp + "/" + p.getName() + ".ctx"; //$NON-NLS-1$ //$NON-NLS-2$
- list.add(URI.createURI(result, true));
- }
- getWizard().generator.addCheckElement(o);
-
- }
-
- }
- }
- return list;
- }
-
- @Override
- public boolean canFlipToNextPage() {
- if (combo.getSelectionIndex() != 0) {
- if (viewer.getCheckedElements().length == 0) {
- return false;
- }
- }
- return true;
-
- }
-
- public void UpdateButton() {
- canFlipToNextPage();
- super.getContainer().updateButtons();
- }
-}
+/*****************************************************************************
+ * 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:
+ * Thibault Le Ouay t.leouay@sherpa-eng.com
+ *****************************************************************************/
+
+package org.eclipse.papyrus.customization.properties.generation.wizard;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.jface.viewers.ArrayContentProvider;
+import org.eclipse.jface.viewers.CheckStateChangedEvent;
+import org.eclipse.jface.viewers.CheckboxTableViewer;
+import org.eclipse.jface.viewers.ColumnLabelProvider;
+import org.eclipse.jface.viewers.ICheckStateListener;
+import org.eclipse.jface.viewers.ViewerSorter;
+import org.eclipse.jface.wizard.IWizardPage;
+import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.CCombo;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Listener;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.uml2.uml.Package;
+
+public class SelectOutputPage extends AbstractCreateContextPage implements Listener {
+
+ private CheckboxTableViewer viewer;
+
+ protected CCombo combo;
+
+ private Table table;
+
+ public SelectOutputPage() {
+ super(Messages.SelectOutputPage_0);
+ }
+
+ public void createControl(Composite parent) {
+
+ Composite root = new Composite(parent, SWT.NONE);
+ root.setLayout(new GridLayout(1, false));
+
+ combo = new CCombo(root, SWT.BORDER);
+ setDescription(Messages.SelectOutputPage_1);
+ combo.add(Messages.SelectOutputPage_2);
+ combo.add(Messages.SelectOutputPage_3);
+ combo.add(Messages.SelectOutputPage_4);
+ combo.setEditable(false);
+ combo.setBackground(new Color(combo.getDisplay(), 255, 255, 255));
+ combo.select(0);
+ combo.addListener(SWT.Selection, this);
+ combo.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+
+ setControl(root);
+ viewer = new CheckboxTableViewer(root, SWT.MULTI | SWT.H_SCROLL | SWT.FILL | SWT.FULL_SELECTION | SWT.BORDER);
+ table = viewer.getTable();
+ table.setVisible(false);
+ table.setHeaderVisible(true);
+ viewer.setContentProvider(new ArrayContentProvider());
+
+ GridData gridData = new GridData();
+ gridData.verticalAlignment = GridData.FILL;
+ gridData.horizontalSpan = 1;
+ gridData.grabExcessHorizontalSpace = true;
+ gridData.grabExcessVerticalSpace = true;
+ gridData.horizontalAlignment = GridData.FILL;
+
+ viewer.getControl().setLayoutData(gridData);
+ viewer.setLabelProvider(new ColumnLabelProvider() {
+
+ @Override
+ public String getText(Object element) {
+
+ if (element instanceof EPackage) {
+ EPackage p = (EPackage) element;
+ return "Ecore package Name : " + p.getName(); //$NON-NLS-1$
+
+ }
+ if (element instanceof Package) {
+ Package p = (Package) element;
+ return "Profile name : " + p.getName(); //$NON-NLS-1$
+ }
+ return null;
+ }
+
+ });
+ viewer.setInput(new Object());
+ viewer.setSorter(new ViewerSorter());
+ viewer.addCheckStateListener(new ICheckStateListener() {
+
+ public void checkStateChanged(CheckStateChangedEvent event) {
+ UpdateButton();
+
+ }
+ });
+ }
+
+ public void handleEvent(Event event) {
+
+ if (combo.getSelectionIndex() != 0) {
+ table.setVisible(true);
+
+ } else {
+ table.setVisible(false);
+ }
+ canFlipToNextPage();
+ super.getContainer().updateButtons();
+ }
+
+ public void setSelectorData() {
+
+ viewer.setInput(getWizard().generator.getExternalReference());
+ }
+
+ @Override
+ public void setVisible(boolean visible) {
+ super.setVisible(visible);
+
+ if (visible) {
+ setSelectorData();
+ }
+ }
+
+ @Override
+ public IWizardPage getNextPage() {
+ int selection = combo.getSelectionIndex();
+ getWizard().selectFieldsPage.setTargetURI(getListPackage(selection));
+ getWizard().generatorPage.setStrategy(selection);
+ return getWizard().selectFieldsPage;
+ }
+
+ public List<URI> getListPackage(int selection) {
+ List<URI> list = new ArrayList<URI>();
+
+ if (selection == 0) {
+ list.add(getWizard().generatorPage.oldURI);
+
+ } else {
+ for (Object o : viewer.getCheckedElements()) {
+ if (o instanceof EPackage) {
+ EPackage p = (EPackage) o;
+ if (selection == 1) {
+ list.add(getWizard().generatorPage.oldURI);
+ } else {
+ String temp = getWizard().generatorPage.oldURI.toString();
+ temp = temp.substring(0, temp.lastIndexOf("/")); //$NON-NLS-1$
+ String result = temp + "/" + p.getName() + ".ctx"; //$NON-NLS-1$ //$NON-NLS-2$
+ list.add(URI.createURI(result, true));
+ }
+ getWizard().generator.addCheckElement(o);
+ }
+ if (o instanceof Package) {
+ Package p = (Package) o;
+ if (selection == 1) {
+ list.add(getWizard().generatorPage.oldURI);
+ } else {
+ String temp = getWizard().generatorPage.oldURI.toString();
+ temp = temp.substring(0, temp.lastIndexOf("/")); //$NON-NLS-1$
+ String result = temp + "/" + p.getName() + ".ctx"; //$NON-NLS-1$ //$NON-NLS-2$
+ list.add(URI.createURI(result, true));
+ }
+ getWizard().generator.addCheckElement(o);
+
+ }
+
+ }
+ }
+ return list;
+ }
+
+ @Override
+ public boolean canFlipToNextPage() {
+ if (combo.getSelectionIndex() != 0) {
+ if (viewer.getCheckedElements().length == 0) {
+ return false;
+ }
+ }
+ return true;
+
+ }
+
+ public void UpdateButton() {
+ canFlipToNextPage();
+ super.getContainer().updateButtons();
+ }
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/widget/ExtensionFilter.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/widget/ExtensionFilter.java
index e1fe42399ef..71c09180a92 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/widget/ExtensionFilter.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/widget/ExtensionFilter.java
@@ -1,61 +1,61 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.wizard.widget;
-
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerFilter;
-
-/**
- * A filter for file extensions
- *
- * @author Camille Letavernier
- */
-public class ExtensionFilter extends ViewerFilter {
-
- private Set<String> extensions;
-
- /**
- *
- * Constructs a ViewerFilter that will only accept filenames with one of the
- * given extensions
- *
- * @param extensions
- * The authorized extensions
- */
- public ExtensionFilter(String[] extensions) {
- this.extensions = new HashSet<String>(Arrays.asList(extensions));
- }
-
- @Override
- public boolean select(Viewer viewer, Object parentElement, Object element) {
- if (element instanceof IFile) {
- IFile file = (IFile) element;
- for (String ext : extensions) {
- if (file.getFullPath().toString().endsWith(ext)) {
- return true;
- }
- }
- } else if (element instanceof IProject || element instanceof IFolder) {
- return true;
- }
-
- return false;
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.wizard.widget;
+
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.jface.viewers.ViewerFilter;
+
+/**
+ * A filter for file extensions
+ *
+ * @author Camille Letavernier
+ */
+public class ExtensionFilter extends ViewerFilter {
+
+ private Set<String> extensions;
+
+ /**
+ *
+ * Constructs a ViewerFilter that will only accept filenames with one of the
+ * given extensions
+ *
+ * @param extensions
+ * The authorized extensions
+ */
+ public ExtensionFilter(String[] extensions) {
+ this.extensions = new HashSet<String>(Arrays.asList(extensions));
+ }
+
+ @Override
+ public boolean select(Viewer viewer, Object parentElement, Object element) {
+ if (element instanceof IFile) {
+ IFile file = (IFile) element;
+ for (String ext : extensions) {
+ if (file.getFullPath().toString().endsWith(ext)) {
+ return true;
+ }
+ }
+ } else if (element instanceof IProject || element instanceof IFolder) {
+ return true;
+ }
+
+ return false;
+ }
+
+}
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/widget/FileChooser.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/widget/FileChooser.java
index efc3b48b460..86ef64e35f7 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/widget/FileChooser.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties.generation/src/org/eclipse/papyrus/customization/properties/generation/wizard/widget/FileChooser.java
@@ -1,234 +1,234 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.customization.properties.generation.wizard.widget;
-
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import org.eclipse.core.databinding.observable.value.IObservableValue;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.emf.common.ui.dialogs.WorkspaceResourceDialog;
-import org.eclipse.jface.databinding.swt.IWidgetValueProperty;
-import org.eclipse.jface.databinding.swt.WidgetProperties;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
-import org.eclipse.papyrus.infra.core.services.ServiceException;
-import org.eclipse.papyrus.infra.services.labelprovider.service.LabelProviderService;
-import org.eclipse.papyrus.infra.services.labelprovider.service.impl.LabelProviderServiceImpl;
-import org.eclipse.papyrus.infra.widgets.Activator;
-import org.eclipse.papyrus.infra.widgets.editors.TreeSelectorDialog;
-import org.eclipse.papyrus.infra.widgets.providers.WorkspaceContentProvider;
-import org.eclipse.papyrus.infra.widgets.util.FileUtil;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-import org.eclipse.swt.widgets.Text;
-
-/**
- * A Widget for selecting or creating a file in the workspace
- *
- * @author Camille Letavernier
- */
-public class FileChooser extends Composite implements SelectionListener, Listener {
-
- private Text text;
-
- private Button browse;
-
- private IFile currentFile;
-
- private Map<String, String> filters = new LinkedHashMap<>();
-
- private Set<Listener> listeners = new HashSet<>();
-
- private boolean newFile;
-
- /**
- * Constructs a new FileChooser in the given Composite
- *
- * @param parent
- * The composite in which the FileChooser is created
- * @param newFile
- * True if the fileChooser allows the user to create a new file,
- * false if he should select an existing one
- */
- public FileChooser(Composite parent, boolean newFile) {
- super(parent, SWT.NONE);
- setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
- GridLayout layout = new GridLayout(2, false);
- layout.marginWidth = 0;
- setLayout(layout);
-
- text = new Text(this, SWT.BORDER);
- text.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
- text.addListener(SWT.FocusOut, this);
- browse = new Button(this, SWT.PUSH);
- browse.setText(Messages.FileChooser_browseWorkspace);
- browse.addSelectionListener(this);
- this.newFile = newFile;
- }
-
- /**
- * @return the selected file path
- */
- public String getFilePath() {
- if (text.isDisposed()) {
- return null;
- }
- String path = text.getText();
- if (path.trim().equals("")) { //$NON-NLS-1$
- return null;
- }
- return path.trim();
- }
-
- /**
- * Sets the file extensions that this FileChooser accepts
- * Files that don't match one of these extensions will be hidden
- *
- * @param extensions
- */
- public void setFilterExtensions(String[] extensions) {
- filters.clear();
- for (String ext : extensions) {
- filters.put(ext, ext);
- }
- }
-
- /**
- * Sets the file extensions that this FileChooser accepts.
- * Files that don't match one of these extensions will be hidden.
- *
- * Extensions is a map in which the key is the filter (Accepting * and ? as wildcards)
- * and value is the displayed label. The filter may contain several patterns, separated
- * with a semi-colon (;).
- *
- * Example: <*.uml, UML>, <*.profile.uml;*.xmi, UML Profile>
- *
- * @param extensions
- * A map of (filter name, extension filter)
- *
- * @since 2.1
- */
- public void setFilterExtensions(Map<String, String> extensions) {
- filters.clear();
- filters.putAll(extensions);
- }
-
- @Override
- public void handleEvent(Event event) {
- notifyChange();
- }
-
- /**
- * Add a listener to this widget. The listener will be notified when the user
- * choose a new file
- *
- * @param listener
- */
- public void addListener(Listener listener) {
- listeners.add(listener);
- }
-
- @Override
- public void widgetSelected(SelectionEvent e) {
-
- Object[] result = new Object[0];
-
- if (newFile) {
-
- List<ViewerFilter> viewerFilter = Collections.singletonList(new ExtensionFilter(filters.keySet().toArray(new String[0])));
-
- IFile file = WorkspaceResourceDialog.openNewFile(getShell(), null, null, null, viewerFilter);
- if (file != null) {
- result = new IFile[] { file };
- }
- } else {
- LabelProviderService labelProviderService = new LabelProviderServiceImpl();
- try {
- labelProviderService.startService();
- } catch (ServiceException ex) {
- Activator.log.error(ex);
- }
-
- ILabelProvider labelProvider = labelProviderService.getLabelProvider();
-
- IFile currentFile = FileUtil.getIFile(text.getText());
-
- TreeSelectorDialog dialog = new TreeSelectorDialog(getShell());
- dialog.setTitle("File Selection");
-
- WorkspaceContentProvider contentProvider = new WorkspaceContentProvider();
-
- contentProvider.setExtensionFilters(filters);
-
- dialog.setContentProvider(contentProvider);
- dialog.setLabelProvider(labelProvider);
-
-
- if (currentFile != null && currentFile.exists()) {
- dialog.setInitialSelections(new IFile[] { currentFile });
- }
-
- int code = dialog.open();
- if (code == Window.OK) {
- result = dialog.getResult();
- }
- try {
- labelProviderService.disposeService();
- } catch (ServiceException ex) {
- Activator.log.error(ex);
- }
- }
-
- if (result.length > 0) {
- Object file = result[0];
- if (file instanceof IFile) {
- this.currentFile = ((IFile) file);
- text.setText(currentFile.getFullPath().toString());
- notifyChange();
- }
- }
- }
-
- private void notifyChange() {
- for (Listener listener : listeners) {
- listener.handleEvent(null);
- }
- }
-
- @Override
- public void widgetDefaultSelected(SelectionEvent e) {
- // Nothing
- }
-
- public IObservableValue getObservableValue() {
- IWidgetValueProperty prop = WidgetProperties.text(SWT.Modify);
- return prop.observeDelayed(600, text);
- }
-
- public void setText(String s) {
- text.setText(s);
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.customization.properties.generation.wizard.widget;
+
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import org.eclipse.core.databinding.observable.value.IObservableValue;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.emf.common.ui.dialogs.WorkspaceResourceDialog;
+import org.eclipse.jface.databinding.swt.IWidgetValueProperty;
+import org.eclipse.jface.databinding.swt.WidgetProperties;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.jface.viewers.ViewerFilter;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.customization.properties.generation.messages.Messages;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.eclipse.papyrus.infra.services.labelprovider.service.LabelProviderService;
+import org.eclipse.papyrus.infra.services.labelprovider.service.impl.LabelProviderServiceImpl;
+import org.eclipse.papyrus.infra.widgets.Activator;
+import org.eclipse.papyrus.infra.widgets.editors.TreeSelectorDialog;
+import org.eclipse.papyrus.infra.widgets.providers.WorkspaceContentProvider;
+import org.eclipse.papyrus.infra.widgets.util.FileUtil;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Listener;
+import org.eclipse.swt.widgets.Text;
+
+/**
+ * A Widget for selecting or creating a file in the workspace
+ *
+ * @author Camille Letavernier
+ */
+public class FileChooser extends Composite implements SelectionListener, Listener {
+
+ private Text text;
+
+ private Button browse;
+
+ private IFile currentFile;
+
+ private Map<String, String> filters = new LinkedHashMap<>();
+
+ private Set<Listener> listeners = new HashSet<>();
+
+ private boolean newFile;
+
+ /**
+ * Constructs a new FileChooser in the given Composite
+ *
+ * @param parent
+ * The composite in which the FileChooser is created
+ * @param newFile
+ * True if the fileChooser allows the user to create a new file,
+ * false if he should select an existing one
+ */
+ public FileChooser(Composite parent, boolean newFile) {
+ super(parent, SWT.NONE);
+ setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+ GridLayout layout = new GridLayout(2, false);
+ layout.marginWidth = 0;
+ setLayout(layout);
+
+ text = new Text(this, SWT.BORDER);
+ text.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+ text.addListener(SWT.FocusOut, this);
+ browse = new Button(this, SWT.PUSH);
+ browse.setText(Messages.FileChooser_browseWorkspace);
+ browse.addSelectionListener(this);
+ this.newFile = newFile;
+ }
+
+ /**
+ * @return the selected file path
+ */
+ public String getFilePath() {
+ if (text.isDisposed()) {
+ return null;
+ }
+ String path = text.getText();
+ if (path.trim().equals("")) { //$NON-NLS-1$
+ return null;
+ }
+ return path.trim();
+ }
+
+ /**
+ * Sets the file extensions that this FileChooser accepts
+ * Files that don't match one of these extensions will be hidden
+ *
+ * @param extensions
+ */
+ public void setFilterExtensions(String[] extensions) {
+ filters.clear();
+ for (String ext : extensions) {
+ filters.put(ext, ext);
+ }
+ }
+
+ /**
+ * Sets the file extensions that this FileChooser accepts.
+ * Files that don't match one of these extensions will be hidden.
+ *
+ * Extensions is a map in which the key is the filter (Accepting * and ? as wildcards)
+ * and value is the displayed label. The filter may contain several patterns, separated
+ * with a semi-colon (;).
+ *
+ * Example: <*.uml, UML>, <*.profile.uml;*.xmi, UML Profile>
+ *
+ * @param extensions
+ * A map of (filter name, extension filter)
+ *
+ * @since 2.1
+ */
+ public void setFilterExtensions(Map<String, String> extensions) {
+ filters.clear();
+ filters.putAll(extensions);
+ }
+
+ @Override
+ public void handleEvent(Event event) {
+ notifyChange();
+ }
+
+ /**
+ * Add a listener to this widget. The listener will be notified when the user
+ * choose a new file
+ *
+ * @param listener
+ */
+ public void addListener(Listener listener) {
+ listeners.add(listener);
+ }
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+
+ Object[] result = new Object[0];
+
+ if (newFile) {
+
+ List<ViewerFilter> viewerFilter = Collections.singletonList(new ExtensionFilter(filters.keySet().toArray(new String[0])));
+
+ IFile file = WorkspaceResourceDialog.openNewFile(getShell(), null, null, null, viewerFilter);
+ if (file != null) {
+ result = new IFile[] { file };
+ }
+ } else {
+ LabelProviderService labelProviderService = new LabelProviderServiceImpl();
+ try {
+ labelProviderService.startService();
+ } catch (ServiceException ex) {
+ Activator.log.error(ex);
+ }
+
+ ILabelProvider labelProvider = labelProviderService.getLabelProvider();
+
+ IFile currentFile = FileUtil.getIFile(text.getText());
+
+ TreeSelectorDialog dialog = new TreeSelectorDialog(getShell());
+ dialog.setTitle("File Selection");
+
+ WorkspaceContentProvider contentProvider = new WorkspaceContentProvider();
+
+ contentProvider.setExtensionFilters(filters);
+
+ dialog.setContentProvider(contentProvider);
+ dialog.setLabelProvider(labelProvider);
+
+
+ if (currentFile != null && currentFile.exists()) {
+ dialog.setInitialSelections(new IFile[] { currentFile });
+ }
+
+ int code = dialog.open();
+ if (code == Window.OK) {
+ result = dialog.getResult();
+ }
+ try {
+ labelProviderService.disposeService();
+ } catch (ServiceException ex) {
+ Activator.log.error(ex);
+ }
+ }
+
+ if (result.length > 0) {
+ Object file = result[0];
+ if (file instanceof IFile) {
+ this.currentFile = ((IFile) file);
+ text.setText(currentFile.getFullPath().toString());