Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-08-21 11:37:18 +0000
committerCamille Letavernier2014-08-21 11:37:18 +0000
commitea48a20561464c3cbb7895d430583669a9f82fcc (patch)
tree0fdf9eebacbbb301b13bafce3ca4a6952ff6e91c /extraplugins/java
parentf91b71175fd97557cf378cdcad845a44a6274b16 (diff)
downloadorg.eclipse.papyrus-ea48a20561464c3cbb7895d430583669a9f82fcc.tar.gz
org.eclipse.papyrus-ea48a20561464c3cbb7895d430583669a9f82fcc.tar.xz
org.eclipse.papyrus-ea48a20561464c3cbb7895d430583669a9f82fcc.zip
[Code style] Apply clean-up and formatter on Extra plug-ins
Diffstat (limited to 'extraplugins/java')
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/GeneratorPreference.java20
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/RunGenerator.java79
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTCommentable.java50
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTCompilationUnit.java29
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTField.java96
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTGetterSetter.java35
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTJavaModel.java20
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTJavaProject.java42
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTMethod.java178
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTPackageFragment.java38
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTPackageFragmentRoot.java27
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTType.java171
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchTools.java165
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/provider/GeneratoroptionsmmEditPlugin.java13
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/provider/GeneratoroptionsmmItemProviderAdapterFactory.java30
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/provider/OptionsItemProvider.java53
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTClassItemProvider.java21
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTCompilationUnitItemProvider.java64
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTEnumItemProvider.java21
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTExceptionItemProvider.java16
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTFieldItemProvider.java239
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTImportContainerItemProvider.java21
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTImportDeclarationItemProvider.java21
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTInterfaceItemProvider.java21
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTJavaElementItemProvider.java158
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTJavaModelItemProvider.java36
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTJavaProjectItemProvider.java56
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTMemberItemProvider.java118
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTMethodBodyItemProvider.java11
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTMethodItemProvider.java222
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTOpaqueBodyItemProvider.java48
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTPackageFragmentItemProvider.java56
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTPackageFragmentRootItemProvider.java56
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTParameterItemProvider.java104
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTParentItemProvider.java73
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTParentJavaElementItemProvider.java76
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTTypeItemProvider.java353
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTTypeParameterItemProvider.java21
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTTypeRootItemProvider.java20
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JdtmmEditPlugin.java17
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JdtmmItemProviderAdapterFactory.java124
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmActionBarContributor.java97
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmEditor.java844
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmEditorPlugin.java21
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmModelWizard.java162
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmActionBarContributor.java101
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmEditor.java827
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmEditorPlugin.java25
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmModelWizard.java169
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/GeneratoroptionsmmFactory.java6
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/GeneratoroptionsmmPackage.java37
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/Options.java10
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/impl/GeneratoroptionsmmFactoryImpl.java25
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/impl/GeneratoroptionsmmPackageImpl.java76
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/impl/OptionsImpl.java44
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/util/GeneratoroptionsmmAdapterFactory.java38
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/util/GeneratoroptionsmmSwitch.java33
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTClass.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTCompilationUnit.java16
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTEnum.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTException.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTField.java67
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTImportContainer.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTImportDeclaration.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTInterface.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTJavaElement.java36
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTJavaModel.java5
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTJavaProject.java17
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTMember.java24
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTMethod.java65
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTMethodBody.java11
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTOpaqueBody.java10
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTPackageFragment.java16
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTPackageFragmentRoot.java16
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTParameter.java39
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTParent.java14
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTParentJavaElement.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTType.java93
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTTypeParameter.java9
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JDTTypeRoot.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JdtmmFactory.java23
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/JdtmmPackage.java506
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/TrueFalseDefault.java50
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/VisibilityKind.java50
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTClassImpl.java6
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTCompilationUnitImpl.java136
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTEnumImpl.java6
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTExceptionImpl.java6
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTFieldImpl.java346
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTImportContainerImpl.java6
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTImportDeclarationImpl.java6
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTInterfaceImpl.java6
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTJavaElementImpl.java166
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTJavaModelImpl.java47
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTJavaProjectImpl.java133
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTMemberImpl.java144
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTMethodBodyImpl.java83
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTMethodImpl.java408
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTOpaqueBodyImpl.java46
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTPackageFragmentImpl.java139
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTPackageFragmentRootImpl.java139
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTParameterImpl.java262
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTParentImpl.java70
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTParentJavaElementImpl.java90
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTTypeImpl.java590
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTTypeParameterImpl.java83
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JDTTypeRootImpl.java6
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JdtmmFactoryImpl.java200
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/impl/JdtmmPackageImpl.java690
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/util/JdtmmAdapterFactory.java256
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/util/JdtmmPreference.java30
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/util/JdtmmSwitch.java672
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/visitor/JDTVisitor.java6
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/visitor/JDTVisitorException.java4
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/utils/DerivedNotifyingEList.java108
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.transfo.umltojdt/src/org/eclipse/papyrus/java/generator/transfo/umltojdt/UmltojdtActivator.java14
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.ui/src/org/eclipse/papyrus/java/generator/ui/Activator.java4
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.ui/src/org/eclipse/papyrus/java/generator/ui/handlers/GenerateJavaCodeHandler.java85
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.ui/src/org/eclipse/papyrus/java/generator/ui/preference/GeneratorPreferenceImpl.java23
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.ui/src/org/eclipse/papyrus/java/generator/ui/preference/GenericClassFieldEditor.java10
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.ui/src/org/eclipse/papyrus/java/generator/ui/preference/PackageListEditor.java16
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.ui/src/org/eclipse/papyrus/java/generator/ui/preference/PreferenceConstants.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.ui/src/org/eclipse/papyrus/java/generator/ui/preference/PreferenceInitializer.java3
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.generator.ui/src/org/eclipse/papyrus/java/generator/ui/preference/PreferencePage.java19
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.edit/src/org/eclipse/papyrus/java/profile/java/provider/JavaClassItemProvider.java179
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.edit/src/org/eclipse/papyrus/java/profile/java/provider/JavaEditPlugin.java17
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.edit/src/org/eclipse/papyrus/java/profile/java/provider/JavaGenItemProvider.java74
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.edit/src/org/eclipse/papyrus/java/profile/java/provider/JavaItemProviderAdapterFactory.java72
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.edit/src/org/eclipse/papyrus/java/profile/java/provider/JavaMethodItemProvider.java260
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.edit/src/org/eclipse/papyrus/java/profile/java/provider/JavaNamedElementItemProvider.java156
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.edit/src/org/eclipse/papyrus/java/profile/java/provider/JavaPackage_ItemProvider.java73
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.edit/src/org/eclipse/papyrus/java/profile/java/provider/JavaParameterItemProvider.java73
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.edit/src/org/eclipse/papyrus/java/profile/java/provider/JavaProjectItemProvider.java42
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.edit/src/org/eclipse/papyrus/java/profile/java/provider/JavaPropertyItemProvider.java260
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.edit/src/org/eclipse/papyrus/java/profile/java/provider/JavaSrcFolderItemProvider.java42
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.edit/src/org/eclipse/papyrus/java/profile/java/provider/PrimitiveTypeItemProvider.java100
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.editor/src/org/eclipse/papyrus/java/profile/java/presentation/JavaActionBarContributor.java97
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.editor/src/org/eclipse/papyrus/java/profile/java/presentation/JavaEditor.java823
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.editor/src/org/eclipse/papyrus/java/profile/java/presentation/JavaEditorPlugin.java21
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile.editor/src/org/eclipse/papyrus/java/profile/java/presentation/JavaModelWizard.java165
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/JavaClass.java66
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/JavaFactory.java13
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/JavaGen.java20
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/JavaMethod.java96
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/JavaNamedElement.java50
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/JavaPackage.java243
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/JavaPackage_.java20
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/JavaParameter.java20
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/JavaProject.java10
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/JavaProperty.java96
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/JavaSrcFolder.java10
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/PrimitiveType.java30
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/TrueFalseDefault.java61
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/impl/JavaClassImpl.java212
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/impl/JavaFactoryImpl.java84
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/impl/JavaGenImpl.java75
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/impl/JavaMethodImpl.java305
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/impl/JavaNamedElementImpl.java168
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/impl/JavaPackageImpl.java291
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/impl/JavaPackage_Impl.java86
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/impl/JavaParameterImpl.java86
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/impl/JavaProjectImpl.java50
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/impl/JavaPropertyImpl.java305
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/impl/JavaSrcFolderImpl.java50
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/impl/PrimitiveTypeImpl.java117
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/util/JavaAdapterFactory.java128
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/util/JavaResourceFactoryImpl.java5
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/util/JavaResourceImpl.java7
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/util/JavaSwitch.java233
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.profile/src/org/eclipse/papyrus/java/profile/java/util/JavaXMLProcessor.java7
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse.ui/src/org/eclipse/papyrus/java/reverse/ui/Activator.java4
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse.ui/src/org/eclipse/papyrus/java/reverse/ui/DisplayReverse.java46
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse.ui/src/org/eclipse/papyrus/java/reverse/ui/DndReverseCodeHandler.java64
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse.ui/src/org/eclipse/papyrus/java/reverse/ui/JavaCodeReverse.java142
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse.ui/src/org/eclipse/papyrus/java/reverse/ui/ReverseCodeHandler.java51
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse.ui/src/org/eclipse/papyrus/java/reverse/ui/TreeSelectionList.java48
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse.ui/src/org/eclipse/papyrus/java/reverse/ui/dialog/DndReverseCodeDialog.java32
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse.ui/src/org/eclipse/papyrus/java/reverse/ui/dialog/InputListDialog.java98
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse.ui/src/org/eclipse/papyrus/java/reverse/ui/dialog/ReverseCodeDialog.java130
-rwxr-xr-xextraplugins/java/org.eclipse.papyrus.java.reverse.ui/src/org/eclipse/papyrus/java/reverse/ui/dnd/DropReverseCommand.java23
-rwxr-xr-xextraplugins/java/org.eclipse.papyrus.java.reverse.ui/src/org/eclipse/papyrus/java/reverse/ui/dnd/DropReverseStrategy.java4
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse.ui/src/org/eclipse/papyrus/java/reverse/ui/handlers/CreateAssociationFromPropertyHandler.java175
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ASTParser.java3467
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ASTParserConstants.java4
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ASTParserTokenManager.java1050
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/JavaCharStream.java110
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/JavaParser.java57
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ParseException.java30
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/Token.java9
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/TokenMgrError.java15
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/BlockComment.java6
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/Comment.java10
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/CompilationUnit.java34
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/ImportDeclaration.java26
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/LineComment.java6
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/Node.java46
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/PackageDeclaration.java20
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/TypeParameter.java20
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/AnnotationDeclaration.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/AnnotationMemberDeclaration.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/BodyDeclaration.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/ClassOrInterfaceDeclaration.java5
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/ConstructorDeclaration.java5
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/EmptyMemberDeclaration.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/EmptyTypeDeclaration.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/EnumConstantDeclaration.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/EnumDeclaration.java5
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/FieldDeclaration.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/InitializerDeclaration.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/JavadocComment.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/MethodDeclaration.java5
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/ModifierSet.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/Parameter.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/TypeDeclaration.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/VariableDeclarator.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/body/VariableDeclaratorId.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/AnnotationExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/ArrayAccessExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/ArrayCreationExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/ArrayInitializerExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/AssignExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/BinaryExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/BooleanLiteralExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/CastExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/CharLiteralExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/ClassExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/ConditionalExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/DoubleLiteralExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/EnclosedExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/Expression.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/FieldAccessExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/InstanceOfExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/IntegerLiteralExpr.java6
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/IntegerLiteralMinValueExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/LiteralExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/LongLiteralExpr.java8
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/LongLiteralMinValueExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/MarkerAnnotationExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/MemberValuePair.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/MethodCallExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/NameExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/NormalAnnotationExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/NullLiteralExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/ObjectCreationExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/QualifiedNameExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/SingleMemberAnnotationExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/StringLiteralExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/SuperExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/ThisExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/UnaryExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/expr/VariableDeclarationExpr.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/AssertStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/BlockStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/BreakStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/CatchClause.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/ContinueStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/DoStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/EmptyStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/ExplicitConstructorInvocationStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/ExpressionStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/ForStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/ForeachStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/IfStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/LabeledStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/ReturnStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/SwitchEntryStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/SwitchStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/SynchronizedStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/ThrowStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/TryStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/TypeDeclarationStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/stmt/WhileStmt.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/type/ClassOrInterfaceType.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/type/PrimitiveType.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/type/ReferenceType.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/type/Type.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/type/VoidType.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/type/WildcardType.java2
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/visitor/DumpVisitor.java344
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/visitor/GenericVisitor.java12
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/visitor/GenericVisitorAdapter.java334
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/visitor/VoidVisitor.java12
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/japa/parser/ast/visitor/VoidVisitorAdapter.java334
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/javagen/umlparser/ClassifierCatalog.java142
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/javagen/umlparser/CompilationUnitAnalyser.java430
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/javagen/umlparser/CreationPackageCatalog.java264
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/javagen/umlparser/CuPrinter.java10
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/javagen/umlparser/GenericSwitchVisitor.java88
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/javagen/umlparser/GenericTransformer.java30
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/javagen/umlparser/ImportedTypeCatalog.java48
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/javagen/umlparser/ModelManager.java14
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/javagen/umlparser/QualifiedName.java10
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/javagen/umlparser/SwitchVisitor.java86
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/javagen/umlparser/TypeAnalyser.java35
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/javagen/umlparser/TypeAnalyserAndTranslator.java51
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/javagen/umlparser/UmlParser.java40
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/javagen/umlparser/UmlUtils.java494
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/org/eclipse/papyrus/java/reverse/Activator.java4
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.reverse/src/org/eclipse/papyrus/java/reverse/utils/TypeOperationsEnhanced.java89
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.template/src/org/eclipse/papyrus/java/template/Activator.java6
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.template/src/org/eclipse/papyrus/java/template/resolvers/BundleActivatorResolver.java45
-rw-r--r--extraplugins/java/org.eclipse.papyrus.java.template/src/org/eclipse/papyrus/java/template/resolvers/RegisterResolver.java30
302 files changed, 15878 insertions, 10064 deletions
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/GeneratorPreference.java b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/GeneratorPreference.java
index fabbfdf29ba..56af682c908 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/GeneratorPreference.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/GeneratorPreference.java
@@ -10,7 +10,7 @@
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Initial API and implementation
* Manuel Giles giles.manu@live.fr - Initial API and implementation
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
*
*****************************************************************************/
@@ -20,56 +20,56 @@ public interface GeneratorPreference {
/**
* indicate if methods of inherits interfaces must be implement in a class
- *
+ *
* @return
*/
public boolean implementMethodsOfIntefaces();
/**
* indicate if methods of inherit abstract class must be implement in a class
- *
+ *
* @return
*/
public boolean implementMethodsOfAbstractClass();
/**
* indicate if getters must be create
- *
+ *
* @return
*/
public boolean generateGetters();
/**
* indicate if setters must be create
- *
+ *
* @return
*/
public boolean generateSetters();
/**
* indicate if a package must be generate
- *
+ *
* @param packageQualifiedName
- * package to generate
+ * package to generate
* @return
*/
public boolean isPackageToGenerate(String packageQualifiedName);
/**
- *
+ *
* @return generic class to use for the association * (multi-value)
*/
public String genericClassForMultiValue();
/**
* Return true if we want to stop on first error, false if we want to continue anyway.
- *
+ *
* @return
*/
public boolean stopOnFirstError();
/**
- *
+ *
* @return the default source folder name where the generator have to generate Java files and packages.
*/
public String defaultSourceFolderName();
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/RunGenerator.java b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/RunGenerator.java
index cf228f31b19..c942a54fcc7 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/RunGenerator.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/RunGenerator.java
@@ -10,7 +10,7 @@
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Initial API and implementation
* Manuel Giles giles.manu@live.fr - Initial API and implementation
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
*
*****************************************************************************/
@@ -18,7 +18,6 @@ package org.eclipse.papyrus.java.generator.jdtsynchronizer;
import java.io.File;
import java.io.FileNotFoundException;
-import java.io.OutputStreamWriter;
import java.util.List;
import org.eclipse.emf.common.util.BasicEList;
@@ -34,13 +33,10 @@ import org.eclipse.emf.ecore.resource.URIConverter;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl;
import org.eclipse.m2m.qvt.oml.BasicModelExtent;
-import org.eclipse.m2m.qvt.oml.ExecutionContext;
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.m2m.qvt.oml.util.Log;
-import org.eclipse.m2m.qvt.oml.util.WriterLog;
import org.eclipse.papyrus.java.generator.jdtsynchronizer.impl.SynchJDTJavaModel;
import org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.GeneratoroptionsmmFactory;
import org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.Options;
@@ -65,9 +61,9 @@ public class RunGenerator {
/**
* Constructor of RunGenerator using .uml file
- *
+ *
* @param UMLFileUrl
- * the '.uml' file's url
+ * the '.uml' file's url
* @throws FileNotFoundException
*/
public RunGenerator(String umlFileUrl) throws FileNotFoundException {
@@ -78,9 +74,9 @@ public class RunGenerator {
/**
* Constructor of RunGenerator using EList<EObject> metamodel
- *
+ *
* @param UMLFileUrl
- * the '.uml' file's url
+ * the '.uml' file's url
*/
public RunGenerator(EList<EObject> inObjects) {
this.inObjects = inObjects;
@@ -88,32 +84,33 @@ public class RunGenerator {
/**
* run code generation using QVTo transformation
- *
+ *
* @throws JDTVisitorException
*/
public void runGeneration(GeneratorPreference preference) throws JDTVisitorException {
// Create an options model using the Eclipse Preferences
EList<EObject> inOptions = createOptionModelFromEclipsePreferences(preference);
-
+
// Refer to an existing transformation via URI
final URI scriptUri =
URI.createURI("platform:/plugin/" + UmltojdtActivator.PLUGIN_ID + UmltojdtActivator.PATH_QVT_FILE);
List<EObject> outObjects = runTransformation(scriptUri, inObjects, inOptions);
- if(outObjects.size() == 0) {
+ if (outObjects.size() == 0) {
throw new JDTVisitorException("No classes or packages produced from the transformation. Nothing is generated.");
}
- if(outObjects.size() > 1) {
+ if (outObjects.size() > 1) {
System.err.println("Warning, JDT modele has more than one root. Found root:");
- for(EObject el : outObjects)
- System.err.println(((JDTJavaElement)el).getElementName());
+ for (EObject el : outObjects) {
+ System.err.println(((JDTJavaElement) el).getElementName());
+ }
System.err.println("-------");
}
- //finally, we synchronize the JDT model with org.eclipse.jdt.core
- if(outObjects.size() > 0) {
+ // finally, we synchronize the JDT model with org.eclipse.jdt.core
+ if (outObjects.size() > 0) {
/*
* TODO : if metamodel have some root node, we make a loop
* JDTJavaElement proj = (JDTJavaElement) outObjects.get(0);
@@ -121,9 +118,9 @@ public class RunGenerator {
* JDTVisitor visitor = new SynchJDTJavaModel();
* proj.accept(visitor);
*/
- for(Object o : outObjects) {
- if(o instanceof JDTJavaModel) {
- JDTJavaElement proj = (JDTJavaElement)o;
+ for (Object o : outObjects) {
+ if (o instanceof JDTJavaModel) {
+ JDTJavaElement proj = (JDTJavaElement) o;
JDTVisitor visitor = new SynchJDTJavaModel(preference);
proj.accept(visitor);
}
@@ -133,42 +130,44 @@ public class RunGenerator {
}
/**
- * Create a new GeneratorOptions model and inject eclipse preferences on it.
- * @param preference eclipse preferences
+ * Create a new GeneratorOptions model and inject eclipse preferences on it.
+ *
+ * @param preference
+ * eclipse preferences
* @return a new instance of Options, where options.defaultSourceFolder have been initialized.
*/
private EList<EObject> createOptionModelFromEclipsePreferences(GeneratorPreference preference) {
GeneratoroptionsmmFactory optionsFactory = GeneratoroptionsmmFactory.eINSTANCE;
-
+
// Create a new Options object and inject the default source folder name from Eclipse preferences
Options options = optionsFactory.createOptions();
options.setDefaultSourceFolder(preference.defaultSourceFolderName());
-
+
// Add options to the model
EList<EObject> optionsContents = new BasicEList<EObject>(1);
optionsContents.add(options);
-
+
return optionsContents;
}
/**
* Run QVTo transformation using the scriptUri and the inObjects model
- *
+ *
* @param scriptUri
- * The script QVTo
+ * The script QVTo
* @param inObjects
- * The entry model
- * @param inOptions2
+ * The entry model
+ * @param inOptions2
* @return The output model
*/
private List<EObject> runTransformation(URI scriptUri, EList<EObject> inObjects, EList<EObject> inOptions) {
- // initialize the transformation
- //First, you need to instantiate a Registry:
+ // initialize the transformation
+ // First, you need to instantiate a Registry:
EPackage.Registry registry = new EPackageRegistryImpl(EPackage.Registry.INSTANCE);
- //which is used to register the meta-models in E:\workspace\modelesUML\org.eclipse.papyrus.java.javagen.mmJDT\metaModel
+ // which is used to register the meta-models in E:\workspace\modelesUML\org.eclipse.papyrus.java.javagen.mmJDT\metaModel
- JdtmmPackage mm1 = (JdtmmPackage)JdtmmPackage.eINSTANCE;
+ JdtmmPackage mm1 = JdtmmPackage.eINSTANCE;
registry.put(mm1.getNsURI(), mm1);
// class which allow to execute the transformation
@@ -184,20 +183,21 @@ public class RunGenerator {
// the errors
System.out.println(executionDiagnostic.getMessage());
- for(Diagnostic d : executionDiagnostic.getChildren())
+ for (Diagnostic d : executionDiagnostic.getChildren()) {
System.out.println(d.getMessage());
+ }
- // we take the out JDT model in a list
+ // we take the out JDT model in a list
return output.getContents();
}
/**
* Allow to charge the uml model in a list
- *
+ *
* @param url
- * the '.uml' file's url
+ * the '.uml' file's url
* @return the charge model
* @throws FileNotFoundException
*/
@@ -208,15 +208,16 @@ public class RunGenerator {
// charge the metamodel util for read the model
resourceSet.getPackageRegistry().put(UMLPackage.eNS_URI, UMLPackage.eINSTANCE);
resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(UMLResource.FILE_EXTENSION, UMLResource.Factory.INSTANCE);
- //Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap( ).put( "uml", new UMLResourceFactoryImpl());
+ // Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap( ).put( "uml", new UMLResourceFactoryImpl());
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("*", new XMIResourceFactoryImpl());
URIConverter.URI_MAP.put(URI.createURI("pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml"), URI.createFileURI(System.getProperty("user.dir") + "/Model_Libs/UMLPrimitiveTypes.library.uml"));
// the '.uml' file's url
File file = new File(url);
- if(!file.exists())
+ if (!file.exists()) {
throw new FileNotFoundException("File " + new File(url).getAbsolutePath() + " not found");
+ }
URI fileURI = URI.createFileURI(new File(url).getAbsolutePath());
// demand load the resource for this file.
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTCommentable.java b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTCommentable.java
index 2d97c46aa3a..5a196a155b0 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTCommentable.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTCommentable.java
@@ -10,7 +10,7 @@
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Initial API and implementation
* Manuel Giles giles.manu@live.fr - Initial API and implementation
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
*
*****************************************************************************/
@@ -37,16 +37,16 @@ import org.eclipse.text.edits.TextEdit;
/**
* Useful for class who have to generate Javadoc comment.
- *
+ *
* @author Deblock Nicolas & Manuel Giles
- *
+ *
*/
public abstract class SynchJDTCommentable implements JDTVisitor {
/**
* search the element to insert the Javadoc in compilation unit
- *
+ *
* @param cu
* @param typeName
* @return
@@ -55,7 +55,7 @@ public abstract class SynchJDTCommentable implements JDTVisitor {
/**
* return javaDoc tag to add. Call in function createJavaDocFor()
- *
+ *
* @return javaDoc tag to add in a List<String> with String = "@tag comment"
*/
protected abstract List<String> getJavadocTags();
@@ -63,7 +63,7 @@ public abstract class SynchJDTCommentable implements JDTVisitor {
/**
* Reads a ICompilationUnit and creates the AST DOM for manipulating the
* Java source file
- *
+ *
* @param unit
* @return
*/
@@ -72,22 +72,22 @@ public abstract class SynchJDTCommentable implements JDTVisitor {
parser.setKind(ASTParser.K_COMPILATION_UNIT);
parser.setSource(unit);
parser.setResolveBindings(true);
- return (CompilationUnit)parser.createAST(null); // parse
+ return (CompilationUnit) parser.createAST(null); // parse
}
/**
* Create a JavaDoc for a a objet who extends IJavaElement and IMethod
* (IType or IMethod by example)
- *
+ *
* @param ielement
- * the element you want add javadoc
+ * the element you want add javadoc
* @param icu
- * the compilation unit of ielement
+ * the compilation unit of ielement
* @param comment
- * body of the comment
+ * body of the comment
* @param auteur
- * author of the compilation unit
+ * author of the compilation unit
* @throws JavaModelException
* @throws BadLocationException
* @throws MalformedTreeException
@@ -100,12 +100,12 @@ public abstract class SynchJDTCommentable implements JDTVisitor {
// create document
Document document = new Document(icu.getBuffer().getContents());
- // Creating the new JavaDoc node
+ // Creating the new JavaDoc node
AST ast = cu.getAST();
Javadoc jc = ast.newJavadoc();
TagElement tag = ast.newTagElement();
- if(comment != null) {
+ if (comment != null) {
TextElement te = ast.newTextElement();
tag.fragments().add(te);
te.setText(comment);
@@ -113,8 +113,8 @@ public abstract class SynchJDTCommentable implements JDTVisitor {
jc.tags().add(tag);
List<String> javadocTags = getJavadocTags();
- if(javadocTags != null) {
- for(String s : javadocTags) {
+ if (javadocTags != null) {
+ for (String s : javadocTags) {
tag = ast.newTagElement();
tag.setTagName(s);
jc.tags().add(tag);
@@ -122,7 +122,7 @@ public abstract class SynchJDTCommentable implements JDTVisitor {
}
// add javadoc to type
BodyDeclaration classType = searchElementToInsert(cu, ielement);
- if(classType != null) {
+ if (classType != null) {
classType.setJavadoc(jc);
}
@@ -137,21 +137,23 @@ public abstract class SynchJDTCommentable implements JDTVisitor {
/**
* search type in type declaration
- *
+ *
* @param classType
- * type declaration
+ * type declaration
* @param typeName
- * typeName type name research
+ * typeName type name research
* @return
*/
protected TypeDeclaration searchType(TypeDeclaration classType, String typeName) {
- if(classType.getName().toString().equals(typeName))
+ if (classType.getName().toString().equals(typeName)) {
return classType;
+ }
- for(Object objct : classType.getTypes()) {
- TypeDeclaration ct = (TypeDeclaration)objct;
- if(ct.getName().toString().equals(typeName))
+ for (Object objct : classType.getTypes()) {
+ TypeDeclaration ct = (TypeDeclaration) objct;
+ if (ct.getName().toString().equals(typeName)) {
return ct;
+ }
searchType(ct, typeName);
}
return null;
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTCompilationUnit.java b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTCompilationUnit.java
index bbf82143dec..1e6f34fb515 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTCompilationUnit.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTCompilationUnit.java
@@ -10,7 +10,7 @@
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Initial API and implementation
* Manuel Giles giles.manu@live.fr - Initial API and implementation
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
*
*****************************************************************************/
@@ -29,9 +29,9 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.visitor.JDTVisitor
/**
* Allow to generate compilation Unit
- *
+ *
* @author Deblock Nicolas & Manuel Giles
- *
+ *
*/
public class SynchJDTCompilationUnit extends EObjectImpl implements JDTVisitor {
@@ -41,9 +41,9 @@ public class SynchJDTCompilationUnit extends EObjectImpl implements JDTVisitor {
/**
* Constructor
- *
+ *
* @param ipack
- * the IPackageFragment parent
+ * the IPackageFragment parent
*/
public SynchJDTCompilationUnit(IPackageFragment ipack, GeneratorPreference preference) {
super();
@@ -51,28 +51,33 @@ public class SynchJDTCompilationUnit extends EObjectImpl implements JDTVisitor {
this.preference = preference;
}
+ @Override
public void visit(JDTJavaElement element) throws JDTVisitorException {
// if element can't be generated, we stop all
- if(!element.isGenerated())
+ if (!element.isGenerated()) {
return;
- if(SynchTools.isPrimiveType(element.getElementName()) && !element.getElementName().equals("String"))
+ }
+ if (SynchTools.isPrimiveType(element.getElementName()) && !element.getElementName().equals("String")) {
return;
+ }
- JDTCompilationUnit cu = (JDTCompilationUnit)element;
+ JDTCompilationUnit cu = (JDTCompilationUnit) element;
try {
ICompilationUnit icu = SynchTools.searchIJavaElement(ipack.getCompilationUnits(), cu.getElementName() + ".java");
- if(icu == null) {
+ if (icu == null) {
icu = ipack.createCompilationUnit(cu.getElementName() + ".java", "", true, null);
- if(!ipack.getElementName().equals(IPackageFragment.DEFAULT_PACKAGE_NAME))
+ if (!ipack.getElementName().equals(IPackageFragment.DEFAULT_PACKAGE_NAME)) {
icu.createPackageDeclaration(ipack.getElementName(), null);
+ }
}
- //call the children JDTType
+ // call the children JDTType
JDTVisitor visitor = new SynchJDTType(icu, preference);
- for(JDTType type : cu.getTypes())
+ for (JDTType type : cu.getTypes()) {
type.accept(visitor);
+ }
// save the compilation unit
icu.save(null, true);
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTField.java b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTField.java
index 27e03139391..208750a16bb 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTField.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTField.java
@@ -10,7 +10,7 @@
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Initial API and implementation
* Manuel Giles giles.manu@live.fr - Initial API and implementation
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
*
*****************************************************************************/
@@ -29,15 +29,14 @@ import org.eclipse.jdt.core.dom.TypeDeclaration;
import org.eclipse.papyrus.java.generator.jdtsynchronizer.GeneratorPreference;
import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTField;
import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTJavaElement;
-import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTMethod;
import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTType;
import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.visitor.JDTVisitorException;
/**
* Allow to generate field in a type
- *
+ *
* @author Deblock Nicolas & Manuel Giles
- *
+ *
*/
public class SynchJDTField extends SynchJDTCommentable {
@@ -49,9 +48,9 @@ public class SynchJDTField extends SynchJDTCommentable {
/**
* Constructor
- *
+ *
* @param itype
- * the type parent
+ * the type parent
*/
public SynchJDTField(IType itype, GeneratorPreference preference) {
super();
@@ -59,17 +58,19 @@ public class SynchJDTField extends SynchJDTCommentable {
this.preference = preference;
}
+ @Override
public void visit(JDTJavaElement element) throws JDTVisitorException {
// if element can't be generated, we stop all
- if(!element.isGenerated())
+ if (!element.isGenerated()) {
return;
+ }
- field = (JDTField)element;
+ field = (JDTField) element;
StringBuffer buffer = new StringBuffer();
try {
IField ifield = SynchTools.searchIJavaElement(itype.getFields(), field.getElementName());
- if(ifield == null && field.getType() != null) {
+ if (ifield == null && field.getType() != null) {
// first : find the import package
// create import when it's not a primitive type
SynchTools.createImport(itype, field.getOwner(), field.getType());
@@ -79,23 +80,25 @@ public class SynchJDTField extends SynchJDTCommentable {
buffer.append("\n" + SynchTools.getVisibility(field).toString());
// // if it's an association *
- if(field.isMultiValued())
+ if (field.isMultiValued()) {
buffer.append(SynchTools.getMultiValued(itype, field.getType().getElementName(), preference));
- else
+ } else {
buffer.append(field.getType().getElementName());
+ }
- // create type
+ // create type
buffer.append(" " + field.getElementName());
- if(field.getValue() != null) {
+ if (field.getValue() != null) {
buffer.append(" = ");
- if(field.getType().getElementName().equals("char"))
+ if (field.getType().getElementName().equals("char")) {
buffer.append("'" + field.getValue().toString() + "'");
- else if(field.getType().getElementName().equals("String"))
+ } else if (field.getType().getElementName().equals("String")) {
buffer.append("\"" + field.getValue().toString() + "\"");
- else
+ } else {
buffer.append(field.getValue().toString());
+ }
}
buffer.append(";");
@@ -103,13 +106,13 @@ public class SynchJDTField extends SynchJDTCommentable {
// create type
ifield = itype.createField(buffer.toString(), null, true, null);
- // add javadoc to method
+ // add javadoc to method
createJavaDocFor(ifield, ifield.getCompilationUnit(), field.getComment(), "");
}
- else if(field.getType() == null) {
+ else if (field.getType() == null) {
System.err.println("No type specified for "
+ field.getOwner().getQualifiedName()
- + "." + field.getElementName() );
+ + "." + field.getElementName());
}
@@ -117,31 +120,32 @@ public class SynchJDTField extends SynchJDTCommentable {
generateExplicitImports(field, itype);
} catch (JavaModelException e) {
-// e.printStackTrace();
+ // e.printStackTrace();
String msg = "Can't generate field (class='"
+ field.getOwner().getQualifiedName()
+ "', msg= " + e.getMessage()
+ ", buffer=" + buffer.toString()
+ ")";
-// System.err.println(msg);
-// throw new JDTVisitorException( msg, e.getCause());
+ // System.err.println(msg);
+ // throw new JDTVisitorException( msg, e.getCause());
propagateException(msg, e);
} catch (Exception e) {
-// e.printStackTrace();
-// throw new JDTVisitorException(e.getMessage(), e.getCause());
+ // e.printStackTrace();
+ // throw new JDTVisitorException(e.getMessage(), e.getCause());
propagateException(e.getMessage(), e);
}
}
/**
- * Propagate a {@link JDTVisitorException} if the flag is not set
+ * Propagate a {@link JDTVisitorException} if the flag is not set
+ *
* @param msg
* @param e
* @throws JDTVisitorException
*/
private void propagateException(String msg, Throwable e) throws JDTVisitorException {
-
- if(preference.stopOnFirstError()) {
+
+ if (preference.stopOnFirstError()) {
throw new JDTVisitorException(msg, e.getCause());
}
else {
@@ -150,22 +154,23 @@ public class SynchJDTField extends SynchJDTCommentable {
e.printStackTrace();
}
}
-
+
@Override
protected BodyDeclaration searchElementToInsert(CompilationUnit cu,
IJavaElement field) {
// search Itype parent
- if(field.getParent() instanceof IType) {
- IType itype = (IType)field.getParent();
+ if (field.getParent() instanceof IType) {
+ IType itype = (IType) field.getParent();
// find the good type
- TypeDeclaration type = searchType((TypeDeclaration)cu.types().get(0), itype.getElementName());
+ TypeDeclaration type = searchType((TypeDeclaration) cu.types().get(0), itype.getElementName());
// search the method. Fortunately, there are no method getSignature() for the type FieldDeclaration.
// So, we search manually
- for(FieldDeclaration fs : type.getFields()) {
- if(fs.toString().contains((field.getElementName())))
+ for (FieldDeclaration fs : type.getFields()) {
+ if (fs.toString().contains((field.getElementName()))) {
return fs;
+ }
}
}
return null;
@@ -179,31 +184,34 @@ public class SynchJDTField extends SynchJDTCommentable {
/**
* Generate imports that are explicitly declared in the type
- * @param field2 The src type to be transformed
- * @param destType The jdt dest type to be generated
- * @throws JavaModelException
- * @throws JDTVisitorException
+ *
+ * @param field2
+ * The src type to be transformed
+ * @param destType
+ * The jdt dest type to be generated
+ * @throws JavaModelException
+ * @throws JDTVisitorException
*/
private void generateExplicitImports(JDTField field2, IType destType) throws JDTVisitorException {
-
-
- // Add explicit type
- for( JDTType anImport : field2.getExplicitRequiredImports()) {
+
+
+ // Add explicit type
+ for (JDTType anImport : field2.getExplicitRequiredImports()) {
try {
destType.getCompilationUnit().createImport(anImport.getQualifiedName(), null, null);
} catch (Exception e) {
propagateException(destType.getFullyQualifiedName() + "Can't add explicit import " + anImport.getQualifiedName(), e);
}
}
-
+
// Add explicit plain text types
- for( String anImport : field2.getExplicitPlainTextRequiredImports()) {
+ for (String anImport : field2.getExplicitPlainTextRequiredImports()) {
try {
destType.getCompilationUnit().createImport(anImport, null, null);
} catch (JavaModelException e) {
propagateException(destType.getFullyQualifiedName() + "Can't add explicit plain text import " + anImport, e);
}
}
-
+
}
}
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTGetterSetter.java b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTGetterSetter.java
index 74f1b14fe9b..7afad1c1814 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTGetterSetter.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTGetterSetter.java
@@ -10,7 +10,7 @@
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Initial API and implementation
* Manuel Giles giles.manu@live.fr - Initial API and implementation
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
*
*****************************************************************************/
@@ -44,9 +44,9 @@ public class SynchJDTGetterSetter extends SynchJDTMethod {
@Override
public void visit(JDTJavaElement element) throws JDTVisitorException {
- this.field = (JDTField)element;
+ this.field = (JDTField) element;
// error if field.getType() == null. indicate in console only
- if(field.getType() == null) {
+ if (field.getType() == null) {
System.err.println("l31 SunchJDTGetterSetter : field.getType() est null pour " + field.getElementName() + " dans " + field.getOwner().getElementName());
return;
}
@@ -57,14 +57,14 @@ public class SynchJDTGetterSetter extends SynchJDTMethod {
String fieldNameCap = field.getElementName().replaceFirst(".", (field.getElementName().charAt(0) + "").toUpperCase());
// generate getter
- if(field.getGenerateGetter() == TrueFalseDefault.TRUE || // user demand generate getter
- field.getGenerateGetter() == TrueFalseDefault.DEFAULT && preference.generateGetters()) { // or no demand, look at preferences
+ if (field.getGenerateGetter() == TrueFalseDefault.TRUE || // user demand generate getter
+ field.getGenerateGetter() == TrueFalseDefault.DEFAULT && preference.generateGetters()) { // or no demand, look at preferences
StringBuffer bufferGet = new StringBuffer();
bufferGet.append("public ");
// handle MultiValued
- if(field.isMultiValued()) {
+ if (field.isMultiValued()) {
bufferGet.append(SynchTools.getMultiValued(itype, field.getType().getElementName(), preference));
} else {
bufferGet.append(field.getType().getElementName());
@@ -78,7 +78,7 @@ public class SynchJDTGetterSetter extends SynchJDTMethod {
IMethod imethod = SynchTools.searchIJavaElement(itype.getMethods(), "get" + fieldNameCap);
- if(imethod == null) {
+ if (imethod == null) {
IMethod methodGet = itype.createMethod(bufferGet.toString(), null, true, null);
createJavaDocFor(methodGet, itype.getCompilationUnit(), "Getter of " + field.getElementName(), "");
}
@@ -86,14 +86,14 @@ public class SynchJDTGetterSetter extends SynchJDTMethod {
// generate setter
- if(field.getGenerateSetter() == TrueFalseDefault.TRUE || // user demand generate setter
- field.getGenerateSetter() == TrueFalseDefault.DEFAULT && preference.generateSetters()) { // or no demand, look at preferences
+ if (field.getGenerateSetter() == TrueFalseDefault.TRUE || // user demand generate setter
+ field.getGenerateSetter() == TrueFalseDefault.DEFAULT && preference.generateSetters()) { // or no demand, look at preferences
StringBuffer bufferSet = new StringBuffer();
bufferSet.append("public void set" + fieldNameCap + "(");
// handle MultiValued
- if(field.isMultiValued()) {
+ if (field.isMultiValued()) {
bufferSet.append(SynchTools.getMultiValued(itype, field.getType().getElementName(), preference));
} else {
bufferSet.append(field.getType().getElementName());
@@ -106,7 +106,7 @@ public class SynchJDTGetterSetter extends SynchJDTMethod {
IMethod imethod = SynchTools.searchIJavaElement(itype.getMethods(), "set" + fieldNameCap);
- if(imethod == null) {
+ if (imethod == null) {
IMethod methodSet = itype.createMethod(bufferSet.toString(), null, true, null);
createJavaDocFor(methodSet, itype.getCompilationUnit(), "Setter of " + field.getElementName(), "");
}
@@ -127,16 +127,16 @@ public class SynchJDTGetterSetter extends SynchJDTMethod {
IJavaElement method) {
// search Itype parent
- if(method.getParent() instanceof IType) {
- IType itype = (IType)method.getParent();
+ if (method.getParent() instanceof IType) {
+ IType itype = (IType) method.getParent();
// find the good type
- TypeDeclaration type = searchType((TypeDeclaration)cu.types().get(0), itype.getElementName());
+ TypeDeclaration type = searchType((TypeDeclaration) cu.types().get(0), itype.getElementName());
// search the method. Fortunately, there are no method getSignature() for the type MethodDeclaration.
// So, we search manually
- for(MethodDeclaration m : type.getMethods())
- if(m.getName().toString().equals(method.getElementName())) {
- // verify the signature
+ for (MethodDeclaration m : type.getMethods()) {
+ if (m.getName().toString().equals(method.getElementName())) {
+ // verify the signature
return m;
/*
* TODO
@@ -159,6 +159,7 @@ public class SynchJDTGetterSetter extends SynchJDTMethod {
* }
*/
}
+ }
}
return null;
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTJavaModel.java b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTJavaModel.java
index 96413de28fa..7dc71d9ccef 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTJavaModel.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTJavaModel.java
@@ -10,7 +10,7 @@
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Initial API and implementation
* Manuel Giles giles.manu@live.fr - Initial API and implementation
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
*
*****************************************************************************/
@@ -30,9 +30,9 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.visitor.JDTVisitor
/**
* Allow to generate Code thanks to a JDT model
- *
+ *
* @author Deblock Nicolas & Manuel Giles
- *
+ *
*/
public class SynchJDTJavaModel implements JDTVisitor {
@@ -40,22 +40,24 @@ public class SynchJDTJavaModel implements JDTVisitor {
/**
* Constructor
- *
+ *
* @param modelJDT
- * the model JDT to generate
+ * the model JDT to generate
*/
public SynchJDTJavaModel(GeneratorPreference preference) {
this.preference = preference;
}
+ @Override
public void visit(JDTJavaElement element) throws JDTVisitorException {
// if element can't be generated, we stop all
- //if(!element.isGenerated()) return ;
+ // if(!element.isGenerated()) return ;
- if(!(element instanceof JDTJavaModel))
+ if (!(element instanceof JDTJavaModel)) {
return;
+ }
// cast element to JDTJavaModel
- JDTJavaModel model = (JDTJavaModel)element;
+ JDTJavaModel model = (JDTJavaModel) element;
// research the IJavaModel
IWorkspaceRoot iroot = ResourcesPlugin.getWorkspace().getRoot();
@@ -64,7 +66,7 @@ public class SynchJDTJavaModel implements JDTVisitor {
// browse all JDTJavaProject and call the visit
JDTVisitor visitor = new SynchJDTJavaProject(ijm, iroot, preference);
- for(JDTJavaProject root : model.getJavaProject()) {
+ for (JDTJavaProject root : model.getJavaProject()) {
root.accept(visitor);
}
}
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTJavaProject.java b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTJavaProject.java
index 2908c9ddc6c..fa545843b69 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTJavaProject.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTJavaProject.java
@@ -10,7 +10,7 @@
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Initial API and implementation
* Manuel Giles giles.manu@live.fr - Initial API and implementation
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
*
*****************************************************************************/
@@ -40,9 +40,9 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.visitor.JDTVisitor
/**
* Allow to generate Code thanks to a JDT model
- *
+ *
* @author Deblock Nicolas & Manuel Giles
- *
+ *
*/
public class SynchJDTJavaProject implements JDTVisitor {
@@ -54,9 +54,9 @@ public class SynchJDTJavaProject implements JDTVisitor {
/**
* Constructor
- *
+ *
* @param modelJDT
- * the model JDT to generate
+ * the model JDT to generate
*/
public SynchJDTJavaProject(IJavaModel ijm, IWorkspaceRoot iroot, GeneratorPreference preference) {
this.ijm = ijm;
@@ -65,39 +65,42 @@ public class SynchJDTJavaProject implements JDTVisitor {
}
+ @Override
public void visit(JDTJavaElement element) throws JDTVisitorException {
// if element can't be generated, we stop all
- if(!element.isGenerated())
+ if (!element.isGenerated()) {
return;
+ }
- if(!(element instanceof JDTJavaProject))
+ if (!(element instanceof JDTJavaProject)) {
return;
+ }
// cast element to JDTJavaProject
- JDTJavaProject project = (JDTJavaProject)element;
+ JDTJavaProject project = (JDTJavaProject) element;
// set the multi-value for the metamodel
JdtmmPreference.setClassMultiValue(preference.genericClassForMultiValue().substring(preference.genericClassForMultiValue().lastIndexOf(".") + 1));
- // search IJavaProject
- //IProject projet = iroot.getProject(project.getElementName());
+ // search IJavaProject
+ // IProject projet = iroot.getProject(project.getElementName());
IJavaProject ijavaProjet = ijm.getJavaProject(project.getElementName());
IProject proj;
// if ijavaProjet don't exist, create this!
- if(!ijavaProjet.exists()) {
+ if (!ijavaProjet.exists()) {
try {
proj = iroot.getProject(project.getElementName());
- if(!proj.exists()) {
+ if (!proj.exists()) {
proj.create(null);
proj.open(null);
- } else if(!proj.isOpen()) {
+ } else if (!proj.isOpen()) {
proj.open(null);
}
// Specifies type of project
IProjectDescription description = proj.getDescription();
- description.setNatureIds(new String[]{ JavaCore.NATURE_ID });
+ description.setNatureIds(new String[] { JavaCore.NATURE_ID });
proj.setDescription(description, null);
} catch (CoreException e) {
e.printStackTrace();
@@ -107,7 +110,7 @@ public class SynchJDTJavaProject implements JDTVisitor {
ijavaProjet = JavaCore.create(proj);
}
- // include the default JRE library if don't exist
+ // include the default JRE library if don't exist
List<IClasspathEntry> entries = new ArrayList<IClasspathEntry>();
IVMInstall vmInstall = JavaRuntime.getDefaultVMInstall();
boolean creerJRE = true;
@@ -115,13 +118,14 @@ public class SynchJDTJavaProject implements JDTVisitor {
try {
// take libs to project class path
- for(IClasspathEntry elem : ijavaProjet.getRawClasspath()) {
- if(elem.getPath().toString().contains(JavaRuntime.JRE_CONTAINER))
+ for (IClasspathEntry elem : ijavaProjet.getRawClasspath()) {
+ if (elem.getPath().toString().contains(JavaRuntime.JRE_CONTAINER)) {
creerJRE = false;
+ }
entries.add(elem);
}
// if jre don't exist, we add it to classpath
- if(creerJRE) {
+ if (creerJRE) {
entries.add(JavaCore.newContainerEntry(JavaRuntime.newJREContainerPath(vmInstall)));
ijavaProjet.setRawClasspath(entries.toArray(new IClasspathEntry[entries.size()]), null);
}
@@ -134,7 +138,7 @@ public class SynchJDTJavaProject implements JDTVisitor {
// browse all PackageFragmentRoot and call the visit
JDTVisitor visitor = new SynchJDTPackageFragmentRoot(ijavaProjet, preference);
- for(JDTPackageFragmentRoot root : project.getPackageFragmentRoots()) {
+ for (JDTPackageFragmentRoot root : project.getPackageFragmentRoots()) {
root.accept(visitor);
}
}
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTMethod.java b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTMethod.java
index 8cc86a44175..79371dcfe7d 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTMethod.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTMethod.java
@@ -10,7 +10,7 @@
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Initial API and implementation
* Manuel Giles giles.manu@live.fr - Initial API and implementation
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
*
*****************************************************************************/
@@ -42,9 +42,9 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.visitor.JDTVisitor
/**
* Allow to generate Method in a IType
- *
+ *
* @author Deblock Nicolas & Manuel Giles
- *
+ *
*/
public class SynchJDTMethod extends SynchJDTCommentable {
@@ -56,9 +56,9 @@ public class SynchJDTMethod extends SynchJDTCommentable {
/**
* Constructor
- *
+ *
* @param itype
- * the type parent
+ * the type parent
*/
public SynchJDTMethod(IType itype, GeneratorPreference preference) {
super();
@@ -68,22 +68,24 @@ public class SynchJDTMethod extends SynchJDTCommentable {
+ @Override
public void visit(JDTJavaElement element) throws JDTVisitorException {
// if element can't be generated, we stop all
- if(!element.isGenerated())
+ if (!element.isGenerated()) {
return;
+ }
- method = (JDTMethod)element;
- //IntroduceParameterObjectDescript
+ method = (JDTMethod) element;
+ // IntroduceParameterObjectDescript
IMethod imethod = null;
try {
// See if the method exist
boolean createMethod = true;
- for(IMethod m : itype.getMethods()) {
- // if it's the same name, and the same parameterTypes, the method exist
- if(m.getElementName().equals(method.getElementName()) && m.getSignature().equals(method.getJDTSignature())) {
+ for (IMethod m : itype.getMethods()) {
+ // if it's the same name, and the same parameterTypes, the method exist
+ if (m.getElementName().equals(method.getElementName()) && m.getSignature().equals(method.getJDTSignature())) {
// stop all
createMethod = false;
imethod = m;
@@ -91,27 +93,28 @@ public class SynchJDTMethod extends SynchJDTCommentable {
}
}
- if(createMethod) {
+ if (createMethod) {
StringBuffer methodStr = new StringBuffer("\n");
// visibility
- if(itype.isInterface()) // for a interface, there are only public method!
+ if (itype.isInterface()) {
methodStr.append("public ");
- else
+ } else {
methodStr.append(SynchTools.getVisibility(method).toString());
+ }
// if method is a constructor, no return Type, and name is class name
- if(method.isConstructor()) {
+ if (method.isConstructor()) {
methodStr.append(itype.getElementName() + "(");
}
else {
// return type
- if(method.getReturnType() != null) {
+ if (method.getReturnType() != null) {
// Compute the type, taken into account multivalue
String type = getTypeAsString(method.getReturnType());
- // put the import package
+ // put the import package
SynchTools.createImport(itype, method.getOwner(), method.getReturnType().getType());
-
+
methodStr.append(type + " ");
}
else {
@@ -121,21 +124,22 @@ public class SynchJDTMethod extends SynchJDTCommentable {
methodStr.append(method.getElementName() + "(");
}
// parameters
- //System.out.println(method.getParam() + " " + method.getParameterTypes());
+ // System.out.println(method.getParam() + " " + method.getParameterTypes());
int nbParam = 0;
- for(JDTParameter p : method.getParameters()) {
+ for (JDTParameter p : method.getParameters()) {
String typeName = p.getElementName();
String type = "Undefined";
- if(p.getType() != null) {
+ if (p.getType() != null) {
// Compute the type, taken into account multivalue
type = getTypeAsString(p);
- // put the import package
+ // put the import package
SynchTools.createImport(itype, method.getOwner(), p.getType());
}
- if(nbParam > 0)
+ if (nbParam > 0) {
methodStr.append(", ");
+ }
methodStr.append(type + " " + typeName);
nbParam++;
}
@@ -143,42 +147,45 @@ public class SynchJDTMethod extends SynchJDTCommentable {
// close
methodStr.append(")");
- // throws
- if(method.getExceptions() != null && method.getExceptions().size() > 0) {
+ // throws
+ if (method.getExceptions() != null && method.getExceptions().size() > 0) {
methodStr.append(" throws ");
int nbExc = 0;
- for(JDTType exception : method.getExceptions()) {
- if(nbExc > 0)
+ for (JDTType exception : method.getExceptions()) {
+ if (nbExc > 0) {
methodStr.append(", ");
+ }
methodStr.append(exception.getElementName());
- if(!SynchTools.isPrimiveType(exception.getQualifiedName()) && exception.getQualifiedName().contains("."))
+ if (!SynchTools.isPrimiveType(exception.getQualifiedName()) && exception.getQualifiedName().contains(".")) {
itype.getCompilationUnit().createImport(exception.getQualifiedName(), null, null);
+ }
nbExc++;
}
}
// Do we need a body ?
- if(itype.isInterface() || Flags.isAbstract(method.getFlags())) {
+ if (itype.isInterface() || Flags.isAbstract(method.getFlags())) {
methodStr.append(";");
}
else {
// Generate Body. Open the body
methodStr.append(" {");
// If there is a declared body, use it. Otherwise, use the default body.
- if( method.getBodies().size() >0) {
+ if (method.getBodies().size() > 0) {
- for( JDTMethodBody body : method.getBodies()) {
+ for (JDTMethodBody body : method.getBodies()) {
methodStr.append("\n\t");
methodStr.append(body.asText());
}
-// methodStr.append("\n");
- }
+ // methodStr.append("\n");
+ }
else {
// Default body
methodStr.append(" \n\t// TODO Auto-generated method");
- if(method.getReturnType() != null)
+ if (method.getReturnType() != null) {
methodStr.append("\n\treturn " + SynchTools.defaultReturn(method.getReturnType().getType().getElementName()) + ";");
+ }
}
// Close the body
@@ -189,17 +196,17 @@ public class SynchJDTMethod extends SynchJDTCommentable {
imethod = itype.createMethod(methodStr.toString(), null, true, null);
}
- // add javadoc to method
+ // add javadoc to method
createJavaDocFor(imethod, imethod.getCompilationUnit(), method.getComment(), "");
// Add explicit imports
generateExplicitImports(method, itype);
} catch (JavaModelException e) {
-// e.printStackTrace();
-// throw new JDTVisitorException(e.getMessage(), e.getCause());
+ // e.printStackTrace();
+ // throw new JDTVisitorException(e.getMessage(), e.getCause());
propagateException(e.getMessage(), e);
} catch (Exception e) {
-// e.printStackTrace();
-// throw new JDTVisitorException(e.getMessage(), e.getCause());
+ // e.printStackTrace();
+ // throw new JDTVisitorException(e.getMessage(), e.getCause());
propagateException(e.getMessage(), e);
}
@@ -209,16 +216,18 @@ public class SynchJDTMethod extends SynchJDTCommentable {
/**
* Get the type of the parameter as a String. Take into account the multivalue setting.
+ *
* @param p
* @return
* @throws JavaModelException
*/
private String getTypeAsString(JDTParameter p) throws JavaModelException {
String type;
- if(p.isMultiValued())
+ if (p.isMultiValued()) {
type = SynchTools.getMultiValued(itype, p.getType().getElementName(), preference);
- else
+ } else {
type = p.getType().getElementName();
+ }
return type;
}
@@ -232,7 +241,7 @@ public class SynchJDTMethod extends SynchJDTCommentable {
@Override
/**
* search the method to insert Javadoc
- *
+ *
* @see org.eclipse.papyrus.java.generator.jdtsynchronizer.impl.SynchJDTCommentable#searchElementToInsert(org.eclipse.jdt.core.dom.CompilationUnit, org.eclipse.jdt.core.IJavaElement)
*
* @param cu
@@ -242,34 +251,38 @@ public class SynchJDTMethod extends SynchJDTCommentable {
protected BodyDeclaration searchElementToInsert(CompilationUnit cu, IJavaElement method) {
// search Itype parent
- if(method.getParent() instanceof IType) {
- IType itype = (IType)method.getParent();
+ if (method.getParent() instanceof IType) {
+ IType itype = (IType) method.getParent();
// find the good type
- TypeDeclaration type = searchType((TypeDeclaration)cu.types().get(0), itype.getElementName());
+ TypeDeclaration type = searchType((TypeDeclaration) cu.types().get(0), itype.getElementName());
// search the method. Fortunately, there are no method getSignature() for the type MethodDeclaration.
// So, we search manually
- for(MethodDeclaration m : type.getMethods())
- if(m.getName().toString().equals(method.getElementName())) {
- // verify the signature
- if(m.parameters() != null && m.parameters().size() == 0 && this.method.getParameters().size() == 0)
+ for (MethodDeclaration m : type.getMethods()) {
+ if (m.getName().toString().equals(method.getElementName())) {
+ // verify the signature
+ if (m.parameters() != null && m.parameters().size() == 0 && this.method.getParameters().size() == 0) {
return m;
- if(m.parameters().size() == this.method.getParameters().size()) {
+ }
+ if (m.parameters().size() == this.method.getParameters().size()) {
int numParam = 0;
boolean goodSignature = true;
- for(Object paramObj : m.parameters()) {
- if(paramObj instanceof SingleVariableDeclaration) {
- SingleVariableDeclaration param = (SingleVariableDeclaration)paramObj;
- if(!param.getType().toString().equals(this.method.getParameters().get(numParam).getType().getElementName()))
+ for (Object paramObj : m.parameters()) {
+ if (paramObj instanceof SingleVariableDeclaration) {
+ SingleVariableDeclaration param = (SingleVariableDeclaration) paramObj;
+ if (!param.getType().toString().equals(this.method.getParameters().get(numParam).getType().getElementName())) {
goodSignature = false;
+ }
numParam++;
}
}
- if(goodSignature)
+ if (goodSignature) {
return m;
+ }
}
}
+ }
}
return null;
@@ -278,31 +291,34 @@ public class SynchJDTMethod extends SynchJDTCommentable {
@Override
protected List<String> getJavadocTags() {
List<String> lst = new LinkedList<String>();
- if(method == null)
+ if (method == null) {
return lst;
+ }
// parameters
- for(JDTParameter param : method.getParameters()) {
+ for (JDTParameter param : method.getParameters()) {
String comment = param.getComment();
- if(comment == null)
+ if (comment == null) {
comment = "";
+ }
lst.add(TagElement.TAG_PARAM + " " + param.getElementName() + " " + comment);
}
// return
- if(method.getReturnType() != null) {
+ if (method.getReturnType() != null) {
String comment = method.getReturnType().getComment();
- if(comment == null)
+ if (comment == null) {
comment = "";
+ }
lst.add(TagElement.TAG_RETURN + " " + comment);
}
// exception
- // TODO prendre en compte notion de commentaire
- if(method.getExceptions() != null) {
- for(JDTType exception : method.getExceptions()) {
- //String comment = exception.getComment();
- //if(comment == null) comment = "";
+ // TODO prendre en compte notion de commentaire
+ if (method.getExceptions() != null) {
+ for (JDTType exception : method.getExceptions()) {
+ // String comment = exception.getComment();
+ // if(comment == null) comment = "";
lst.add(TagElement.TAG_THROWS + " " + exception.getElementName());
}
}
@@ -315,14 +331,15 @@ public class SynchJDTMethod extends SynchJDTCommentable {
/**
- * Propagate a {@link JDTVisitorException} if the flag is not set
+ * Propagate a {@link JDTVisitorException} if the flag is not set
+ *
* @param msg
* @param e
* @throws JDTVisitorException
*/
private void propagateException(String msg, Throwable e) throws JDTVisitorException {
-
- if(preference.stopOnFirstError()) {
+
+ if (preference.stopOnFirstError()) {
throw new JDTVisitorException(msg, e.getCause());
}
else {
@@ -336,32 +353,35 @@ public class SynchJDTMethod extends SynchJDTCommentable {
/**
* Generate imports that are explicitly declared in the type
- * @param srcType The src type to be transformed
- * @param destType The jdt dest type to be generated
- * @throws JavaModelException
- * @throws JDTVisitorException
+ *
+ * @param srcType
+ * The src type to be transformed
+ * @param destType
+ * The jdt dest type to be generated
+ * @throws JavaModelException
+ * @throws JDTVisitorException
*/
private void generateExplicitImports(JDTMethod srcType, IType destType) throws JDTVisitorException {
-
-
- // Add explicit type
- for( JDTType anImport : srcType.getExplicitRequiredImports()) {
+
+
+ // Add explicit type
+ for (JDTType anImport : srcType.getExplicitRequiredImports()) {
try {
destType.getCompilationUnit().createImport(anImport.getQualifiedName(), null, null);
} catch (Exception e) {
propagateException(destType.getFullyQualifiedName() + "Can't add explicit import " + anImport.getQualifiedName(), e);
}
}
-
+
// Add explicit plain text types
- for( String anImport : srcType.getExplicitPlainTextRequiredImports()) {
+ for (String anImport : srcType.getExplicitPlainTextRequiredImports()) {
try {
destType.getCompilationUnit().createImport(anImport, null, null);
} catch (JavaModelException e) {
propagateException(destType.getFullyQualifiedName() + "Can't add explicit plain text import " + anImport, e);
}
}
-
+
}
}
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTPackageFragment.java b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTPackageFragment.java
index 0a7834c4617..7426838392c 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTPackageFragment.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTPackageFragment.java
@@ -10,7 +10,7 @@
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Initial API and implementation
* Manuel Giles giles.manu@live.fr - Initial API and implementation
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
*
*****************************************************************************/
@@ -31,9 +31,9 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.visitor.JDTVisitor
/**
* allow to generate package fragment
- *
+ *
* @author Deblock Nicolas & Manuel Giles
- *
+ *
*/
public class SynchJDTPackageFragment extends EObjectImpl implements JDTVisitor {
@@ -43,9 +43,9 @@ public class SynchJDTPackageFragment extends EObjectImpl implements JDTVisitor {
/**
* Constructor
- *
+ *
* @param iroot
- * the IPackageFragmentRoot parent
+ * the IPackageFragmentRoot parent
*/
public SynchJDTPackageFragment(IPackageFragmentRoot iroot, GeneratorPreference preference) {
super();
@@ -54,14 +54,17 @@ public class SynchJDTPackageFragment extends EObjectImpl implements JDTVisitor {
}
+ @Override
public void visit(JDTJavaElement element) throws JDTVisitorException {
// if element can't be generated, we stop all
- if(!element.isGenerated())
+ if (!element.isGenerated()) {
return;
- if(!preference.isPackageToGenerate(element.getElementName()))
+ }
+ if (!preference.isPackageToGenerate(element.getElementName())) {
return;
+ }
- JDTPackageFragment packag = (JDTPackageFragment)element;
+ JDTPackageFragment packag = (JDTPackageFragment) element;
try {
// search the package
@@ -69,20 +72,22 @@ public class SynchJDTPackageFragment extends EObjectImpl implements JDTVisitor {
IPackageFragment ipack = null;
- if((tmp = SynchTools.searchIJavaElement(iroot.getChildren(), packag.getElementName())) != null &&
- tmp instanceof IPackageFragment)
- ipack = (IPackageFragment)tmp;
+ if ((tmp = SynchTools.searchIJavaElement(iroot.getChildren(), packag.getElementName())) != null &&
+ tmp instanceof IPackageFragment) {
+ ipack = (IPackageFragment) tmp;
+ }
// if name=null, it's the default package
- if(packag.getQualifiedName() == null) {
+ if (packag.getQualifiedName() == null) {
// generate Compilation unit without package
IJavaElement defaultPackageElement = SynchTools.searchIJavaElement(iroot.getChildren(), IPackageFragment.DEFAULT_PACKAGE_NAME);
- if(defaultPackageElement != null)
- ipack = (IPackageFragment)defaultPackageElement;
+ if (defaultPackageElement != null) {
+ ipack = (IPackageFragment) defaultPackageElement;
+ }
}
// if the package don't exist, we create it!
- if(ipack == null) {
+ if (ipack == null) {
// find the name of the package
ipack = iroot.createPackageFragment(packag.getQualifiedName(), true, null);
@@ -91,8 +96,9 @@ public class SynchJDTPackageFragment extends EObjectImpl implements JDTVisitor {
// call the children compilationUnit
JDTVisitor visitor = new SynchJDTCompilationUnit(ipack, preference);
- for(JDTCompilationUnit cu : packag.getCompilationUnits())
+ for (JDTCompilationUnit cu : packag.getCompilationUnits()) {
cu.accept(visitor);
+ }
} catch (JavaModelException e) {
e.printStackTrace();
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTPackageFragmentRoot.java b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTPackageFragmentRoot.java
index b7537445c1b..cf023088416 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTPackageFragmentRoot.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTPackageFragmentRoot.java
@@ -10,7 +10,7 @@
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Initial API and implementation
* Manuel Giles giles.manu@live.fr - Initial API and implementation
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
*
*****************************************************************************/
@@ -37,9 +37,9 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.visitor.JDTVisitor
/**
* allow to generate package fragment root
- *
+ *
* @author Deblock Nicolas & Manuel Giles
- *
+ *
*/
public class SynchJDTPackageFragmentRoot implements JDTVisitor {
@@ -49,9 +49,9 @@ public class SynchJDTPackageFragmentRoot implements JDTVisitor {
/**
* Constructor
- *
+ *
* @param iprojet
- * the project parent
+ * the project parent
*/
public SynchJDTPackageFragmentRoot(IJavaProject iprojet, GeneratorPreference preference) {
super();
@@ -61,19 +61,21 @@ public class SynchJDTPackageFragmentRoot implements JDTVisitor {
+ @Override
public void visit(JDTJavaElement element) throws JDTVisitorException {
// if element can't be generated, we stop all
- if(!element.isGenerated())
+ if (!element.isGenerated()) {
return;
+ }
- JDTPackageFragmentRoot root = (JDTPackageFragmentRoot)element;
+ JDTPackageFragmentRoot root = (JDTPackageFragmentRoot) element;
try {
- // research JDTPackageFragmentRoot
+ // research JDTPackageFragmentRoot
IPackageFragmentRoot iroot = SynchTools.searchIJavaElement(iprojet.getAllPackageFragmentRoots(), root.getElementName());
// if IPackageFragmentRoot don't exist, we create this
- if(iroot == null) {
+ if (iroot == null) {
// create the folder
IFolder sourceFolder = iprojet.getProject().getFolder(root.getElementName());
try {
@@ -87,10 +89,11 @@ public class SynchJDTPackageFragmentRoot implements JDTVisitor {
List<IClasspathEntry> newEntries = new ArrayList<IClasspathEntry>();
// copy the old entries in new entries
- for(int i = 0; i < oldEntries.length; i++) {
+ for (int i = 0; i < oldEntries.length; i++) {
// don't take the /projectName, else an exception are throw
- if(oldEntries[i] != null && !oldEntries[i].getPath().toString().equals("/" + iprojet.getElementName()))
+ if (oldEntries[i] != null && !oldEntries[i].getPath().toString().equals("/" + iprojet.getElementName())) {
newEntries.add(oldEntries[i]);
+ }
}
// add the new packageFragmentRoot
@@ -105,7 +108,7 @@ public class SynchJDTPackageFragmentRoot implements JDTVisitor {
// call children
JDTVisitor visitPackageFragment = new SynchJDTPackageFragment(iroot, preference);
- for(JDTPackageFragment ipack : root.getPackageFragments()) {
+ for (JDTPackageFragment ipack : root.getPackageFragments()) {
ipack.accept(visitPackageFragment);
}
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTType.java b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTType.java
index 07a74f1cc6b..8ff6928b8cc 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTType.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchJDTType.java
@@ -10,7 +10,7 @@
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Initial API and implementation
* Manuel Giles giles.manu@live.fr - Initial API and implementation
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
*
*****************************************************************************/
@@ -41,9 +41,9 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.visitor.JDTVisitor
/**
* Synchronize a JDTType with JDT.
* Can create a type to a ICompilationUnit or to a IType (useful for intern class).
- *
+ *
* @author Deblock Nicolas & Giles Manuel
- *
+ *
*/
public class SynchJDTType extends SynchJDTCommentable {
@@ -63,7 +63,7 @@ public class SynchJDTType extends SynchJDTCommentable {
/**
* Create a type to a ICompilationUnit
- *
+ *
* @param icu
*/
public SynchJDTType(ICompilationUnit icu, GeneratorPreference preference) {
@@ -74,7 +74,7 @@ public class SynchJDTType extends SynchJDTCommentable {
/**
* Create a type to a IType (useful for intern class)
- *
+ *
* @param itype
*/
public SynchJDTType(IType itype, GeneratorPreference preference) {
@@ -85,45 +85,50 @@ public class SynchJDTType extends SynchJDTCommentable {
+ @Override
public void visit(JDTJavaElement element) throws JDTVisitorException {
// if element can't be generated, we stop all
- if(!element.isGenerated())
+ if (!element.isGenerated()) {
return;
- if(SynchTools.isPrimiveType(element.getElementName()) && !element.getElementName().equals("String"))
+ }
+ if (SynchTools.isPrimiveType(element.getElementName()) && !element.getElementName().equals("String")) {
return;
+ }
- JDTType type = (JDTType)element;
+ JDTType type = (JDTType) element;
try {
IType it = SynchTools.searchIJavaElement(getTypes(), type.getElementName());
// generate type
- if(it == null) {
+ if (it == null) {
StringBuffer buffer = new StringBuffer();
buffer.append(SynchTools.getVisibility(type));
- //System.out.println("\n\n \t \t ####### " + type.isEnum());
+ // System.out.println("\n\n \t \t ####### " + type.isEnum());
- if(type.isClass())
+ if (type.isClass()) {
buffer.append("class ");
- else if(type.isInterface())
+ } else if (type.isInterface()) {
buffer.append("interface ");
- else if(type.isEnum()) {
+ } else if (type.isEnum()) {
- //System.out.println( type.getFields());
+ // System.out.println( type.getFields());
// generate the field
StringBuffer fieldStr = new StringBuffer();
int i = 0;
- for(JDTField field : type.getFields()) {
- if(i > 0)
+ for (JDTField field : type.getFields()) {
+ if (i > 0) {
fieldStr.append(",\n");
+ }
fieldStr.append("\t" + field.getElementName());
i++;
}
- if(!type.getFields().isEmpty())
+ if (!type.getFields().isEmpty()) {
fieldStr.append(";\n\n");
+ }
it = createType("public enum " + type.getElementName() + " { \n" + fieldStr + " \n } ", null, true, null);
return;
@@ -145,27 +150,30 @@ public class SynchJDTType extends SynchJDTCommentable {
}
// else, generate nothing
- else
+ else {
return;
+ }
buffer.append(type.getElementName());
- if(type.getSuperClass() != null) {
+ if (type.getSuperClass() != null) {
buffer.append(" extends ");
buffer.append(type.getSuperClass().getElementName());
}
- if(type.getSuperInterfaces() != null && type.getSuperInterfaces().size() > 0) {
- if(type.isInterface())
+ if (type.getSuperInterfaces() != null && type.getSuperInterfaces().size() > 0) {
+ if (type.isInterface()) {
buffer.append(" extends ");
- else
+ } else {
buffer.append(" implements ");
+ }
int i = 0;
- for(JDTType superInterface : type.getSuperInterfaces()) {
- if(i != 0)
+ for (JDTType superInterface : type.getSuperInterfaces()) {
+ if (i != 0) {
buffer.append(", ");
+ }
buffer.append(superInterface.getElementName());
i++;
}
@@ -175,45 +183,49 @@ public class SynchJDTType extends SynchJDTCommentable {
}
// add imports
- if(type.getSuperClass() != null)
+ if (type.getSuperClass() != null) {
SynchTools.createImport(it, type, type.getSuperClass());
+ }
- if(type.getSuperInterfaces() != null)
- for(JDTType superInterface : type.getSuperInterfaces())
+ if (type.getSuperInterfaces() != null) {
+ for (JDTType superInterface : type.getSuperInterfaces()) {
SynchTools.createImport(it, type, superInterface);
+ }
+ }
- // add javaDoc comment
- if(type.getComment() != null && !type.getComment().isEmpty()) {
+ // add javaDoc comment
+ if (type.getComment() != null && !type.getComment().isEmpty()) {
createJavaDocFor(it, it.getCompilationUnit(), type.getComment(), "");
}
// generate field
- if(!type.isEnum()) {
+ if (!type.isEnum()) {
JDTVisitor visitor = new SynchJDTField(it, preference);
- for(JDTField field : type.getFields())
+ for (JDTField field : type.getFields()) {
field.accept(visitor);
+ }
}
// generate getters and setters
JDTVisitor vgettersetter = new SynchJDTGetterSetter(it, preference);
- if(type.isClass()) {
- for(JDTField field : type.getFields()) {
+ if (type.isClass()) {
+ for (JDTField field : type.getFields()) {
field.accept(vgettersetter);
}
}
- // generate method
+ // generate method
JDTVisitor vmethod = new SynchJDTMethod(it, preference);
- for(JDTMethod method : type.getMethods()) {
+ for (JDTMethod method : type.getMethods()) {
method.accept(vmethod);
}
// The class implements interface methods only if it's not an abstract class
- if(!Flags.isAbstract(type.getFlags())) {
+ if (!Flags.isAbstract(type.getFlags())) {
// recover the superclass
JDTType superClass = type.getSuperClass();
@@ -222,13 +234,14 @@ public class SynchJDTType extends SynchJDTCommentable {
List<JDTType> allSuperInterfaces = getAllSuperInterfaces(type);
// Implement the abstract methods of the superClass (recursive method)
- if(preference.implementMethodsOfAbstractClass())
+ if (preference.implementMethodsOfAbstractClass()) {
implementSuperClassAbstractMethods(it, superClass);
+ }
// implements interfaces methods of the super-interfaces
- if(preference.implementMethodsOfIntefaces()) {
- for(JDTType superInterface : allSuperInterfaces) {
- for(JDTMethod superInterfaceMethod : superInterface.getMethods()) {
+ if (preference.implementMethodsOfIntefaces()) {
+ for (JDTType superInterface : allSuperInterfaces) {
+ for (JDTMethod superInterfaceMethod : superInterface.getMethods()) {
superInterfaceMethod.accept(vmethod);
}
}
@@ -238,13 +251,13 @@ public class SynchJDTType extends SynchJDTCommentable {
// generate nested class
JDTVisitor vClass = new SynchJDTType(it, preference);
- for(JDTType child : type.getTypes()) {
+ for (JDTType child : type.getTypes()) {
child.accept(vClass);
}
-
+
// Generate explicit imports
generateExplicitImports(type, it);
-
+
} catch (JavaModelException e) {
e.printStackTrace();
throw new JDTVisitorException(e.getMessage(), e.getCause());
@@ -258,64 +271,68 @@ public class SynchJDTType extends SynchJDTCommentable {
/**
* Generate imports that are explicitly declared in the type
- * @param it The jdt type to be generated
- * @throws JavaModelException
- * @throws JDTVisitorException
+ *
+ * @param it
+ * The jdt type to be generated
+ * @throws JavaModelException
+ * @throws JDTVisitorException
*/
private void generateExplicitImports(JDTType containerType, IType it) throws JDTVisitorException {
-
- // Add explicit type
- for( JDTType anImport : containerType.getExplicitRequiredImports()) {
+
+ // Add explicit type
+ for (JDTType anImport : containerType.getExplicitRequiredImports()) {
try {
it.getCompilationUnit().createImport(anImport.getQualifiedName(), null, null);
} catch (Exception e) {
propagateException(it.getFullyQualifiedName() + "Can't add explicit import " + anImport.getQualifiedName(), e);
}
}
-
+
// Add explicit plain text types
- for( String anImport : containerType.getExplicitPlainTextRequiredImports()) {
+ for (String anImport : containerType.getExplicitPlainTextRequiredImports()) {
try {
it.getCompilationUnit().createImport(anImport, null, null);
} catch (JavaModelException e) {
propagateException(it.getFullyQualifiedName() + "Can't add explicit plain text import " + anImport, e);
}
}
-
+
}
/**
* get current type
- *
+ *
* @return
* @throws JavaModelException
*/
private IType[] getTypes() throws JavaModelException {
- if(icu != null)
+ if (icu != null) {
return icu.getTypes();
+ }
return itype.getTypes();
}
/**
* create type for a element 'sibling'
- *
+ *
* @param contents
- * the source contents of the type declaration to add
+ * the source contents of the type declaration to add
* @param sibling
- * the existing element which the type will be inserted immediately before (if null, then this type will be inserted as the last type
- * declaration
+ * the existing element which the type will be inserted immediately before (if null, then this type will be inserted as the last type
+ * declaration
* @param force
- * a flag in case the same name already exists in this type
+ * a flag in case the same name already exists in this type
* @param monitor
- * the progress monitor to notify
+ * the progress monitor to notify
* @return the newly inserted type
* @throws JavaModelException
*/
private IType createType(String contents, IJavaElement sibling, boolean force, IProgressMonitor monitor) throws JavaModelException
{
- if(icu != null)
+ if (icu != null) {
return icu.createType(contents, sibling, force, monitor);
+ }
return itype.createType(contents, sibling, force, monitor);
}
@@ -323,9 +340,10 @@ public class SynchJDTType extends SynchJDTCommentable {
@Override
protected TypeDeclaration searchElementToInsert(CompilationUnit cu, IJavaElement typeName) {
- if(!(cu.types().get(0) instanceof TypeDeclaration))
+ if (!(cu.types().get(0) instanceof TypeDeclaration)) {
return null;
- TypeDeclaration classType = (TypeDeclaration)cu.types().get(0);
+ }
+ TypeDeclaration classType = (TypeDeclaration) cu.types().get(0);
return searchType(classType, typeName.getElementName());
}
@@ -339,7 +357,7 @@ public class SynchJDTType extends SynchJDTCommentable {
/**
* Collect all super interfaces from the super class and the super interfaces (JDTType). Recursive method.
- *
+ *
* @param superClass
* @return List of all super interfaces
*/
@@ -350,12 +368,12 @@ public class SynchJDTType extends SynchJDTCommentable {
superInterfaces.addAll(_type.getSuperInterfaces());
// add interfaces of the super class if it's abstract
- if(_type.getSuperClass() != null && _type.getSuperClass().isAbstract()) {
+ if (_type.getSuperClass() != null && _type.getSuperClass().isAbstract()) {
superInterfaces.addAll(getAllSuperInterfaces(_type.getSuperClass()));
}
// add interfaces of the super interfaces
- for(JDTType superInterface : _type.getSuperInterfaces()) {
+ for (JDTType superInterface : _type.getSuperInterfaces()) {
superInterfaces.addAll(getAllSuperInterfaces(superInterface));
}
@@ -364,21 +382,22 @@ public class SynchJDTType extends SynchJDTCommentable {
/**
* Implement the abstract methods of the superClass if the superClass is abstract. It's a recursive method on the super class of the super class.
- *
+ *
* @param it
* @param superClass
* @throws JDTVisitorException
*/
public void implementSuperClassAbstractMethods(IType it, JDTType superClass) throws JDTVisitorException {
- if(superClass == null)
+ if (superClass == null) {
return;
+ }
JDTVisitor vmethod = new SynchJDTMethod(it, preference);
- if(Flags.isAbstract(superClass.getFlags())) {
- for(JDTMethod superClassAbstractMethod : superClass.getMethods()) {
+ if (Flags.isAbstract(superClass.getFlags())) {
+ for (JDTMethod superClassAbstractMethod : superClass.getMethods()) {
// Skip if method is not abstract
- if( ! superClassAbstractMethod.isAbstract() ) {
+ if (!superClassAbstractMethod.isAbstract()) {
continue;
}
// Remove the abstract flag to not generate the method with the keyword "abstract"
@@ -389,20 +408,22 @@ public class SynchJDTType extends SynchJDTCommentable {
// Recursive call on the super class of superClass
JDTType superClassSuperClass = superClass.getSuperClass();
- if(superClassSuperClass != null)
+ if (superClassSuperClass != null) {
implementSuperClassAbstractMethods(it, superClassSuperClass);
+ }
}
}
/**
- * Propagate a {@link JDTVisitorException} if the flag is not set
+ * Propagate a {@link JDTVisitorException} if the flag is not set
+ *
* @param msg
* @param e
* @throws JDTVisitorException
*/
private void propagateException(String msg, Throwable e) throws JDTVisitorException {
-
- if(preference.stopOnFirstError()) {
+
+ if (preference.stopOnFirstError()) {
throw new JDTVisitorException(msg, e.getCause());
}
else {
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchTools.java b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchTools.java
index a079156aed4..dd5f152c21f 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchTools.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.jdtsynchronizer/src/org/eclipse/papyrus/java/generator/jdtsynchronizer/impl/SynchTools.java
@@ -10,7 +10,7 @@
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Initial API and implementation
* Manuel Giles giles.manu@live.fr - Initial API and implementation
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Idea of the java generator project & help for the conception
*
*****************************************************************************/
@@ -23,15 +23,14 @@ import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.papyrus.java.generator.jdtsynchronizer.GeneratorPreference;
-import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTField;
import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTMember;
import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTType;
/**
* gathers all the util function to synchronize with JDT
- *
+ *
* @author Nicolas Deblock and Manuel Giles
- *
+ *
*/
public class SynchTools {
@@ -39,19 +38,20 @@ public class SynchTools {
/**
* Find a IJavaElement in a list of IJavaElement
* It's util to search a children of a IJavaElement
- *
+ *
* @param <U>
- * a IJavaElement
+ * a IJavaElement
* @param lstElement
- * list of IJavaElement
+ * list of IJavaElement
* @param elementName
- * name of IJavaElement which is search
+ * name of IJavaElement which is search
* @return the element who is search, null if there is no element find
*/
public static <U extends IJavaElement> U searchIJavaElement(U[] lstElement, String elementName) {
- for(U e : lstElement) {
- if(e.getElementName().equals(elementName))
+ for (U e : lstElement) {
+ if (e.getElementName().equals(elementName)) {
return e;
+ }
}
return null;
}
@@ -59,121 +59,153 @@ public class SynchTools {
/**
* return the visibility of jdtMember :
* public or private or protected, abstract, static, final, synchronized
- *
+ *
* @param jdtMember
* @return visibility of jdtMember
*/
public static String getVisibility(JDTMember jdtMember) {
StringBuffer buffer = new StringBuffer();
- if(Flags.isPublic(jdtMember.getFlags()))
+ if (Flags.isPublic(jdtMember.getFlags())) {
buffer.append("public ");
- if(Flags.isPrivate(jdtMember.getFlags()))
+ }
+ if (Flags.isPrivate(jdtMember.getFlags())) {
buffer.append("private ");
- if(Flags.isProtected(jdtMember.getFlags()))
+ }
+ if (Flags.isProtected(jdtMember.getFlags())) {
buffer.append("protected ");
+ }
- if(Flags.isAbstract(jdtMember.getFlags()))
+ if (Flags.isAbstract(jdtMember.getFlags())) {
buffer.append("abstract ");
+ }
- if(Flags.isStatic(jdtMember.getFlags()))
+ if (Flags.isStatic(jdtMember.getFlags())) {
buffer.append("static ");
- if(Flags.isFinal(jdtMember.getFlags()))
+ }
+ if (Flags.isFinal(jdtMember.getFlags())) {
buffer.append("final ");
- if(Flags.isSynchronized(jdtMember.getFlags()))
+ }
+ if (Flags.isSynchronized(jdtMember.getFlags())) {
buffer.append("synchronized ");
+ }
return buffer.toString();
}
/**
* allow to know if a type is primitive
- *
+ *
* @param typename
* @return true if typename is a primive type
*/
public static boolean isPrimiveType(String typename) {
- if(typename.equals("byte") )
+ if (typename.equals("byte")) {
return true;
- if(typename.equals("char"))
+ }
+ if (typename.equals("char")) {
return true;
- if(typename.equals("double"))
+ }
+ if (typename.equals("double")) {
return true;
- if(typename.equals("float"))
+ }
+ if (typename.equals("float")) {
return true;
- if(typename.equals("int") )
+ }
+ if (typename.equals("int")) {
return true;
- if(typename.equals("long"))
+ }
+ if (typename.equals("long")) {
return true;
- if(typename.equals("short"))
+ }
+ if (typename.equals("short")) {
return true;
- if(typename.equals("boolean"))
+ }
+ if (typename.equals("boolean")) {
return true;
- if(typename.equals("String"))
+ }
+ if (typename.equals("String")) {
return true;
+ }
return false;
}
/**
* return the default return of a type (ex: 0 for a int, false for a boolean, null for a class,...)
- *
+ *
* @param typename
* @return true if typename is a primive type
*/
public static String defaultReturn(String typename) {
- if(typename.equals("byte"))
+ if (typename.equals("byte")) {
return "0";
- if(typename.equals("char"))
+ }
+ if (typename.equals("char")) {
return "0";
- if(typename.equals("double"))
+ }
+ if (typename.equals("double")) {
return "0";
- if(typename.equals("float"))
+ }
+ if (typename.equals("float")) {
return "0";
- if(typename.equals("int"))
+ }
+ if (typename.equals("int")) {
return "0";
- if(typename.equals("long"))
+ }
+ if (typename.equals("long")) {
return "0";
- if(typename.equals("short"))
+ }
+ if (typename.equals("short")) {
return "0";
- if(typename.equals("boolean"))
+ }
+ if (typename.equals("boolean")) {
return "false";
+ }
return "null";
}
/**
* return the Class of a primitive type (ex : int => Integer)
- *
+ *
* @param typename
* @return true if typename is a primive type
*/
private static String getPrimiveTypeClass(String typename) {
- if(typename.equals("byte"))
+ if (typename.equals("byte")) {
return "Byte";
- if(typename.equals("char"))
+ }
+ if (typename.equals("char")) {
return "Character";
- if(typename.equals("double"))
+ }
+ if (typename.equals("double")) {
return "Double";
- if(typename.equals("float"))
+ }
+ if (typename.equals("float")) {
return "Float";
- if(typename.equals("int"))
+ }
+ if (typename.equals("int")) {
return "Integer";
- if(typename.equals("long"))
+ }
+ if (typename.equals("long")) {
return "Long";
- if(typename.equals("short"))
+ }
+ if (typename.equals("short")) {
return "Short";
- if(typename.equals("boolean"))
+ }
+ if (typename.equals("boolean")) {
return "Boolean";
+ }
return typename;
}
public static String getPackageFragment(JDTType type) {
try {
- if(type.getCompilationUnit() != null) {
+ if (type.getCompilationUnit() != null) {
return type.getCompilationUnit().getPackageFragment().getQualifiedName();
- }
- else
+ } else {
return getPackageFragment(type.getOwner());
+ }
} catch (NullPointerException e) {
// id null pointer exception, we return null
return null;
@@ -185,27 +217,33 @@ public class SynchTools {
String packageImportType = getPackageFragment(importType);
// if no package to import, stop
- if(packageImportType == null)
+ if (packageImportType == null) {
return;
+ }
// if they have the same package, and if it is not a nested class, we stop
- if(packageCurrentType != null && importType.getCompilationUnit() != null && packageCurrentType.equals(packageImportType))
+ if (packageCurrentType != null && importType.getCompilationUnit() != null && packageCurrentType.equals(packageImportType)) {
return;
+ }
String _import = importType.getQualifiedName();
- if(!SynchTools.isPrimiveType(_import) && _import.contains("."))
+ if (!SynchTools.isPrimiveType(_import) && _import.contains(".")) {
itype.getCompilationUnit().createImport(_import, null, null);
+ }
}
/**
* Get the multivalued declaration for the specified typeName.
- *
- * @param type The enclosing type that will contains the declaration. Requested to ajust import.
- * @param typeName The type for wich a multivalued statement is requested
- * @param preference The preferences
+ *
+ * @param type
+ * The enclosing type that will contains the declaration. Requested to ajust import.
+ * @param typeName
+ * The type for wich a multivalued statement is requested
+ * @param preference
+ * The preferences
* @return The multivalued statement for the specified typeName.
- *
+ *
* @throws JavaModelException
*/
public static String getMultiValued(IType type, String typeName, GeneratorPreference preference) throws JavaModelException {
@@ -219,12 +257,15 @@ public class SynchTools {
/**
* Get the multivalued declaration for the specified typeName.
- *
- * @param type The enclosing type that will contains the declaration. Requested to ajust import.
- * @param typeName The type for wich a multivalued statement is requested
- * @param preference The preferences
+ *
+ * @param type
+ * The enclosing type that will contains the declaration. Requested to ajust import.
+ * @param typeName
+ * The type for wich a multivalued statement is requested
+ * @param preference
+ * The preferences
* @return The multivalued statement for the specified typeName.
- *
+ *
* @throws JavaModelException
*/
public static String getMultiValued(IType type, JDTType valueType, GeneratorPreference preference) throws JavaModelException {
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/provider/GeneratoroptionsmmEditPlugin.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/provider/GeneratoroptionsmmEditPlugin.java
index 8393cef4062..c765f54e180 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/provider/GeneratoroptionsmmEditPlugin.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/provider/GeneratoroptionsmmEditPlugin.java
@@ -10,6 +10,7 @@ import org.eclipse.emf.common.util.ResourceLocator;
* This is the central singleton for the Generatoroptionsmm edit plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public final class GeneratoroptionsmmEditPlugin extends EMFPlugin {
@@ -17,6 +18,7 @@ public final class GeneratoroptionsmmEditPlugin extends EMFPlugin {
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static final GeneratoroptionsmmEditPlugin INSTANCE = new GeneratoroptionsmmEditPlugin();
@@ -25,6 +27,7 @@ public final class GeneratoroptionsmmEditPlugin extends EMFPlugin {
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static Implementation plugin;
@@ -33,18 +36,19 @@ public final class GeneratoroptionsmmEditPlugin extends EMFPlugin {
* Create the instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public GeneratoroptionsmmEditPlugin() {
- super
- (new ResourceLocator [] {
- });
+ super(new ResourceLocator[] {
+ });
}
/**
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
@@ -57,6 +61,7 @@ public final class GeneratoroptionsmmEditPlugin extends EMFPlugin {
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
@@ -68,6 +73,7 @@ public final class GeneratoroptionsmmEditPlugin extends EMFPlugin {
* The actual implementation of the Eclipse <b>Plugin</b>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static class Implementation extends EclipsePlugin {
@@ -75,6 +81,7 @@ public final class GeneratoroptionsmmEditPlugin extends EMFPlugin {
* Creates an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Implementation() {
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/provider/GeneratoroptionsmmItemProviderAdapterFactory.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/provider/GeneratoroptionsmmItemProviderAdapterFactory.java
index 6a19c9106fc..04b42134489 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/provider/GeneratoroptionsmmItemProviderAdapterFactory.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/provider/GeneratoroptionsmmItemProviderAdapterFactory.java
@@ -30,6 +30,7 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.util.
* Note that most of the adapters are shared among multiple instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class GeneratoroptionsmmItemProviderAdapterFactory extends GeneratoroptionsmmAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
@@ -37,6 +38,7 @@ public class GeneratoroptionsmmItemProviderAdapterFactory extends Generatoroptio
* This keeps track of the root adapter factory that delegates to this adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ComposedAdapterFactory parentAdapterFactory;
@@ -45,6 +47,7 @@ public class GeneratoroptionsmmItemProviderAdapterFactory extends Generatoroptio
* This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IChangeNotifier changeNotifier = new ChangeNotifier();
@@ -53,6 +56,7 @@ public class GeneratoroptionsmmItemProviderAdapterFactory extends Generatoroptio
* This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<Object> supportedTypes = new ArrayList<Object>();
@@ -61,6 +65,7 @@ public class GeneratoroptionsmmItemProviderAdapterFactory extends Generatoroptio
* This constructs an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public GeneratoroptionsmmItemProviderAdapterFactory() {
@@ -75,6 +80,7 @@ public class GeneratoroptionsmmItemProviderAdapterFactory extends Generatoroptio
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.Options} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected OptionsItemProvider optionsItemProvider;
@@ -83,6 +89,7 @@ public class GeneratoroptionsmmItemProviderAdapterFactory extends Generatoroptio
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.Options}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -98,8 +105,10 @@ public class GeneratoroptionsmmItemProviderAdapterFactory extends Generatoroptio
* This returns the root adapter factory that contains this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public ComposeableAdapterFactory getRootAdapterFactory() {
return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
}
@@ -108,8 +117,10 @@ public class GeneratoroptionsmmItemProviderAdapterFactory extends Generatoroptio
* This sets the composed adapter factory that contains this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
this.parentAdapterFactory = parentAdapterFactory;
}
@@ -117,6 +128,7 @@ public class GeneratoroptionsmmItemProviderAdapterFactory extends Generatoroptio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -128,6 +140,7 @@ public class GeneratoroptionsmmItemProviderAdapterFactory extends Generatoroptio
* This implementation substitutes the factory itself as the key for the adapter.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -138,13 +151,14 @@ public class GeneratoroptionsmmItemProviderAdapterFactory extends Generatoroptio
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object adapt(Object object, Object type) {
if (isFactoryForType(type)) {
Object adapter = super.adapt(object, type);
- if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
+ if (!(type instanceof Class<?>) || (((Class<?>) type).isInstance(adapter))) {
return adapter;
}
}
@@ -156,8 +170,10 @@ public class GeneratoroptionsmmItemProviderAdapterFactory extends Generatoroptio
* This adds a listener.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void addListener(INotifyChangedListener notifyChangedListener) {
changeNotifier.addListener(notifyChangedListener);
}
@@ -166,8 +182,10 @@ public class GeneratoroptionsmmItemProviderAdapterFactory extends Generatoroptio
* This removes a listener.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void removeListener(INotifyChangedListener notifyChangedListener) {
changeNotifier.removeListener(notifyChangedListener);
}
@@ -176,8 +194,10 @@ public class GeneratoroptionsmmItemProviderAdapterFactory extends Generatoroptio
* This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void fireNotifyChanged(Notification notification) {
changeNotifier.fireNotifyChanged(notification);
@@ -187,13 +207,17 @@ public class GeneratoroptionsmmItemProviderAdapterFactory extends Generatoroptio
}
/**
- * This disposes all of the item providers created by this factory.
+ * This disposes all of the item providers created by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void dispose() {
- if (optionsItemProvider != null) optionsItemProvider.dispose();
+ if (optionsItemProvider != null) {
+ optionsItemProvider.dispose();
+ }
}
}
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/provider/OptionsItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/provider/OptionsItemProvider.java
index d1746ab5338..d84d390ec0a 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/provider/OptionsItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/provider/OptionsItemProvider.java
@@ -29,11 +29,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.Optio
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.Options} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class OptionsItemProvider
- extends ItemProviderAdapter
- implements
+public class OptionsItemProvider
+ extends ItemProviderAdapter
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -43,6 +44,7 @@ public class OptionsItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public OptionsItemProvider(AdapterFactory adapterFactory) {
@@ -53,6 +55,7 @@ public class OptionsItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -69,28 +72,30 @@ public class OptionsItemProvider
* This adds a property descriptor for the Default Source Folder feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addDefaultSourceFolderPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Options_defaultSourceFolder_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Options_defaultSourceFolder_feature", "_UI_Options_type"),
- GeneratoroptionsmmPackage.Literals.OPTIONS__DEFAULT_SOURCE_FOLDER,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Options_defaultSourceFolder_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Options_defaultSourceFolder_feature", "_UI_Options_type"),
+ GeneratoroptionsmmPackage.Literals.OPTIONS__DEFAULT_SOURCE_FOLDER,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This returns Options.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -102,22 +107,24 @@ public class OptionsItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((Options)object).getDefaultSourceFolder();
+ String label = ((Options) object).getDefaultSourceFolder();
return label == null || label.length() == 0 ?
- getString("_UI_Options_type") :
- getString("_UI_Options_type") + " " + label;
+ getString("_UI_Options_type") :
+ getString("_UI_Options_type") + " " + label;
}
-
+
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -125,9 +132,9 @@ public class OptionsItemProvider
updateChildren(notification);
switch (notification.getFeatureID(Options.class)) {
- case GeneratoroptionsmmPackage.OPTIONS__DEFAULT_SOURCE_FOLDER:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
+ case GeneratoroptionsmmPackage.OPTIONS__DEFAULT_SOURCE_FOLDER:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
}
super.notifyChanged(notification);
}
@@ -137,6 +144,7 @@ public class OptionsItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -148,6 +156,7 @@ public class OptionsItemProvider
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTClassItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTClassItemProvider.java
index f20f9c2cd9f..dd9b5301e78 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTClassItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTClassItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -42,11 +42,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTClass;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTClass} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTClassItemProvider
- extends JDTTypeItemProvider
- implements
+ extends JDTTypeItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -56,6 +57,7 @@ public class JDTClassItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTClassItemProvider(AdapterFactory adapterFactory) {
@@ -66,6 +68,7 @@ public class JDTClassItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -81,6 +84,7 @@ public class JDTClassItemProvider
* This returns JDTClass.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -92,14 +96,15 @@ public class JDTClassItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTClass)object).getElementName();
+ String label = ((JDTClass) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTClass_type") :
- getString("_UI_JDTClass_type") + " " + label;
+ getString("_UI_JDTClass_type") :
+ getString("_UI_JDTClass_type") + " " + label;
}
/**
@@ -107,6 +112,7 @@ public class JDTClassItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -120,6 +126,7 @@ public class JDTClassItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTCompilationUnitItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTCompilationUnitItemProvider.java
index e0efcbdc918..0a785e90c62 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTCompilationUnitItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTCompilationUnitItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -56,11 +56,12 @@ import org.eclipse.uml2.common.edit.command.SupersetRemoveCommand;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTCompilationUnit} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTCompilationUnitItemProvider
- extends JDTTypeRootItemProvider
- implements
+ extends JDTTypeRootItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -70,6 +71,7 @@ public class JDTCompilationUnitItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTCompilationUnitItemProvider(AdapterFactory adapterFactory) {
@@ -80,6 +82,7 @@ public class JDTCompilationUnitItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -92,11 +95,11 @@ public class JDTCompilationUnitItemProvider
}
/**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -111,6 +114,7 @@ public class JDTCompilationUnitItemProvider
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -125,6 +129,7 @@ public class JDTCompilationUnitItemProvider
* This returns JDTCompilationUnit.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -136,14 +141,15 @@ public class JDTCompilationUnitItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTCompilationUnit)object).getElementName();
+ String label = ((JDTCompilationUnit) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTCompilationUnit_type") :
- getString("_UI_JDTCompilationUnit_type") + " " + label;
+ getString("_UI_JDTCompilationUnit_type") :
+ getString("_UI_JDTCompilationUnit_type") + " " + label;
}
/**
@@ -151,6 +157,7 @@ public class JDTCompilationUnitItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -158,9 +165,9 @@ public class JDTCompilationUnitItemProvider
updateChildren(notification);
switch (notification.getFeatureID(JDTCompilationUnit.class)) {
- case JdtmmPackage.JDT_COMPILATION_UNIT__TYPES:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case JdtmmPackage.JDT_COMPILATION_UNIT__TYPES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -170,6 +177,7 @@ public class JDTCompilationUnitItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -177,62 +185,62 @@ public class JDTCompilationUnitItemProvider
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_COMPILATION_UNIT__TYPES,
- JdtmmFactory.eINSTANCE.createJDTClass()));
+ JdtmmFactory.eINSTANCE.createJDTClass()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_COMPILATION_UNIT__TYPES,
- JdtmmFactory.eINSTANCE.createJDTInterface()));
+ JdtmmFactory.eINSTANCE.createJDTInterface()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_COMPILATION_UNIT__TYPES,
- JdtmmFactory.eINSTANCE.createJDTEnum()));
+ JdtmmFactory.eINSTANCE.createJDTEnum()));
}
/**
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#createAddCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, java.util.Collection, int)
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
protected Command createAddCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, Collection<?> collection, int index) {
if (feature == JdtmmPackage.Literals.JDT_COMPILATION_UNIT__TYPES) {
- return new SubsetAddCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PARENT__CHILDREN}, collection, index);
+ return new SubsetAddCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PARENT__CHILDREN }, collection, index);
}
return super.createAddCommand(domain, owner, feature, collection, index);
}
/**
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#createRemoveCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, java.util.Collection)
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
protected Command createRemoveCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, Collection<?> collection) {
if (feature == JdtmmPackage.Literals.JDT_PARENT__CHILDREN) {
- return new SupersetRemoveCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_COMPILATION_UNIT__TYPES}, collection);
+ return new SupersetRemoveCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_COMPILATION_UNIT__TYPES }, collection);
}
return super.createRemoveCommand(domain, owner, feature, collection);
}
/**
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#createReplaceCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, org.eclipse.emf.ecore.EObject, java.util.Collection)
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
protected Command createReplaceCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, EObject value, Collection<?> collection) {
if (feature == JdtmmPackage.Literals.JDT_COMPILATION_UNIT__TYPES) {
- return new SubsetSupersetReplaceCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PARENT__CHILDREN}, null, value, collection);
+ return new SubsetSupersetReplaceCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PARENT__CHILDREN }, null, value, collection);
}
if (feature == JdtmmPackage.Literals.JDT_PARENT__CHILDREN) {
- return new SubsetSupersetReplaceCommand(domain, owner, feature, null, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_COMPILATION_UNIT__TYPES}, value, collection);
+ return new SubsetSupersetReplaceCommand(domain, owner, feature, null, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_COMPILATION_UNIT__TYPES }, value, collection);
}
return super.createReplaceCommand(domain, owner, feature, value, collection);
}
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTEnumItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTEnumItemProvider.java
index 1f79dbb50b2..d5bef8cca1c 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTEnumItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTEnumItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -42,11 +42,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTEnum;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTEnum} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTEnumItemProvider
- extends JDTTypeItemProvider
- implements
+ extends JDTTypeItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -56,6 +57,7 @@ public class JDTEnumItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTEnumItemProvider(AdapterFactory adapterFactory) {
@@ -66,6 +68,7 @@ public class JDTEnumItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -81,6 +84,7 @@ public class JDTEnumItemProvider
* This returns JDTEnum.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -92,14 +96,15 @@ public class JDTEnumItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTEnum)object).getElementName();
+ String label = ((JDTEnum) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTEnum_type") :
- getString("_UI_JDTEnum_type") + " " + label;
+ getString("_UI_JDTEnum_type") :
+ getString("_UI_JDTEnum_type") + " " + label;
}
/**
@@ -107,6 +112,7 @@ public class JDTEnumItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -120,6 +126,7 @@ public class JDTEnumItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTExceptionItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTExceptionItemProvider.java
index d295b7b2b44..086b96bb5b5 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTExceptionItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTExceptionItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -43,11 +43,12 @@ import org.eclipse.emf.edit.provider.ItemProviderAdapter;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTException} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTExceptionItemProvider
- extends ItemProviderAdapter
- implements
+ extends ItemProviderAdapter
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -57,6 +58,7 @@ public class JDTExceptionItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTExceptionItemProvider(AdapterFactory adapterFactory) {
@@ -67,6 +69,7 @@ public class JDTExceptionItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -82,6 +85,7 @@ public class JDTExceptionItemProvider
* This returns JDTException.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -93,6 +97,7 @@ public class JDTExceptionItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -105,6 +110,7 @@ public class JDTExceptionItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -118,6 +124,7 @@ public class JDTExceptionItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -129,6 +136,7 @@ public class JDTExceptionItemProvider
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTFieldItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTFieldItemProvider.java
index 7a6eb509636..3132475137e 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTFieldItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTFieldItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -46,11 +46,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JdtmmPackage;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTField} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTFieldItemProvider
- extends JDTMemberItemProvider
- implements
+ extends JDTMemberItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -60,6 +61,7 @@ public class JDTFieldItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTFieldItemProvider(AdapterFactory adapterFactory) {
@@ -70,6 +72,7 @@ public class JDTFieldItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -93,182 +96,191 @@ public class JDTFieldItemProvider
* This adds a property descriptor for the Abstract feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addAbstractPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTField_abstract_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTField_abstract_feature", "_UI_JDTField_type"),
- JdtmmPackage.Literals.JDT_FIELD__ABSTRACT,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTField_abstract_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTField_abstract_feature", "_UI_JDTField_type"),
+ JdtmmPackage.Literals.JDT_FIELD__ABSTRACT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Final feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addFinalPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTField_final_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTField_final_feature", "_UI_JDTField_type"),
- JdtmmPackage.Literals.JDT_FIELD__FINAL,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTField_final_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTField_final_feature", "_UI_JDTField_type"),
+ JdtmmPackage.Literals.JDT_FIELD__FINAL,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Static feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addStaticPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTField_static_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTField_static_feature", "_UI_JDTField_type"),
- JdtmmPackage.Literals.JDT_FIELD__STATIC,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTField_static_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTField_static_feature", "_UI_JDTField_type"),
+ JdtmmPackage.Literals.JDT_FIELD__STATIC,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Is Multi Valued feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addIsMultiValuedPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTField_isMultiValued_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTField_isMultiValued_feature", "_UI_JDTField_type"),
- JdtmmPackage.Literals.JDT_FIELD__IS_MULTI_VALUED,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTField_isMultiValued_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTField_isMultiValued_feature", "_UI_JDTField_type"),
+ JdtmmPackage.Literals.JDT_FIELD__IS_MULTI_VALUED,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Type feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addTypePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTField_type_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTField_type_feature", "_UI_JDTField_type"),
- JdtmmPackage.Literals.JDT_FIELD__TYPE,
- true,
- false,
- true,
- null,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTField_type_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTField_type_feature", "_UI_JDTField_type"),
+ JdtmmPackage.Literals.JDT_FIELD__TYPE,
+ true,
+ false,
+ true,
+ null,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Value feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addValuePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTField_value_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTField_value_feature", "_UI_JDTField_type"),
- JdtmmPackage.Literals.JDT_FIELD__VALUE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTField_value_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTField_value_feature", "_UI_JDTField_type"),
+ JdtmmPackage.Literals.JDT_FIELD__VALUE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Generate Getter feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addGenerateGetterPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTField_generateGetter_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTField_generateGetter_feature", "_UI_JDTField_type"),
- JdtmmPackage.Literals.JDT_FIELD__GENERATE_GETTER,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTField_generateGetter_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTField_generateGetter_feature", "_UI_JDTField_type"),
+ JdtmmPackage.Literals.JDT_FIELD__GENERATE_GETTER,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Generate Setter feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addGenerateSetterPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTField_generateSetter_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTField_generateSetter_feature", "_UI_JDTField_type"),
- JdtmmPackage.Literals.JDT_FIELD__GENERATE_SETTER,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTField_generateSetter_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTField_generateSetter_feature", "_UI_JDTField_type"),
+ JdtmmPackage.Literals.JDT_FIELD__GENERATE_SETTER,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This returns JDTField.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -280,14 +292,15 @@ public class JDTFieldItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTField)object).getElementName();
+ String label = ((JDTField) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTField_type") :
- getString("_UI_JDTField_type") + " " + label;
+ getString("_UI_JDTField_type") :
+ getString("_UI_JDTField_type") + " " + label;
}
/**
@@ -295,6 +308,7 @@ public class JDTFieldItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -302,15 +316,15 @@ public class JDTFieldItemProvider
updateChildren(notification);
switch (notification.getFeatureID(JDTField.class)) {
- case JdtmmPackage.JDT_FIELD__ABSTRACT:
- case JdtmmPackage.JDT_FIELD__FINAL:
- case JdtmmPackage.JDT_FIELD__STATIC:
- case JdtmmPackage.JDT_FIELD__IS_MULTI_VALUED:
- case JdtmmPackage.JDT_FIELD__VALUE:
- case JdtmmPackage.JDT_FIELD__GENERATE_GETTER:
- case JdtmmPackage.JDT_FIELD__GENERATE_SETTER:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
+ case JdtmmPackage.JDT_FIELD__ABSTRACT:
+ case JdtmmPackage.JDT_FIELD__FINAL:
+ case JdtmmPackage.JDT_FIELD__STATIC:
+ case JdtmmPackage.JDT_FIELD__IS_MULTI_VALUED:
+ case JdtmmPackage.JDT_FIELD__VALUE:
+ case JdtmmPackage.JDT_FIELD__GENERATE_GETTER:
+ case JdtmmPackage.JDT_FIELD__GENERATE_SETTER:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
}
super.notifyChanged(notification);
}
@@ -320,6 +334,7 @@ public class JDTFieldItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTImportContainerItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTImportContainerItemProvider.java
index 3629e3b33cd..239c197b68a 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTImportContainerItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTImportContainerItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -42,11 +42,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTImportContainer
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTImportContainer} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTImportContainerItemProvider
- extends JDTParentJavaElementItemProvider
- implements
+ extends JDTParentJavaElementItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -56,6 +57,7 @@ public class JDTImportContainerItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTImportContainerItemProvider(AdapterFactory adapterFactory) {
@@ -66,6 +68,7 @@ public class JDTImportContainerItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -81,6 +84,7 @@ public class JDTImportContainerItemProvider
* This returns JDTImportContainer.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -92,14 +96,15 @@ public class JDTImportContainerItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTImportContainer)object).getElementName();
+ String label = ((JDTImportContainer) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTImportContainer_type") :
- getString("_UI_JDTImportContainer_type") + " " + label;
+ getString("_UI_JDTImportContainer_type") :
+ getString("_UI_JDTImportContainer_type") + " " + label;
}
/**
@@ -107,6 +112,7 @@ public class JDTImportContainerItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -120,6 +126,7 @@ public class JDTImportContainerItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTImportDeclarationItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTImportDeclarationItemProvider.java
index e1b1f373c9a..9576476899d 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTImportDeclarationItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTImportDeclarationItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -42,11 +42,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTImportDeclarati
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTImportDeclaration} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTImportDeclarationItemProvider
- extends JDTJavaElementItemProvider
- implements
+ extends JDTJavaElementItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -56,6 +57,7 @@ public class JDTImportDeclarationItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTImportDeclarationItemProvider(AdapterFactory adapterFactory) {
@@ -66,6 +68,7 @@ public class JDTImportDeclarationItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -81,6 +84,7 @@ public class JDTImportDeclarationItemProvider
* This returns JDTImportDeclaration.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -92,14 +96,15 @@ public class JDTImportDeclarationItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTImportDeclaration)object).getElementName();
+ String label = ((JDTImportDeclaration) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTImportDeclaration_type") :
- getString("_UI_JDTImportDeclaration_type") + " " + label;
+ getString("_UI_JDTImportDeclaration_type") :
+ getString("_UI_JDTImportDeclaration_type") + " " + label;
}
/**
@@ -107,6 +112,7 @@ public class JDTImportDeclarationItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -120,6 +126,7 @@ public class JDTImportDeclarationItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTInterfaceItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTInterfaceItemProvider.java
index acad6ed567b..e1eddb3ef8f 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTInterfaceItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTInterfaceItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -42,11 +42,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTInterface;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTInterface} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTInterfaceItemProvider
- extends JDTTypeItemProvider
- implements
+ extends JDTTypeItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -56,6 +57,7 @@ public class JDTInterfaceItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTInterfaceItemProvider(AdapterFactory adapterFactory) {
@@ -66,6 +68,7 @@ public class JDTInterfaceItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -81,6 +84,7 @@ public class JDTInterfaceItemProvider
* This returns JDTInterface.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -92,14 +96,15 @@ public class JDTInterfaceItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTInterface)object).getElementName();
+ String label = ((JDTInterface) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTInterface_type") :
- getString("_UI_JDTInterface_type") + " " + label;
+ getString("_UI_JDTInterface_type") :
+ getString("_UI_JDTInterface_type") + " " + label;
}
/**
@@ -107,6 +112,7 @@ public class JDTInterfaceItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -120,6 +126,7 @@ public class JDTInterfaceItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTJavaElementItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTJavaElementItemProvider.java
index 1b7c239a49b..30db0aa67d9 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTJavaElementItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTJavaElementItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -49,11 +49,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JdtmmPackage;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTJavaElement} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTJavaElementItemProvider
- extends ItemProviderAdapter
- implements
+ extends ItemProviderAdapter
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -63,6 +64,7 @@ public class JDTJavaElementItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTJavaElementItemProvider(AdapterFactory adapterFactory) {
@@ -73,6 +75,7 @@ public class JDTJavaElementItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -93,124 +96,130 @@ public class JDTJavaElementItemProvider
* This adds a property descriptor for the Parent feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addParentPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTJavaElement_parent_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTJavaElement_parent_feature", "_UI_JDTJavaElement_type"),
- JdtmmPackage.Literals.JDT_JAVA_ELEMENT__PARENT,
- false,
- false,
- false,
- null,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTJavaElement_parent_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTJavaElement_parent_feature", "_UI_JDTJavaElement_type"),
+ JdtmmPackage.Literals.JDT_JAVA_ELEMENT__PARENT,
+ false,
+ false,
+ false,
+ null,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Element Name feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addElementNamePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTJavaElement_elementName_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTJavaElement_elementName_feature", "_UI_JDTJavaElement_type"),
- JdtmmPackage.Literals.JDT_JAVA_ELEMENT__ELEMENT_NAME,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTJavaElement_elementName_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTJavaElement_elementName_feature", "_UI_JDTJavaElement_type"),
+ JdtmmPackage.Literals.JDT_JAVA_ELEMENT__ELEMENT_NAME,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Element Type feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addElementTypePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTJavaElement_elementType_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTJavaElement_elementType_feature", "_UI_JDTJavaElement_type"),
- JdtmmPackage.Literals.JDT_JAVA_ELEMENT__ELEMENT_TYPE,
- true,
- false,
- false,
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTJavaElement_elementType_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTJavaElement_elementType_feature", "_UI_JDTJavaElement_type"),
+ JdtmmPackage.Literals.JDT_JAVA_ELEMENT__ELEMENT_TYPE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Comment feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addCommentPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTJavaElement_comment_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTJavaElement_comment_feature", "_UI_JDTJavaElement_type"),
- JdtmmPackage.Literals.JDT_JAVA_ELEMENT__COMMENT,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTJavaElement_comment_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTJavaElement_comment_feature", "_UI_JDTJavaElement_type"),
+ JdtmmPackage.Literals.JDT_JAVA_ELEMENT__COMMENT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Generated feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addGeneratedPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTJavaElement_generated_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTJavaElement_generated_feature", "_UI_JDTJavaElement_type"),
- JdtmmPackage.Literals.JDT_JAVA_ELEMENT__GENERATED,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTJavaElement_generated_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTJavaElement_generated_feature", "_UI_JDTJavaElement_type"),
+ JdtmmPackage.Literals.JDT_JAVA_ELEMENT__GENERATED,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTJavaElement)object).getElementName();
+ String label = ((JDTJavaElement) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTJavaElement_type") :
- getString("_UI_JDTJavaElement_type") + " " + label;
+ getString("_UI_JDTJavaElement_type") :
+ getString("_UI_JDTJavaElement_type") + " " + label;
}
/**
@@ -218,6 +227,7 @@ public class JDTJavaElementItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -225,12 +235,12 @@ public class JDTJavaElementItemProvider
updateChildren(notification);
switch (notification.getFeatureID(JDTJavaElement.class)) {
- case JdtmmPackage.JDT_JAVA_ELEMENT__ELEMENT_NAME:
- case JdtmmPackage.JDT_JAVA_ELEMENT__ELEMENT_TYPE:
- case JdtmmPackage.JDT_JAVA_ELEMENT__COMMENT:
- case JdtmmPackage.JDT_JAVA_ELEMENT__GENERATED:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
+ case JdtmmPackage.JDT_JAVA_ELEMENT__ELEMENT_NAME:
+ case JdtmmPackage.JDT_JAVA_ELEMENT__ELEMENT_TYPE:
+ case JdtmmPackage.JDT_JAVA_ELEMENT__COMMENT:
+ case JdtmmPackage.JDT_JAVA_ELEMENT__GENERATED:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
}
super.notifyChanged(notification);
}
@@ -240,6 +250,7 @@ public class JDTJavaElementItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -251,6 +262,7 @@ public class JDTJavaElementItemProvider
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTJavaModelItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTJavaModelItemProvider.java
index ec33b95819a..3a25f8c332a 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTJavaModelItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTJavaModelItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -47,11 +47,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JdtmmPackage;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTJavaModel} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTJavaModelItemProvider
- extends JDTParentJavaElementItemProvider
- implements
+ extends JDTParentJavaElementItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -61,6 +62,7 @@ public class JDTJavaModelItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTJavaModelItemProvider(AdapterFactory adapterFactory) {
@@ -71,6 +73,7 @@ public class JDTJavaModelItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -83,11 +86,11 @@ public class JDTJavaModelItemProvider
}
/**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -102,6 +105,7 @@ public class JDTJavaModelItemProvider
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -116,6 +120,7 @@ public class JDTJavaModelItemProvider
* This returns JDTJavaModel.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -127,14 +132,15 @@ public class JDTJavaModelItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTJavaModel)object).getElementName();
+ String label = ((JDTJavaModel) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTJavaModel_type") :
- getString("_UI_JDTJavaModel_type") + " " + label;
+ getString("_UI_JDTJavaModel_type") :
+ getString("_UI_JDTJavaModel_type") + " " + label;
}
/**
@@ -142,6 +148,7 @@ public class JDTJavaModelItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -149,9 +156,9 @@ public class JDTJavaModelItemProvider
updateChildren(notification);
switch (notification.getFeatureID(JDTJavaModel.class)) {
- case JdtmmPackage.JDT_JAVA_MODEL__JAVA_PROJECT:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case JdtmmPackage.JDT_JAVA_MODEL__JAVA_PROJECT:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -161,6 +168,7 @@ public class JDTJavaModelItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -168,9 +176,9 @@ public class JDTJavaModelItemProvider
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_JAVA_MODEL__JAVA_PROJECT,
- JdtmmFactory.eINSTANCE.createJDTJavaProject()));
+ JdtmmFactory.eINSTANCE.createJDTJavaProject()));
}
}
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTJavaProjectItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTJavaProjectItemProvider.java
index 8f6bad36aeb..6068544038f 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTJavaProjectItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTJavaProjectItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -56,11 +56,12 @@ import org.eclipse.uml2.common.edit.command.SupersetRemoveCommand;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTJavaProject} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTJavaProjectItemProvider
- extends JDTParentJavaElementItemProvider
- implements
+ extends JDTParentJavaElementItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -70,6 +71,7 @@ public class JDTJavaProjectItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTJavaProjectItemProvider(AdapterFactory adapterFactory) {
@@ -80,6 +82,7 @@ public class JDTJavaProjectItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -92,11 +95,11 @@ public class JDTJavaProjectItemProvider
}
/**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -111,6 +114,7 @@ public class JDTJavaProjectItemProvider
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -125,6 +129,7 @@ public class JDTJavaProjectItemProvider
* This returns JDTJavaProject.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -136,14 +141,15 @@ public class JDTJavaProjectItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTJavaProject)object).getElementName();
+ String label = ((JDTJavaProject) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTJavaProject_type") :
- getString("_UI_JDTJavaProject_type") + " " + label;
+ getString("_UI_JDTJavaProject_type") :
+ getString("_UI_JDTJavaProject_type") + " " + label;
}
/**
@@ -151,6 +157,7 @@ public class JDTJavaProjectItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -158,9 +165,9 @@ public class JDTJavaProjectItemProvider
updateChildren(notification);
switch (notification.getFeatureID(JDTJavaProject.class)) {
- case JdtmmPackage.JDT_JAVA_PROJECT__PACKAGE_FRAGMENT_ROOTS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case JdtmmPackage.JDT_JAVA_PROJECT__PACKAGE_FRAGMENT_ROOTS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -170,6 +177,7 @@ public class JDTJavaProjectItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -177,52 +185,52 @@ public class JDTJavaProjectItemProvider
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_JAVA_PROJECT__PACKAGE_FRAGMENT_ROOTS,
- JdtmmFactory.eINSTANCE.createJDTPackageFragmentRoot()));
+ JdtmmFactory.eINSTANCE.createJDTPackageFragmentRoot()));
}
/**
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#createAddCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, java.util.Collection, int)
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
protected Command createAddCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, Collection<?> collection, int index) {
if (feature == JdtmmPackage.Literals.JDT_JAVA_PROJECT__PACKAGE_FRAGMENT_ROOTS) {
- return new SubsetAddCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PARENT__CHILDREN}, collection, index);
+ return new SubsetAddCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PARENT__CHILDREN }, collection, index);
}
return super.createAddCommand(domain, owner, feature, collection, index);
}
/**
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#createRemoveCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, java.util.Collection)
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
protected Command createRemoveCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, Collection<?> collection) {
if (feature == JdtmmPackage.Literals.JDT_PARENT__CHILDREN) {
- return new SupersetRemoveCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_JAVA_PROJECT__PACKAGE_FRAGMENT_ROOTS}, collection);
+ return new SupersetRemoveCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_JAVA_PROJECT__PACKAGE_FRAGMENT_ROOTS }, collection);
}
return super.createRemoveCommand(domain, owner, feature, collection);
}
/**
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#createReplaceCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, org.eclipse.emf.ecore.EObject, java.util.Collection)
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
protected Command createReplaceCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, EObject value, Collection<?> collection) {
if (feature == JdtmmPackage.Literals.JDT_JAVA_PROJECT__PACKAGE_FRAGMENT_ROOTS) {
- return new SubsetSupersetReplaceCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PARENT__CHILDREN}, null, value, collection);
+ return new SubsetSupersetReplaceCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PARENT__CHILDREN }, null, value, collection);
}
if (feature == JdtmmPackage.Literals.JDT_PARENT__CHILDREN) {
- return new SubsetSupersetReplaceCommand(domain, owner, feature, null, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_JAVA_PROJECT__PACKAGE_FRAGMENT_ROOTS}, value, collection);
+ return new SubsetSupersetReplaceCommand(domain, owner, feature, null, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_JAVA_PROJECT__PACKAGE_FRAGMENT_ROOTS }, value, collection);
}
return super.createReplaceCommand(domain, owner, feature, value, collection);
}
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTMemberItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTMemberItemProvider.java
index bb347e383df..48042a9d775 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTMemberItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTMemberItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -49,11 +49,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JdtmmPackage;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTMember} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTMemberItemProvider
- extends JDTParentJavaElementItemProvider
- implements
+ extends JDTParentJavaElementItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -63,6 +64,7 @@ public class JDTMemberItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTMemberItemProvider(AdapterFactory adapterFactory) {
@@ -73,6 +75,7 @@ public class JDTMemberItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -91,74 +94,77 @@ public class JDTMemberItemProvider
* This adds a property descriptor for the Visibility feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addVisibilityPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTMember_visibility_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTMember_visibility_feature", "_UI_JDTMember_type"),
- JdtmmPackage.Literals.JDT_MEMBER__VISIBILITY,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTMember_visibility_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTMember_visibility_feature", "_UI_JDTMember_type"),
+ JdtmmPackage.Literals.JDT_MEMBER__VISIBILITY,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Explicit Required Imports feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addExplicitRequiredImportsPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTMember_explicitRequiredImports_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTMember_explicitRequiredImports_feature", "_UI_JDTMember_type"),
- JdtmmPackage.Literals.JDT_MEMBER__EXPLICIT_REQUIRED_IMPORTS,
- true,
- false,
- true,
- null,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTMember_explicitRequiredImports_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTMember_explicitRequiredImports_feature", "_UI_JDTMember_type"),
+ JdtmmPackage.Literals.JDT_MEMBER__EXPLICIT_REQUIRED_IMPORTS,
+ true,
+ false,
+ true,
+ null,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Explicit Plain Text Required Imports feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addExplicitPlainTextRequiredImportsPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTMember_explicitPlainTextRequiredImports_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTMember_explicitPlainTextRequiredImports_feature", "_UI_JDTMember_type"),
- JdtmmPackage.Literals.JDT_MEMBER__EXPLICIT_PLAIN_TEXT_REQUIRED_IMPORTS,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTMember_explicitPlainTextRequiredImports_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTMember_explicitPlainTextRequiredImports_feature", "_UI_JDTMember_type"),
+ JdtmmPackage.Literals.JDT_MEMBER__EXPLICIT_PLAIN_TEXT_REQUIRED_IMPORTS,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
}
/**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -173,6 +179,7 @@ public class JDTMemberItemProvider
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -187,14 +194,15 @@ public class JDTMemberItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTMember)object).getElementName();
+ String label = ((JDTMember) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTMember_type") :
- getString("_UI_JDTMember_type") + " " + label;
+ getString("_UI_JDTMember_type") :
+ getString("_UI_JDTMember_type") + " " + label;
}
/**
@@ -202,6 +210,7 @@ public class JDTMemberItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -209,13 +218,13 @@ public class JDTMemberItemProvider
updateChildren(notification);
switch (notification.getFeatureID(JDTMember.class)) {
- case JdtmmPackage.JDT_MEMBER__VISIBILITY:
- case JdtmmPackage.JDT_MEMBER__EXPLICIT_PLAIN_TEXT_REQUIRED_IMPORTS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case JdtmmPackage.JDT_MEMBER__TYPE_PARAMETERS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case JdtmmPackage.JDT_MEMBER__VISIBILITY:
+ case JdtmmPackage.JDT_MEMBER__EXPLICIT_PLAIN_TEXT_REQUIRED_IMPORTS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case JdtmmPackage.JDT_MEMBER__TYPE_PARAMETERS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -225,6 +234,7 @@ public class JDTMemberItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -232,9 +242,9 @@ public class JDTMemberItemProvider
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_MEMBER__TYPE_PARAMETERS,
- JdtmmFactory.eINSTANCE.createJDTTypeParameter()));
+ JdtmmFactory.eINSTANCE.createJDTTypeParameter()));
}
}
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTMethodBodyItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTMethodBodyItemProvider.java
index 3daddef8f46..c412baed91a 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTMethodBodyItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTMethodBodyItemProvider.java
@@ -27,11 +27,12 @@ import org.eclipse.emf.edit.provider.ItemProviderAdapter;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTMethodBody} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTMethodBodyItemProvider
- extends ItemProviderAdapter
- implements
+ extends ItemProviderAdapter
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -41,6 +42,7 @@ public class JDTMethodBodyItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTMethodBodyItemProvider(AdapterFactory adapterFactory) {
@@ -51,6 +53,7 @@ public class JDTMethodBodyItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -66,6 +69,7 @@ public class JDTMethodBodyItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -78,6 +82,7 @@ public class JDTMethodBodyItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -91,6 +96,7 @@ public class JDTMethodBodyItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -102,6 +108,7 @@ public class JDTMethodBodyItemProvider
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTMethodItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTMethodItemProvider.java
index f2917b8a6e8..6bf2155d868 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTMethodItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTMethodItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -49,11 +49,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JdtmmPackage;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTMethod} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTMethodItemProvider
- extends JDTMemberItemProvider
- implements
+ extends JDTMemberItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -63,6 +64,7 @@ public class JDTMethodItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTMethodItemProvider(AdapterFactory adapterFactory) {
@@ -73,6 +75,7 @@ public class JDTMethodItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -94,140 +97,146 @@ public class JDTMethodItemProvider
* This adds a property descriptor for the Abstract feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addAbstractPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTMethod_abstract_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTMethod_abstract_feature", "_UI_JDTMethod_type"),
- JdtmmPackage.Literals.JDT_METHOD__ABSTRACT,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTMethod_abstract_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTMethod_abstract_feature", "_UI_JDTMethod_type"),
+ JdtmmPackage.Literals.JDT_METHOD__ABSTRACT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Final feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addFinalPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTMethod_final_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTMethod_final_feature", "_UI_JDTMethod_type"),
- JdtmmPackage.Literals.JDT_METHOD__FINAL,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTMethod_final_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTMethod_final_feature", "_UI_JDTMethod_type"),
+ JdtmmPackage.Literals.JDT_METHOD__FINAL,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Static feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addStaticPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTMethod_static_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTMethod_static_feature", "_UI_JDTMethod_type"),
- JdtmmPackage.Literals.JDT_METHOD__STATIC,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTMethod_static_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTMethod_static_feature", "_UI_JDTMethod_type"),
+ JdtmmPackage.Literals.JDT_METHOD__STATIC,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Exceptions feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addExceptionsPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTMethod_exceptions_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTMethod_exceptions_feature", "_UI_JDTMethod_type"),
- JdtmmPackage.Literals.JDT_METHOD__EXCEPTIONS,
- true,
- false,
- true,
- null,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTMethod_exceptions_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTMethod_exceptions_feature", "_UI_JDTMethod_type"),
+ JdtmmPackage.Literals.JDT_METHOD__EXCEPTIONS,
+ true,
+ false,
+ true,
+ null,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Synchronized feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addSynchronizedPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTMethod_synchronized_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTMethod_synchronized_feature", "_UI_JDTMethod_type"),
- JdtmmPackage.Literals.JDT_METHOD__SYNCHRONIZED,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTMethod_synchronized_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTMethod_synchronized_feature", "_UI_JDTMethod_type"),
+ JdtmmPackage.Literals.JDT_METHOD__SYNCHRONIZED,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Constructor feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addConstructorPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTMethod_constructor_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTMethod_constructor_feature", "_UI_JDTMethod_type"),
- JdtmmPackage.Literals.JDT_METHOD__CONSTRUCTOR,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTMethod_constructor_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTMethod_constructor_feature", "_UI_JDTMethod_type"),
+ JdtmmPackage.Literals.JDT_METHOD__CONSTRUCTOR,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -244,6 +253,7 @@ public class JDTMethodItemProvider
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -258,6 +268,7 @@ public class JDTMethodItemProvider
* This returns JDTMethod.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -269,14 +280,15 @@ public class JDTMethodItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTMethod)object).getElementName();
+ String label = ((JDTMethod) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTMethod_type") :
- getString("_UI_JDTMethod_type") + " " + label;
+ getString("_UI_JDTMethod_type") :
+ getString("_UI_JDTMethod_type") + " " + label;
}
/**
@@ -284,6 +296,7 @@ public class JDTMethodItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -291,18 +304,18 @@ public class JDTMethodItemProvider
updateChildren(notification);
switch (notification.getFeatureID(JDTMethod.class)) {
- case JdtmmPackage.JDT_METHOD__ABSTRACT:
- case JdtmmPackage.JDT_METHOD__FINAL:
- case JdtmmPackage.JDT_METHOD__STATIC:
- case JdtmmPackage.JDT_METHOD__SYNCHRONIZED:
- case JdtmmPackage.JDT_METHOD__CONSTRUCTOR:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case JdtmmPackage.JDT_METHOD__RETURN_TYPE:
- case JdtmmPackage.JDT_METHOD__PARAMETERS:
- case JdtmmPackage.JDT_METHOD__BODIES:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case JdtmmPackage.JDT_METHOD__ABSTRACT:
+ case JdtmmPackage.JDT_METHOD__FINAL:
+ case JdtmmPackage.JDT_METHOD__STATIC:
+ case JdtmmPackage.JDT_METHOD__SYNCHRONIZED:
+ case JdtmmPackage.JDT_METHOD__CONSTRUCTOR:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case JdtmmPackage.JDT_METHOD__RETURN_TYPE:
+ case JdtmmPackage.JDT_METHOD__PARAMETERS:
+ case JdtmmPackage.JDT_METHOD__BODIES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -312,6 +325,7 @@ public class JDTMethodItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -319,25 +333,26 @@ public class JDTMethodItemProvider
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_METHOD__RETURN_TYPE,
- JdtmmFactory.eINSTANCE.createJDTParameter()));
+ JdtmmFactory.eINSTANCE.createJDTParameter()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_METHOD__PARAMETERS,
- JdtmmFactory.eINSTANCE.createJDTParameter()));
+ JdtmmFactory.eINSTANCE.createJDTParameter()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_METHOD__BODIES,
- JdtmmFactory.eINSTANCE.createJDTOpaqueBody()));
+ JdtmmFactory.eINSTANCE.createJDTOpaqueBody()));
}
/**
* This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -346,13 +361,12 @@ public class JDTMethodItemProvider
Object childObject = child;
boolean qualify =
- childFeature == JdtmmPackage.Literals.JDT_METHOD__RETURN_TYPE ||
- childFeature == JdtmmPackage.Literals.JDT_METHOD__PARAMETERS;
+ childFeature == JdtmmPackage.Literals.JDT_METHOD__RETURN_TYPE ||
+ childFeature == JdtmmPackage.Literals.JDT_METHOD__PARAMETERS;
if (qualify) {
- return getString
- ("_UI_CreateChild_text2",
- new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) });
+ return getString("_UI_CreateChild_text2",
+ new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) });
}
return super.getCreateChildText(owner, feature, child, selection);
}
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTOpaqueBodyItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTOpaqueBodyItemProvider.java
index 91596d20274..0ca6675fc84 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTOpaqueBodyItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTOpaqueBodyItemProvider.java
@@ -30,11 +30,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JdtmmPackage;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTOpaqueBody} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTOpaqueBodyItemProvider
- extends JDTMethodBodyItemProvider
- implements
+ extends JDTMethodBodyItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -44,6 +45,7 @@ public class JDTOpaqueBodyItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTOpaqueBodyItemProvider(AdapterFactory adapterFactory) {
@@ -54,6 +56,7 @@ public class JDTOpaqueBodyItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -70,28 +73,30 @@ public class JDTOpaqueBodyItemProvider
* This adds a property descriptor for the body feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void add_bodyPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTOpaqueBody__body_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTOpaqueBody__body_feature", "_UI_JDTOpaqueBody_type"),
- JdtmmPackage.Literals.JDT_OPAQUE_BODY__BODY,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTOpaqueBody__body_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTOpaqueBody__body_feature", "_UI_JDTOpaqueBody_type"),
+ JdtmmPackage.Literals.JDT_OPAQUE_BODY__BODY,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This returns JDTOpaqueBody.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -103,14 +108,15 @@ public class JDTOpaqueBodyItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTOpaqueBody)object).get_body();
+ String label = ((JDTOpaqueBody) object).get_body();
return label == null || label.length() == 0 ?
- getString("_UI_JDTOpaqueBody_type") :
- getString("_UI_JDTOpaqueBody_type") + " " + label;
+ getString("_UI_JDTOpaqueBody_type") :
+ getString("_UI_JDTOpaqueBody_type") + " " + label;
}
/**
@@ -118,6 +124,7 @@ public class JDTOpaqueBodyItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -125,9 +132,9 @@ public class JDTOpaqueBodyItemProvider
updateChildren(notification);
switch (notification.getFeatureID(JDTOpaqueBody.class)) {
- case JdtmmPackage.JDT_OPAQUE_BODY__BODY:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
+ case JdtmmPackage.JDT_OPAQUE_BODY__BODY:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
}
super.notifyChanged(notification);
}
@@ -137,6 +144,7 @@ public class JDTOpaqueBodyItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTPackageFragmentItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTPackageFragmentItemProvider.java
index 37be66bcf48..6e80b2aa03f 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTPackageFragmentItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTPackageFragmentItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -56,11 +56,12 @@ import org.eclipse.uml2.common.edit.command.SupersetRemoveCommand;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTPackageFragment} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTPackageFragmentItemProvider
- extends JDTParentJavaElementItemProvider
- implements
+ extends JDTParentJavaElementItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -70,6 +71,7 @@ public class JDTPackageFragmentItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTPackageFragmentItemProvider(AdapterFactory adapterFactory) {
@@ -80,6 +82,7 @@ public class JDTPackageFragmentItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -92,11 +95,11 @@ public class JDTPackageFragmentItemProvider
}
/**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -111,6 +114,7 @@ public class JDTPackageFragmentItemProvider
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -125,6 +129,7 @@ public class JDTPackageFragmentItemProvider
* This returns JDTPackageFragment.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -136,14 +141,15 @@ public class JDTPackageFragmentItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTPackageFragment)object).getElementName();
+ String label = ((JDTPackageFragment) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTPackageFragment_type") :
- getString("_UI_JDTPackageFragment_type") + " " + label;
+ getString("_UI_JDTPackageFragment_type") :
+ getString("_UI_JDTPackageFragment_type") + " " + label;
}
/**
@@ -151,6 +157,7 @@ public class JDTPackageFragmentItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -158,9 +165,9 @@ public class JDTPackageFragmentItemProvider
updateChildren(notification);
switch (notification.getFeatureID(JDTPackageFragment.class)) {
- case JdtmmPackage.JDT_PACKAGE_FRAGMENT__COMPILATION_UNITS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case JdtmmPackage.JDT_PACKAGE_FRAGMENT__COMPILATION_UNITS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -170,6 +177,7 @@ public class JDTPackageFragmentItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -177,52 +185,52 @@ public class JDTPackageFragmentItemProvider
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_PACKAGE_FRAGMENT__COMPILATION_UNITS,
- JdtmmFactory.eINSTANCE.createJDTCompilationUnit()));
+ JdtmmFactory.eINSTANCE.createJDTCompilationUnit()));
}
/**
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#createAddCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, java.util.Collection, int)
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
protected Command createAddCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, Collection<?> collection, int index) {
if (feature == JdtmmPackage.Literals.JDT_PACKAGE_FRAGMENT__COMPILATION_UNITS) {
- return new SubsetAddCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PARENT__CHILDREN}, collection, index);
+ return new SubsetAddCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PARENT__CHILDREN }, collection, index);
}
return super.createAddCommand(domain, owner, feature, collection, index);
}
/**
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#createRemoveCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, java.util.Collection)
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
protected Command createRemoveCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, Collection<?> collection) {
if (feature == JdtmmPackage.Literals.JDT_PARENT__CHILDREN) {
- return new SupersetRemoveCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PACKAGE_FRAGMENT__COMPILATION_UNITS}, collection);
+ return new SupersetRemoveCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PACKAGE_FRAGMENT__COMPILATION_UNITS }, collection);
}
return super.createRemoveCommand(domain, owner, feature, collection);
}
/**
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#createReplaceCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, org.eclipse.emf.ecore.EObject, java.util.Collection)
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
protected Command createReplaceCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, EObject value, Collection<?> collection) {
if (feature == JdtmmPackage.Literals.JDT_PACKAGE_FRAGMENT__COMPILATION_UNITS) {
- return new SubsetSupersetReplaceCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PARENT__CHILDREN}, null, value, collection);
+ return new SubsetSupersetReplaceCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PARENT__CHILDREN }, null, value, collection);
}
if (feature == JdtmmPackage.Literals.JDT_PARENT__CHILDREN) {
- return new SubsetSupersetReplaceCommand(domain, owner, feature, null, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PACKAGE_FRAGMENT__COMPILATION_UNITS}, value, collection);
+ return new SubsetSupersetReplaceCommand(domain, owner, feature, null, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PACKAGE_FRAGMENT__COMPILATION_UNITS }, value, collection);
}
return super.createReplaceCommand(domain, owner, feature, value, collection);
}
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTPackageFragmentRootItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTPackageFragmentRootItemProvider.java
index e3ac061d6d9..ff40f92f1c4 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTPackageFragmentRootItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTPackageFragmentRootItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -56,11 +56,12 @@ import org.eclipse.uml2.common.edit.command.SupersetRemoveCommand;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTPackageFragmentRoot} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTPackageFragmentRootItemProvider
- extends JDTParentJavaElementItemProvider
- implements
+ extends JDTParentJavaElementItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -70,6 +71,7 @@ public class JDTPackageFragmentRootItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTPackageFragmentRootItemProvider(AdapterFactory adapterFactory) {
@@ -80,6 +82,7 @@ public class JDTPackageFragmentRootItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -92,11 +95,11 @@ public class JDTPackageFragmentRootItemProvider
}
/**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -111,6 +114,7 @@ public class JDTPackageFragmentRootItemProvider
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -125,6 +129,7 @@ public class JDTPackageFragmentRootItemProvider
* This returns JDTPackageFragmentRoot.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -136,14 +141,15 @@ public class JDTPackageFragmentRootItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTPackageFragmentRoot)object).getElementName();
+ String label = ((JDTPackageFragmentRoot) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTPackageFragmentRoot_type") :
- getString("_UI_JDTPackageFragmentRoot_type") + " " + label;
+ getString("_UI_JDTPackageFragmentRoot_type") :
+ getString("_UI_JDTPackageFragmentRoot_type") + " " + label;
}
/**
@@ -151,6 +157,7 @@ public class JDTPackageFragmentRootItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -158,9 +165,9 @@ public class JDTPackageFragmentRootItemProvider
updateChildren(notification);
switch (notification.getFeatureID(JDTPackageFragmentRoot.class)) {
- case JdtmmPackage.JDT_PACKAGE_FRAGMENT_ROOT__PACKAGE_FRAGMENTS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case JdtmmPackage.JDT_PACKAGE_FRAGMENT_ROOT__PACKAGE_FRAGMENTS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -170,6 +177,7 @@ public class JDTPackageFragmentRootItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -177,52 +185,52 @@ public class JDTPackageFragmentRootItemProvider
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_PACKAGE_FRAGMENT_ROOT__PACKAGE_FRAGMENTS,
- JdtmmFactory.eINSTANCE.createJDTPackageFragment()));
+ JdtmmFactory.eINSTANCE.createJDTPackageFragment()));
}
/**
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#createAddCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, java.util.Collection, int)
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
protected Command createAddCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, Collection<?> collection, int index) {
if (feature == JdtmmPackage.Literals.JDT_PACKAGE_FRAGMENT_ROOT__PACKAGE_FRAGMENTS) {
- return new SubsetAddCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PARENT__CHILDREN}, collection, index);
+ return new SubsetAddCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PARENT__CHILDREN }, collection, index);
}
return super.createAddCommand(domain, owner, feature, collection, index);
}
/**
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#createRemoveCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, java.util.Collection)
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
protected Command createRemoveCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, Collection<?> collection) {
if (feature == JdtmmPackage.Literals.JDT_PARENT__CHILDREN) {
- return new SupersetRemoveCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PACKAGE_FRAGMENT_ROOT__PACKAGE_FRAGMENTS}, collection);
+ return new SupersetRemoveCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PACKAGE_FRAGMENT_ROOT__PACKAGE_FRAGMENTS }, collection);
}
return super.createRemoveCommand(domain, owner, feature, collection);
}
/**
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#createReplaceCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, org.eclipse.emf.ecore.EObject, java.util.Collection)
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
protected Command createReplaceCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, EObject value, Collection<?> collection) {
if (feature == JdtmmPackage.Literals.JDT_PACKAGE_FRAGMENT_ROOT__PACKAGE_FRAGMENTS) {
- return new SubsetSupersetReplaceCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PARENT__CHILDREN}, null, value, collection);
+ return new SubsetSupersetReplaceCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PARENT__CHILDREN }, null, value, collection);
}
if (feature == JdtmmPackage.Literals.JDT_PARENT__CHILDREN) {
- return new SubsetSupersetReplaceCommand(domain, owner, feature, null, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PACKAGE_FRAGMENT_ROOT__PACKAGE_FRAGMENTS}, value, collection);
+ return new SubsetSupersetReplaceCommand(domain, owner, feature, null, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PACKAGE_FRAGMENT_ROOT__PACKAGE_FRAGMENTS }, value, collection);
}
return super.createReplaceCommand(domain, owner, feature, value, collection);
}
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTParameterItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTParameterItemProvider.java
index 7569e1dc539..d2ea434bd1d 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTParameterItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTParameterItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -46,11 +46,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JdtmmPackage;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTParameter} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTParameterItemProvider
- extends JDTMemberItemProvider
- implements
+ extends JDTMemberItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -60,6 +61,7 @@ public class JDTParameterItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTParameterItemProvider(AdapterFactory adapterFactory) {
@@ -70,6 +72,7 @@ public class JDTParameterItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -88,72 +91,76 @@ public class JDTParameterItemProvider
* This adds a property descriptor for the Final feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addFinalPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTParameter_final_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTParameter_final_feature", "_UI_JDTParameter_type"),
- JdtmmPackage.Literals.JDT_PARAMETER__FINAL,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTParameter_final_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTParameter_final_feature", "_UI_JDTParameter_type"),
+ JdtmmPackage.Literals.JDT_PARAMETER__FINAL,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Is Multi Valued feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addIsMultiValuedPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTParameter_isMultiValued_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTParameter_isMultiValued_feature", "_UI_JDTParameter_type"),
- JdtmmPackage.Literals.JDT_PARAMETER__IS_MULTI_VALUED,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTParameter_isMultiValued_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTParameter_isMultiValued_feature", "_UI_JDTParameter_type"),
+ JdtmmPackage.Literals.JDT_PARAMETER__IS_MULTI_VALUED,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Type feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addTypePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTParameter_type_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTParameter_type_feature", "_UI_JDTParameter_type"),
- JdtmmPackage.Literals.JDT_PARAMETER__TYPE,
- true,
- false,
- true,
- null,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTParameter_type_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTParameter_type_feature", "_UI_JDTParameter_type"),
+ JdtmmPackage.Literals.JDT_PARAMETER__TYPE,
+ true,
+ false,
+ true,
+ null,
+ null,
+ null));
}
/**
* This returns JDTParameter.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -165,14 +172,15 @@ public class JDTParameterItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTParameter)object).getElementName();
+ String label = ((JDTParameter) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTParameter_type") :
- getString("_UI_JDTParameter_type") + " " + label;
+ getString("_UI_JDTParameter_type") :
+ getString("_UI_JDTParameter_type") + " " + label;
}
/**
@@ -180,6 +188,7 @@ public class JDTParameterItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -187,10 +196,10 @@ public class JDTParameterItemProvider
updateChildren(notification);
switch (notification.getFeatureID(JDTParameter.class)) {
- case JdtmmPackage.JDT_PARAMETER__FINAL:
- case JdtmmPackage.JDT_PARAMETER__IS_MULTI_VALUED:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
+ case JdtmmPackage.JDT_PARAMETER__FINAL:
+ case JdtmmPackage.JDT_PARAMETER__IS_MULTI_VALUED:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
}
super.notifyChanged(notification);
}
@@ -200,6 +209,7 @@ public class JDTParameterItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTParentItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTParentItemProvider.java
index 37400836cac..9fcc1bed50d 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTParentItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTParentItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -49,11 +49,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JdtmmPackage;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTParent} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTParentItemProvider
- extends ItemProviderAdapter
- implements
+ extends ItemProviderAdapter
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -63,6 +64,7 @@ public class JDTParentItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTParentItemProvider(AdapterFactory adapterFactory) {
@@ -73,6 +75,7 @@ public class JDTParentItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -90,55 +93,58 @@ public class JDTParentItemProvider
* This adds a property descriptor for the Flags feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addFlagsPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTParent_flags_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTParent_flags_feature", "_UI_JDTParent_type"),
- JdtmmPackage.Literals.JDT_PARENT__FLAGS,
- true,
- false,
- false,
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTParent_flags_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTParent_flags_feature", "_UI_JDTParent_type"),
+ JdtmmPackage.Literals.JDT_PARENT__FLAGS,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Children feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addChildrenPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTParent_children_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTParent_children_feature", "_UI_JDTParent_type"),
- JdtmmPackage.Literals.JDT_PARENT__CHILDREN,
- false,
- false,
- false,
- null,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTParent_children_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTParent_children_feature", "_UI_JDTParent_type"),
+ JdtmmPackage.Literals.JDT_PARENT__CHILDREN,
+ false,
+ false,
+ false,
+ null,
+ null,
+ null));
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- JDTParent jdtParent = (JDTParent)object;
+ JDTParent jdtParent = (JDTParent) object;
return getString("_UI_JDTParent_type") + " " + jdtParent.getFlags();
}
@@ -147,6 +153,7 @@ public class JDTParentItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -154,9 +161,9 @@ public class JDTParentItemProvider
updateChildren(notification);
switch (notification.getFeatureID(JDTParent.class)) {
- case JdtmmPackage.JDT_PARENT__FLAGS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
+ case JdtmmPackage.JDT_PARENT__FLAGS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
}
super.notifyChanged(notification);
}
@@ -166,6 +173,7 @@ public class JDTParentItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -177,6 +185,7 @@ public class JDTParentItemProvider
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTParentJavaElementItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTParentJavaElementItemProvider.java
index 01aa669f5fd..316a38f012b 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTParentJavaElementItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTParentJavaElementItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -46,11 +46,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JdtmmPackage;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTParentJavaElement} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTParentJavaElementItemProvider
- extends JDTJavaElementItemProvider
- implements
+ extends JDTJavaElementItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -60,6 +61,7 @@ public class JDTParentJavaElementItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTParentJavaElementItemProvider(AdapterFactory adapterFactory) {
@@ -70,6 +72,7 @@ public class JDTParentJavaElementItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -87,58 +90,61 @@ public class JDTParentJavaElementItemProvider
* This adds a property descriptor for the Flags feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addFlagsPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTParent_flags_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTParent_flags_feature", "_UI_JDTParent_type"),
- JdtmmPackage.Literals.JDT_PARENT__FLAGS,
- true,
- false,
- false,
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTParent_flags_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTParent_flags_feature", "_UI_JDTParent_type"),
+ JdtmmPackage.Literals.JDT_PARENT__FLAGS,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Children feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addChildrenPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTParent_children_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTParent_children_feature", "_UI_JDTParent_type"),
- JdtmmPackage.Literals.JDT_PARENT__CHILDREN,
- false,
- false,
- false,
- null,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTParent_children_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTParent_children_feature", "_UI_JDTParent_type"),
+ JdtmmPackage.Literals.JDT_PARENT__CHILDREN,
+ false,
+ false,
+ false,
+ null,
+ null,
+ null));
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTParentJavaElement)object).getElementName();
+ String label = ((JDTParentJavaElement) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTParentJavaElement_type") :
- getString("_UI_JDTParentJavaElement_type") + " " + label;
+ getString("_UI_JDTParentJavaElement_type") :
+ getString("_UI_JDTParentJavaElement_type") + " " + label;
}
/**
@@ -146,6 +152,7 @@ public class JDTParentJavaElementItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -153,9 +160,9 @@ public class JDTParentJavaElementItemProvider
updateChildren(notification);
switch (notification.getFeatureID(JDTParentJavaElement.class)) {
- case JdtmmPackage.JDT_PARENT_JAVA_ELEMENT__FLAGS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
+ case JdtmmPackage.JDT_PARENT_JAVA_ELEMENT__FLAGS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
}
super.notifyChanged(notification);
}
@@ -165,6 +172,7 @@ public class JDTParentJavaElementItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTTypeItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTTypeItemProvider.java
index aeaba634f23..9567f315b5d 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTTypeItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTTypeItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -58,11 +58,12 @@ import org.eclipse.uml2.common.edit.command.SupersetRemoveCommand;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTType} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTTypeItemProvider
- extends JDTMemberItemProvider
- implements
+ extends JDTMemberItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -72,6 +73,7 @@ public class JDTTypeItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTTypeItemProvider(AdapterFactory adapterFactory) {
@@ -82,6 +84,7 @@ public class JDTTypeItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -107,228 +110,238 @@ public class JDTTypeItemProvider
* This adds a property descriptor for the Class feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addClassPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTType_class_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTType_class_feature", "_UI_JDTType_type"),
- JdtmmPackage.Literals.JDT_TYPE__CLASS,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTType_class_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTType_class_feature", "_UI_JDTType_type"),
+ JdtmmPackage.Literals.JDT_TYPE__CLASS,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Interface feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addInterfacePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTType_interface_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTType_interface_feature", "_UI_JDTType_type"),
- JdtmmPackage.Literals.JDT_TYPE__INTERFACE,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTType_interface_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTType_interface_feature", "_UI_JDTType_type"),
+ JdtmmPackage.Literals.JDT_TYPE__INTERFACE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Enum feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addEnumPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTType_enum_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTType_enum_feature", "_UI_JDTType_type"),
- JdtmmPackage.Literals.JDT_TYPE__ENUM,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTType_enum_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTType_enum_feature", "_UI_JDTType_type"),
+ JdtmmPackage.Literals.JDT_TYPE__ENUM,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Abstract feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addAbstractPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTType_abstract_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTType_abstract_feature", "_UI_JDTType_type"),
- JdtmmPackage.Literals.JDT_TYPE__ABSTRACT,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTType_abstract_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTType_abstract_feature", "_UI_JDTType_type"),
+ JdtmmPackage.Literals.JDT_TYPE__ABSTRACT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Final feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addFinalPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTType_final_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTType_final_feature", "_UI_JDTType_type"),
- JdtmmPackage.Literals.JDT_TYPE__FINAL,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTType_final_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTType_final_feature", "_UI_JDTType_type"),
+ JdtmmPackage.Literals.JDT_TYPE__FINAL,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Static feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addStaticPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTType_static_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTType_static_feature", "_UI_JDTType_type"),
- JdtmmPackage.Literals.JDT_TYPE__STATIC,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTType_static_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTType_static_feature", "_UI_JDTType_type"),
+ JdtmmPackage.Literals.JDT_TYPE__STATIC,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Super Interfaces feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addSuperInterfacesPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTType_superInterfaces_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTType_superInterfaces_feature", "_UI_JDTType_type"),
- JdtmmPackage.Literals.JDT_TYPE__SUPER_INTERFACES,
- true,
- false,
- true,
- null,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTType_superInterfaces_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTType_superInterfaces_feature", "_UI_JDTType_type"),
+ JdtmmPackage.Literals.JDT_TYPE__SUPER_INTERFACES,
+ true,
+ false,
+ true,
+ null,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Super Class feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addSuperClassPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTType_superClass_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTType_superClass_feature", "_UI_JDTType_type"),
- JdtmmPackage.Literals.JDT_TYPE__SUPER_CLASS,
- true,
- false,
- true,
- null,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTType_superClass_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTType_superClass_feature", "_UI_JDTType_type"),
+ JdtmmPackage.Literals.JDT_TYPE__SUPER_CLASS,
+ true,
+ false,
+ true,
+ null,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Super Interface Names feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addSuperInterfaceNamesPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTType_superInterfaceNames_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTType_superInterfaceNames_feature", "_UI_JDTType_type"),
- JdtmmPackage.Literals.JDT_TYPE__SUPER_INTERFACE_NAMES,
- false,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTType_superInterfaceNames_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTType_superInterfaceNames_feature", "_UI_JDTType_type"),
+ JdtmmPackage.Literals.JDT_TYPE__SUPER_INTERFACE_NAMES,
+ false,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
}
/**
* This adds a property descriptor for the Super Class Name feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void addSuperClassNamePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_JDTType_superClassName_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_JDTType_superClassName_feature", "_UI_JDTType_type"),
- JdtmmPackage.Literals.JDT_TYPE__SUPER_CLASS_NAME,
- false,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JDTType_superClassName_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_JDTType_superClassName_feature", "_UI_JDTType_type"),
+ JdtmmPackage.Literals.JDT_TYPE__SUPER_CLASS_NAME,
+ false,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
}
/**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -345,6 +358,7 @@ public class JDTTypeItemProvider
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -359,14 +373,15 @@ public class JDTTypeItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTType)object).getElementName();
+ String label = ((JDTType) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTType_type") :
- getString("_UI_JDTType_type") + " " + label;
+ getString("_UI_JDTType_type") :
+ getString("_UI_JDTType_type") + " " + label;
}
/**
@@ -374,6 +389,7 @@ public class JDTTypeItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -381,21 +397,21 @@ public class JDTTypeItemProvider
updateChildren(notification);
switch (notification.getFeatureID(JDTType.class)) {
- case JdtmmPackage.JDT_TYPE__CLASS:
- case JdtmmPackage.JDT_TYPE__INTERFACE:
- case JdtmmPackage.JDT_TYPE__ENUM:
- case JdtmmPackage.JDT_TYPE__ABSTRACT:
- case JdtmmPackage.JDT_TYPE__FINAL:
- case JdtmmPackage.JDT_TYPE__STATIC:
- case JdtmmPackage.JDT_TYPE__SUPER_INTERFACE_NAMES:
- case JdtmmPackage.JDT_TYPE__SUPER_CLASS_NAME:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case JdtmmPackage.JDT_TYPE__METHODS:
- case JdtmmPackage.JDT_TYPE__FIELDS:
- case JdtmmPackage.JDT_TYPE__TYPES:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ case JdtmmPackage.JDT_TYPE__CLASS:
+ case JdtmmPackage.JDT_TYPE__INTERFACE:
+ case JdtmmPackage.JDT_TYPE__ENUM:
+ case JdtmmPackage.JDT_TYPE__ABSTRACT:
+ case JdtmmPackage.JDT_TYPE__FINAL:
+ case JdtmmPackage.JDT_TYPE__STATIC:
+ case JdtmmPackage.JDT_TYPE__SUPER_INTERFACE_NAMES:
+ case JdtmmPackage.JDT_TYPE__SUPER_CLASS_NAME:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case JdtmmPackage.JDT_TYPE__METHODS:
+ case JdtmmPackage.JDT_TYPE__FIELDS:
+ case JdtmmPackage.JDT_TYPE__TYPES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -405,6 +421,7 @@ public class JDTTypeItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -412,84 +429,84 @@ public class JDTTypeItemProvider
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_TYPE__METHODS,
- JdtmmFactory.eINSTANCE.createJDTMethod()));
+ JdtmmFactory.eINSTANCE.createJDTMethod()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_TYPE__FIELDS,
- JdtmmFactory.eINSTANCE.createJDTField()));
+ JdtmmFactory.eINSTANCE.createJDTField()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_TYPE__TYPES,
- JdtmmFactory.eINSTANCE.createJDTClass()));
+ JdtmmFactory.eINSTANCE.createJDTClass()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_TYPE__TYPES,
- JdtmmFactory.eINSTANCE.createJDTInterface()));
+ JdtmmFactory.eINSTANCE.createJDTInterface()));
newChildDescriptors.add
- (createChildParameter
+ (createChildParameter
(JdtmmPackage.Literals.JDT_TYPE__TYPES,
- JdtmmFactory.eINSTANCE.createJDTEnum()));
+ JdtmmFactory.eINSTANCE.createJDTEnum()));
}
/**
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#createAddCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, java.util.Collection, int)
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
protected Command createAddCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, Collection<?> collection, int index) {
if (feature == JdtmmPackage.Literals.JDT_TYPE__METHODS) {
- return new SubsetAddCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PARENT__CHILDREN}, collection, index);
+ return new SubsetAddCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PARENT__CHILDREN }, collection, index);
}
if (feature == JdtmmPackage.Literals.JDT_TYPE__FIELDS) {
- return new SubsetAddCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PARENT__CHILDREN}, collection, index);
+ return new SubsetAddCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PARENT__CHILDREN }, collection, index);
}
if (feature == JdtmmPackage.Literals.JDT_TYPE__TYPES) {
- return new SubsetAddCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PARENT__CHILDREN}, collection, index);
+ return new SubsetAddCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PARENT__CHILDREN }, collection, index);
}
return super.createAddCommand(domain, owner, feature, collection, index);
}
/**
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#createRemoveCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, java.util.Collection)
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
protected Command createRemoveCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, Collection<?> collection) {
if (feature == JdtmmPackage.Literals.JDT_PARENT__CHILDREN) {
- return new SupersetRemoveCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_TYPE__METHODS, JdtmmPackage.Literals.JDT_TYPE__FIELDS, JdtmmPackage.Literals.JDT_TYPE__TYPES}, collection);
+ return new SupersetRemoveCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_TYPE__METHODS, JdtmmPackage.Literals.JDT_TYPE__FIELDS, JdtmmPackage.Literals.JDT_TYPE__TYPES }, collection);
}
return super.createRemoveCommand(domain, owner, feature, collection);
}
/**
* @see org.eclipse.emf.edit.provider.ItemProviderAdapter#createReplaceCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, org.eclipse.emf.ecore.EObject, java.util.Collection)
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
protected Command createReplaceCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, EObject value, Collection<?> collection) {
if (feature == JdtmmPackage.Literals.JDT_TYPE__METHODS) {
- return new SubsetSupersetReplaceCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PARENT__CHILDREN}, null, value, collection);
+ return new SubsetSupersetReplaceCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PARENT__CHILDREN }, null, value, collection);
}
if (feature == JdtmmPackage.Literals.JDT_TYPE__FIELDS) {
- return new SubsetSupersetReplaceCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PARENT__CHILDREN}, null, value, collection);
+ return new SubsetSupersetReplaceCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PARENT__CHILDREN }, null, value, collection);
}
if (feature == JdtmmPackage.Literals.JDT_TYPE__TYPES) {
- return new SubsetSupersetReplaceCommand(domain, owner, feature, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_PARENT__CHILDREN}, null, value, collection);
+ return new SubsetSupersetReplaceCommand(domain, owner, feature, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_PARENT__CHILDREN }, null, value, collection);
}
if (feature == JdtmmPackage.Literals.JDT_PARENT__CHILDREN) {
- return new SubsetSupersetReplaceCommand(domain, owner, feature, null, new EStructuralFeature[] {JdtmmPackage.Literals.JDT_TYPE__METHODS, JdtmmPackage.Literals.JDT_TYPE__FIELDS, JdtmmPackage.Literals.JDT_TYPE__TYPES}, value, collection);
+ return new SubsetSupersetReplaceCommand(domain, owner, feature, null, new EStructuralFeature[] { JdtmmPackage.Literals.JDT_TYPE__METHODS, JdtmmPackage.Literals.JDT_TYPE__FIELDS, JdtmmPackage.Literals.JDT_TYPE__TYPES }, value, collection);
}
return super.createReplaceCommand(domain, owner, feature, value, collection);
}
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTTypeParameterItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTTypeParameterItemProvider.java
index e9d717326e0..c87d568e4ba 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTTypeParameterItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTTypeParameterItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -42,11 +42,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTTypeParameter;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTTypeParameter} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTTypeParameterItemProvider
- extends JDTJavaElementItemProvider
- implements
+ extends JDTJavaElementItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -56,6 +57,7 @@ public class JDTTypeParameterItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTTypeParameterItemProvider(AdapterFactory adapterFactory) {
@@ -66,6 +68,7 @@ public class JDTTypeParameterItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -81,6 +84,7 @@ public class JDTTypeParameterItemProvider
* This returns JDTTypeParameter.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -92,14 +96,15 @@ public class JDTTypeParameterItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTTypeParameter)object).getElementName();
+ String label = ((JDTTypeParameter) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTTypeParameter_type") :
- getString("_UI_JDTTypeParameter_type") + " " + label;
+ getString("_UI_JDTTypeParameter_type") :
+ getString("_UI_JDTTypeParameter_type") + " " + label;
}
/**
@@ -107,6 +112,7 @@ public class JDTTypeParameterItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -120,6 +126,7 @@ public class JDTTypeParameterItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTTypeRootItemProvider.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTTypeRootItemProvider.java
index 81408a415c1..c8ac10229a0 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTTypeRootItemProvider.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JDTTypeRootItemProvider.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -42,11 +42,12 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTTypeRoot;
* This is the item provider adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTTypeRoot} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JDTTypeRootItemProvider
- extends JDTParentJavaElementItemProvider
- implements
+ extends JDTParentJavaElementItemProvider
+ implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
@@ -56,6 +57,7 @@ public class JDTTypeRootItemProvider
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JDTTypeRootItemProvider(AdapterFactory adapterFactory) {
@@ -66,6 +68,7 @@ public class JDTTypeRootItemProvider
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -81,14 +84,15 @@ public class JDTTypeRootItemProvider
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((JDTTypeRoot)object).getElementName();
+ String label = ((JDTTypeRoot) object).getElementName();
return label == null || label.length() == 0 ?
- getString("_UI_JDTTypeRoot_type") :
- getString("_UI_JDTTypeRoot_type") + " " + label;
+ getString("_UI_JDTTypeRoot_type") :
+ getString("_UI_JDTTypeRoot_type") + " " + label;
}
/**
@@ -96,6 +100,7 @@ public class JDTTypeRootItemProvider
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -109,6 +114,7 @@ public class JDTTypeRootItemProvider
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JdtmmEditPlugin.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JdtmmEditPlugin.java
index 593ed20d447..70730ce1ff5 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JdtmmEditPlugin.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JdtmmEditPlugin.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -30,6 +30,7 @@ import org.eclipse.emf.common.util.ResourceLocator;
* This is the central singleton for the Jdtmm edit plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public final class JdtmmEditPlugin extends EMFPlugin {
@@ -37,6 +38,7 @@ public final class JdtmmEditPlugin extends EMFPlugin {
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static final JdtmmEditPlugin INSTANCE = new JdtmmEditPlugin();
@@ -45,6 +47,7 @@ public final class JdtmmEditPlugin extends EMFPlugin {
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static Implementation plugin;
@@ -53,18 +56,19 @@ public final class JdtmmEditPlugin extends EMFPlugin {
* Create the instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JdtmmEditPlugin() {
- super
- (new ResourceLocator [] {
- });
+ super(new ResourceLocator[] {
+ });
}
/**
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
@@ -77,6 +81,7 @@ public final class JdtmmEditPlugin extends EMFPlugin {
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
@@ -88,6 +93,7 @@ public final class JdtmmEditPlugin extends EMFPlugin {
* The actual implementation of the Eclipse <b>Plugin</b>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static class Implementation extends EclipsePlugin {
@@ -95,6 +101,7 @@ public final class JdtmmEditPlugin extends EMFPlugin {
* Creates an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Implementation() {
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JdtmmItemProviderAdapterFactory.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JdtmmItemProviderAdapterFactory.java
index cb981880ba6..8024ab0a2dc 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JdtmmItemProviderAdapterFactory.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.edit/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/provider/JdtmmItemProviderAdapterFactory.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -50,6 +50,7 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.util.JdtmmAdapterF
* Note that most of the adapters are shared among multiple instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
@@ -57,6 +58,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the root adapter factory that delegates to this adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ComposedAdapterFactory parentAdapterFactory;
@@ -65,6 +67,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IChangeNotifier changeNotifier = new ChangeNotifier();
@@ -73,6 +76,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<Object> supportedTypes = new ArrayList<Object>();
@@ -81,6 +85,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This constructs an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JdtmmItemProviderAdapterFactory() {
@@ -95,6 +100,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTTypeParameter} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTTypeParameterItemProvider jdtTypeParameterItemProvider;
@@ -103,6 +109,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTTypeParameter}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -118,6 +125,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTField} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTFieldItemProvider jdtFieldItemProvider;
@@ -126,6 +134,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTField}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -141,6 +150,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTMethod} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTMethodItemProvider jdtMethodItemProvider;
@@ -149,6 +159,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTMethod}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -164,6 +175,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTParameter} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTParameterItemProvider jdtParameterItemProvider;
@@ -172,6 +184,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTParameter}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -187,6 +200,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTCompilationUnit} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTCompilationUnitItemProvider jdtCompilationUnitItemProvider;
@@ -195,6 +209,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTCompilationUnit}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -210,6 +225,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTPackageFragment} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTPackageFragmentItemProvider jdtPackageFragmentItemProvider;
@@ -218,6 +234,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTPackageFragment}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -233,6 +250,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTPackageFragmentRoot} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTPackageFragmentRootItemProvider jdtPackageFragmentRootItemProvider;
@@ -241,6 +259,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTPackageFragmentRoot}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -256,6 +275,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTJavaProject} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTJavaProjectItemProvider jdtJavaProjectItemProvider;
@@ -264,6 +284,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTJavaProject}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -279,6 +300,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTJavaModel} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTJavaModelItemProvider jdtJavaModelItemProvider;
@@ -287,6 +309,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTJavaModel}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -302,6 +325,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTClass} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTClassItemProvider jdtClassItemProvider;
@@ -310,6 +334,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTClass}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -325,6 +350,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTInterface} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTInterfaceItemProvider jdtInterfaceItemProvider;
@@ -333,6 +359,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTInterface}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -348,6 +375,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTEnum} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTEnumItemProvider jdtEnumItemProvider;
@@ -356,6 +384,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTEnum}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -371,6 +400,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTImportDeclaration} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTImportDeclarationItemProvider jdtImportDeclarationItemProvider;
@@ -379,6 +409,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTImportDeclaration}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -394,6 +425,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTImportContainer} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTImportContainerItemProvider jdtImportContainerItemProvider;
@@ -402,6 +434,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTImportContainer}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -417,6 +450,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTException} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTExceptionItemProvider jdtExceptionItemProvider;
@@ -425,6 +459,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTException}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -440,6 +475,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This keeps track of the one adapter used for all {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTOpaqueBody} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JDTOpaqueBodyItemProvider jdtOpaqueBodyItemProvider;
@@ -448,6 +484,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This creates an adapter for a {@link org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JDTOpaqueBody}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -463,8 +500,10 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This returns the root adapter factory that contains this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public ComposeableAdapterFactory getRootAdapterFactory() {
return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
}
@@ -473,8 +512,10 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This sets the composed adapter factory that contains this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
this.parentAdapterFactory = parentAdapterFactory;
}
@@ -482,6 +523,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -493,6 +535,7 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This implementation substitutes the factory itself as the key for the adapter.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -503,13 +546,14 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object adapt(Object object, Object type) {
if (isFactoryForType(type)) {
Object adapter = super.adapt(object, type);
- if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
+ if (!(type instanceof Class<?>) || (((Class<?>) type).isInstance(adapter))) {
return adapter;
}
}
@@ -521,8 +565,10 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This adds a listener.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void addListener(INotifyChangedListener notifyChangedListener) {
changeNotifier.addListener(notifyChangedListener);
}
@@ -531,8 +577,10 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This removes a listener.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void removeListener(INotifyChangedListener notifyChangedListener) {
changeNotifier.removeListener(notifyChangedListener);
}
@@ -541,8 +589,10 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
* This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void fireNotifyChanged(Notification notification) {
changeNotifier.fireNotifyChanged(notification);
@@ -552,28 +602,62 @@ public class JdtmmItemProviderAdapterFactory extends JdtmmAdapterFactory impleme
}
/**
- * This disposes all of the item providers created by this factory.
+ * This disposes all of the item providers created by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void dispose() {
- if (jdtMethodItemProvider != null) jdtMethodItemProvider.dispose();
- if (jdtTypeParameterItemProvider != null) jdtTypeParameterItemProvider.dispose();
- if (jdtFieldItemProvider != null) jdtFieldItemProvider.dispose();
- if (jdtCompilationUnitItemProvider != null) jdtCompilationUnitItemProvider.dispose();
- if (jdtPackageFragmentItemProvider != null) jdtPackageFragmentItemProvider.dispose();
- if (jdtPackageFragmentRootItemProvider != null) jdtPackageFragmentRootItemProvider.dispose();
- if (jdtJavaProjectItemProvider != null) jdtJavaProjectItemProvider.dispose();
- if (jdtJavaModelItemProvider != null) jdtJavaModelItemProvider.dispose();
- if (jdtParameterItemProvider != null) jdtParameterItemProvider.dispose();
- if (jdtClassItemProvider != null) jdtClassItemProvider.dispose();
- if (jdtInterfaceItemProvider != null) jdtInterfaceItemProvider.dispose();
- if (jdtEnumItemProvider != null) jdtEnumItemProvider.dispose();
- if (jdtImportDeclarationItemProvider != null) jdtImportDeclarationItemProvider.dispose();
- if (jdtImportContainerItemProvider != null) jdtImportContainerItemProvider.dispose();
- if (jdtExceptionItemProvider != null) jdtExceptionItemProvider.dispose();
- if (jdtOpaqueBodyItemProvider != null) jdtOpaqueBodyItemProvider.dispose();
+ if (jdtMethodItemProvider != null) {
+ jdtMethodItemProvider.dispose();
+ }
+ if (jdtTypeParameterItemProvider != null) {
+ jdtTypeParameterItemProvider.dispose();
+ }
+ if (jdtFieldItemProvider != null) {
+ jdtFieldItemProvider.dispose();
+ }
+ if (jdtCompilationUnitItemProvider != null) {
+ jdtCompilationUnitItemProvider.dispose();
+ }
+ if (jdtPackageFragmentItemProvider != null) {
+ jdtPackageFragmentItemProvider.dispose();
+ }
+ if (jdtPackageFragmentRootItemProvider != null) {
+ jdtPackageFragmentRootItemProvider.dispose();
+ }
+ if (jdtJavaProjectItemProvider != null) {
+ jdtJavaProjectItemProvider.dispose();
+ }
+ if (jdtJavaModelItemProvider != null) {
+ jdtJavaModelItemProvider.dispose();
+ }
+ if (jdtParameterItemProvider != null) {
+ jdtParameterItemProvider.dispose();
+ }
+ if (jdtClassItemProvider != null) {
+ jdtClassItemProvider.dispose();
+ }
+ if (jdtInterfaceItemProvider != null) {
+ jdtInterfaceItemProvider.dispose();
+ }
+ if (jdtEnumItemProvider != null) {
+ jdtEnumItemProvider.dispose();
+ }
+ if (jdtImportDeclarationItemProvider != null) {
+ jdtImportDeclarationItemProvider.dispose();
+ }
+ if (jdtImportContainerItemProvider != null) {
+ jdtImportContainerItemProvider.dispose();
+ }
+ if (jdtExceptionItemProvider != null) {
+ jdtExceptionItemProvider.dispose();
+ }
+ if (jdtOpaqueBodyItemProvider != null) {
+ jdtOpaqueBodyItemProvider.dispose();
+ }
}
}
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmActionBarContributor.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmActionBarContributor.java
index 728d3d2a96f..56efacce8dd 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmActionBarContributor.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmActionBarContributor.java
@@ -43,15 +43,17 @@ import org.eclipse.ui.PartInitException;
* This is the action bar contributor for the Generatoroptionsmm model editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class GeneratoroptionsmmActionBarContributor
- extends EditingDomainActionBarContributor
- implements ISelectionChangedListener {
+ extends EditingDomainActionBarContributor
+ implements ISelectionChangedListener {
/**
* This keeps track of the active editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IEditorPart activeEditorPart;
@@ -60,6 +62,7 @@ public class GeneratoroptionsmmActionBarContributor
* This keeps track of the current selection provider.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ISelectionProvider selectionProvider;
@@ -68,51 +71,54 @@ public class GeneratoroptionsmmActionBarContributor
* This action opens the Properties view.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IAction showPropertiesViewAction =
- new Action(GeneratoroptionsmmEditorPlugin.INSTANCE.getString("_UI_ShowPropertiesView_menu_item")) {
- @Override
- public void run() {
- try {
- getPage().showView("org.eclipse.ui.views.PropertySheet");
- }
- catch (PartInitException exception) {
- GeneratoroptionsmmEditorPlugin.INSTANCE.log(exception);
+ new Action(GeneratoroptionsmmEditorPlugin.INSTANCE.getString("_UI_ShowPropertiesView_menu_item")) {
+ @Override
+ public void run() {
+ try {
+ getPage().showView("org.eclipse.ui.views.PropertySheet");
+ }
+ catch (PartInitException exception) {
+ GeneratoroptionsmmEditorPlugin.INSTANCE.log(exception);
+ }
}
- }
- };
+ };
/**
* This action refreshes the viewer of the current editor if the editor
* implements {@link org.eclipse.emf.common.ui.viewer.IViewerProvider}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IAction refreshViewerAction =
- new Action(GeneratoroptionsmmEditorPlugin.INSTANCE.getString("_UI_RefreshViewer_menu_item")) {
- @Override
- public boolean isEnabled() {
- return activeEditorPart instanceof IViewerProvider;
- }
+ new Action(GeneratoroptionsmmEditorPlugin.INSTANCE.getString("_UI_RefreshViewer_menu_item")) {
+ @Override
+ public boolean isEnabled() {
+ return activeEditorPart instanceof IViewerProvider;
+ }
- @Override
- public void run() {
- if (activeEditorPart instanceof IViewerProvider) {
- Viewer viewer = ((IViewerProvider)activeEditorPart).getViewer();
- if (viewer != null) {
- viewer.refresh();
+ @Override
+ public void run() {
+ if (activeEditorPart instanceof IViewerProvider) {
+ Viewer viewer = ((IViewerProvider) activeEditorPart).getViewer();
+ if (viewer != null) {
+ viewer.refresh();
+ }
}
}
- }
- };
+ };
/**
* This will contain one {@link org.eclipse.emf.edit.ui.action.CreateChildAction} corresponding to each descriptor
* generated for the current selection by the item provider.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<IAction> createChildActions;
@@ -121,6 +127,7 @@ public class GeneratoroptionsmmActionBarContributor
* This is the menu manager into which menu contribution items should be added for CreateChild actions.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IMenuManager createChildMenuManager;
@@ -130,6 +137,7 @@ public class GeneratoroptionsmmActionBarContributor
* generated for the current selection by the item provider.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<IAction> createSiblingActions;
@@ -138,6 +146,7 @@ public class GeneratoroptionsmmActionBarContributor
* This is the menu manager into which menu contribution items should be added for CreateSibling actions.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IMenuManager createSiblingMenuManager;
@@ -146,6 +155,7 @@ public class GeneratoroptionsmmActionBarContributor
* This creates an instance of the contributor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public GeneratoroptionsmmActionBarContributor() {
@@ -159,6 +169,7 @@ public class GeneratoroptionsmmActionBarContributor
* This adds Separators for editor additions to the tool bar.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -172,6 +183,7 @@ public class GeneratoroptionsmmActionBarContributor
* as well as the sub-menus for object creation items.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -198,11 +210,12 @@ public class GeneratoroptionsmmActionBarContributor
// Force an update because Eclipse hides empty menus now.
//
submenuManager.addMenuListener
- (new IMenuListener() {
- public void menuAboutToShow(IMenuManager menuManager) {
- menuManager.updateAll(true);
- }
- });
+ (new IMenuListener() {
+ @Override
+ public void menuAboutToShow(IMenuManager menuManager) {
+ menuManager.updateAll(true);
+ }
+ });
addGlobalActions(submenuManager);
}
@@ -211,6 +224,7 @@ public class GeneratoroptionsmmActionBarContributor
* When the active editor changes, this remembers the change and registers with it as a selection provider.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -244,8 +258,10 @@ public class GeneratoroptionsmmActionBarContributor
* that can be added to the selected object and updating the menus accordingly.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void selectionChanged(SelectionChangedEvent event) {
// Remove any menu items for old selection.
//
@@ -262,10 +278,10 @@ public class GeneratoroptionsmmActionBarContributor
Collection<?> newSiblingDescriptors = null;
ISelection selection = event.getSelection();
- if (selection instanceof IStructuredSelection && ((IStructuredSelection)selection).size() == 1) {
- Object object = ((IStructuredSelection)selection).getFirstElement();
+ if (selection instanceof IStructuredSelection && ((IStructuredSelection) selection).size() == 1) {
+ Object object = ((IStructuredSelection) selection).getFirstElement();
- EditingDomain domain = ((IEditingDomainProvider)activeEditorPart).getEditingDomain();
+ EditingDomain domain = ((IEditingDomainProvider) activeEditorPart).getEditingDomain();
newChildDescriptors = domain.getNewChildDescriptors(object, null);
newSiblingDescriptors = domain.getNewChildDescriptors(null, object);
@@ -291,6 +307,7 @@ public class GeneratoroptionsmmActionBarContributor
* and returns the collection of these actions.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<IAction> generateCreateChildActions(Collection<?> descriptors, ISelection selection) {
@@ -308,6 +325,7 @@ public class GeneratoroptionsmmActionBarContributor
* and returns the collection of these actions.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<IAction> generateCreateSiblingActions(Collection<?> descriptors, ISelection selection) {
@@ -327,6 +345,7 @@ public class GeneratoroptionsmmActionBarContributor
* If <code>contributionID</code> is <code>null</code>, they are simply added.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void populateManager(IContributionManager manager, Collection<? extends IAction> actions, String contributionID) {
@@ -341,12 +360,13 @@ public class GeneratoroptionsmmActionBarContributor
}
}
}
-
+
/**
* This removes from the specified <code>manager</code> all {@link org.eclipse.jface.action.ActionContributionItem}s
* based on the {@link org.eclipse.jface.action.IAction}s contained in the <code>actions</code> collection.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void depopulateManager(IContributionManager manager, Collection<? extends IAction> actions) {
@@ -357,13 +377,13 @@ public class GeneratoroptionsmmActionBarContributor
//
IContributionItem contributionItem = items[i];
while (contributionItem instanceof SubContributionItem) {
- contributionItem = ((SubContributionItem)contributionItem).getInnerItem();
+ contributionItem = ((SubContributionItem) contributionItem).getInnerItem();
}
// Delete the ActionContributionItems with matching action.
//
if (contributionItem instanceof ActionContributionItem) {
- IAction action = ((ActionContributionItem)contributionItem).getAction();
+ IAction action = ((ActionContributionItem) contributionItem).getAction();
if (actions.contains(action)) {
manager.remove(contributionItem);
}
@@ -376,6 +396,7 @@ public class GeneratoroptionsmmActionBarContributor
* This populates the pop-up menu before it appears.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -396,6 +417,7 @@ public class GeneratoroptionsmmActionBarContributor
* This inserts global actions before the "additions-end" separator.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -403,7 +425,7 @@ public class GeneratoroptionsmmActionBarContributor
menuManager.insertAfter("additions-end", new Separator("ui-actions"));
menuManager.insertAfter("ui-actions", showPropertiesViewAction);
- refreshViewerAction.setEnabled(refreshViewerAction.isEnabled());
+ refreshViewerAction.setEnabled(refreshViewerAction.isEnabled());
menuManager.insertAfter("ui-actions", refreshViewerAction);
super.addGlobalActions(menuManager);
@@ -413,6 +435,7 @@ public class GeneratoroptionsmmActionBarContributor
* This ensures that a delete action will clean up all references to deleted objects.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmEditor.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmEditor.java
index 4b7ac23e887..50a4b841bf1 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmEditor.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmEditor.java
@@ -120,7 +120,6 @@ import org.eclipse.emf.common.util.BasicDiagnostic;
import org.eclipse.emf.common.util.Diagnostic;
import org.eclipse.emf.common.util.URI;
-
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
@@ -163,15 +162,17 @@ import org.eclipse.ui.actions.WorkspaceModifyOperation;
* This is an example of a Generatoroptionsmm model editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class GeneratoroptionsmmEditor
- extends MultiPageEditorPart
- implements IEditingDomainProvider, ISelectionProvider, IMenuListener, IViewerProvider, IGotoMarker {
+ extends MultiPageEditorPart
+ implements IEditingDomainProvider, ISelectionProvider, IMenuListener, IViewerProvider, IGotoMarker {
/**
* This keeps track of the editing domain that is used to track all changes to the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected AdapterFactoryEditingDomain editingDomain;
@@ -180,6 +181,7 @@ public class GeneratoroptionsmmEditor
* This is the one adapter factory used for providing views of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ComposedAdapterFactory adapterFactory;
@@ -188,6 +190,7 @@ public class GeneratoroptionsmmEditor
* This is the content outline page.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IContentOutlinePage contentOutlinePage;
@@ -196,6 +199,7 @@ public class GeneratoroptionsmmEditor
* This is a kludge...
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IStatusLineManager contentOutlineStatusLineManager;
@@ -204,6 +208,7 @@ public class GeneratoroptionsmmEditor
* This is the content outline page's viewer.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TreeViewer contentOutlineViewer;
@@ -212,6 +217,7 @@ public class GeneratoroptionsmmEditor
* This is the property sheet page.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected List<PropertySheetPage> propertySheetPages = new ArrayList<PropertySheetPage>();
@@ -221,6 +227,7 @@ public class GeneratoroptionsmmEditor
* The parent relation must be correctly defined for this to work.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TreeViewer selectionViewer;
@@ -229,6 +236,7 @@ public class GeneratoroptionsmmEditor
* This inverts the roll of parent and child in the content provider and show parents as a tree.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TreeViewer parentViewer;
@@ -237,6 +245,7 @@ public class GeneratoroptionsmmEditor
* This shows how a tree view works.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TreeViewer treeViewer;
@@ -246,6 +255,7 @@ public class GeneratoroptionsmmEditor
* A list viewer doesn't support icons.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ListViewer listViewer;
@@ -255,6 +265,7 @@ public class GeneratoroptionsmmEditor
* A table can be used as a list with icons.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TableViewer tableViewer;
@@ -263,6 +274,7 @@ public class GeneratoroptionsmmEditor
* This shows how a tree view with columns works.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TreeViewer treeViewerWithColumns;
@@ -271,6 +283,7 @@ public class GeneratoroptionsmmEditor
* This keeps track of the active viewer pane, in the book.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ViewerPane currentViewerPane;
@@ -279,6 +292,7 @@ public class GeneratoroptionsmmEditor
* This keeps track of the active content viewer, which may be either one of the viewers in the pages or the content outline viewer.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Viewer currentViewer;
@@ -287,6 +301,7 @@ public class GeneratoroptionsmmEditor
* This listens to which ever viewer is active.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ISelectionChangedListener selectionChangedListener;
@@ -295,6 +310,7 @@ public class GeneratoroptionsmmEditor
* This keeps track of all the {@link org.eclipse.jface.viewers.ISelectionChangedListener}s that are listening to this editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<ISelectionChangedListener> selectionChangedListeners = new ArrayList<ISelectionChangedListener>();
@@ -303,6 +319,7 @@ public class GeneratoroptionsmmEditor
* This keeps track of the selection of the editor as a whole.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ISelection editorSelection = StructuredSelection.EMPTY;
@@ -312,6 +329,7 @@ public class GeneratoroptionsmmEditor
* in Eclipse's Problems View.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected MarkerHelper markerHelper = new EditUIMarkerHelper();
@@ -320,46 +338,57 @@ public class GeneratoroptionsmmEditor
* This listens for when the outline becomes active
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IPartListener partListener =
- new IPartListener() {
- public void partActivated(IWorkbenchPart p) {
- if (p instanceof ContentOutline) {
- if (((ContentOutline)p).getCurrentPage() == contentOutlinePage) {
- getActionBarContributor().setActiveEditor(GeneratoroptionsmmEditor.this);
+ new IPartListener() {
+ @Override
+ public void partActivated(IWorkbenchPart p) {
+ if (p instanceof ContentOutline) {
+ if (((ContentOutline) p).getCurrentPage() == contentOutlinePage) {
+ getActionBarContributor().setActiveEditor(GeneratoroptionsmmEditor.this);
- setCurrentViewer(contentOutlineViewer);
+ setCurrentViewer(contentOutlineViewer);
+ }
}
- }
- else if (p instanceof PropertySheet) {
- if (propertySheetPages.contains(((PropertySheet)p).getCurrentPage())) {
- getActionBarContributor().setActiveEditor(GeneratoroptionsmmEditor.this);
+ else if (p instanceof PropertySheet) {
+ if (propertySheetPages.contains(((PropertySheet) p).getCurrentPage())) {
+ getActionBarContributor().setActiveEditor(GeneratoroptionsmmEditor.this);
+ handleActivate();
+ }
+ }
+ else if (p == GeneratoroptionsmmEditor.this) {
handleActivate();
}
}
- else if (p == GeneratoroptionsmmEditor.this) {
- handleActivate();
+
+ @Override
+ public void partBroughtToTop(IWorkbenchPart p) {
+ // Ignore.
}
- }
- public void partBroughtToTop(IWorkbenchPart p) {
- // Ignore.
- }
- public void partClosed(IWorkbenchPart p) {
- // Ignore.
- }
- public void partDeactivated(IWorkbenchPart p) {
- // Ignore.
- }
- public void partOpened(IWorkbenchPart p) {
- // Ignore.
- }
- };
+
+ @Override
+ public void partClosed(IWorkbenchPart p) {
+ // Ignore.
+ }
+
+ @Override
+ public void partDeactivated(IWorkbenchPart p) {
+ // Ignore.
+ }
+
+ @Override
+ public void partOpened(IWorkbenchPart p) {
+ // Ignore.
+ }
+ };
/**
* Resources that have been removed since last activation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<Resource> removedResources = new ArrayList<Resource>();
@@ -368,6 +397,7 @@ public class GeneratoroptionsmmEditor
* Resources that have been changed since last activation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<Resource> changedResources = new ArrayList<Resource>();
@@ -376,6 +406,7 @@ public class GeneratoroptionsmmEditor
* Resources that have been saved.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<Resource> savedResources = new ArrayList<Resource>();
@@ -384,6 +415,7 @@ public class GeneratoroptionsmmEditor
* Map to store the diagnostic associated with a resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Map<Resource, Diagnostic> resourceToDiagnosticMap = new LinkedHashMap<Resource, Diagnostic>();
@@ -392,6 +424,7 @@ public class GeneratoroptionsmmEditor
* Controls whether the problem indication should be updated.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected boolean updateProblemIndication = true;
@@ -400,18 +433,19 @@ public class GeneratoroptionsmmEditor
* Adapter used to update the problem indication when resources are demanded loaded.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected EContentAdapter problemIndicationAdapter =
- new EContentAdapter() {
- @Override
- public void notifyChanged(Notification notification) {
- if (notification.getNotifier() instanceof Resource) {
- switch (notification.getFeatureID(Resource.class)) {
+ new EContentAdapter() {
+ @Override
+ public void notifyChanged(Notification notification) {
+ if (notification.getNotifier() instanceof Resource) {
+ switch (notification.getFeatureID(Resource.class)) {
case Resource.RESOURCE__IS_LOADED:
case Resource.RESOURCE__ERRORS:
case Resource.RESOURCE__WARNINGS: {
- Resource resource = (Resource)notification.getNotifier();
+ Resource resource = (Resource) notification.getNotifier();
Diagnostic diagnostic = analyzeResourceProblems(resource, null);
if (diagnostic.getSeverity() != Diagnostic.OK) {
resourceToDiagnosticMap.put(resource, diagnostic);
@@ -422,134 +456,142 @@ public class GeneratoroptionsmmEditor
if (updateProblemIndication) {
getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- updateProblemIndication();
- }
- });
+ (new Runnable() {
+ @Override
+ public void run() {
+ updateProblemIndication();
+ }
+ });
}
break;
}
+ }
+ }
+ else {
+ super.notifyChanged(notification);
}
}
- else {
- super.notifyChanged(notification);
- }
- }
- @Override
- protected void setTarget(Resource target) {
- basicSetTarget(target);
- }
+ @Override
+ protected void setTarget(Resource target) {
+ basicSetTarget(target);
+ }
- @Override
- protected void unsetTarget(Resource target) {
- basicUnsetTarget(target);
- resourceToDiagnosticMap.remove(target);
- if (updateProblemIndication) {
- getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- updateProblemIndication();
- }
- });
+ @Override
+ protected void unsetTarget(Resource target) {
+ basicUnsetTarget(target);
+ resourceToDiagnosticMap.remove(target);
+ if (updateProblemIndication) {
+ getSite().getShell().getDisplay().asyncExec
+ (new Runnable() {
+ @Override
+ public void run() {
+ updateProblemIndication();
+ }
+ });
+ }
}
- }
- };
+ };
/**
* This listens for workspace changes.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IResourceChangeListener resourceChangeListener =
- new IResourceChangeListener() {
- public void resourceChanged(IResourceChangeEvent event) {
- IResourceDelta delta = event.getDelta();
- try {
- class ResourceDeltaVisitor implements IResourceDeltaVisitor {
- protected ResourceSet resourceSet = editingDomain.getResourceSet();
- protected Collection<Resource> changedResources = new ArrayList<Resource>();
- protected Collection<Resource> removedResources = new ArrayList<Resource>();
-
- public boolean visit(IResourceDelta delta) {
- if (delta.getResource().getType() == IResource.FILE) {
- if (delta.getKind() == IResourceDelta.REMOVED ||
- delta.getKind() == IResourceDelta.CHANGED && delta.getFlags() != IResourceDelta.MARKERS) {
- Resource resource = resourceSet.getResource(URI.createPlatformResourceURI(delta.getFullPath().toString(), true), false);
- if (resource != null) {
- if (delta.getKind() == IResourceDelta.REMOVED) {
- removedResources.add(resource);
- }
- else if (!savedResources.remove(resource)) {
- changedResources.add(resource);
+ new IResourceChangeListener() {
+ @Override
+ public void resourceChanged(IResourceChangeEvent event) {
+ IResourceDelta delta = event.getDelta();
+ try {
+ class ResourceDeltaVisitor implements IResourceDeltaVisitor {
+ protected ResourceSet resourceSet = editingDomain.getResourceSet();
+ protected Collection<Resource> changedResources = new ArrayList<Resource>();
+ protected Collection<Resource> removedResources = new ArrayList<Resource>();
+
+ @Override
+ public boolean visit(IResourceDelta delta) {
+ if (delta.getResource().getType() == IResource.FILE) {
+ if (delta.getKind() == IResourceDelta.REMOVED ||
+ delta.getKind() == IResourceDelta.CHANGED && delta.getFlags() != IResourceDelta.MARKERS) {
+ Resource resource = resourceSet.getResource(URI.createPlatformResourceURI(delta.getFullPath().toString(), true), false);
+ if (resource != null) {
+ if (delta.getKind() == IResourceDelta.REMOVED) {
+ removedResources.add(resource);
+ }
+ else if (!savedResources.remove(resource)) {
+ changedResources.add(resource);
+ }
}
}
+ return false;
}
- return false;
+
+ return true;
}
- return true;
- }
+ public Collection<Resource> getChangedResources() {
+ return changedResources;
+ }
- public Collection<Resource> getChangedResources() {
- return changedResources;
+ public Collection<Resource> getRemovedResources() {
+ return removedResources;
+ }
}
- public Collection<Resource> getRemovedResources() {
- return removedResources;
- }
- }
+ final ResourceDeltaVisitor visitor = new ResourceDeltaVisitor();
+ delta.accept(visitor);
- final ResourceDeltaVisitor visitor = new ResourceDeltaVisitor();
- delta.accept(visitor);
+ if (!visitor.getRemovedResources().isEmpty()) {
+ getSite().getShell().getDisplay().asyncExec
+ (new Runnable() {
+ @Override
+ public void run() {
+ removedResources.addAll(visitor.getRemovedResources());
+ if (!isDirty()) {
+ getSite().getPage().closeEditor(GeneratoroptionsmmEditor.this, false);
+ }
+ }
+ });
+ }
- if (!visitor.getRemovedResources().isEmpty()) {
- getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- removedResources.addAll(visitor.getRemovedResources());
- if (!isDirty()) {
- getSite().getPage().closeEditor(GeneratoroptionsmmEditor.this, false);
- }
- }
- });
+ if (!visitor.getChangedResources().isEmpty()) {
+ getSite().getShell().getDisplay().asyncExec
+ (new Runnable() {
+ @Override
+ public void run() {
+ changedResources.addAll(visitor.getChangedResources());
+ if (getSite().getPage().getActiveEditor() == GeneratoroptionsmmEditor.this) {
+ handleActivate();
+ }
+ }
+ });
+ }
}
-
- if (!visitor.getChangedResources().isEmpty()) {
- getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- changedResources.addAll(visitor.getChangedResources());
- if (getSite().getPage().getActiveEditor() == GeneratoroptionsmmEditor.this) {
- handleActivate();
- }
- }
- });
+ catch (CoreException exception) {
+ GeneratoroptionsmmEditorPlugin.INSTANCE.log(exception);
}
}
- catch (CoreException exception) {
- GeneratoroptionsmmEditorPlugin.INSTANCE.log(exception);
- }
- }
- };
+ };
/**
* Handles activation of the editor or it's associated views.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void handleActivate() {
// Recompute the read only state.
//
if (editingDomain.getResourceToReadOnlyMap() != null) {
- editingDomain.getResourceToReadOnlyMap().clear();
+ editingDomain.getResourceToReadOnlyMap().clear();
- // Refresh any actions that may become enabled or disabled.
- //
- setSelection(getSelection());
+ // Refresh any actions that may become enabled or disabled.
+ //
+ setSelection(getSelection());
}
if (!removedResources.isEmpty()) {
@@ -574,6 +616,7 @@ public class GeneratoroptionsmmEditor
* Handles what to do with changed resources on activation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void handleChangedResources() {
@@ -589,8 +632,7 @@ public class GeneratoroptionsmmEditor
resource.unload();
try {
resource.load(Collections.EMPTY_MAP);
- }
- catch (IOException exception) {
+ } catch (IOException exception) {
if (!resourceToDiagnosticMap.containsKey(resource)) {
resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
}
@@ -611,17 +653,18 @@ public class GeneratoroptionsmmEditor
* Updates the problems indication with the information described in the specified diagnostic.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void updateProblemIndication() {
if (updateProblemIndication) {
BasicDiagnostic diagnostic =
- new BasicDiagnostic
+ new BasicDiagnostic
(Diagnostic.OK,
- "org.eclipse.papyrus.java.generator.metamodel.jdt.editor",
- 0,
- null,
- new Object [] { editingDomain.getResourceSet() });
+ "org.eclipse.papyrus.java.generator.metamodel.jdt.editor",
+ 0,
+ null,
+ new Object[] { editingDomain.getResourceSet() });
for (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) {
if (childDiagnostic.getSeverity() != Diagnostic.OK) {
diagnostic.add(childDiagnostic);
@@ -630,7 +673,7 @@ public class GeneratoroptionsmmEditor
int lastEditorPage = getPageCount() - 1;
if (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart) {
- ((ProblemEditorPart)getEditor(lastEditorPage)).setDiagnostic(diagnostic);
+ ((ProblemEditorPart) getEditor(lastEditorPage)).setDiagnostic(diagnostic);
if (diagnostic.getSeverity() != Diagnostic.OK) {
setActivePage(lastEditorPage);
}
@@ -644,8 +687,7 @@ public class GeneratoroptionsmmEditor
setPageText(lastEditorPage, problemEditorPart.getPartName());
setActivePage(lastEditorPage);
showTabs();
- }
- catch (PartInitException exception) {
+ } catch (PartInitException exception) {
GeneratoroptionsmmEditorPlugin.INSTANCE.log(exception);
}
}
@@ -655,8 +697,7 @@ public class GeneratoroptionsmmEditor
if (diagnostic.getSeverity() != Diagnostic.OK) {
try {
markerHelper.createMarkers(diagnostic);
- }
- catch (CoreException exception) {
+ } catch (CoreException exception) {
GeneratoroptionsmmEditorPlugin.INSTANCE.log(exception);
}
}
@@ -668,20 +709,21 @@ public class GeneratoroptionsmmEditor
* Shows a dialog that asks if conflicting changes should be discarded.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected boolean handleDirtyConflict() {
- return
- MessageDialog.openQuestion
+ return MessageDialog.openQuestion
(getSite().getShell(),
- getString("_UI_FileConflict_label"),
- getString("_WARN_FileConflict"));
+ getString("_UI_FileConflict_label"),
+ getString("_WARN_FileConflict"));
}
/**
* This creates a model editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public GeneratoroptionsmmEditor() {
@@ -693,6 +735,7 @@ public class GeneratoroptionsmmEditor
* This sets up the editing domain for the model editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void initializeEditingDomain() {
@@ -711,32 +754,34 @@ public class GeneratoroptionsmmEditor
// Add a listener to set the most recent command's affected objects to be the selection of the viewer with focus.
//
commandStack.addCommandStackListener
- (new CommandStackListener() {
- public void commandStackChanged(final EventObject event) {
- getContainer().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- firePropertyChange(IEditorPart.PROP_DIRTY);
-
- // Try to select the affected objects.
- //
- Command mostRecentCommand = ((CommandStack)event.getSource()).getMostRecentCommand();
- if (mostRecentCommand != null) {
- setSelectionToViewer(mostRecentCommand.getAffectedObjects());
- }
- for (Iterator<PropertySheetPage> i = propertySheetPages.iterator(); i.hasNext(); ) {
- PropertySheetPage propertySheetPage = i.next();
- if (propertySheetPage.getControl().isDisposed()) {
- i.remove();
- }
- else {
- propertySheetPage.refresh();
- }
- }
- }
- });
- }
- });
+ (new CommandStackListener() {
+ @Override
+ public void commandStackChanged(final EventObject event) {
+ getContainer().getDisplay().asyncExec
+ (new Runnable() {
+ @Override
+ public void run() {
+ firePropertyChange(IEditorPart.PROP_DIRTY);
+
+ // Try to select the affected objects.
+ //
+ Command mostRecentCommand = ((CommandStack) event.getSource()).getMostRecentCommand();
+ if (mostRecentCommand != null) {
+ setSelectionToViewer(mostRecentCommand.getAffectedObjects());
+ }
+ for (Iterator<PropertySheetPage> i = propertySheetPages.iterator(); i.hasNext();) {
+ PropertySheetPage propertySheetPage = i.next();
+ if (propertySheetPage.getControl().isDisposed()) {
+ i.remove();
+ }
+ else {
+ propertySheetPage.refresh();
+ }
+ }
+ }
+ });
+ }
+ });
// Create the editing domain with a special command stack.
//
@@ -747,9 +792,10 @@ public class GeneratoroptionsmmEditor
* This is here for the listener to be able to call it.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- @Override
+ @Override
protected void firePropertyChange(int action) {
super.firePropertyChange(action);
}
@@ -758,6 +804,7 @@ public class GeneratoroptionsmmEditor
* This sets the selection into whichever viewer is active.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setSelectionToViewer(Collection<?> collection) {
@@ -766,27 +813,29 @@ public class GeneratoroptionsmmEditor
//
if (theSelection != null && !theSelection.isEmpty()) {
Runnable runnable =
- new Runnable() {
- public void run() {
- // Try to select the items in the current content viewer of the editor.
- //
- if (currentViewer != null) {
- currentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true);
+ new Runnable() {
+ @Override
+ public void run() {
+ // Try to select the items in the current content viewer of the editor.
+ //
+ if (currentViewer != null) {
+ currentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true);
+ }
}
- }
- };
+ };
getSite().getShell().getDisplay().asyncExec(runnable);
}
}
/**
* This returns the editing domain as required by the {@link IEditingDomainProvider} interface.
- * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain}
- * and for supporting {@link org.eclipse.emf.edit.ui.action.CommandAction}.
+ * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain} and for supporting {@link org.eclipse.emf.edit.ui.action.CommandAction}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public EditingDomain getEditingDomain() {
return editingDomain;
}
@@ -794,12 +843,14 @@ public class GeneratoroptionsmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ReverseAdapterFactoryContentProvider(AdapterFactory adapterFactory) {
@@ -809,10 +860,11 @@ public class GeneratoroptionsmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
- public Object [] getElements(Object object) {
+ public Object[] getElements(Object object) {
Object parent = super.getParent(object);
return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();
}
@@ -820,10 +872,11 @@ public class GeneratoroptionsmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
- public Object [] getChildren(Object object) {
+ public Object[] getChildren(Object object) {
Object parent = super.getParent(object);
return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();
}
@@ -831,6 +884,7 @@ public class GeneratoroptionsmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -842,6 +896,7 @@ public class GeneratoroptionsmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -853,6 +908,7 @@ public class GeneratoroptionsmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setCurrentViewerPane(ViewerPane viewerPane) {
@@ -870,6 +926,7 @@ public class GeneratoroptionsmmEditor
* is the current one.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setCurrentViewer(Viewer viewer) {
@@ -880,13 +937,14 @@ public class GeneratoroptionsmmEditor
// Create the listener on demand.
//
selectionChangedListener =
- new ISelectionChangedListener() {
- // This just notifies those things that are affected by the section.
- //
- public void selectionChanged(SelectionChangedEvent selectionChangedEvent) {
- setSelection(selectionChangedEvent.getSelection());
- }
- };
+ new ISelectionChangedListener() {
+ // This just notifies those things that are affected by the section.
+ //
+ @Override
+ public void selectionChanged(SelectionChangedEvent selectionChangedEvent) {
+ setSelection(selectionChangedEvent.getSelection());
+ }
+ };
}
// Stop listening to the old one.
@@ -915,8 +973,10 @@ public class GeneratoroptionsmmEditor
* This returns the viewer as required by the {@link IViewerProvider} interface.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public Viewer getViewer() {
return currentViewer;
}
@@ -925,6 +985,7 @@ public class GeneratoroptionsmmEditor
* This creates a context menu for the viewer and adds a listener as well registering the menu for extension.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void createContextMenuFor(StructuredViewer viewer) {
@@ -932,7 +993,7 @@ public class GeneratoroptionsmmEditor
contextMenu.add(new Separator("additions"));
contextMenu.setRemoveAllWhenShown(true);
contextMenu.addMenuListener(this);
- Menu menu= contextMenu.createContextMenu(viewer.getControl());
+ Menu menu = contextMenu.createContextMenu(viewer.getControl());
viewer.getControl().setMenu(menu);
getSite().registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer));
@@ -946,6 +1007,7 @@ public class GeneratoroptionsmmEditor
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void createModel() {
@@ -956,15 +1018,14 @@ public class GeneratoroptionsmmEditor
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet().getResource(resourceURI, true);
- }
- catch (Exception e) {
+ } catch (Exception e) {
exception = e;
resource = editingDomain.getResourceSet().getResource(resourceURI, false);
}
Diagnostic diagnostic = analyzeResourceProblems(resource, exception);
if (diagnostic.getSeverity() != Diagnostic.OK) {
- resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
+ resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
}
editingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter);
}
@@ -974,28 +1035,27 @@ public class GeneratoroptionsmmEditor
* and the specified exception (if any).
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Diagnostic analyzeResourceProblems(Resource resource, Exception exception) {
if (!resource.getErrors().isEmpty() || !resource.getWarnings().isEmpty()) {
BasicDiagnostic basicDiagnostic =
- new BasicDiagnostic
+ new BasicDiagnostic
(Diagnostic.ERROR,
- "org.eclipse.papyrus.java.generator.metamodel.jdt.editor",
- 0,
- getString("_UI_CreateModelError_message", resource.getURI()),
- new Object [] { exception == null ? (Object)resource : exception });
+ "org.eclipse.papyrus.java.generator.metamodel.jdt.editor",
+ 0,
+ getString("_UI_CreateModelError_message", resource.getURI()),
+ new Object[] { exception == null ? (Object) resource : exception });
basicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true));
return basicDiagnostic;
}
else if (exception != null) {
- return
- new BasicDiagnostic
- (Diagnostic.ERROR,
- "org.eclipse.papyrus.java.generator.metamodel.jdt.editor",
- 0,
- getString("_UI_CreateModelError_message", resource.getURI()),
- new Object[] { exception });
+ return new BasicDiagnostic(Diagnostic.ERROR,
+ "org.eclipse.papyrus.java.generator.metamodel.jdt.editor",
+ 0,
+ getString("_UI_CreateModelError_message", resource.getURI()),
+ new Object[] { exception });
}
else {
return Diagnostic.OK_INSTANCE;
@@ -1006,6 +1066,7 @@ public class GeneratoroptionsmmEditor
* This is the method used by the framework to install your own controls.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1021,22 +1082,23 @@ public class GeneratoroptionsmmEditor
//
{
ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), GeneratoroptionsmmEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- Tree tree = new Tree(composite, SWT.MULTI);
- TreeViewer newTreeViewer = new TreeViewer(tree);
- return newTreeViewer;
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ new ViewerPane(getSite().getPage(), GeneratoroptionsmmEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ Tree tree = new Tree(composite, SWT.MULTI);
+ TreeViewer newTreeViewer = new TreeViewer(tree);
+ return newTreeViewer;
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- selectionViewer = (TreeViewer)viewerPane.getViewer();
+ selectionViewer = (TreeViewer) viewerPane.getViewer();
selectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
selectionViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1055,22 +1117,23 @@ public class GeneratoroptionsmmEditor
//
{
ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), GeneratoroptionsmmEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- Tree tree = new Tree(composite, SWT.MULTI);
- TreeViewer newTreeViewer = new TreeViewer(tree);
- return newTreeViewer;
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ new ViewerPane(getSite().getPage(), GeneratoroptionsmmEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ Tree tree = new Tree(composite, SWT.MULTI);
+ TreeViewer newTreeViewer = new TreeViewer(tree);
+ return newTreeViewer;
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- parentViewer = (TreeViewer)viewerPane.getViewer();
+ parentViewer = (TreeViewer) viewerPane.getViewer();
parentViewer.setAutoExpandLevel(30);
parentViewer.setContentProvider(new ReverseAdapterFactoryContentProvider(adapterFactory));
parentViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1084,19 +1147,20 @@ public class GeneratoroptionsmmEditor
//
{
ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), GeneratoroptionsmmEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- return new ListViewer(composite);
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ new ViewerPane(getSite().getPage(), GeneratoroptionsmmEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new ListViewer(composite);
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- listViewer = (ListViewer)viewerPane.getViewer();
+ listViewer = (ListViewer) viewerPane.getViewer();
listViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
listViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1109,19 +1173,20 @@ public class GeneratoroptionsmmEditor
//
{
ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), GeneratoroptionsmmEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- return new TreeViewer(composite);
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ new ViewerPane(getSite().getPage(), GeneratoroptionsmmEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new TreeViewer(composite);
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- treeViewer = (TreeViewer)viewerPane.getViewer();
+ treeViewer = (TreeViewer) viewerPane.getViewer();
treeViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
treeViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1136,19 +1201,20 @@ public class GeneratoroptionsmmEditor
//
{
ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), GeneratoroptionsmmEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- return new TableViewer(composite);
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ new ViewerPane(getSite().getPage(), GeneratoroptionsmmEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new TableViewer(composite);
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- tableViewer = (TableViewer)viewerPane.getViewer();
+ tableViewer = (TableViewer) viewerPane.getViewer();
Table table = tableViewer.getTable();
TableLayout layout = new TableLayout();
@@ -1166,7 +1232,7 @@ public class GeneratoroptionsmmEditor
selfColumn.setText(getString("_UI_SelfColumn_label"));
selfColumn.setResizable(true);
- tableViewer.setColumnProperties(new String [] {"a", "b"});
+ tableViewer.setColumnProperties(new String[] { "a", "b" });
tableViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
tableViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1179,20 +1245,21 @@ public class GeneratoroptionsmmEditor
//
{
ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), GeneratoroptionsmmEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- return new TreeViewer(composite);
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ new ViewerPane(getSite().getPage(), GeneratoroptionsmmEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new TreeViewer(composite);
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- treeViewerWithColumns = (TreeViewer)viewerPane.getViewer();
+ treeViewerWithColumns = (TreeViewer) viewerPane.getViewer();
Tree tree = treeViewerWithColumns.getTree();
tree.setLayoutData(new FillLayout());
@@ -1209,7 +1276,7 @@ public class GeneratoroptionsmmEditor
selfColumn.setResizable(true);
selfColumn.setWidth(200);
- treeViewerWithColumns.setColumnProperties(new String [] {"a", "b"});
+ treeViewerWithColumns.setColumnProperties(new String[] { "a", "b" });
treeViewerWithColumns.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
treeViewerWithColumns.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1219,35 +1286,38 @@ public class GeneratoroptionsmmEditor
}
getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- setActivePage(0);
- }
- });
+ (new Runnable() {
+ @Override
+ public void run() {
+ setActivePage(0);
+ }
+ });
}
// Ensures that this editor will only display the page's tab
// area if there are more than one page
//
getContainer().addControlListener
- (new ControlAdapter() {
- boolean guard = false;
- @Override
- public void controlResized(ControlEvent event) {
- if (!guard) {
- guard = true;
- hideTabs();
- guard = false;
+ (new ControlAdapter() {
+ boolean guard = false;
+
+ @Override
+ public void controlResized(ControlEvent event) {
+ if (!guard) {
+ guard = true;
+ hideTabs();
+ guard = false;
+ }
}
- }
- });
+ });
getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- updateProblemIndication();
- }
- });
+ (new Runnable() {
+ @Override
+ public void run() {
+ updateProblemIndication();
+ }
+ });
}
/**
@@ -1255,13 +1325,14 @@ public class GeneratoroptionsmmEditor
* this hides the single tab at the bottom.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void hideTabs() {
if (getPageCount() <= 1) {
setPageText(0, "");
if (getContainer() instanceof CTabFolder) {
- ((CTabFolder)getContainer()).setTabHeight(1);
+ ((CTabFolder) getContainer()).setTabHeight(1);
Point point = getContainer().getSize();
getContainer().setSize(point.x, point.y + 6);
}
@@ -1273,13 +1344,14 @@ public class GeneratoroptionsmmEditor
* this shows the tabs at the bottom.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void showTabs() {
if (getPageCount() > 1) {
setPageText(0, getString("_UI_SelectionPage_label"));
if (getContainer() instanceof CTabFolder) {
- ((CTabFolder)getContainer()).setTabHeight(SWT.DEFAULT);
+ ((CTabFolder) getContainer()).setTabHeight(SWT.DEFAULT);
Point point = getContainer().getSize();
getContainer().setSize(point.x, point.y - 6);
}
@@ -1290,6 +1362,7 @@ public class GeneratoroptionsmmEditor
* This is used to track the active viewer.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1305,6 +1378,7 @@ public class GeneratoroptionsmmEditor
* This is how the framework determines which interfaces we implement.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("rawtypes")
@@ -1328,6 +1402,7 @@ public class GeneratoroptionsmmEditor
* This accesses a cached version of the content outliner.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public IContentOutlinePage getContentOutlinePage() {
@@ -1352,9 +1427,9 @@ public class GeneratoroptionsmmEditor
createContextMenuFor(contentOutlineViewer);
if (!editingDomain.getResourceSet().getResources().isEmpty()) {
- // Select the root object in the view.
- //
- contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);
+ // Select the root object in the view.
+ //
+ contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);
}
}
@@ -1376,13 +1451,14 @@ public class GeneratoroptionsmmEditor
// Listen to selection so that we can handle it is a special way.
//
contentOutlinePage.addSelectionChangedListener
- (new ISelectionChangedListener() {
- // This ensures that we handle selections correctly.
- //
- public void selectionChanged(SelectionChangedEvent event) {
- handleContentOutlineSelection(event.getSelection());
- }
- });
+ (new ISelectionChangedListener() {
+ // This ensures that we handle selections correctly.
+ //
+ @Override
+ public void selectionChanged(SelectionChangedEvent event) {
+ handleContentOutlineSelection(event.getSelection());
+ }
+ });
}
return contentOutlinePage;
@@ -1392,23 +1468,24 @@ public class GeneratoroptionsmmEditor
* This accesses a cached version of the property sheet.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public IPropertySheetPage getPropertySheetPage() {
PropertySheetPage propertySheetPage =
- new ExtendedPropertySheetPage(editingDomain) {
- @Override
- public void setSelectionToViewer(List<?> selection) {
- GeneratoroptionsmmEditor.this.setSelectionToViewer(selection);
- GeneratoroptionsmmEditor.this.setFocus();
- }
+ new ExtendedPropertySheetPage(editingDomain) {
+ @Override
+ public void setSelectionToViewer(List<?> selection) {
+ GeneratoroptionsmmEditor.this.setSelectionToViewer(selection);
+ GeneratoroptionsmmEditor.this.setFocus();
+ }
- @Override
- public void setActionBars(IActionBars actionBars) {
- super.setActionBars(actionBars);
- getActionBarContributor().shareGlobalActions(this, actionBars);
- }
- };
+ @Override
+ public void setActionBars(IActionBars actionBars) {
+ super.setActionBars(actionBars);
+ getActionBarContributor().shareGlobalActions(this, actionBars);
+ }
+ };
propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory));
propertySheetPages.add(propertySheetPage);
@@ -1419,11 +1496,12 @@ public class GeneratoroptionsmmEditor
* This deals with how we want selection in the outliner to affect the other views.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void handleContentOutlineSelection(ISelection selection) {
if (currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection) {
- Iterator<?> selectedElements = ((IStructuredSelection)selection).iterator();
+ Iterator<?> selectedElements = ((IStructuredSelection) selection).iterator();
if (selectedElements.hasNext()) {
// Get the first selected element.
//
@@ -1458,17 +1536,19 @@ public class GeneratoroptionsmmEditor
* This is for implementing {@link IEditorPart} and simply tests the command stack.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean isDirty() {
- return ((BasicCommandStack)editingDomain.getCommandStack()).isSaveNeeded();
+ return ((BasicCommandStack) editingDomain.getCommandStack()).isSaveNeeded();
}
/**
* This is for implementing {@link IEditorPart} and simply saves the model file.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1482,31 +1562,31 @@ public class GeneratoroptionsmmEditor
// Do the work within an operation because this is a long running activity that modifies the workbench.
//
WorkspaceModifyOperation operation =
- new WorkspaceModifyOperation() {
- // This is the method that gets invoked when the operation runs.
- //
- @Override
- public void execute(IProgressMonitor monitor) {
- // Save the resources to the file system.
+ new WorkspaceModifyOperation() {
+ // This is the method that gets invoked when the operation runs.
//
- boolean first = true;
- for (Resource resource : editingDomain.getResourceSet().getResources()) {
- if ((first || !resource.getContents().isEmpty() || isPersisted(resource)) && !editingDomain.isReadOnly(resource)) {
- try {
- long timeStamp = resource.getTimeStamp();
- resource.save(saveOptions);
- if (resource.getTimeStamp() != timeStamp) {
- savedResources.add(resource);
+ @Override
+ public void execute(IProgressMonitor monitor) {
+ // Save the resources to the file system.
+ //
+ boolean first = true;
+ for (Resource resource : editingDomain.getResourceSet().getResources()) {
+ if ((first || !resource.getContents().isEmpty() || isPersisted(resource)) && !editingDomain.isReadOnly(resource)) {
+ try {
+ long timeStamp = resource.getTimeStamp();
+ resource.save(saveOptions);
+ if (resource.getTimeStamp() != timeStamp) {
+ savedResources.add(resource);
+ }
}
+ catch (Exception exception) {
+ resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
+ }
+ first = false;
}
- catch (Exception exception) {
- resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
- }
- first = false;
}
}
- }
- };
+ };
updateProblemIndication = false;
try {
@@ -1516,10 +1596,9 @@ public class GeneratoroptionsmmEditor
// Refresh the necessary state.
//
- ((BasicCommandStack)editingDomain.getCommandStack()).saveIsDone();
+ ((BasicCommandStack) editingDomain.getCommandStack()).saveIsDone();
firePropertyChange(IEditorPart.PROP_DIRTY);
- }
- catch (Exception exception) {
+ } catch (Exception exception) {
// Something went wrong that shouldn't.
//
GeneratoroptionsmmEditorPlugin.INSTANCE.log(exception);
@@ -1533,6 +1612,7 @@ public class GeneratoroptionsmmEditor
* The implementation uses the URI converter from the editor's resource set to try to open an input stream.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected boolean isPersisted(Resource resource) {
@@ -1543,8 +1623,7 @@ public class GeneratoroptionsmmEditor
result = true;
stream.close();
}
- }
- catch (IOException e) {
+ } catch (IOException e) {
// Ignore
}
return result;
@@ -1554,6 +1633,7 @@ public class GeneratoroptionsmmEditor
* This always returns true because it is not currently supported.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1565,6 +1645,7 @@ public class GeneratoroptionsmmEditor
* This also changes the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1583,6 +1664,7 @@ public class GeneratoroptionsmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void doSaveAs(URI uri, IEditorInput editorInput) {
@@ -1590,17 +1672,19 @@ public class GeneratoroptionsmmEditor
setInputWithNotify(editorInput);
setPartName(editorInput.getName());
IProgressMonitor progressMonitor =
- getActionBars().getStatusLineManager() != null ?
- getActionBars().getStatusLineManager().getProgressMonitor() :
- new NullProgressMonitor();
+ getActionBars().getStatusLineManager() != null ?
+ getActionBars().getStatusLineManager().getProgressMonitor() :
+ new NullProgressMonitor();
doSave(progressMonitor);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void gotoMarker(IMarker marker) {
List<?> targetObjects = markerHelper.getTargetObjects(editingDomain, marker);
if (!targetObjects.isEmpty()) {
@@ -1612,6 +1696,7 @@ public class GeneratoroptionsmmEditor
* This is called during startup.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1627,6 +1712,7 @@ public class GeneratoroptionsmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1643,8 +1729,10 @@ public class GeneratoroptionsmmEditor
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void addSelectionChangedListener(ISelectionChangedListener listener) {
selectionChangedListeners.add(listener);
}
@@ -1653,8 +1741,10 @@ public class GeneratoroptionsmmEditor
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void removeSelectionChangedListener(ISelectionChangedListener listener) {
selectionChangedListeners.remove(listener);
}
@@ -1663,8 +1753,10 @@ public class GeneratoroptionsmmEditor
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's overall selection.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public ISelection getSelection() {
return editorSelection;
}
@@ -1674,8 +1766,10 @@ public class GeneratoroptionsmmEditor
* Calling this result will notify the listeners.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setSelection(ISelection selection) {
editorSelection = selection;
@@ -1688,29 +1782,30 @@ public class GeneratoroptionsmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setStatusLineManager(ISelection selection) {
IStatusLineManager statusLineManager = currentViewer != null && currentViewer == contentOutlineViewer ?
- contentOutlineStatusLineManager : getActionBars().getStatusLineManager();
+ contentOutlineStatusLineManager : getActionBars().getStatusLineManager();
if (statusLineManager != null) {
if (selection instanceof IStructuredSelection) {
- Collection<?> collection = ((IStructuredSelection)selection).toList();
+ Collection<?> collection = ((IStructuredSelection) selection).toList();
switch (collection.size()) {
- case 0: {
- statusLineManager.setMessage(getString("_UI_NoObjectSelected"));
- break;
- }
- case 1: {
- String text = new AdapterFactoryItemDelegator(adapterFactory).getText(collection.iterator().next());
- statusLineManager.setMessage(getString("_UI_SingleObjectSelected", text));
- break;
- }
- default: {
- statusLineManager.setMessage(getString("_UI_MultiObjectSelected", Integer.toString(collection.size())));
- break;
- }
+ case 0: {
+ statusLineManager.setMessage(getString("_UI_NoObjectSelected"));
+ break;
+ }
+ case 1: {
+ String text = new AdapterFactoryItemDelegator(adapterFactory).getText(collection.iterator().next());
+ statusLineManager.setMessage(getString("_UI_SingleObjectSelected", text));
+ break;
+ }
+ default: {
+ statusLineManager.setMessage(getString("_UI_MultiObjectSelected", Integer.toString(collection.size())));
+ break;
+ }
}
}
else {
@@ -1723,6 +1818,7 @@ public class GeneratoroptionsmmEditor
* This looks up a string in the plugin's plugin.properties file.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static String getString(String key) {
@@ -1733,34 +1829,39 @@ public class GeneratoroptionsmmEditor
* This looks up a string in plugin.properties, making a substitution.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static String getString(String key, Object s1) {
- return GeneratoroptionsmmEditorPlugin.INSTANCE.getString(key, new Object [] { s1 });
+ return GeneratoroptionsmmEditorPlugin.INSTANCE.getString(key, new Object[] { s1 });
}
/**
* This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus with contributions from the Edit menu.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void menuAboutToShow(IMenuManager menuManager) {
- ((IMenuListener)getEditorSite().getActionBarContributor()).menuAboutToShow(menuManager);
+ ((IMenuListener) getEditorSite().getActionBarContributor()).menuAboutToShow(menuManager);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EditingDomainActionBarContributor getActionBarContributor() {
- return (EditingDomainActionBarContributor)getEditorSite().getActionBarContributor();
+ return (EditingDomainActionBarContributor) getEditorSite().getActionBarContributor();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public IActionBars getActionBars() {
@@ -1770,6 +1871,7 @@ public class GeneratoroptionsmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public AdapterFactory getAdapterFactory() {
@@ -1779,6 +1881,7 @@ public class GeneratoroptionsmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1810,6 +1913,7 @@ public class GeneratoroptionsmmEditor
* Returns whether the outline view should be presented to the user.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected boolean showOutlineView() {
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmEditorPlugin.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmEditorPlugin.java
index ac8cefc19a2..cf3e6988a6d 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmEditorPlugin.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmEditorPlugin.java
@@ -12,6 +12,7 @@ import org.eclipse.emf.common.util.ResourceLocator;
* This is the central singleton for the Generatoroptionsmm editor plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public final class GeneratoroptionsmmEditorPlugin extends EMFPlugin {
@@ -19,14 +20,16 @@ public final class GeneratoroptionsmmEditorPlugin extends EMFPlugin {
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static final GeneratoroptionsmmEditorPlugin INSTANCE = new GeneratoroptionsmmEditorPlugin();
-
+
/**
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static Implementation plugin;
@@ -35,18 +38,19 @@ public final class GeneratoroptionsmmEditorPlugin extends EMFPlugin {
* Create the instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public GeneratoroptionsmmEditorPlugin() {
- super
- (new ResourceLocator [] {
- });
+ super(new ResourceLocator[] {
+ });
}
/**
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
@@ -54,22 +58,24 @@ public final class GeneratoroptionsmmEditorPlugin extends EMFPlugin {
public ResourceLocator getPluginResourceLocator() {
return plugin;
}
-
+
/**
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
public static Implementation getPlugin() {
return plugin;
}
-
+
/**
* The actual implementation of the Eclipse <b>Plugin</b>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static class Implementation extends EclipseUIPlugin {
@@ -77,11 +83,12 @@ public final class GeneratoroptionsmmEditorPlugin extends EMFPlugin {
* Creates an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Implementation() {
super();
-
+
// Remember the static instance.
//
plugin = this;
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmModelWizard.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmModelWizard.java
index 4ecdeda7df6..f9832c545dc 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmModelWizard.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/presentation/GeneratoroptionsmmModelWizard.java
@@ -73,7 +73,6 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.Gener
import org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.GeneratoroptionsmmPackage;
import org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.provider.GeneratoroptionsmmEditPlugin;
-
import org.eclipse.core.runtime.Path;
import org.eclipse.jface.viewers.ISelection;
@@ -89,6 +88,7 @@ import org.eclipse.ui.PartInitException;
* This is a simple wizard for creating a new model file.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard {
@@ -96,24 +96,27 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* The supported extensions for created files.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static final List<String> FILE_EXTENSIONS =
- Collections.unmodifiableList(Arrays.asList(GeneratoroptionsmmEditorPlugin.INSTANCE.getString("_UI_GeneratoroptionsmmEditorFilenameExtensions").split("\\s*,\\s*")));
+ Collections.unmodifiableList(Arrays.asList(GeneratoroptionsmmEditorPlugin.INSTANCE.getString("_UI_GeneratoroptionsmmEditorFilenameExtensions").split("\\s*,\\s*")));
/**
* A formatted list of supported file extensions, suitable for display.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static final String FORMATTED_FILE_EXTENSIONS =
- GeneratoroptionsmmEditorPlugin.INSTANCE.getString("_UI_GeneratoroptionsmmEditorFilenameExtensions").replaceAll("\\s*,\\s*", ", ");
+ GeneratoroptionsmmEditorPlugin.INSTANCE.getString("_UI_GeneratoroptionsmmEditorFilenameExtensions").replaceAll("\\s*,\\s*", ", ");
/**
* This caches an instance of the model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected GeneratoroptionsmmPackage generatoroptionsmmPackage = GeneratoroptionsmmPackage.eINSTANCE;
@@ -122,6 +125,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* This caches an instance of the model factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected GeneratoroptionsmmFactory generatoroptionsmmFactory = generatoroptionsmmPackage.getGeneratoroptionsmmFactory();
@@ -130,6 +134,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* This is the file creation page.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected GeneratoroptionsmmModelWizardNewFileCreationPage newFileCreationPage;
@@ -138,6 +143,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* This is the initial object creation page.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected GeneratoroptionsmmModelWizardInitialObjectCreationPage initialObjectCreationPage;
@@ -146,6 +152,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* Remember the selection during initialization for populating the default container.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IStructuredSelection selection;
@@ -154,6 +161,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* Remember the workbench during initialization.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IWorkbench workbench;
@@ -162,6 +170,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* Caches the names of the types that can be created as the root object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected List<String> initialObjectNames;
@@ -170,8 +179,10 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* This just records the information.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void init(IWorkbench workbench, IStructuredSelection selection) {
this.workbench = workbench;
this.selection = selection;
@@ -183,6 +194,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* Returns the names of the types that can be created as the root object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<String> getInitialObjectNames() {
@@ -190,7 +202,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
initialObjectNames = new ArrayList<String>();
for (EClassifier eClassifier : generatoroptionsmmPackage.getEClassifiers()) {
if (eClassifier instanceof EClass) {
- EClass eClass = (EClass)eClassifier;
+ EClass eClass = (EClass) eClassifier;
if (!eClass.isAbstract()) {
initialObjectNames.add(eClass.getName());
}
@@ -205,10 +217,11 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* Create a new model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected EObject createInitialModel() {
- EClass eClass = (EClass)generatoroptionsmmPackage.getEClassifier(initialObjectCreationPage.getInitialObjectName());
+ EClass eClass = (EClass) generatoroptionsmmPackage.getEClassifier(initialObjectCreationPage.getInitialObjectName());
EObject rootObject = generatoroptionsmmFactory.create(eClass);
return rootObject;
}
@@ -217,6 +230,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* Do the work after everything is specified.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -229,43 +243,43 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
// Do the work within an operation.
//
WorkspaceModifyOperation operation =
- new WorkspaceModifyOperation() {
- @Override
- protected void execute(IProgressMonitor progressMonitor) {
- try {
- // Create a resource set
- //
- ResourceSet resourceSet = new ResourceSetImpl();
-
- // Get the URI of the model file.
- //
- URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true);
-
- // Create a resource for this file.
- //
- Resource resource = resourceSet.createResource(fileURI);
-
- // Add the initial model object to the contents.
- //
- EObject rootObject = createInitialModel();
- if (rootObject != null) {
- resource.getContents().add(rootObject);
+ new WorkspaceModifyOperation() {
+ @Override
+ protected void execute(IProgressMonitor progressMonitor) {
+ try {
+ // Create a resource set
+ //
+ ResourceSet resourceSet = new ResourceSetImpl();
+
+ // Get the URI of the model file.
+ //
+ URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true);
+
+ // Create a resource for this file.
+ //
+ Resource resource = resourceSet.createResource(fileURI);
+
+ // Add the initial model object to the contents.
+ //
+ EObject rootObject = createInitialModel();
+ if (rootObject != null) {
+ resource.getContents().add(rootObject);
+ }
+
+ // Save the contents of the resource to the file system.
+ //
+ Map<Object, Object> options = new HashMap<Object, Object>();
+ options.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding());
+ resource.save(options);
+ }
+ catch (Exception exception) {
+ GeneratoroptionsmmEditorPlugin.INSTANCE.log(exception);
+ }
+ finally {
+ progressMonitor.done();
}
-
- // Save the contents of the resource to the file system.
- //
- Map<Object, Object> options = new HashMap<Object, Object>();
- options.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding());
- resource.save(options);
- }
- catch (Exception exception) {
- GeneratoroptionsmmEditorPlugin.INSTANCE.log(exception);
- }
- finally {
- progressMonitor.done();
}
- }
- };
+ };
getContainer().run(false, false, operation);
@@ -277,28 +291,27 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
if (activePart instanceof ISetSelectionTarget) {
final ISelection targetSelection = new StructuredSelection(modelFile);
getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- ((ISetSelectionTarget)activePart).selectReveal(targetSelection);
- }
- });
+ (new Runnable() {
+ @Override
+ public void run() {
+ ((ISetSelectionTarget) activePart).selectReveal(targetSelection);
+ }
+ });
}
// Open an editor on the new file.
//
try {
page.openEditor
- (new FileEditorInput(modelFile),
- workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId());
- }
- catch (PartInitException exception) {
+ (new FileEditorInput(modelFile),
+ workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId());
+ } catch (PartInitException exception) {
MessageDialog.openError(workbenchWindow.getShell(), GeneratoroptionsmmEditorPlugin.INSTANCE.getString("_UI_OpenEditorError_label"), exception.getMessage());
return false;
}
return true;
- }
- catch (Exception exception) {
+ } catch (Exception exception) {
GeneratoroptionsmmEditorPlugin.INSTANCE.log(exception);
return false;
}
@@ -308,6 +321,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* This is the one page of the wizard.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class GeneratoroptionsmmModelWizardNewFileCreationPage extends WizardNewFileCreationPage {
@@ -315,6 +329,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* Pass in the selection.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public GeneratoroptionsmmModelWizardNewFileCreationPage(String pageId, IStructuredSelection selection) {
@@ -325,6 +340,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* The framework calls this to see if the file is correct.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -333,7 +349,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
String extension = new Path(getFileName()).getFileExtension();
if (extension == null || !FILE_EXTENSIONS.contains(extension)) {
String key = FILE_EXTENSIONS.size() > 1 ? "_WARN_FilenameExtensions" : "_WARN_FilenameExtension";
- setErrorMessage(GeneratoroptionsmmEditorPlugin.INSTANCE.getString(key, new Object [] { FORMATTED_FILE_EXTENSIONS }));
+ setErrorMessage(GeneratoroptionsmmEditorPlugin.INSTANCE.getString(key, new Object[] { FORMATTED_FILE_EXTENSIONS }));
return false;
}
return true;
@@ -344,6 +360,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public IFile getModelFile() {
@@ -355,26 +372,29 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* This is the page where the type of object to create is selected.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class GeneratoroptionsmmModelWizardInitialObjectCreationPage extends WizardPage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Combo initialObjectField;
/**
* @generated
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
*/
protected List<String> encodings;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Combo encodingField;
@@ -383,6 +403,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* Pass in the selection.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public GeneratoroptionsmmModelWizardInitialObjectCreationPage(String pageId) {
@@ -392,8 +413,10 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void createControl(Composite parent) {
Composite composite = new Composite(parent, SWT.NONE);
{
@@ -465,18 +488,21 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ModifyListener validator =
- new ModifyListener() {
- public void modifyText(ModifyEvent e) {
- setPageComplete(validatePage());
- }
- };
+ new ModifyListener() {
+ @Override
+ public void modifyText(ModifyEvent e) {
+ setPageComplete(validatePage());
+ }
+ };
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected boolean validatePage() {
@@ -486,6 +512,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -506,6 +533,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getInitialObjectName() {
@@ -522,6 +550,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getEncoding() {
@@ -532,13 +561,13 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* Returns the label for the specified type name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected String getLabel(String typeName) {
try {
return GeneratoroptionsmmEditPlugin.INSTANCE.getString("_UI_" + typeName + "_type");
- }
- catch(MissingResourceException mre) {
+ } catch (MissingResourceException mre) {
GeneratoroptionsmmEditorPlugin.INSTANCE.log(mre);
}
return typeName;
@@ -547,12 +576,13 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<String> getEncodings() {
if (encodings == null) {
encodings = new ArrayList<String>();
- for (StringTokenizer stringTokenizer = new StringTokenizer(GeneratoroptionsmmEditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer.hasMoreTokens(); ) {
+ for (StringTokenizer stringTokenizer = new StringTokenizer(GeneratoroptionsmmEditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer.hasMoreTokens();) {
encodings.add(stringTokenizer.nextToken());
}
}
@@ -564,9 +594,10 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* The framework calls this to create the contents of the wizard.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- @Override
+ @Override
public void addPages() {
// Create a page, set the title, and the initial model file name.
//
@@ -585,7 +616,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
if (selectedElement instanceof IResource) {
// Get the resource parent, if its a file.
//
- IResource selectedResource = (IResource)selectedElement;
+ IResource selectedResource = (IResource) selectedElement;
if (selectedResource.getType() == IResource.FILE) {
selectedResource = selectedResource.getParent();
}
@@ -602,7 +633,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
String defaultModelBaseFilename = GeneratoroptionsmmEditorPlugin.INSTANCE.getString("_UI_GeneratoroptionsmmEditorFilenameDefaultBase");
String defaultModelFilenameExtension = FILE_EXTENSIONS.get(0);
String modelFilename = defaultModelBaseFilename + "." + defaultModelFilenameExtension;
- for (int i = 1; ((IContainer)selectedResource).findMember(modelFilename) != null; ++i) {
+ for (int i = 1; ((IContainer) selectedResource).findMember(modelFilename) != null; ++i) {
modelFilename = defaultModelBaseFilename + i + "." + defaultModelFilenameExtension;
}
newFileCreationPage.setFileName(modelFilename);
@@ -619,6 +650,7 @@ public class GeneratoroptionsmmModelWizard extends Wizard implements INewWizard
* Get the file from the page.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public IFile getModelFile() {
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmActionBarContributor.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmActionBarContributor.java
index d8eb452b6c6..121394e9afd 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmActionBarContributor.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmActionBarContributor.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -63,15 +63,17 @@ import org.eclipse.ui.PartInitException;
* This is the action bar contributor for the Jdtmm model editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JdtmmActionBarContributor
- extends EditingDomainActionBarContributor
- implements ISelectionChangedListener {
+ extends EditingDomainActionBarContributor
+ implements ISelectionChangedListener {
/**
* This keeps track of the active editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IEditorPart activeEditorPart;
@@ -80,6 +82,7 @@ public class JdtmmActionBarContributor
* This keeps track of the current selection provider.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ISelectionProvider selectionProvider;
@@ -88,51 +91,54 @@ public class JdtmmActionBarContributor
* This action opens the Properties view.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IAction showPropertiesViewAction =
- new Action(JdtmmEditorPlugin.INSTANCE.getString("_UI_ShowPropertiesView_menu_item")) {
- @Override
- public void run() {
- try {
- getPage().showView("org.eclipse.ui.views.PropertySheet");
- }
- catch (PartInitException exception) {
- JdtmmEditorPlugin.INSTANCE.log(exception);
+ new Action(JdtmmEditorPlugin.INSTANCE.getString("_UI_ShowPropertiesView_menu_item")) {
+ @Override
+ public void run() {
+ try {
+ getPage().showView("org.eclipse.ui.views.PropertySheet");
+ }
+ catch (PartInitException exception) {
+ JdtmmEditorPlugin.INSTANCE.log(exception);
+ }
}
- }
- };
+ };
/**
* This action refreshes the viewer of the current editor if the editor
* implements {@link org.eclipse.emf.common.ui.viewer.IViewerProvider}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IAction refreshViewerAction =
- new Action(JdtmmEditorPlugin.INSTANCE.getString("_UI_RefreshViewer_menu_item")) {
- @Override
- public boolean isEnabled() {
- return activeEditorPart instanceof IViewerProvider;
- }
+ new Action(JdtmmEditorPlugin.INSTANCE.getString("_UI_RefreshViewer_menu_item")) {
+ @Override
+ public boolean isEnabled() {
+ return activeEditorPart instanceof IViewerProvider;
+ }
- @Override
- public void run() {
- if (activeEditorPart instanceof IViewerProvider) {
- Viewer viewer = ((IViewerProvider)activeEditorPart).getViewer();
- if (viewer != null) {
- viewer.refresh();
+ @Override
+ public void run() {
+ if (activeEditorPart instanceof IViewerProvider) {
+ Viewer viewer = ((IViewerProvider) activeEditorPart).getViewer();
+ if (viewer != null) {
+ viewer.refresh();
+ }
}
}
- }
- };
+ };
/**
* This will contain one {@link org.eclipse.emf.edit.ui.action.CreateChildAction} corresponding to each descriptor
* generated for the current selection by the item provider.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<IAction> createChildActions;
@@ -141,6 +147,7 @@ public class JdtmmActionBarContributor
* This is the menu manager into which menu contribution items should be added for CreateChild actions.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IMenuManager createChildMenuManager;
@@ -150,6 +157,7 @@ public class JdtmmActionBarContributor
* generated for the current selection by the item provider.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<IAction> createSiblingActions;
@@ -158,6 +166,7 @@ public class JdtmmActionBarContributor
* This is the menu manager into which menu contribution items should be added for CreateSibling actions.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IMenuManager createSiblingMenuManager;
@@ -166,6 +175,7 @@ public class JdtmmActionBarContributor
* This creates an instance of the contributor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JdtmmActionBarContributor() {
@@ -179,6 +189,7 @@ public class JdtmmActionBarContributor
* This adds Separators for editor additions to the tool bar.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -192,6 +203,7 @@ public class JdtmmActionBarContributor
* as well as the sub-menus for object creation items.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -218,11 +230,12 @@ public class JdtmmActionBarContributor
// Force an update because Eclipse hides empty menus now.
//
submenuManager.addMenuListener
- (new IMenuListener() {
- public void menuAboutToShow(IMenuManager menuManager) {
- menuManager.updateAll(true);
- }
- });
+ (new IMenuListener() {
+ @Override
+ public void menuAboutToShow(IMenuManager menuManager) {
+ menuManager.updateAll(true);
+ }
+ });
addGlobalActions(submenuManager);
}
@@ -231,6 +244,7 @@ public class JdtmmActionBarContributor
* When the active editor changes, this remembers the change and registers with it as a selection provider.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -264,8 +278,10 @@ public class JdtmmActionBarContributor
* that can be added to the selected object and updating the menus accordingly.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void selectionChanged(SelectionChangedEvent event) {
// Remove any menu items for old selection.
//
@@ -282,10 +298,10 @@ public class JdtmmActionBarContributor
Collection<?> newSiblingDescriptors = null;
ISelection selection = event.getSelection();
- if (selection instanceof IStructuredSelection && ((IStructuredSelection)selection).size() == 1) {
- Object object = ((IStructuredSelection)selection).getFirstElement();
+ if (selection instanceof IStructuredSelection && ((IStructuredSelection) selection).size() == 1) {
+ Object object = ((IStructuredSelection) selection).getFirstElement();
- EditingDomain domain = ((IEditingDomainProvider)activeEditorPart).getEditingDomain();
+ EditingDomain domain = ((IEditingDomainProvider) activeEditorPart).getEditingDomain();
newChildDescriptors = domain.getNewChildDescriptors(object, null);
newSiblingDescriptors = domain.getNewChildDescriptors(null, object);
@@ -311,6 +327,7 @@ public class JdtmmActionBarContributor
* and returns the collection of these actions.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<IAction> generateCreateChildActions(Collection<?> descriptors, ISelection selection) {
@@ -328,6 +345,7 @@ public class JdtmmActionBarContributor
* and returns the collection of these actions.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<IAction> generateCreateSiblingActions(Collection<?> descriptors, ISelection selection) {
@@ -347,6 +365,7 @@ public class JdtmmActionBarContributor
* If <code>contributionID</code> is <code>null</code>, they are simply added.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void populateManager(IContributionManager manager, Collection<? extends IAction> actions, String contributionID) {
@@ -361,12 +380,13 @@ public class JdtmmActionBarContributor
}
}
}
-
+
/**
* This removes from the specified <code>manager</code> all {@link org.eclipse.jface.action.ActionContributionItem}s
* based on the {@link org.eclipse.jface.action.IAction}s contained in the <code>actions</code> collection.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void depopulateManager(IContributionManager manager, Collection<? extends IAction> actions) {
@@ -377,13 +397,13 @@ public class JdtmmActionBarContributor
//
IContributionItem contributionItem = items[i];
while (contributionItem instanceof SubContributionItem) {
- contributionItem = ((SubContributionItem)contributionItem).getInnerItem();
+ contributionItem = ((SubContributionItem) contributionItem).getInnerItem();
}
// Delete the ActionContributionItems with matching action.
//
if (contributionItem instanceof ActionContributionItem) {
- IAction action = ((ActionContributionItem)contributionItem).getAction();
+ IAction action = ((ActionContributionItem) contributionItem).getAction();
if (actions.contains(action)) {
manager.remove(contributionItem);
}
@@ -396,6 +416,7 @@ public class JdtmmActionBarContributor
* This populates the pop-up menu before it appears.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -416,6 +437,7 @@ public class JdtmmActionBarContributor
* This inserts global actions before the "additions-end" separator.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -423,7 +445,7 @@ public class JdtmmActionBarContributor
menuManager.insertAfter("additions-end", new Separator("ui-actions"));
menuManager.insertAfter("ui-actions", showPropertiesViewAction);
- refreshViewerAction.setEnabled(refreshViewerAction.isEnabled());
+ refreshViewerAction.setEnabled(refreshViewerAction.isEnabled());
menuManager.insertAfter("ui-actions", refreshViewerAction);
super.addGlobalActions(menuManager);
@@ -433,6 +455,7 @@ public class JdtmmActionBarContributor
* This ensures that a delete action will clean up all references to deleted objects.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmEditor.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmEditor.java
index a3184186a42..0fbd736c89b 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmEditor.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmEditor.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -182,15 +182,17 @@ import org.eclipse.ui.actions.WorkspaceModifyOperation;
* This is an example of a Jdtmm model editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JdtmmEditor
- extends MultiPageEditorPart
- implements IEditingDomainProvider, ISelectionProvider, IMenuListener, IViewerProvider, IGotoMarker {
+ extends MultiPageEditorPart
+ implements IEditingDomainProvider, ISelectionProvider, IMenuListener, IViewerProvider, IGotoMarker {
/**
* This keeps track of the editing domain that is used to track all changes to the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected AdapterFactoryEditingDomain editingDomain;
@@ -199,6 +201,7 @@ public class JdtmmEditor
* This is the one adapter factory used for providing views of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ComposedAdapterFactory adapterFactory;
@@ -207,6 +210,7 @@ public class JdtmmEditor
* This is the content outline page.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IContentOutlinePage contentOutlinePage;
@@ -215,6 +219,7 @@ public class JdtmmEditor
* This is a kludge...
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IStatusLineManager contentOutlineStatusLineManager;
@@ -223,6 +228,7 @@ public class JdtmmEditor
* This is the content outline page's viewer.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TreeViewer contentOutlineViewer;
@@ -231,6 +237,7 @@ public class JdtmmEditor
* This is the property sheet page.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected PropertySheetPage propertySheetPage;
@@ -240,6 +247,7 @@ public class JdtmmEditor
* The parent relation must be correctly defined for this to work.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TreeViewer selectionViewer;
@@ -248,6 +256,7 @@ public class JdtmmEditor
* This inverts the roll of parent and child in the content provider and show parents as a tree.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TreeViewer parentViewer;
@@ -256,6 +265,7 @@ public class JdtmmEditor
* This shows how a tree view works.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TreeViewer treeViewer;
@@ -265,6 +275,7 @@ public class JdtmmEditor
* A list viewer doesn't support icons.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ListViewer listViewer;
@@ -274,6 +285,7 @@ public class JdtmmEditor
* A table can be used as a list with icons.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TableViewer tableViewer;
@@ -282,6 +294,7 @@ public class JdtmmEditor
* This shows how a tree view with columns works.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TreeViewer treeViewerWithColumns;
@@ -290,6 +303,7 @@ public class JdtmmEditor
* This keeps track of the active viewer pane, in the book.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ViewerPane currentViewerPane;
@@ -298,6 +312,7 @@ public class JdtmmEditor
* This keeps track of the active content viewer, which may be either one of the viewers in the pages or the content outline viewer.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Viewer currentViewer;
@@ -306,6 +321,7 @@ public class JdtmmEditor
* This listens to which ever viewer is active.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ISelectionChangedListener selectionChangedListener;
@@ -314,6 +330,7 @@ public class JdtmmEditor
* This keeps track of all the {@link org.eclipse.jface.viewers.ISelectionChangedListener}s that are listening to this editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<ISelectionChangedListener> selectionChangedListeners = new ArrayList<ISelectionChangedListener>();
@@ -322,6 +339,7 @@ public class JdtmmEditor
* This keeps track of the selection of the editor as a whole.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ISelection editorSelection = StructuredSelection.EMPTY;
@@ -331,6 +349,7 @@ public class JdtmmEditor
* in Eclipse's Problems View.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected MarkerHelper markerHelper = new EditUIMarkerHelper();
@@ -339,46 +358,57 @@ public class JdtmmEditor
* This listens for when the outline becomes active
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IPartListener partListener =
- new IPartListener() {
- public void partActivated(IWorkbenchPart p) {
- if (p instanceof ContentOutline) {
- if (((ContentOutline)p).getCurrentPage() == contentOutlinePage) {
- getActionBarContributor().setActiveEditor(JdtmmEditor.this);
+ new IPartListener() {
+ @Override
+ public void partActivated(IWorkbenchPart p) {
+ if (p instanceof ContentOutline) {
+ if (((ContentOutline) p).getCurrentPage() == contentOutlinePage) {
+ getActionBarContributor().setActiveEditor(JdtmmEditor.this);
- setCurrentViewer(contentOutlineViewer);
+ setCurrentViewer(contentOutlineViewer);
+ }
}
- }
- else if (p instanceof PropertySheet) {
- if (((PropertySheet)p).getCurrentPage() == propertySheetPage) {
- getActionBarContributor().setActiveEditor(JdtmmEditor.this);
+ else if (p instanceof PropertySheet) {
+ if (((PropertySheet) p).getCurrentPage() == propertySheetPage) {
+ getActionBarContributor().setActiveEditor(JdtmmEditor.this);
+ handleActivate();
+ }
+ }
+ else if (p == JdtmmEditor.this) {
handleActivate();
}
}
- else if (p == JdtmmEditor.this) {
- handleActivate();
+
+ @Override
+ public void partBroughtToTop(IWorkbenchPart p) {
+ // Ignore.
}
- }
- public void partBroughtToTop(IWorkbenchPart p) {
- // Ignore.
- }
- public void partClosed(IWorkbenchPart p) {
- // Ignore.
- }
- public void partDeactivated(IWorkbenchPart p) {
- // Ignore.
- }
- public void partOpened(IWorkbenchPart p) {
- // Ignore.
- }
- };
+
+ @Override
+ public void partClosed(IWorkbenchPart p) {
+ // Ignore.
+ }
+
+ @Override
+ public void partDeactivated(IWorkbenchPart p) {
+ // Ignore.
+ }
+
+ @Override
+ public void partOpened(IWorkbenchPart p) {
+ // Ignore.
+ }
+ };
/**
* Resources that have been removed since last activation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<Resource> removedResources = new ArrayList<Resource>();
@@ -387,6 +417,7 @@ public class JdtmmEditor
* Resources that have been changed since last activation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<Resource> changedResources = new ArrayList<Resource>();
@@ -395,6 +426,7 @@ public class JdtmmEditor
* Resources that have been saved.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<Resource> savedResources = new ArrayList<Resource>();
@@ -403,6 +435,7 @@ public class JdtmmEditor
* Map to store the diagnostic associated with a resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Map<Resource, Diagnostic> resourceToDiagnosticMap = new LinkedHashMap<Resource, Diagnostic>();
@@ -411,6 +444,7 @@ public class JdtmmEditor
* Controls whether the problem indication should be updated.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected boolean updateProblemIndication = true;
@@ -419,18 +453,19 @@ public class JdtmmEditor
* Adapter used to update the problem indication when resources are demanded loaded.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- protected EContentAdapter problemIndicationAdapter =
- new EContentAdapter() {
- @Override
- public void notifyChanged(Notification notification) {
- if (notification.getNotifier() instanceof Resource) {
- switch (notification.getFeatureID(Resource.class)) {
+ protected EContentAdapter problemIndicationAdapter =
+ new EContentAdapter() {
+ @Override
+ public void notifyChanged(Notification notification) {
+ if (notification.getNotifier() instanceof Resource) {
+ switch (notification.getFeatureID(Resource.class)) {
case Resource.RESOURCE__IS_LOADED:
case Resource.RESOURCE__ERRORS:
case Resource.RESOURCE__WARNINGS: {
- Resource resource = (Resource)notification.getNotifier();
+ Resource resource = (Resource) notification.getNotifier();
Diagnostic diagnostic = analyzeResourceProblems(resource, null);
if (diagnostic.getSeverity() != Diagnostic.OK) {
resourceToDiagnosticMap.put(resource, diagnostic);
@@ -441,124 +476,131 @@ public class JdtmmEditor
if (updateProblemIndication) {
getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- updateProblemIndication();
- }
- });
+ (new Runnable() {
+ @Override
+ public void run() {
+ updateProblemIndication();
+ }
+ });
}
break;
}
+ }
+ }
+ else {
+ super.notifyChanged(notification);
}
}
- else {
- super.notifyChanged(notification);
- }
- }
- @Override
- protected void setTarget(Resource target) {
- basicSetTarget(target);
- }
+ @Override
+ protected void setTarget(Resource target) {
+ basicSetTarget(target);
+ }
- @Override
- protected void unsetTarget(Resource target) {
- basicUnsetTarget(target);
- }
- };
+ @Override
+ protected void unsetTarget(Resource target) {
+ basicUnsetTarget(target);
+ }
+ };
/**
* This listens for workspace changes.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IResourceChangeListener resourceChangeListener =
- new IResourceChangeListener() {
- public void resourceChanged(IResourceChangeEvent event) {
- IResourceDelta delta = event.getDelta();
- try {
- class ResourceDeltaVisitor implements IResourceDeltaVisitor {
- protected ResourceSet resourceSet = editingDomain.getResourceSet();
- protected Collection<Resource> changedResources = new ArrayList<Resource>();
- protected Collection<Resource> removedResources = new ArrayList<Resource>();
-
- public boolean visit(IResourceDelta delta) {
- if (delta.getResource().getType() == IResource.FILE) {
- if (delta.getKind() == IResourceDelta.REMOVED ||
- delta.getKind() == IResourceDelta.CHANGED && delta.getFlags() != IResourceDelta.MARKERS) {
- Resource resource = resourceSet.getResource(URI.createPlatformResourceURI(delta.getFullPath().toString(), true), false);
- if (resource != null) {
- if (delta.getKind() == IResourceDelta.REMOVED) {
- removedResources.add(resource);
- }
- else if (!savedResources.remove(resource)) {
- changedResources.add(resource);
+ new IResourceChangeListener() {
+ @Override
+ public void resourceChanged(IResourceChangeEvent event) {
+ IResourceDelta delta = event.getDelta();
+ try {
+ class ResourceDeltaVisitor implements IResourceDeltaVisitor {
+ protected ResourceSet resourceSet = editingDomain.getResourceSet();
+ protected Collection<Resource> changedResources = new ArrayList<Resource>();
+ protected Collection<Resource> removedResources = new ArrayList<Resource>();
+
+ @Override
+ public boolean visit(IResourceDelta delta) {
+ if (delta.getResource().getType() == IResource.FILE) {
+ if (delta.getKind() == IResourceDelta.REMOVED ||
+ delta.getKind() == IResourceDelta.CHANGED && delta.getFlags() != IResourceDelta.MARKERS) {
+ Resource resource = resourceSet.getResource(URI.createPlatformResourceURI(delta.getFullPath().toString(), true), false);
+ if (resource != null) {
+ if (delta.getKind() == IResourceDelta.REMOVED) {
+ removedResources.add(resource);
+ }
+ else if (!savedResources.remove(resource)) {
+ changedResources.add(resource);
+ }
}
}
}
+
+ return true;
}
- return true;
- }
+ public Collection<Resource> getChangedResources() {
+ return changedResources;
+ }
- public Collection<Resource> getChangedResources() {
- return changedResources;
+ public Collection<Resource> getRemovedResources() {
+ return removedResources;
+ }
}
- public Collection<Resource> getRemovedResources() {
- return removedResources;
+ final ResourceDeltaVisitor visitor = new ResourceDeltaVisitor();
+ delta.accept(visitor);
+
+ if (!visitor.getRemovedResources().isEmpty()) {
+ getSite().getShell().getDisplay().asyncExec
+ (new Runnable() {
+ @Override
+ public void run() {
+ removedResources.addAll(visitor.getRemovedResources());
+ if (!isDirty()) {
+ getSite().getPage().closeEditor(JdtmmEditor.this, false);
+ }
+ }
+ });
}
- }
- final ResourceDeltaVisitor visitor = new ResourceDeltaVisitor();
- delta.accept(visitor);
-
- if (!visitor.getRemovedResources().isEmpty()) {
- getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- removedResources.addAll(visitor.getRemovedResources());
- if (!isDirty()) {
- getSite().getPage().closeEditor(JdtmmEditor.this, false);
- }
- }
- });
+ if (!visitor.getChangedResources().isEmpty()) {
+ getSite().getShell().getDisplay().asyncExec
+ (new Runnable() {
+ @Override
+ public void run() {
+ changedResources.addAll(visitor.getChangedResources());
+ if (getSite().getPage().getActiveEditor() == JdtmmEditor.this) {
+ handleActivate();
+ }
+ }
+ });
+ }
}
-
- if (!visitor.getChangedResources().isEmpty()) {
- getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- changedResources.addAll(visitor.getChangedResources());
- if (getSite().getPage().getActiveEditor() == JdtmmEditor.this) {
- handleActivate();
- }
- }
- });
+ catch (CoreException exception) {
+ JdtmmEditorPlugin.INSTANCE.log(exception);
}
}
- catch (CoreException exception) {
- JdtmmEditorPlugin.INSTANCE.log(exception);
- }
- }
- };
+ };
/**
* Handles activation of the editor or it's associated views.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void handleActivate() {
// Recompute the read only state.
//
if (editingDomain.getResourceToReadOnlyMap() != null) {
- editingDomain.getResourceToReadOnlyMap().clear();
+ editingDomain.getResourceToReadOnlyMap().clear();
- // Refresh any actions that may become enabled or disabled.
- //
- setSelection(getSelection());
+ // Refresh any actions that may become enabled or disabled.
+ //
+ setSelection(getSelection());
}
if (!removedResources.isEmpty()) {
@@ -583,6 +625,7 @@ public class JdtmmEditor
* Handles what to do with changed resources on activation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void handleChangedResources() {
@@ -598,8 +641,7 @@ public class JdtmmEditor
resource.unload();
try {
resource.load(Collections.EMPTY_MAP);
- }
- catch (IOException exception) {
+ } catch (IOException exception) {
if (!resourceToDiagnosticMap.containsKey(resource)) {
resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
}
@@ -615,22 +657,23 @@ public class JdtmmEditor
updateProblemIndication();
}
}
-
+
/**
* Updates the problems indication with the information described in the specified diagnostic.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void updateProblemIndication() {
if (updateProblemIndication) {
BasicDiagnostic diagnostic =
- new BasicDiagnostic
+ new BasicDiagnostic
(Diagnostic.OK,
- "org.eclipse.papyrus.java.generator.metamodel.jdt.editor",
- 0,
- null,
- new Object [] { editingDomain.getResourceSet() });
+ "org.eclipse.papyrus.java.generator.metamodel.jdt.editor",
+ 0,
+ null,
+ new Object[] { editingDomain.getResourceSet() });
for (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) {
if (childDiagnostic.getSeverity() != Diagnostic.OK) {
diagnostic.add(childDiagnostic);
@@ -639,7 +682,7 @@ public class JdtmmEditor
int lastEditorPage = getPageCount() - 1;
if (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart) {
- ((ProblemEditorPart)getEditor(lastEditorPage)).setDiagnostic(diagnostic);
+ ((ProblemEditorPart) getEditor(lastEditorPage)).setDiagnostic(diagnostic);
if (diagnostic.getSeverity() != Diagnostic.OK) {
setActivePage(lastEditorPage);
}
@@ -653,8 +696,7 @@ public class JdtmmEditor
setPageText(lastEditorPage, problemEditorPart.getPartName());
setActivePage(lastEditorPage);
showTabs();
- }
- catch (PartInitException exception) {
+ } catch (PartInitException exception) {
JdtmmEditorPlugin.INSTANCE.log(exception);
}
}
@@ -664,8 +706,7 @@ public class JdtmmEditor
if (diagnostic.getSeverity() != Diagnostic.OK) {
try {
markerHelper.createMarkers(diagnostic);
- }
- catch (CoreException exception) {
+ } catch (CoreException exception) {
JdtmmEditorPlugin.INSTANCE.log(exception);
}
}
@@ -677,20 +718,21 @@ public class JdtmmEditor
* Shows a dialog that asks if conflicting changes should be discarded.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected boolean handleDirtyConflict() {
- return
- MessageDialog.openQuestion
+ return MessageDialog.openQuestion
(getSite().getShell(),
- getString("_UI_FileConflict_label"),
- getString("_WARN_FileConflict"));
+ getString("_UI_FileConflict_label"),
+ getString("_WARN_FileConflict"));
}
/**
* This creates a model editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JdtmmEditor() {
@@ -702,6 +744,7 @@ public class JdtmmEditor
* This sets up the editing domain for the model editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void initializeEditingDomain() {
@@ -720,26 +763,28 @@ public class JdtmmEditor
// Add a listener to set the most recent command's affected objects to be the selection of the viewer with focus.
//
commandStack.addCommandStackListener
- (new CommandStackListener() {
- public void commandStackChanged(final EventObject event) {
- getContainer().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- firePropertyChange(IEditorPart.PROP_DIRTY);
-
- // Try to select the affected objects.
- //
- Command mostRecentCommand = ((CommandStack)event.getSource()).getMostRecentCommand();
- if (mostRecentCommand != null) {
- setSelectionToViewer(mostRecentCommand.getAffectedObjects());
- }
- if (propertySheetPage != null && !propertySheetPage.getControl().isDisposed()) {
- propertySheetPage.refresh();
- }
- }
- });
- }
- });
+ (new CommandStackListener() {
+ @Override
+ public void commandStackChanged(final EventObject event) {
+ getContainer().getDisplay().asyncExec
+ (new Runnable() {
+ @Override
+ public void run() {
+ firePropertyChange(IEditorPart.PROP_DIRTY);
+
+ // Try to select the affected objects.
+ //
+ Command mostRecentCommand = ((CommandStack) event.getSource()).getMostRecentCommand();
+ if (mostRecentCommand != null) {
+ setSelectionToViewer(mostRecentCommand.getAffectedObjects());
+ }
+ if (propertySheetPage != null && !propertySheetPage.getControl().isDisposed()) {
+ propertySheetPage.refresh();
+ }
+ }
+ });
+ }
+ });
// Create the editing domain with a special command stack.
//
@@ -750,9 +795,10 @@ public class JdtmmEditor
* This is here for the listener to be able to call it.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- @Override
+ @Override
protected void firePropertyChange(int action) {
super.firePropertyChange(action);
}
@@ -761,6 +807,7 @@ public class JdtmmEditor
* This sets the selection into whichever viewer is active.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setSelectionToViewer(Collection<?> collection) {
@@ -769,27 +816,29 @@ public class JdtmmEditor
//
if (theSelection != null && !theSelection.isEmpty()) {
Runnable runnable =
- new Runnable() {
- public void run() {
- // Try to select the items in the current content viewer of the editor.
- //
- if (currentViewer != null) {
- currentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true);
+ new Runnable() {
+ @Override
+ public void run() {
+ // Try to select the items in the current content viewer of the editor.
+ //
+ if (currentViewer != null) {
+ currentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true);
+ }
}
- }
- };
+ };
getSite().getShell().getDisplay().asyncExec(runnable);
}
}
/**
* This returns the editing domain as required by the {@link IEditingDomainProvider} interface.
- * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain}
- * and for supporting {@link org.eclipse.emf.edit.ui.action.CommandAction}.
+ * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain} and for supporting {@link org.eclipse.emf.edit.ui.action.CommandAction}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public EditingDomain getEditingDomain() {
return editingDomain;
}
@@ -797,12 +846,14 @@ public class JdtmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ReverseAdapterFactoryContentProvider(AdapterFactory adapterFactory) {
@@ -812,10 +863,11 @@ public class JdtmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
- public Object [] getElements(Object object) {
+ public Object[] getElements(Object object) {
Object parent = super.getParent(object);
return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();
}
@@ -823,10 +875,11 @@ public class JdtmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
- public Object [] getChildren(Object object) {
+ public Object[] getChildren(Object object) {
Object parent = super.getParent(object);
return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();
}
@@ -834,6 +887,7 @@ public class JdtmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -845,6 +899,7 @@ public class JdtmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -856,6 +911,7 @@ public class JdtmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setCurrentViewerPane(ViewerPane viewerPane) {
@@ -873,6 +929,7 @@ public class JdtmmEditor
* is the current one.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setCurrentViewer(Viewer viewer) {
@@ -883,13 +940,14 @@ public class JdtmmEditor
// Create the listener on demand.
//
selectionChangedListener =
- new ISelectionChangedListener() {
- // This just notifies those things that are affected by the section.
- //
- public void selectionChanged(SelectionChangedEvent selectionChangedEvent) {
- setSelection(selectionChangedEvent.getSelection());
- }
- };
+ new ISelectionChangedListener() {
+ // This just notifies those things that are affected by the section.
+ //
+ @Override
+ public void selectionChanged(SelectionChangedEvent selectionChangedEvent) {
+ setSelection(selectionChangedEvent.getSelection());
+ }
+ };
}
// Stop listening to the old one.
@@ -918,8 +976,10 @@ public class JdtmmEditor
* This returns the viewer as required by the {@link IViewerProvider} interface.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public Viewer getViewer() {
return currentViewer;
}
@@ -928,6 +988,7 @@ public class JdtmmEditor
* This creates a context menu for the viewer and adds a listener as well registering the menu for extension.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void createContextMenuFor(StructuredViewer viewer) {
@@ -935,7 +996,7 @@ public class JdtmmEditor
contextMenu.add(new Separator("additions"));
contextMenu.setRemoveAllWhenShown(true);
contextMenu.addMenuListener(this);
- Menu menu= contextMenu.createContextMenu(viewer.getControl());
+ Menu menu = contextMenu.createContextMenu(viewer.getControl());
viewer.getControl().setMenu(menu);
getSite().registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer));
@@ -949,6 +1010,7 @@ public class JdtmmEditor
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void createModel() {
@@ -959,15 +1021,14 @@ public class JdtmmEditor
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet().getResource(resourceURI, true);
- }
- catch (Exception e) {
+ } catch (Exception e) {
exception = e;
resource = editingDomain.getResourceSet().getResource(resourceURI, false);
}
Diagnostic diagnostic = analyzeResourceProblems(resource, exception);
if (diagnostic.getSeverity() != Diagnostic.OK) {
- resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
+ resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
}
editingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter);
}
@@ -977,28 +1038,27 @@ public class JdtmmEditor
* and the specified exception (if any).
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Diagnostic analyzeResourceProblems(Resource resource, Exception exception) {
if (!resource.getErrors().isEmpty() || !resource.getWarnings().isEmpty()) {
BasicDiagnostic basicDiagnostic =
- new BasicDiagnostic
+ new BasicDiagnostic
(Diagnostic.ERROR,
- "org.eclipse.papyrus.java.generator.metamodel.jdt.editor",
- 0,
- getString("_UI_CreateModelError_message", resource.getURI()),
- new Object [] { exception == null ? (Object)resource : exception });
+ "org.eclipse.papyrus.java.generator.metamodel.jdt.editor",
+ 0,
+ getString("_UI_CreateModelError_message", resource.getURI()),
+ new Object[] { exception == null ? (Object) resource : exception });
basicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true));
return basicDiagnostic;
}
else if (exception != null) {
- return
- new BasicDiagnostic
- (Diagnostic.ERROR,
- "org.eclipse.papyrus.java.generator.metamodel.jdt.editor",
- 0,
- getString("_UI_CreateModelError_message", resource.getURI()),
- new Object[] { exception });
+ return new BasicDiagnostic(Diagnostic.ERROR,
+ "org.eclipse.papyrus.java.generator.metamodel.jdt.editor",
+ 0,
+ getString("_UI_CreateModelError_message", resource.getURI()),
+ new Object[] { exception });
}
else {
return Diagnostic.OK_INSTANCE;
@@ -1009,6 +1069,7 @@ public class JdtmmEditor
* This is the method used by the framework to install your own controls.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1024,22 +1085,23 @@ public class JdtmmEditor
//
{
ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), JdtmmEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- Tree tree = new Tree(composite, SWT.MULTI);
- TreeViewer newTreeViewer = new TreeViewer(tree);
- return newTreeViewer;
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ new ViewerPane(getSite().getPage(), JdtmmEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ Tree tree = new Tree(composite, SWT.MULTI);
+ TreeViewer newTreeViewer = new TreeViewer(tree);
+ return newTreeViewer;
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- selectionViewer = (TreeViewer)viewerPane.getViewer();
+ selectionViewer = (TreeViewer) viewerPane.getViewer();
selectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
selectionViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1058,22 +1120,23 @@ public class JdtmmEditor
//
{
ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), JdtmmEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- Tree tree = new Tree(composite, SWT.MULTI);
- TreeViewer newTreeViewer = new TreeViewer(tree);
- return newTreeViewer;
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ new ViewerPane(getSite().getPage(), JdtmmEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ Tree tree = new Tree(composite, SWT.MULTI);
+ TreeViewer newTreeViewer = new TreeViewer(tree);
+ return newTreeViewer;
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- parentViewer = (TreeViewer)viewerPane.getViewer();
+ parentViewer = (TreeViewer) viewerPane.getViewer();
parentViewer.setAutoExpandLevel(30);
parentViewer.setContentProvider(new ReverseAdapterFactoryContentProvider(adapterFactory));
parentViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1087,19 +1150,20 @@ public class JdtmmEditor
//
{
ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), JdtmmEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- return new ListViewer(composite);
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ new ViewerPane(getSite().getPage(), JdtmmEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new ListViewer(composite);
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- listViewer = (ListViewer)viewerPane.getViewer();
+ listViewer = (ListViewer) viewerPane.getViewer();
listViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
listViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1112,19 +1176,20 @@ public class JdtmmEditor
//
{
ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), JdtmmEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- return new TreeViewer(composite);
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ new ViewerPane(getSite().getPage(), JdtmmEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new TreeViewer(composite);
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- treeViewer = (TreeViewer)viewerPane.getViewer();
+ treeViewer = (TreeViewer) viewerPane.getViewer();
treeViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
treeViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1139,19 +1204,20 @@ public class JdtmmEditor
//
{
ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), JdtmmEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- return new TableViewer(composite);
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ new ViewerPane(getSite().getPage(), JdtmmEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new TableViewer(composite);
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- tableViewer = (TableViewer)viewerPane.getViewer();
+ tableViewer = (TableViewer) viewerPane.getViewer();
Table table = tableViewer.getTable();
TableLayout layout = new TableLayout();
@@ -1169,7 +1235,7 @@ public class JdtmmEditor
selfColumn.setText(getString("_UI_SelfColumn_label"));
selfColumn.setResizable(true);
- tableViewer.setColumnProperties(new String [] {"a", "b"});
+ tableViewer.setColumnProperties(new String[] { "a", "b" });
tableViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
tableViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1182,20 +1248,21 @@ public class JdtmmEditor
//
{
ViewerPane viewerPane =
- new ViewerPane(getSite().getPage(), JdtmmEditor.this) {
- @Override
- public Viewer createViewer(Composite composite) {
- return new TreeViewer(composite);
- }
- @Override
- public void requestActivation() {
- super.requestActivation();
- setCurrentViewerPane(this);
- }
- };
+ new ViewerPane(getSite().getPage(), JdtmmEditor.this) {
+ @Override
+ public Viewer createViewer(Composite composite) {
+ return new TreeViewer(composite);
+ }
+
+ @Override
+ public void requestActivation() {
+ super.requestActivation();
+ setCurrentViewerPane(this);
+ }
+ };
viewerPane.createControl(getContainer());
- treeViewerWithColumns = (TreeViewer)viewerPane.getViewer();
+ treeViewerWithColumns = (TreeViewer) viewerPane.getViewer();
Tree tree = treeViewerWithColumns.getTree();
tree.setLayoutData(new FillLayout());
@@ -1212,7 +1279,7 @@ public class JdtmmEditor
selfColumn.setResizable(true);
selfColumn.setWidth(200);
- treeViewerWithColumns.setColumnProperties(new String [] {"a", "b"});
+ treeViewerWithColumns.setColumnProperties(new String[] { "a", "b" });
treeViewerWithColumns.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
treeViewerWithColumns.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
@@ -1222,35 +1289,38 @@ public class JdtmmEditor
}
getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- setActivePage(0);
- }
- });
+ (new Runnable() {
+ @Override
+ public void run() {
+ setActivePage(0);
+ }
+ });
}
// Ensures that this editor will only display the page's tab
// area if there are more than one page
//
getContainer().addControlListener
- (new ControlAdapter() {
- boolean guard = false;
- @Override
- public void controlResized(ControlEvent event) {
- if (!guard) {
- guard = true;
- hideTabs();
- guard = false;
+ (new ControlAdapter() {
+ boolean guard = false;
+
+ @Override
+ public void controlResized(ControlEvent event) {
+ if (!guard) {
+ guard = true;
+ hideTabs();
+ guard = false;
+ }
}
- }
- });
+ });
getSite().getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- updateProblemIndication();
- }
- });
+ (new Runnable() {
+ @Override
+ public void run() {
+ updateProblemIndication();
+ }
+ });
}
/**
@@ -1258,13 +1328,14 @@ public class JdtmmEditor
* this hides the single tab at the bottom.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void hideTabs() {
if (getPageCount() <= 1) {
setPageText(0, "");
if (getContainer() instanceof CTabFolder) {
- ((CTabFolder)getContainer()).setTabHeight(1);
+ ((CTabFolder) getContainer()).setTabHeight(1);
Point point = getContainer().getSize();
getContainer().setSize(point.x, point.y + 6);
}
@@ -1276,13 +1347,14 @@ public class JdtmmEditor
* this shows the tabs at the bottom.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void showTabs() {
if (getPageCount() > 1) {
setPageText(0, getString("_UI_SelectionPage_label"));
if (getContainer() instanceof CTabFolder) {
- ((CTabFolder)getContainer()).setTabHeight(SWT.DEFAULT);
+ ((CTabFolder) getContainer()).setTabHeight(SWT.DEFAULT);
Point point = getContainer().getSize();
getContainer().setSize(point.x, point.y - 6);
}
@@ -1293,6 +1365,7 @@ public class JdtmmEditor
* This is used to track the active viewer.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1308,6 +1381,7 @@ public class JdtmmEditor
* This is how the framework determines which interfaces we implement.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("rawtypes")
@@ -1331,6 +1405,7 @@ public class JdtmmEditor
* This accesses a cached version of the content outliner.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public IContentOutlinePage getContentOutlinePage() {
@@ -1355,9 +1430,9 @@ public class JdtmmEditor
createContextMenuFor(contentOutlineViewer);
if (!editingDomain.getResourceSet().getResources().isEmpty()) {
- // Select the root object in the view.
- //
- contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);
+ // Select the root object in the view.
+ //
+ contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);
}
}
@@ -1379,13 +1454,14 @@ public class JdtmmEditor
// Listen to selection so that we can handle it is a special way.
//
contentOutlinePage.addSelectionChangedListener
- (new ISelectionChangedListener() {
- // This ensures that we handle selections correctly.
- //
- public void selectionChanged(SelectionChangedEvent event) {
- handleContentOutlineSelection(event.getSelection());
- }
- });
+ (new ISelectionChangedListener() {
+ // This ensures that we handle selections correctly.
+ //
+ @Override
+ public void selectionChanged(SelectionChangedEvent event) {
+ handleContentOutlineSelection(event.getSelection());
+ }
+ });
}
return contentOutlinePage;
@@ -1395,24 +1471,25 @@ public class JdtmmEditor
* This accesses a cached version of the property sheet.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public IPropertySheetPage getPropertySheetPage() {
if (propertySheetPage == null) {
propertySheetPage =
- new ExtendedPropertySheetPage(editingDomain) {
- @Override
- public void setSelectionToViewer(List<?> selection) {
- JdtmmEditor.this.setSelectionToViewer(selection);
- JdtmmEditor.this.setFocus();
- }
+ new ExtendedPropertySheetPage(editingDomain) {
+ @Override
+ public void setSelectionToViewer(List<?> selection) {
+ JdtmmEditor.this.setSelectionToViewer(selection);
+ JdtmmEditor.this.setFocus();
+ }
- @Override
- public void setActionBars(IActionBars actionBars) {
- super.setActionBars(actionBars);
- getActionBarContributor().shareGlobalActions(this, actionBars);
- }
- };
+ @Override
+ public void setActionBars(IActionBars actionBars) {
+ super.setActionBars(actionBars);
+ getActionBarContributor().shareGlobalActions(this, actionBars);
+ }
+ };
propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory));
}
@@ -1423,11 +1500,12 @@ public class JdtmmEditor
* This deals with how we want selection in the outliner to affect the other views.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void handleContentOutlineSelection(ISelection selection) {
if (currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection) {
- Iterator<?> selectedElements = ((IStructuredSelection)selection).iterator();
+ Iterator<?> selectedElements = ((IStructuredSelection) selection).iterator();
if (selectedElements.hasNext()) {
// Get the first selected element.
//
@@ -1462,17 +1540,19 @@ public class JdtmmEditor
* This is for implementing {@link IEditorPart} and simply tests the command stack.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean isDirty() {
- return ((BasicCommandStack)editingDomain.getCommandStack()).isSaveNeeded();
+ return ((BasicCommandStack) editingDomain.getCommandStack()).isSaveNeeded();
}
/**
* This is for implementing {@link IEditorPart} and simply saves the model file.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1485,31 +1565,31 @@ public class JdtmmEditor
// Do the work within an operation because this is a long running activity that modifies the workbench.
//
WorkspaceModifyOperation operation =
- new WorkspaceModifyOperation() {
- // This is the method that gets invoked when the operation runs.
- //
- @Override
- public void execute(IProgressMonitor monitor) {
- // Save the resources to the file system.
+ new WorkspaceModifyOperation() {
+ // This is the method that gets invoked when the operation runs.
//
- boolean first = true;
- for (Resource resource : editingDomain.getResourceSet().getResources()) {
- if ((first || !resource.getContents().isEmpty() || isPersisted(resource)) && !editingDomain.isReadOnly(resource)) {
- try {
- long timeStamp = resource.getTimeStamp();
- resource.save(saveOptions);
- if (resource.getTimeStamp() != timeStamp) {
- savedResources.add(resource);
+ @Override
+ public void execute(IProgressMonitor monitor) {
+ // Save the resources to the file system.
+ //
+ boolean first = true;
+ for (Resource resource : editingDomain.getResourceSet().getResources()) {
+ if ((first || !resource.getContents().isEmpty() || isPersisted(resource)) && !editingDomain.isReadOnly(resource)) {
+ try {
+ long timeStamp = resource.getTimeStamp();
+ resource.save(saveOptions);
+ if (resource.getTimeStamp() != timeStamp) {
+ savedResources.add(resource);
+ }
}
+ catch (Exception exception) {
+ resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
+ }
+ first = false;
}
- catch (Exception exception) {
- resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
- }
- first = false;
}
}
- }
- };
+ };
updateProblemIndication = false;
try {
@@ -1519,10 +1599,9 @@ public class JdtmmEditor
// Refresh the necessary state.
//
- ((BasicCommandStack)editingDomain.getCommandStack()).saveIsDone();
+ ((BasicCommandStack) editingDomain.getCommandStack()).saveIsDone();
firePropertyChange(IEditorPart.PROP_DIRTY);
- }
- catch (Exception exception) {
+ } catch (Exception exception) {
// Something went wrong that shouldn't.
//
JdtmmEditorPlugin.INSTANCE.log(exception);
@@ -1533,9 +1612,10 @@ public class JdtmmEditor
/**
* This returns whether something has been persisted to the URI of the specified resource.
- * The implementation uses the URI converter from the editor's resource set to try to open an input stream.
+ * The implementation uses the URI converter from the editor's resource set to try to open an input stream.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected boolean isPersisted(Resource resource) {
@@ -1546,8 +1626,7 @@ public class JdtmmEditor
result = true;
stream.close();
}
- }
- catch (IOException e) {
+ } catch (IOException e) {
// Ignore
}
return result;
@@ -1557,6 +1636,7 @@ public class JdtmmEditor
* This always returns true because it is not currently supported.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1568,6 +1648,7 @@ public class JdtmmEditor
* This also changes the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1586,6 +1667,7 @@ public class JdtmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected void doSaveAs(URI uri, IEditorInput editorInput) {
@@ -1593,17 +1675,19 @@ public class JdtmmEditor
setInputWithNotify(editorInput);
setPartName(editorInput.getName());
IProgressMonitor progressMonitor =
- getActionBars().getStatusLineManager() != null ?
- getActionBars().getStatusLineManager().getProgressMonitor() :
- new NullProgressMonitor();
+ getActionBars().getStatusLineManager() != null ?
+ getActionBars().getStatusLineManager().getProgressMonitor() :
+ new NullProgressMonitor();
doSave(progressMonitor);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void gotoMarker(IMarker marker) {
try {
if (marker.getType().equals(EValidator.MARKER)) {
@@ -1612,12 +1696,11 @@ public class JdtmmEditor
URI uri = URI.createURI(uriAttribute);
EObject eObject = editingDomain.getResourceSet().getEObject(uri, true);
if (eObject != null) {
- setSelectionToViewer(Collections.singleton(editingDomain.getWrapper(eObject)));
+ setSelectionToViewer(Collections.singleton(editingDomain.getWrapper(eObject)));
}
}
}
- }
- catch (CoreException exception) {
+ } catch (CoreException exception) {
JdtmmEditorPlugin.INSTANCE.log(exception);
}
}
@@ -1626,6 +1709,7 @@ public class JdtmmEditor
* This is called during startup.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1641,6 +1725,7 @@ public class JdtmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1657,8 +1742,10 @@ public class JdtmmEditor
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void addSelectionChangedListener(ISelectionChangedListener listener) {
selectionChangedListeners.add(listener);
}
@@ -1667,8 +1754,10 @@ public class JdtmmEditor
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void removeSelectionChangedListener(ISelectionChangedListener listener) {
selectionChangedListeners.remove(listener);
}
@@ -1677,8 +1766,10 @@ public class JdtmmEditor
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's overall selection.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public ISelection getSelection() {
return editorSelection;
}
@@ -1688,8 +1779,10 @@ public class JdtmmEditor
* Calling this result will notify the listeners.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setSelection(ISelection selection) {
editorSelection = selection;
@@ -1702,29 +1795,30 @@ public class JdtmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setStatusLineManager(ISelection selection) {
IStatusLineManager statusLineManager = currentViewer != null && currentViewer == contentOutlineViewer ?
- contentOutlineStatusLineManager : getActionBars().getStatusLineManager();
+ contentOutlineStatusLineManager : getActionBars().getStatusLineManager();
if (statusLineManager != null) {
if (selection instanceof IStructuredSelection) {
- Collection<?> collection = ((IStructuredSelection)selection).toList();
+ Collection<?> collection = ((IStructuredSelection) selection).toList();
switch (collection.size()) {
- case 0: {
- statusLineManager.setMessage(getString("_UI_NoObjectSelected"));
- break;
- }
- case 1: {
- String text = new AdapterFactoryItemDelegator(adapterFactory).getText(collection.iterator().next());
- statusLineManager.setMessage(getString("_UI_SingleObjectSelected", text));
- break;
- }
- default: {
- statusLineManager.setMessage(getString("_UI_MultiObjectSelected", Integer.toString(collection.size())));
- break;
- }
+ case 0: {
+ statusLineManager.setMessage(getString("_UI_NoObjectSelected"));
+ break;
+ }
+ case 1: {
+ String text = new AdapterFactoryItemDelegator(adapterFactory).getText(collection.iterator().next());
+ statusLineManager.setMessage(getString("_UI_SingleObjectSelected", text));
+ break;
+ }
+ default: {
+ statusLineManager.setMessage(getString("_UI_MultiObjectSelected", Integer.toString(collection.size())));
+ break;
+ }
}
}
else {
@@ -1737,6 +1831,7 @@ public class JdtmmEditor
* This looks up a string in the plugin's plugin.properties file.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static String getString(String key) {
@@ -1747,34 +1842,39 @@ public class JdtmmEditor
* This looks up a string in plugin.properties, making a substitution.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static String getString(String key, Object s1) {
- return JdtmmEditorPlugin.INSTANCE.getString(key, new Object [] { s1 });
+ return JdtmmEditorPlugin.INSTANCE.getString(key, new Object[] { s1 });
}
/**
* This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus with contributions from the Edit menu.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void menuAboutToShow(IMenuManager menuManager) {
- ((IMenuListener)getEditorSite().getActionBarContributor()).menuAboutToShow(menuManager);
+ ((IMenuListener) getEditorSite().getActionBarContributor()).menuAboutToShow(menuManager);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EditingDomainActionBarContributor getActionBarContributor() {
- return (EditingDomainActionBarContributor)getEditorSite().getActionBarContributor();
+ return (EditingDomainActionBarContributor) getEditorSite().getActionBarContributor();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public IActionBars getActionBars() {
@@ -1784,6 +1884,7 @@ public class JdtmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public AdapterFactory getAdapterFactory() {
@@ -1793,6 +1894,7 @@ public class JdtmmEditor
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -1824,6 +1926,7 @@ public class JdtmmEditor
* Returns whether the outline view should be presented to the user.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected boolean showOutlineView() {
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmEditorPlugin.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmEditorPlugin.java
index 7ee8c683a33..9e32266bbe7 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmEditorPlugin.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmEditorPlugin.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -32,6 +32,7 @@ import org.eclipse.emf.common.util.ResourceLocator;
* This is the central singleton for the Jdtmm editor plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public final class JdtmmEditorPlugin extends EMFPlugin {
@@ -39,14 +40,16 @@ public final class JdtmmEditorPlugin extends EMFPlugin {
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static final JdtmmEditorPlugin INSTANCE = new JdtmmEditorPlugin();
-
+
/**
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
private static Implementation plugin;
@@ -55,18 +58,19 @@ public final class JdtmmEditorPlugin extends EMFPlugin {
* Create the instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JdtmmEditorPlugin() {
- super
- (new ResourceLocator [] {
- });
+ super(new ResourceLocator[] {
+ });
}
/**
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
@@ -74,22 +78,24 @@ public final class JdtmmEditorPlugin extends EMFPlugin {
public ResourceLocator getPluginResourceLocator() {
return plugin;
}
-
+
/**
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the singleton instance.
* @generated
*/
public static Implementation getPlugin() {
return plugin;
}
-
+
/**
* The actual implementation of the Eclipse <b>Plugin</b>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static class Implementation extends EclipseUIPlugin {
@@ -97,11 +103,12 @@ public final class JdtmmEditorPlugin extends EMFPlugin {
* Creates an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Implementation() {
super();
-
+
// Remember the static instance.
//
plugin = this;
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmModelWizard.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmModelWizard.java
index 6fb33f7d1b7..843eba141d6 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmModelWizard.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt.editor/src/org/eclipse/papyrus/java/generator/metamodel/jdt/jdtmm/presentation/JdtmmModelWizard.java
@@ -9,10 +9,10 @@
*
* Contributors:
* Nicolas Deblock nico.deblock@gmail.com - Meta-model conception
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Meta-model conception
* Manuel Giles giles.manu@live.fr - Meta-model conception
*
- *****************************************************************************/
+ *****************************************************************************/
/**
* <copyright>
@@ -93,7 +93,6 @@ import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JdtmmFactory;
import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.JdtmmPackage;
import org.eclipse.papyrus.java.generator.metamodel.jdt.jdtmm.provider.JdtmmEditPlugin;
-
import org.eclipse.core.runtime.Path;
import org.eclipse.jface.viewers.ISelection;
@@ -109,6 +108,7 @@ import org.eclipse.ui.PartInitException;
* This is a simple wizard for creating a new model file.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JdtmmModelWizard extends Wizard implements INewWizard {
@@ -116,24 +116,27 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* The supported extensions for created files.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static final List<String> FILE_EXTENSIONS =
- Collections.unmodifiableList(Arrays.asList(JdtmmEditorPlugin.INSTANCE.getString("_UI_JdtmmEditorFilenameExtensions").split("\\s*,\\s*")));
+ Collections.unmodifiableList(Arrays.asList(JdtmmEditorPlugin.INSTANCE.getString("_UI_JdtmmEditorFilenameExtensions").split("\\s*,\\s*")));
/**
* A formatted list of supported file extensions, suitable for display.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static final String FORMATTED_FILE_EXTENSIONS =
- JdtmmEditorPlugin.INSTANCE.getString("_UI_JdtmmEditorFilenameExtensions").replaceAll("\\s*,\\s*", ", ");
+ JdtmmEditorPlugin.INSTANCE.getString("_UI_JdtmmEditorFilenameExtensions").replaceAll("\\s*,\\s*", ", ");
/**
* This caches an instance of the model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JdtmmPackage jdtmmPackage = JdtmmPackage.eINSTANCE;
@@ -142,6 +145,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* This caches an instance of the model factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JdtmmFactory jdtmmFactory = jdtmmPackage.getJdtmmFactory();
@@ -150,6 +154,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* This is the file creation page.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JdtmmModelWizardNewFileCreationPage newFileCreationPage;
@@ -158,6 +163,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* This is the initial object creation page.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected JdtmmModelWizardInitialObjectCreationPage initialObjectCreationPage;
@@ -166,6 +172,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* Remember the selection during initialization for populating the default container.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IStructuredSelection selection;
@@ -174,6 +181,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* Remember the workbench during initialization.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected IWorkbench workbench;
@@ -182,6 +190,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* Caches the names of the types that can be created as the root object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected List<String> initialObjectNames;
@@ -190,8 +199,10 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* This just records the information.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void init(IWorkbench workbench, IStructuredSelection selection) {
this.workbench = workbench;
this.selection = selection;
@@ -203,6 +214,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* Returns the names of the types that can be created as the root object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<String> getInitialObjectNames() {
@@ -210,7 +222,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
initialObjectNames = new ArrayList<String>();
for (EClassifier eClassifier : jdtmmPackage.getEClassifiers()) {
if (eClassifier instanceof EClass) {
- EClass eClass = (EClass)eClassifier;
+ EClass eClass = (EClass) eClassifier;
if (!eClass.isAbstract()) {
initialObjectNames.add(eClass.getName());
}
@@ -225,10 +237,11 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* Create a new model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected EObject createInitialModel() {
- EClass eClass = (EClass)jdtmmPackage.getEClassifier(initialObjectCreationPage.getInitialObjectName());
+ EClass eClass = (EClass) jdtmmPackage.getEClassifier(initialObjectCreationPage.getInitialObjectName());
EObject rootObject = jdtmmFactory.create(eClass);
return rootObject;
}
@@ -237,6 +250,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* Do the work after everything is specified.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -249,43 +263,43 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
// Do the work within an operation.
//
WorkspaceModifyOperation operation =
- new WorkspaceModifyOperation() {
- @Override
- protected void execute(IProgressMonitor progressMonitor) {
- try {
- // Create a resource set
- //
- ResourceSet resourceSet = new ResourceSetImpl();
-
- // Get the URI of the model file.
- //
- URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true);
-
- // Create a resource for this file.
- //
- Resource resource = resourceSet.createResource(fileURI);
-
- // Add the initial model object to the contents.
- //
- EObject rootObject = createInitialModel();
- if (rootObject != null) {
- resource.getContents().add(rootObject);
+ new WorkspaceModifyOperation() {
+ @Override
+ protected void execute(IProgressMonitor progressMonitor) {
+ try {
+ // Create a resource set
+ //
+ ResourceSet resourceSet = new ResourceSetImpl();
+
+ // Get the URI of the model file.
+ //
+ URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true);
+
+ // Create a resource for this file.
+ //
+ Resource resource = resourceSet.createResource(fileURI);
+
+ // Add the initial model object to the contents.
+ //
+ EObject rootObject = createInitialModel();
+ if (rootObject != null) {
+ resource.getContents().add(rootObject);
+ }
+
+ // Save the contents of the resource to the file system.
+ //
+ Map<Object, Object> options = new HashMap<Object, Object>();
+ options.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding());
+ resource.save(options);
+ }
+ catch (Exception exception) {
+ JdtmmEditorPlugin.INSTANCE.log(exception);
+ }
+ finally {
+ progressMonitor.done();
}
-
- // Save the contents of the resource to the file system.
- //
- Map<Object, Object> options = new HashMap<Object, Object>();
- options.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding());
- resource.save(options);
- }
- catch (Exception exception) {
- JdtmmEditorPlugin.INSTANCE.log(exception);
- }
- finally {
- progressMonitor.done();
}
- }
- };
+ };
getContainer().run(false, false, operation);
@@ -297,28 +311,27 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
if (activePart instanceof ISetSelectionTarget) {
final ISelection targetSelection = new StructuredSelection(modelFile);
getShell().getDisplay().asyncExec
- (new Runnable() {
- public void run() {
- ((ISetSelectionTarget)activePart).selectReveal(targetSelection);
- }
- });
+ (new Runnable() {
+ @Override
+ public void run() {
+ ((ISetSelectionTarget) activePart).selectReveal(targetSelection);
+ }
+ });
}
// Open an editor on the new file.
//
try {
page.openEditor
- (new FileEditorInput(modelFile),
- workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId());
- }
- catch (PartInitException exception) {
+ (new FileEditorInput(modelFile),
+ workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId());
+ } catch (PartInitException exception) {
MessageDialog.openError(workbenchWindow.getShell(), JdtmmEditorPlugin.INSTANCE.getString("_UI_OpenEditorError_label"), exception.getMessage());
return false;
}
return true;
- }
- catch (Exception exception) {
+ } catch (Exception exception) {
JdtmmEditorPlugin.INSTANCE.log(exception);
return false;
}
@@ -328,6 +341,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* This is the one page of the wizard.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JdtmmModelWizardNewFileCreationPage extends WizardNewFileCreationPage {
@@ -335,6 +349,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* Pass in the selection.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JdtmmModelWizardNewFileCreationPage(String pageId, IStructuredSelection selection) {
@@ -345,6 +360,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* The framework calls this to see if the file is correct.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -353,7 +369,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
String extension = new Path(getFileName()).getFileExtension();
if (extension == null || !FILE_EXTENSIONS.contains(extension)) {
String key = FILE_EXTENSIONS.size() > 1 ? "_WARN_FilenameExtensions" : "_WARN_FilenameExtension";
- setErrorMessage(JdtmmEditorPlugin.INSTANCE.getString(key, new Object [] { FORMATTED_FILE_EXTENSIONS }));
+ setErrorMessage(JdtmmEditorPlugin.INSTANCE.getString(key, new Object[] { FORMATTED_FILE_EXTENSIONS }));
return false;
}
return true;
@@ -364,6 +380,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public IFile getModelFile() {
@@ -375,26 +392,29 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* This is the page where the type of object to create is selected.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public class JdtmmModelWizardInitialObjectCreationPage extends WizardPage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Combo initialObjectField;
/**
* @generated
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
*/
protected List<String> encodings;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Combo encodingField;
@@ -403,6 +423,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* Pass in the selection.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public JdtmmModelWizardInitialObjectCreationPage(String pageId) {
@@ -412,10 +433,13 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void createControl(Composite parent) {
- Composite composite = new Composite(parent, SWT.NONE); {
+ Composite composite = new Composite(parent, SWT.NONE);
+ {
GridLayout layout = new GridLayout();
layout.numColumns = 1;
layout.verticalSpacing = 12;
@@ -484,18 +508,21 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected ModifyListener validator =
- new ModifyListener() {
- public void modifyText(ModifyEvent e) {
- setPageComplete(validatePage());
- }
- };
+ new ModifyListener() {
+ @Override
+ public void modifyText(ModifyEvent e) {
+ setPageComplete(validatePage());
+ }
+ };
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected boolean validatePage() {
@@ -505,6 +532,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -525,6 +553,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getInitialObjectName() {
@@ -541,6 +570,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getEncoding() {
@@ -551,13 +581,13 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* Returns the label for the specified type name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected String getLabel(String typeName) {
try {
return JdtmmEditPlugin.INSTANCE.getString("_UI_" + typeName + "_type");
- }
- catch(MissingResourceException mre) {
+ } catch (MissingResourceException mre) {
JdtmmEditorPlugin.INSTANCE.log(mre);
}
return typeName;
@@ -566,12 +596,13 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected Collection<String> getEncodings() {
if (encodings == null) {
encodings = new ArrayList<String>();
- for (StringTokenizer stringTokenizer = new StringTokenizer(JdtmmEditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer.hasMoreTokens(); ) {
+ for (StringTokenizer stringTokenizer = new StringTokenizer(JdtmmEditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer.hasMoreTokens();) {
encodings.add(stringTokenizer.nextToken());
}
}
@@ -583,9 +614,10 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* The framework calls this to create the contents of the wizard.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
- @Override
+ @Override
public void addPages() {
// Create a page, set the title, and the initial model file name.
//
@@ -604,7 +636,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
if (selectedElement instanceof IResource) {
// Get the resource parent, if its a file.
//
- IResource selectedResource = (IResource)selectedElement;
+ IResource selectedResource = (IResource) selectedElement;
if (selectedResource.getType() == IResource.FILE) {
selectedResource = selectedResource.getParent();
}
@@ -621,7 +653,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
String defaultModelBaseFilename = JdtmmEditorPlugin.INSTANCE.getString("_UI_JdtmmEditorFilenameDefaultBase");
String defaultModelFilenameExtension = FILE_EXTENSIONS.get(0);
String modelFilename = defaultModelBaseFilename + "." + defaultModelFilenameExtension;
- for (int i = 1; ((IContainer)selectedResource).findMember(modelFilename) != null; ++i) {
+ for (int i = 1; ((IContainer) selectedResource).findMember(modelFilename) != null; ++i) {
modelFilename = defaultModelBaseFilename + i + "." + defaultModelFilenameExtension;
}
newFileCreationPage.setFileName(modelFilename);
@@ -638,6 +670,7 @@ public class JdtmmModelWizard extends Wizard implements INewWizard {
* Get the file from the page.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public IFile getModelFile() {
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/GeneratoroptionsmmFactory.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/GeneratoroptionsmmFactory.java
index 76ae1ea444e..4cd6710bce1 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/GeneratoroptionsmmFactory.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/GeneratoroptionsmmFactory.java
@@ -20,6 +20,7 @@ import org.eclipse.emf.ecore.EFactory;
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.GeneratoroptionsmmPackage
* @generated
*/
@@ -28,6 +29,7 @@ public interface GeneratoroptionsmmFactory extends EFactory {
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
GeneratoroptionsmmFactory eINSTANCE = org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.impl.GeneratoroptionsmmFactoryImpl.init();
@@ -36,6 +38,7 @@ public interface GeneratoroptionsmmFactory extends EFactory {
* Returns a new object of class '<em>Options</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return a new object of class '<em>Options</em>'.
* @generated
*/
@@ -45,9 +48,10 @@ public interface GeneratoroptionsmmFactory extends EFactory {
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @return the package supported by this factory.
* @generated
*/
GeneratoroptionsmmPackage getGeneratoroptionsmmPackage();
-} //GeneratoroptionsmmFactory
+} // GeneratoroptionsmmFactory
diff --git a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/GeneratoroptionsmmPackage.java b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/GeneratoroptionsmmPackage.java
index 189409ee75e..5f51f4232f4 100644
--- a/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/GeneratoroptionsmmPackage.java
+++ b/extraplugins/java/org.eclipse.papyrus.java.generator.metamodel.jdt/src/org/eclipse/papyrus/java/generator/metamodel/jdt/generatoroptionsmm/GeneratoroptionsmmPackage.java
@@ -22,13 +22,14 @@ import org.eclipse.emf.ecore.EPackage;
* The <b>Package</b> for the model.
* It contains accessors for the meta objects to represent
* <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each operation of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each operation of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.GeneratoroptionsmmFactory
* @model kind="package"
* annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='GeneratorOptionsMM'"
@@ -39,6 +40,7 @@ public interface GeneratoroptionsmmPackage extends EPackage {
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNAME = "generatoroptionsmm";
@@ -47,6 +49,7 @@ public interface GeneratoroptionsmmPackage extends EPackage {
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNS_URI = "http:///GeneratorOptionsMM.ecore";
@@ -55,6 +58,7 @@ public interface GeneratoroptionsmmPackage extends EPackage {
* The package namespace name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
String eNS_PREFIX = "GeneratorOptionsMM";
@@ -63,6 +67,7 @@ public interface GeneratoroptionsmmPackage extends EPackage {
* The singleton instance of the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
GeneratoroptionsmmPackage eINSTANCE = org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.impl.GeneratoroptionsmmPackageImpl.init();
@@ -71,6 +76,7 @@ public interface GeneratoroptionsmmPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.impl.OptionsImpl <em>Options</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.impl.OptionsImpl
* @see org.eclipse.papyrus.java.generator.metamodel.jdt.generatoroptionsmm.impl.GeneratoroptionsmmPackageImpl#getOptions()
* @generated
@@ -81,6 +87,7 @@ public interface GeneratoroptionsmmPackage extends EPackage {
* The feature id for the '<em><b>Default Source Folder</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
* @ordered
*/
@@ -90,6 +97,7 @@ public interface GeneratoroptionsmmPackage extends EPackage {
* The number of structural features of the '<em>Options</em>' class.
* <!-- begin-user-doc -->