Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.m2e.core.ui/.settings/org.eclipse.jdt.core.prefs87
-rw-r--r--org.eclipse.m2e.core.ui/.settings/org.eclipse.jdt.ui.prefs57
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/IMavenDiscovery.java2
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/M2EUIPluginActivator.java2
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/MavenVersionDecorator.java30
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/AddDependencyAction.java129
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/AddPluginAction.java18
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/ChangeNatureAction.java43
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/DisableNatureAction.java1
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/EnableNatureAction.java27
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/MavenActionSupport.java10
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/MavenDebugOutputAction.java10
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/MavenPropertyTester.java69
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/ModuleProjectWizardAction.java27
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/OpenMavenConsoleAction.java6
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/OpenPomAction.java13
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/SelectionUtil.java40
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/components/PomHierarchyComposite.java9
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/components/TextComboBoxCellEditor.java6
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/ConsoleDocument.java151
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/IMavenConsoleListener.java1
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenConsoleFactory.java8
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenConsoleImpl.java48
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenConsolePageParticipant.java27
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenShowConsoleAction.java38
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/AbstractMavenDialog.java3
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/EditDependencyDialog.java114
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/InputHistory.java3
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenGoalSelectionDialog.java24
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenMessageDialog.java19
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenPropertyDialog.java26
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenRepositorySearchDialog.java224
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateMavenProjectsDialog.java2
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/AddDependencyOperation.java7
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/AddExclusionOperation.java11
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/ChangeCreator.java5
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/LifecycleMappingOperation.java103
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/PomEdits.java326
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/PomHelper.java114
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/RemoveDependencyOperation.java12
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/AggregateMappingLabelProvider.java11
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/ILifecycleMappingLabelProvider.java5
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/PackagingTypeMappingLabelProvider.java5
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/ProjectLifecycleMappingElement.java2
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/markers/MarkerResolutionGenerator.java20
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/GoalsFieldEditor.java188
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/LifecycleMappingPropertyPage.java4
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/LocalArchetypeCatalogDialog.java40
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenArchetypesPreferencePage.java61
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenGoalSelectionAdapter.java81
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenInstallationsPreferencePage.java154
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenPreferencePage.java26
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenProjectPreferencePage.java49
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenSettingsPreferencePage.java96
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/RemoteArchetypeCatalogDialog.java63
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/UserInterfacePreferencePage.java4
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/WarningsPreferencePage.java14
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ArtifactInfo.java46
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/CComboContentAdapter.java2
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ControlDecoration.java1
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/IndexSearchEngine.java9
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/MenuDetectEvent.java92
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/MenuDetectListener.java32
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/SearchEngine.java17
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/M2EErrorDialog.java70
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/M2EUIUtils.java30
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/ParentGatherer.java14
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/ProposalUtil.java47
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/MavenRepositoryView.java173
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/RepositoryViewContentProvider.java37
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/RepositoryViewLabelProvider.java43
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/AbstractIndexedRepositoryNode.java11
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/AbstractRepositoriesNode.java13
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/CustomRepositoriesNode.java5
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/GlobalRepositoriesNode.java2
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/IArtifactNode.java3
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/IMavenRepositoryNode.java7
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/IndexedArtifactGroupNode.java29
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/LocalRepositoryNode.java7
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/LocalRepositoryRootNode.java17
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/ProjectRepositoriesNode.java6
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/RepositoryNode.java13
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/WorkspaceRepositoryNode.java5
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstactCreateMavenProjectJob.java7
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstractCreateMavenProjectsOperation.java5
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstractMavenProjectWizard.java5
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstractMavenWizardPage.java35
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/CustomArchetypeDialog.java34
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/LifecycleMappingPage.java12
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenArtifactComponent.java26
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenDependenciesWizardPage.java64
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenImportWizard.java16
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenImportWizardPage.java175
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenInstallFileArtifactWizardPage.java64
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenInstallFileWizard.java30
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenLocationComponent.java141
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java19
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizardParentPage.java27
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenParentComponent.java22
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenPomSelectionComponent.java59
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenPomWizard.java27
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenPomWizardPage.java8
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectSelectionDialog.java13
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizard.java54
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArchetypePage.java24
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArchetypeParametersPage.java63
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArtifactPage.java22
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardLocationPage.java50
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/ResolverConfigurationComponent.java9
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/WidthGroup.java8
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/WorkingSetGroup.java3
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/WorkingSetHelper.java2
-rw-r--r--org.eclipse.m2e.core/.settings/org.eclipse.jdt.core.prefs22
-rw-r--r--org.eclipse.m2e.core/.settings/org.eclipse.jdt.ui.prefs57
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/MavenPlugin.java3
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/AbstractMavenConfigurationChangeListener.java3
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ArtifactKey.java80
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ArtifactRef.java12
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ArtifactRepositoryRef.java4
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMaven.java32
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMavenConfigurationChangeListener.java3
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMavenLauncherConfiguration.java8
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ISettingsChangeListener.java3
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/MavenConfigurationChangeEvent.java9
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/MavenModelManager.java13
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/MavenRuntime.java15
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/NearestVersionConflictResolver.java15
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/ExtensionReader.java5
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/M2EUtils.java8
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/MavenPluginActivator.java11
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/Messages.java2
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/NoSuchComponentException.java3
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/archetype/ArchetypeCatalogFactory.java22
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/archetype/ArchetypeCatalogsWriter.java17
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/archetype/ArchetypeManager.java83
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/AbstractEclipseBuildContext.java8
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/BuildProblemInfo.java2
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/ChangedFileOutputStream.java30
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/DeltaProvider.java4
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/EclipseBuildContext.java9
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/EclipseIncrementalBuildContext.java32
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/InternalBuildParticipant.java8
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenNature.java3
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/ResourceDeltaScanner.java12
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/ResourceScanner.java13
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/PomFileContentDescriber.java11
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/PomHandler.java1
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/TextContentDescriber.java28
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/XMLContentDescriber.java59
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/AbstractTransferListenerAdapter.java9
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/ArtifactTransferListenerAdapter.java4
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/ContextRepositorySystemSession.java1
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/DefaultMavenComponentContributor.java3
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/EclipseLogger.java60
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/EclipseRepositoryListener.java2
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenExternalRuntime.java68
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenImpl.java94
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenWorkspaceRuntime.java39
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/WagonTransferListenerAdapter.java1
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/IndexListener.java9
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/IndexedArtifactFile.java16
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/ArtifactScanningMonitor.java6
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/AsyncFetcher.java18
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/CompositeIndex.java2
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/EquinoxLock.java21
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/EquinoxLocker.java23
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexUpdaterJob.java14
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexedArtifactGroup.java9
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexesExtensionReader.java11
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexingTransferListener.java4
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/NexusIndexManager.java7
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/jobs/IBackgroundProcessingQueue.java8
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/DefaultLifecycleMapping.java4
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/DuplicateMappingException.java1
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/LifecycleMappingConfigurationException.java1
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/LifecycleMappingFactory.java4
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/MissingConfiguratorProblemInfo.java2
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/MissingLifecycleExtensionPoint.java6
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/IMavenDiscoveryProposal.java3
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/LifecycleMappingConfiguration.java67
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/MojoExecutionMappingConfiguration.java3
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/PackagingTypeMappingConfiguration.java2
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/ArtifactNotFoundProblemInfo.java2
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IEditorMarkerService.java7
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IMarkerLocationService.java9
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IMavenMarkerManager.java3
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/MarkerUtils.java14
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/MavenMarkerManager.java23
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/SourceLocation.java1
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/SourceLocationHelper.java4
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/preferences/MavenPreferenceConstants.java33
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/DependencyResolutionContext.java1
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/EclipseMavenMetadataCache.java2
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/IManagedCache.java3
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/MavenProjectImportResult.java2
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/ProjectConfigurationManager.java219
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/conversion/ProjectConversionManager.java37
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/AbstractMavenDependencyResolver.java5
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/EclipseWorkspaceArtifactRepository.java17
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ILifecycleMapping2.java3
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/IProjectRegistry.java2
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/MavenProjectFacade.java51
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java133
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java33
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/StaleMutableProjectRegistryException.java2
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/IRepositoryDiscoverer.java5
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/IRepositoryIndexer.java13
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/RepositoryInfo.java27
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/RepositoryRegistry.java57
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/RepositoryRegistryUpdateJob.java9
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/lifecyclemapping/model/IPluginExecutionMetadata.java1
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/lifecyclemapping/model/PluginExecutionAction.java1
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/AbstractProjectScanner.java5
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectChangedListener.java1
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectFacade.java17
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectImportResult.java5
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IProjectConfigurationManager.java18
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java20
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectChangedEvent.java6
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectInfo.java44
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectUtils.java11
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ProjectImportConfiguration.java14
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ResolverConfiguration.java30
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/AbstractProjectConfigurator.java5
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/ILifecycleMappingConfiguration.java5
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/conversion/AbstractProjectConversionParticipant.java40
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/conversion/IProjectConversionManager.java10
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/repository/IRepository.java34
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/repository/IRepositoryRegistry.java13
-rw-r--r--org.eclipse.m2e.discovery/.settings/org.eclipse.jdt.core.prefs11
-rw-r--r--org.eclipse.m2e.discovery/.settings/org.eclipse.jdt.ui.prefs64
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/DiscoveryActivator.java6
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/InstallCatalogItemMappingLabelProvider.java2
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/InstallCatalogItemMavenDiscoveryProposal.java1
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscovery.java33
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryIcons.java2
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryLauncher.java4
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryService.java25
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/Messages.java1
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/handlers/MavenDiscoveryHandler.java3
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java30
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/MavenDiscoveryMarkerResolutionGenerator.java7
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/operation/MavenDiscoveryInstallOperation.java11
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/operation/RestartInstallOperation.java4
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/preferences/DiscoveryPreferencePage.java5
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/startup/UpdateConfigurationStartup.java11
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/strategy/M2EConnectorDiscoveryExtensionReader.java2
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/strategy/M2ERemoteBundleDiscoveryStrategy.java5
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenCatalogConfiguration.java1
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenCatalogPage.java3
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenCatalogViewer.java8
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryInstallWizard.java3
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryUi.java40
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryWizard.java3
-rw-r--r--org.eclipse.m2e.editor.xml/.settings/org.eclipse.jdt.core.prefs124
-rw-r--r--org.eclipse.m2e.editor.xml/.settings/org.eclipse.jdt.ui.prefs65
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertArtifactProposal.java251
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertExpressionProposal.java34
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/MvnImages.java55
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/MvnIndexPlugin.java3
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomContentAssistProcessor.java273
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomContentOutlineConfiguration.java137
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomHyperlinkDetector.java460
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomModelHandler.java5
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomQuickAssistProcessor.java827
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomStructuredTextViewConfiguration.java8
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomTemplateContext.java313
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomTemplateContextUtil.java19
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomTextHover.java89
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/XMLSchemaMarkerResolution.java36
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/FormHoverProvider.java122
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerHoverControl.java729
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java252
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/NodeOperation.java6
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModel.java2
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModelFactory.java10
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/XmlUtils.java123
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/dialogs/SelectSPDXLicenseDialog.java4
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingDialog.java8
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingProposal.java36
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/WorkspaceLifecycleMappingProposal.java4
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/preferences/PomTemplatesPreferencePage.java1
-rw-r--r--org.eclipse.m2e.editor/.settings/org.eclipse.jdt.core.prefs78
-rw-r--r--org.eclipse.m2e.editor/.settings/org.eclipse.jdt.ui.prefs67
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/MavenEditorImages.java79
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/MavenEditorPlugin.java14
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComparator.java35
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java337
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependencyLabelProvider.java128
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/ListEditorComposite.java31
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/ListEditorContentProvider.java15
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/SectionExpansionAdapter.java8
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/StringLabelProvider.java3
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java146
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/MavenModuleSelectionDialog.java5
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/Messages.java2
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/actions/ShowDependencyHierarchyAction.java11
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependenciesPage.java34
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependencyTreePage.java114
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/ElementValueProvider.java19
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/FormUtils.java78
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/Matcher.java2
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java414
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorContributor.java28
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorPage.java292
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorPageFactory.java2
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/OverviewPage.java291
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/PropertiesSection.java102
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/ScopeArtifactFilter.java8
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/SearchControl.java15
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/SearchMatcher.java3
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/ValueProvider.java4
-rw-r--r--org.eclipse.m2e.jdt/.settings/org.eclipse.jdt.core.prefs28
-rw-r--r--org.eclipse.m2e.jdt/.settings/org.eclipse.jdt.ui.prefs57
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/AbstractJavaProjectConfigurator.java94
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IClasspathDescriptor.java2
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IClasspathEntryDescriptor.java2
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IClasspathManagerDelegate.java1
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IJavaProjectConfigurator.java3
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java6
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/BuildPathManager.java64
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DefaultClasspathManagerDelegate.java6
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DownloadSourcesActionDelegate.java15
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DownloadSourcesJob.java104
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JarLifecycleMapping.java1
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaElementsAdapterFactory.java14
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaProjectConversionParticipant.java169
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainer.java16
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainerInitializer.java3
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainerSaveHelper.java48
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathVariableInitializer.java4
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenJdtImages.java9
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/Messages.java2
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/actions/DownloadSourcesAction.java16
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/actions/OpenJavaDocAction.java28
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/launch/MavenLaunchConfigurationListener.java43
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/launch/MavenRuntimeClasspathProvider.java92
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/launch/MavenSourcePathProvider.java4
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/ui/MavenClasspathContainerPage.java5
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/ui/filter/MavenModuleFilter.java6
-rw-r--r--org.eclipse.m2e.launching/.settings/org.eclipse.jdt.core.prefs80
-rw-r--r--org.eclipse.m2e.launching/.settings/org.eclipse.jdt.ui.prefs65
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/ExecutePomAction.java49
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/MavenLaunchConstants.java78
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/LaunchingUtils.java11
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenConsoleLineTracker.java74
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenFileEditorInput.java8
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchDelegate.java8
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchPlugin.java3
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchUtils.java17
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLauncherConfigurationHandler.java22
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenSourcePathComputer.java58
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchConfigurationTabGroup.java1
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchExtensionsTab.java7
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java153
-rw-r--r--org.eclipse.m2e.logback.appender/.settings/org.eclipse.jdt.core.prefs23
-rw-r--r--org.eclipse.m2e.logback.appender/.settings/org.eclipse.jdt.ui.prefs57
-rw-r--r--org.eclipse.m2e.logback.appender/src/main/java/org/eclipse/m2e/logback/appender/ConsoleAppenderFilter.java1
-rw-r--r--org.eclipse.m2e.logback.appender/src/main/java/org/eclipse/m2e/logback/appender/MavenConsoleAppenderImpl.java2
-rw-r--r--org.eclipse.m2e.logback.configuration/.settings/org.eclipse.jdt.core.prefs23
-rw-r--r--org.eclipse.m2e.logback.configuration/.settings/org.eclipse.jdt.ui.prefs57
-rw-r--r--org.eclipse.m2e.logback.configuration/src/org/eclipse/m2e/logback/configuration/LogPlugin.java2
-rw-r--r--org.eclipse.m2e.model.edit/.settings/org.eclipse.jdt.core.prefs81
-rw-r--r--org.eclipse.m2e.model.edit/.settings/org.eclipse.jdt.ui.prefs65
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Activation.java494
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ActivationFile.java118
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ActivationOS.java215
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ActivationProperty.java115
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Build.java395
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/BuildBase.java562
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/CiManagement.java188
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Configuration.java8
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Contributor.java459
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Dependency.java656
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DependencyManagement.java99
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DeploymentRepository.java416
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Developer.java501
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DistributionManagement.java580
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DocumentRoot.java177
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Exclusion.java106
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Extension.java156
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/IssueManagement.java110
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/License.java217
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/MailingList.java381
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Model.java2520
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Notifier.java676
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Organization.java99
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Parent.java218
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Plugin.java575
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PluginExecution.java300
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PluginManagement.java44
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PomFactory.java699
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PomPackage.java13952
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Prerequisites.java113
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Profile.java1056
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PropertyElement.java112
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Relocation.java209
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ReportPlugin.java426
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ReportSet.java251
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Reporting.java249
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Repository.java484
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/RepositoryPolicy.java228
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Resource.java311
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Scm.java272
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Site.java158
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationFileImpl.java391
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationImpl.java1352
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationOSImpl.java564
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationPropertyImpl.java393
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/BuildBaseImpl.java1248
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/BuildImpl.java895
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/CiManagementImpl.java492
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ConfigurationImpl.java184
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ContributorImpl.java1097
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DependencyImpl.java1357
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DependencyManagementImpl.java289
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DeploymentRepositoryImpl.java878
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DeveloperImpl.java1205
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DistributionManagementImpl.java1618
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DocumentRootImpl.java491
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ExclusionImpl.java392
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ExtensionImpl.java465
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/IssueManagementImpl.java389
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/LicenseImpl.java566
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/MailingListImpl.java841
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ModelImpl.java5254
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/NotifierImpl.java1370
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/OrganizationImpl.java387
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ParentImpl.java570
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PluginExecutionImpl.java785
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PluginImpl.java1269
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PluginManagementImpl.java246
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PomFactoryImpl.java1106
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PomPackageImpl.java8365
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PrerequisitesImpl.java356
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ProfileImpl.java2266
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PropertyElementImpl.java390
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/RelocationImpl.java568
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ReportPluginImpl.java968
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ReportSetImpl.java669
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ReportingImpl.java618
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/RepositoryImpl.java1284
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/RepositoryPolicyImpl.java547
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ResourceImpl.java730
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ScmImpl.java681
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/SiteImpl.java448
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationFileItemProvider.java262
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationItemProvider.java361
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationOSItemProvider.java332
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationPropertyItemProvider.java260
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/BuildBaseItemProvider.java466
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/BuildItemProvider.java432
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/CiManagementItemProvider.java342
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ConfigurationItemProvider.java155
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ContributorItemProvider.java461
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DependencyItemProvider.java516
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DependencyManagementItemProvider.java258
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DeploymentRepositoryItemProvider.java372
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DeveloperItemProvider.java483
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DistributionManagementItemProvider.java425
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DocumentRootItemProvider.java259
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ExclusionItemProvider.java256
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ExtensionItemProvider.java291
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/IssueManagementItemProvider.java259
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/LicenseItemProvider.java328
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/MailingListItemProvider.java451
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ModelItemProvider.java831
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/NotifierItemProvider.java447
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/OrganizationItemProvider.java262
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ParentItemProvider.java325
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PluginExecutionItemProvider.java410
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PluginItemProvider.java445
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PluginManagementItemProvider.java258
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PomEditPlugin.java124
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PomItemProviderAdapterFactory.java2318
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PrerequisitesItemProvider.java222
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ProfileItemProvider.java485
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PropertyElementItemProvider.java262
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/RelocationItemProvider.java336
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ReportPluginItemProvider.java450
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ReportSetItemProvider.java369
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ReportingItemProvider.java337
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/RepositoryItemProvider.java465
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/RepositoryPolicyItemProvider.java299
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ResourceItemProvider.java382
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ScmItemProvider.java324
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/SiteItemProvider.java286
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ConfigurationAdapter.java66
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ListAdapter.java377
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ModelObjectAdapter.java547
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/PropertiesAdapter.java401
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/SSESyncResource.java122
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/TranslatorAdapter.java671
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ValueUpdateAdapter.java245
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomAdapterFactory.java1695
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomResourceFactoryImpl.java24
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomResourceImpl.java41
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomSwitch.java1933
-rw-r--r--org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomXMLProcessor.java58
-rw-r--r--org.eclipse.m2e.refactoring/.settings/org.eclipse.jdt.core.prefs78
-rw-r--r--org.eclipse.m2e.refactoring/.settings/org.eclipse.jdt.ui.prefs63
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/AbstractPomRefactoring.java24
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/ChangeCreator.java34
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/Messages.java1
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/PomVisitor.java2
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/RefactoringModelResources.java50
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/dependencyset/DependencySetAction.java35
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/dependencyset/DependencySetRefactoring.java22
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/dependencyset/MavenDependencySetWizard.java1
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/DependencyExcludeAction.java25
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/ExcludeArtifactRefactoring.java46
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/ExcludeWizardPage.java16
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/MavenExcludeWizard.java1
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/internal/Activator.java80
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/internal/RefactoringImages.java23
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/internal/SaveDirtyFilesDialog.java81
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/MavenRenameWizard.java1
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/MavenRenameWizardPage.java22
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/RenameArtifactHandler.java28
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/RenameRefactoring.java113
-rw-r--r--org.eclipse.m2e.scm/.settings/org.eclipse.jdt.core.prefs120
-rw-r--r--org.eclipse.m2e.scm/.settings/org.eclipse.jdt.ui.prefs67
-rw-r--r--org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/MavenCheckoutOperation.java27
-rw-r--r--org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/MavenProjectPomScanner.java86
-rw-r--r--org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/MavenProjectScmInfo.java21
-rw-r--r--org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/ScmTag.java9
-rw-r--r--org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/ScmUrl.java25
-rw-r--r--org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/Messages.java4
-rw-r--r--org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/ScmHandlerFactory.java16
-rw-r--r--org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/actions/CheckoutAsMavenAction.java21
-rw-r--r--org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/actions/MaterializeAction.java6
-rw-r--r--org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenCheckoutLocationPage.java140
-rw-r--r--org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenCheckoutWizard.java47
-rw-r--r--org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenMaterializePomWizard.java63
-rw-r--r--org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenProjectCheckoutJob.java68
-rw-r--r--org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/spi/ScmHandler.java36
-rw-r--r--org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/spi/ScmHandlerUi.java21
-rw-r--r--org.eclipse.m2e.tests.common/.settings/org.eclipse.jdt.core.prefs37
-rw-r--r--org.eclipse.m2e.tests.common/.settings/org.eclipse.jdt.ui.prefs57
-rw-r--r--org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractLifecycleMappingTest.java4
-rw-r--r--org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractMavenProjectTestCase.java76
-rw-r--r--org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/HttpServer.java20
-rw-r--r--org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/JobHelpers.java18
-rw-r--r--org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/WorkspaceHelpers.java13
544 files changed, 54882 insertions, 57573 deletions
diff --git a/org.eclipse.m2e.core.ui/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.core.ui/.settings/org.eclipse.jdt.core.prefs
index d31c5d0e..80d9c54b 100644
--- a/org.eclipse.m2e.core.ui/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.m2e.core.ui/.settings/org.eclipse.jdt.core.prefs
@@ -1,5 +1,22 @@
-#Sat Jul 30 19:01:59 MSD 2011
eclipse.preferences.version=1
+org.eclipse.jdt.core.builder.cleanOutputFolder=clean
+org.eclipse.jdt.core.builder.duplicateResourceTask=warning
+org.eclipse.jdt.core.builder.invalidClasspath=abort
+org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder=ignore
+org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch
+org.eclipse.jdt.core.circularClasspath=error
+org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
+org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
+org.eclipse.jdt.core.codeComplete.argumentPrefixes=
+org.eclipse.jdt.core.codeComplete.argumentSuffixes=
+org.eclipse.jdt.core.codeComplete.fieldPrefixes=
+org.eclipse.jdt.core.codeComplete.fieldSuffixes=
+org.eclipse.jdt.core.codeComplete.localPrefixes=
+org.eclipse.jdt.core.codeComplete.localSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
@@ -7,78 +24,91 @@ org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.doc.comment.support=enabled
+org.eclipse.jdt.core.compiler.maxProblemPerUnit=100
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
org.eclipse.jdt.core.compiler.problem.deadCode=warning
org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
+org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
org.eclipse.jdt.core.compiler.problem.nullReference=warning
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
-org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
-org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=enabled
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled
+org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH
+org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
@@ -96,12 +126,14 @@ org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=2
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
org.eclipse.jdt.core.formatter.blank_lines_before_field=1
@@ -139,11 +171,12 @@ org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not inse
org.eclipse.jdt.core.formatter.comment.line_length=120
org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=2
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
-org.eclipse.jdt.core.formatter.disabling_tag=
-org.eclipse.jdt.core.formatter.enabling_tag=
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
@@ -230,12 +263,14 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invoca
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
@@ -259,6 +294,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
@@ -314,6 +350,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
@@ -323,6 +360,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=inser
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
@@ -349,4 +387,7 @@ org.eclipse.jdt.core.formatter.tabulation.size=2
org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
+org.eclipse.jdt.core.incompatibleJDKLevel=ignore
+org.eclipse.jdt.core.incompleteClasspath=error
diff --git a/org.eclipse.m2e.core.ui/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.m2e.core.ui/.settings/org.eclipse.jdt.ui.prefs
index 64b10b1b..595d9975 100644
--- a/org.eclipse.m2e.core.ui/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.m2e.core.ui/.settings/org.eclipse.jdt.ui.prefs
@@ -1,6 +1,7 @@
eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_m2 plugin
-formatter_settings_version=11
+formatter_settings_version=12
org.eclipse.jdt.ui.exception.name=ex
org.eclipse.jdt.ui.gettersetter.use.is=true
org.eclipse.jdt.ui.ignorelowercasenames=true
@@ -10,4 +11,56 @@ org.eclipse.jdt.ui.keywordthis=true
org.eclipse.jdt.ui.ondemandthreshold=99
org.eclipse.jdt.ui.overrideannotation=false
org.eclipse.jdt.ui.staticondemandthreshold=99
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\r\n * @return Returns the ${bare_field_name}.\r\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\r\n * @param ${param} The ${bare_field_name} to set.\r\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\r\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\r\n * All rights reserved. This program and the accompanying materials&\#13;\r\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\r\n * which accompanies this distribution, and is available at&\#13;\r\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\r\n *&\#13;\r\n * Contributors\:&\#13;\r\n * Sonatype, Inc. - initial API and implementation&\#13;\r\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * ${type_name}\r\n *\r\n * @author ${user}\r\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\r\n * ${see_to_overridden}\r\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\r\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\r\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\r\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\r\n * ${tags}\r\n * ${see_to_target}\r\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\r\n * @return the ${bare_field_name}\r\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\r\n * @param ${param} the ${bare_field_name} to set\r\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author ${user}\r\n *\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\r\n * ${see_to_overridden}\r\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\r\n * ${tags}\r\n * ${see_to_target}\r\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\r\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\r\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\r\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/IMavenDiscovery.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/IMavenDiscovery.java
index 9ce145f9..3f3d861c 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/IMavenDiscovery.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/IMavenDiscovery.java
@@ -8,10 +8,12 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.ui.internal;
import org.eclipse.swt.widgets.Shell;
+
public interface IMavenDiscovery {
public void launch(Shell shell);
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/M2EUIPluginActivator.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/M2EUIPluginActivator.java
index 3118f996..8741f64f 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/M2EUIPluginActivator.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/M2EUIPluginActivator.java
@@ -125,7 +125,7 @@ public class M2EUIPluginActivator extends AbstractUIPlugin {
*/
public void ungetMavenDiscovery(IMavenDiscovery discovery) {
// TODO Auto-generated method ungetMavenDiscovery
-
+
}
/**
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/MavenVersionDecorator.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/MavenVersionDecorator.java
index 19ace897..3e0c8f6b 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/MavenVersionDecorator.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/MavenVersionDecorator.java
@@ -23,13 +23,15 @@ import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jface.viewers.ILabelDecorator;
import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.LabelProviderChangedEvent;
+import org.eclipse.swt.graphics.Image;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.embedder.ArtifactKey;
import org.eclipse.m2e.core.project.IMavenProjectChangedListener;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
-import org.eclipse.m2e.core.project.MavenProjectChangedEvent;
import org.eclipse.m2e.core.project.IMavenProjectRegistry;
-import org.eclipse.swt.graphics.Image;
+import org.eclipse.m2e.core.project.MavenProjectChangedEvent;
+
/**
* @author Eugene Kuleshov
@@ -46,17 +48,17 @@ public class MavenVersionDecorator implements ILabelDecorator {
if(element instanceof IResource) {
IResource resource = (IResource) element;
IProject project = resource.getProject();
- if(project!=null) {
+ if(project != null) {
IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry();
IMavenProjectFacade facade = projectManager.create(project, new NullProgressMonitor());
- if(facade!=null) {
+ if(facade != null) {
ArtifactKey mavenProject = facade.getArtifactKey();
- if(mavenProject!=null) {
+ if(mavenProject != null) {
String name = resource.getName();
int start = text.indexOf(name);
- if(start>-1) {
+ if(start > -1) {
int n = text.indexOf(' ', start + name.length());
- if(n>-1) {
+ if(n > -1) {
return text.substring(0, n) + " " + mavenProject.getVersion() + text.substring(n); //$NON-NLS-1$
}
}
@@ -78,10 +80,10 @@ public class MavenVersionDecorator implements ILabelDecorator {
ArrayList<IResource> pomList = new ArrayList<IResource>();
for(int i = 0; i < events.length; i++ ) {
// pomList.add(events[i].getSource());
- if(events[i]!=null && events[i].getMavenProject()!=null) {
+ if(events[i] != null && events[i].getMavenProject() != null) {
IFile pom = events[i].getMavenProject().getPom();
pomList.add(pom);
- if(pom.getParent().getType()==IResource.PROJECT) {
+ if(pom.getParent().getType() == IResource.PROJECT) {
pomList.add(pom.getParent());
}
}
@@ -89,16 +91,16 @@ public class MavenVersionDecorator implements ILabelDecorator {
listener.labelProviderChanged(new LabelProviderChangedEvent(MavenVersionDecorator.this, pomList.toArray()));
}
};
-
+
listeners.put(listener, projectChangeListener);
-
+
IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry();
projectManager.addMavenProjectChangedListener(projectChangeListener);
}
-
+
public void removeListener(ILabelProviderListener listener) {
IMavenProjectChangedListener projectChangeListener = listeners.get(listener);
- if(projectChangeListener!=null) {
+ if(projectChangeListener != null) {
IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry();
projectManager.removeMavenProjectChangedListener(projectChangeListener);
}
@@ -107,5 +109,5 @@ public class MavenVersionDecorator implements ILabelDecorator {
public void dispose() {
// TODO remove all listeners
}
-
+
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/AddDependencyAction.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/AddDependencyAction.java
index a4d05d97..750f056c 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/AddDependencyAction.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/AddDependencyAction.java
@@ -58,79 +58,80 @@ import org.eclipse.m2e.core.ui.internal.editing.PomHelper;
public class AddDependencyAction extends MavenActionSupport implements IWorkbenchWindowActionDelegate {
private static final Logger log = LoggerFactory.getLogger(AddDependencyAction.class);
- public static final String ID = "org.eclipse.m2e.addDependencyAction"; //$NON-NLS-1$
+ public static final String ID = "org.eclipse.m2e.addDependencyAction"; //$NON-NLS-1$
- public void run(IAction action) {
- IFile file = getPomFileFromPomEditorOrViewSelection();
+ public void run(IAction action) {
+ IFile file = getPomFileFromPomEditorOrViewSelection();
- if(file == null) {
- return;
+ if(file == null) {
+ return;
+ }
+
+ MavenProject mp = null;
+ IProject prj = file.getProject();
+ if(prj != null && IMavenConstants.POM_FILE_NAME.equals(file.getProjectRelativePath().toString())) {
+ IMavenProjectFacade facade = MavenPlugin.getMavenProjectRegistry().getProject(prj);
+ if(facade != null) {
+ mp = facade.getMavenProject();
}
+ }
- MavenProject mp = null;
- IProject prj = file.getProject();
- if (prj != null && IMavenConstants.POM_FILE_NAME.equals(file.getProjectRelativePath().toString())) {
- IMavenProjectFacade facade = MavenPlugin.getMavenProjectRegistry().getProject(prj);
- if (facade != null) {
- mp = facade.getMavenProject();
+ MavenRepositorySearchDialog dialog = MavenRepositorySearchDialog.createSearchDependencyDialog(getShell(),
+ Messages.AddDependencyAction_searchDialog_title, mp, prj, false);
+ if(dialog.open() == Window.OK) {
+ IndexedArtifactFile indexedArtifactFile = (IndexedArtifactFile) dialog.getFirstResult();
+ if(indexedArtifactFile != null) {
+ try {
+ final Dependency dependency = indexedArtifactFile.getDependency();
+ String selectedScope = dialog.getSelectedScope();
+ dependency.setScope(selectedScope);
+
+ if(indexedArtifactFile.version == null) {
+ dependency.setVersion(null);
}
- }
-
- MavenRepositorySearchDialog dialog = MavenRepositorySearchDialog.createSearchDependencyDialog(getShell(), Messages.AddDependencyAction_searchDialog_title, mp, prj, false);
- if(dialog.open() == Window.OK) {
- IndexedArtifactFile indexedArtifactFile = (IndexedArtifactFile) dialog.getFirstResult();
- if(indexedArtifactFile != null) {
- try {
- final Dependency dependency = indexedArtifactFile.getDependency();
- String selectedScope = dialog.getSelectedScope();
- dependency.setScope(selectedScope);
-
- if (indexedArtifactFile.version == null) {
- dependency.setVersion(null);
- }
- performOnDOMDocument(new OperationTuple(file, new Operation() {
- public void process(Document document) {
- Element depsEl = getChild(document.getDocumentElement(), DEPENDENCIES);
- Element dep = findChild(depsEl, DEPENDENCY,
- childEquals(GROUP_ID, dependency.getGroupId()),
- childEquals(ARTIFACT_ID, dependency.getArtifactId()));
- if (dep == null) {
- dep = PomHelper.createDependency(depsEl, dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion());
- } else {
- //only set version if already exists
- if (dependency.getVersion() != null) {
- setText(getChild(dep, VERSION), dependency.getVersion());
- }
+ performOnDOMDocument(new OperationTuple(file, new Operation() {
+ public void process(Document document) {
+ Element depsEl = getChild(document.getDocumentElement(), DEPENDENCIES);
+ Element dep = findChild(depsEl, DEPENDENCY, childEquals(GROUP_ID, dependency.getGroupId()),
+ childEquals(ARTIFACT_ID, dependency.getArtifactId()));
+ if(dep == null) {
+ dep = PomHelper.createDependency(depsEl, dependency.getGroupId(), dependency.getArtifactId(),
+ dependency.getVersion());
+ } else {
+ //only set version if already exists
+ if(dependency.getVersion() != null) {
+ setText(getChild(dep, VERSION), dependency.getVersion());
}
- if (dependency.getType() != null //
- && !"jar".equals(dependency.getType()) // //$NON-NLS-1$
- && !"null".equals(dependency.getType())) { // guard against MNGECLIPSE-622 //$NON-NLS-1$
-
- setText(getChild(dep, TYPE), dependency.getType());
- }
-
- if (dependency.getClassifier() != null) {
- setText(getChild(dep, CLASSIFIER), dependency.getClassifier());
- }
-
- if(dependency.getScope() != null && !"compile".equals(dependency.getScope())) { //$NON-NLS-1$
- setText(getChild(dep, SCOPE), dependency.getScope());
- }
-
}
- }));
- } catch(Exception ex) {
- String msg = NLS.bind(Messages.AddDependencyAction_error_msg, file);
- log.error(msg, ex);
- MessageDialog.openError(Display.getCurrent().getActiveShell(), Messages.AddDependencyAction_error_title, msg);
- }
+ if(dependency.getType() != null //
+ && !"jar".equals(dependency.getType()) // //$NON-NLS-1$
+ && !"null".equals(dependency.getType())) { // guard against MNGECLIPSE-622 //$NON-NLS-1$
+
+ setText(getChild(dep, TYPE), dependency.getType());
+ }
+
+ if(dependency.getClassifier() != null) {
+ setText(getChild(dep, CLASSIFIER), dependency.getClassifier());
+ }
+
+ if(dependency.getScope() != null && !"compile".equals(dependency.getScope())) { //$NON-NLS-1$
+ setText(getChild(dep, SCOPE), dependency.getScope());
+ }
+
+ }
+ }));
+ } catch(Exception ex) {
+ String msg = NLS.bind(Messages.AddDependencyAction_error_msg, file);
+ log.error(msg, ex);
+ MessageDialog.openError(Display.getCurrent().getActiveShell(), Messages.AddDependencyAction_error_title, msg);
}
}
}
-
- public void dispose() {
- }
+ }
- public void init(IWorkbenchWindow window) {
- }
+ public void dispose() {
+ }
+
+ public void init(IWorkbenchWindow window) {
}
+}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/AddPluginAction.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/AddPluginAction.java
index 789b9b9f..5c4bf69d 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/AddPluginAction.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/AddPluginAction.java
@@ -55,16 +55,15 @@ public class AddPluginAction extends MavenActionSupport implements IWorkbenchWin
}
MavenProject mp = null;
IProject prj = file.getProject();
- if (prj != null && IMavenConstants.POM_FILE_NAME.equals(file.getProjectRelativePath().toString())) {
- IMavenProjectFacade facade = MavenPlugin.getMavenProjectRegistry().getProject(prj);
- if (facade != null) {
- mp = facade.getMavenProject();
- }
+ if(prj != null && IMavenConstants.POM_FILE_NAME.equals(file.getProjectRelativePath().toString())) {
+ IMavenProjectFacade facade = MavenPlugin.getMavenProjectRegistry().getProject(prj);
+ if(facade != null) {
+ mp = facade.getMavenProject();
+ }
}
-
- MavenRepositorySearchDialog dialog = MavenRepositorySearchDialog.createSearchPluginDialog(getShell(), Messages.AddPluginAction_searchDialog_title,
- mp, prj, false);
+ MavenRepositorySearchDialog dialog = MavenRepositorySearchDialog.createSearchPluginDialog(getShell(),
+ Messages.AddPluginAction_searchDialog_title, mp, prj, false);
if(dialog.open() == Window.OK) {
final IndexedArtifactFile indexedArtifactFile = (IndexedArtifactFile) dialog.getFirstResult();
if(indexedArtifactFile != null) {
@@ -72,7 +71,8 @@ public class AddPluginAction extends MavenActionSupport implements IWorkbenchWin
performOnDOMDocument(new OperationTuple(file, new Operation() {
public void process(Document document) {
Element pluginsEl = getChild(document.getDocumentElement(), BUILD, PLUGINS);
- PomHelper.createPlugin(pluginsEl, indexedArtifactFile.group, indexedArtifactFile.artifact, indexedArtifactFile.version);
+ PomHelper.createPlugin(pluginsEl, indexedArtifactFile.group, indexedArtifactFile.artifact,
+ indexedArtifactFile.version);
}
}));
} catch(Exception ex) {
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/ChangeNatureAction.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/ChangeNatureAction.java
index e68c34f9..b5902444 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/ChangeNatureAction.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/ChangeNatureAction.java
@@ -45,21 +45,21 @@ import org.eclipse.m2e.core.ui.internal.Messages;
public class ChangeNatureAction implements IObjectActionDelegate, IExecutableExtension {
public static final String ID_ENABLE_WORKSPACE = "org.eclipse.m2e.enableWorkspaceResolutionAction"; //$NON-NLS-1$
-
+
public static final String ID_DISABLE_WORKSPACE = "org.eclipse.m2e.disableWorkspaceResolutionAction"; //$NON-NLS-1$
public static final int ENABLE_WORKSPACE = 1;
public static final int DISABLE_WORKSPACE = 2;
-
+
private ISelection selection;
-
+
private int option;
-
+
public ChangeNatureAction() {
this(ENABLE_WORKSPACE);
}
-
+
public ChangeNatureAction(int option) {
this.option = option;
}
@@ -68,16 +68,16 @@ public class ChangeNatureAction implements IObjectActionDelegate, IExecutableExt
* @see org.eclipse.core.runtime.IExecutableExtension#setInitializationData(org.eclipse.core.runtime.IConfigurationElement, java.lang.String, java.lang.Object)
*/
public void setInitializationData(IConfigurationElement config, String propertyName, Object data) {
- if (data != null) {
- if ("enableWorkspaceResolution".equals(data)) {//$NON-NLS-1$
+ if(data != null) {
+ if("enableWorkspaceResolution".equals(data)) {//$NON-NLS-1$
option = ENABLE_WORKSPACE;
}
- if ("disableWorkspaceResolution".equals(data)) {//$NON-NLS-1$
+ if("disableWorkspaceResolution".equals(data)) {//$NON-NLS-1$
option = DISABLE_WORKSPACE;
}
}
}
-
+
public void selectionChanged(IAction action, ISelection selection) {
this.selection = selection;
}
@@ -108,10 +108,13 @@ public class ChangeNatureAction implements IObjectActionDelegate, IExecutableExt
static class UpdateJob extends WorkspaceJob {
private final Set<IProject> projects;
+
private final int option;
private final IProjectConfigurationManager importManager;
+
private final IMavenProjectRegistry projectManager;
+
private final IMavenConfiguration mavenConfiguration;
public UpdateJob(Set<IProject> projects, int option) {
@@ -121,14 +124,14 @@ public class ChangeNatureAction implements IObjectActionDelegate, IExecutableExt
this.importManager = MavenPlugin.getProjectConfigurationManager();
this.projectManager = MavenPlugin.getMavenProjectRegistry();
-
+
this.mavenConfiguration = MavenPlugin.getMavenConfiguration();
}
-
+
public IStatus runInWorkspace(IProgressMonitor monitor) {
MultiStatus status = null;
for(IProject project : projects) {
- if (monitor.isCanceled()) {
+ if(monitor.isCanceled()) {
throw new OperationCanceledException();
}
@@ -136,9 +139,10 @@ public class ChangeNatureAction implements IObjectActionDelegate, IExecutableExt
try {
changeNature(project, monitor);
- } catch (CoreException ex) {
- if (status == null) {
- status = new MultiStatus(IMavenConstants.PLUGIN_ID, IStatus.ERROR, Messages.ChangeNatureAction_status_error, null);
+ } catch(CoreException ex) {
+ if(status == null) {
+ status = new MultiStatus(IMavenConstants.PLUGIN_ID, IStatus.ERROR,
+ Messages.ChangeNatureAction_status_error, null);
}
status.add(ex.getStatus());
}
@@ -148,13 +152,13 @@ public class ChangeNatureAction implements IObjectActionDelegate, IExecutableExt
boolean updateSnapshots = false;
projectManager.refresh(new MavenUpdateRequest(projects.toArray(new IProject[projects.size()]), //
offline, updateSnapshots));
-
- return status != null? status: Status.OK_STATUS;
+
+ return status != null ? status : Status.OK_STATUS;
}
private void changeNature(final IProject project, IProgressMonitor monitor) throws CoreException {
IProjectConfigurationManager configurationManager = MavenPlugin.getProjectConfigurationManager();
-
+
final ResolverConfiguration configuration = configurationManager.getResolverConfiguration(project);
boolean updateSourceFolders = false;
@@ -170,11 +174,10 @@ public class ChangeNatureAction implements IObjectActionDelegate, IExecutableExt
configurationManager.setResolverConfiguration(project, configuration);
- if (updateSourceFolders) {
+ if(updateSourceFolders) {
importManager.updateProjectConfiguration(project, monitor);
}
}
}
-
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/DisableNatureAction.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/DisableNatureAction.java
index 9aa626af..368d27a1 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/DisableNatureAction.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/DisableNatureAction.java
@@ -31,6 +31,7 @@ import org.eclipse.m2e.core.MavenPlugin;
public class DisableNatureAction implements IObjectActionDelegate {
private static final Logger log = LoggerFactory.getLogger(DisableNatureAction.class);
+
public static final String ID = "org.eclipse.m2e.disableAction"; //$NON-NLS-1$
private ISelection selection;
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/EnableNatureAction.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/EnableNatureAction.java
index 7be7e4e2..965dfdf1 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/EnableNatureAction.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/EnableNatureAction.java
@@ -13,6 +13,9 @@ package org.eclipse.m2e.core.ui.internal.actions;
import java.util.Iterator;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
@@ -21,7 +24,6 @@ import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExecutableExtension;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.action.IAction;
@@ -29,6 +31,12 @@ import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.window.Window;
import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IObjectActionDelegate;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPart;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.core.project.IProjectConfigurationManager;
@@ -37,14 +45,6 @@ import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.m2e.core.ui.internal.wizards.MavenPomWizard;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IObjectActionDelegate;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchPart;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
public class EnableNatureAction implements IObjectActionDelegate, IExecutableExtension {
private static final Logger log = LoggerFactory.getLogger(EnableNatureAction.class);
@@ -101,13 +101,13 @@ public class EnableNatureAction implements IObjectActionDelegate, IExecutableExt
final M2EUIPluginActivator plugin = M2EUIPluginActivator.getDefault();
IFile pom = project.getFile(IMavenConstants.POM_FILE_NAME);
if(!pom.exists()) {
- if (isSingle) {
+ if(isSingle) {
// XXX move into AbstractProjectConfigurator and use Eclipse project settings
IWorkbench workbench = plugin.getWorkbench();
-
+
MavenPomWizard wizard = new MavenPomWizard();
wizard.init(workbench, (IStructuredSelection) selection);
-
+
Shell shell = workbench.getActiveWorkbenchWindow().getShell();
WizardDialog wizardDialog = new WizardDialog(shell, wizard);
wizardDialog.create();
@@ -118,7 +118,8 @@ public class EnableNatureAction implements IObjectActionDelegate, IExecutableExt
} else {
//if we have multiple selection and this project has no pom, just skip it.
// do not enable maven nature for projects without pom.
- log.warn(NLS.bind("Skipping project {0}, no pom.xml file present, no reason to have maven nature enabled", project.getName())); //$NON-NLS-1$
+ log.warn(NLS.bind(
+ "Skipping project {0}, no pom.xml file present, no reason to have maven nature enabled", project.getName())); //$NON-NLS-1$
return;
}
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/MavenActionSupport.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/MavenActionSupport.java
index 10c4c385..29868768 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/MavenActionSupport.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/MavenActionSupport.java
@@ -43,13 +43,13 @@ import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
/**
- *
* MavenActionSupport
- *
+ *
* @author Jason van Zyl
*/
public abstract class MavenActionSupport implements IObjectActionDelegate {
private static final Logger log = LoggerFactory.getLogger(MavenActionSupport.class);
+
protected IStructuredSelection selection;
protected IWorkbenchPart targetPart;
@@ -100,7 +100,7 @@ public abstract class MavenActionSupport implements IObjectActionDelegate {
}
protected IFile getPomFileFromPomEditorOrViewSelection() {
- IFile file = null;
+ IFile file = null;
//350136 we need to process the selection first! that's what is relevant for any popup menu action we have.
//the processing of active editor first might have been only relevant when we had the actions in main menu, but even
@@ -111,8 +111,8 @@ public abstract class MavenActionSupport implements IObjectActionDelegate {
file = ((IProject) o).getFile(IMavenConstants.POM_FILE_NAME);
} else if(o instanceof IFile) {
file = (IFile) o;
- }
- if (file != null) {
+ }
+ if(file != null) {
return file;
}
//
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/MavenDebugOutputAction.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/MavenDebugOutputAction.java
index f02fcd62..ecdcc273 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/MavenDebugOutputAction.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/MavenDebugOutputAction.java
@@ -15,10 +15,11 @@ import org.eclipse.jface.action.Action;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;
-import org.eclipse.m2e.core.ui.internal.Messages;
+
import org.eclipse.m2e.core.internal.preferences.MavenPreferenceConstants;
import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
import org.eclipse.m2e.core.ui.internal.MavenImages;
+import org.eclipse.m2e.core.ui.internal.Messages;
/**
@@ -37,7 +38,7 @@ public class MavenDebugOutputAction extends Action {
public MavenDebugOutputAction() {
setToolTipText(Messages.MavenDebugOutputAction_0);
setImageDescriptor(MavenImages.DEBUG);
-
+
getPreferenceStore().addPropertyChangeListener(listener);
setChecked(isDebug());
}
@@ -45,7 +46,7 @@ public class MavenDebugOutputAction extends Action {
public void run() {
getPreferenceStore().setValue(MavenPreferenceConstants.P_DEBUG_OUTPUT, isChecked());
}
-
+
public void dispose() {
getPreferenceStore().removePropertyChangeListener(listener);
}
@@ -57,6 +58,5 @@ public class MavenDebugOutputAction extends Action {
boolean isDebug() {
return getPreferenceStore().getBoolean(MavenPreferenceConstants.P_DEBUG_OUTPUT);
}
-
-}
+}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/MavenPropertyTester.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/MavenPropertyTester.java
index f059183d..086033b1 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/MavenPropertyTester.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/MavenPropertyTester.java
@@ -28,87 +28,93 @@ import org.eclipse.m2e.core.project.IMavenProjectRegistry;
import org.eclipse.m2e.core.project.MavenProjectUtils;
import org.eclipse.m2e.core.project.ResolverConfiguration;
+
/**
- * Helper IPropertyTester implementation to check if receiver can be launched with Maven.
- * E.g. it is pom.xml file of folder or project that has pom.xml.
- *
+ * Helper IPropertyTester implementation to check if receiver can be launched with Maven. E.g. it is pom.xml file of
+ * folder or project that has pom.xml.
+ *
* @author Eugene Kuleshov
*/
public class MavenPropertyTester extends PropertyTester {
-
private static final String IS_DIRECT_DEPENDENCY_TREE_NODE = "isDirectDependencyTreeNode"; //$NON-NLS-1$
+
private static final String IS_TRANSITIVE_DEPENDENCY_TREE_NODE = "isTransitiveDependencyTreeNode"; //$NON-NLS-1$
+
private static final String HAS_PROJECT_ARTIFACT_KEY = "hasProjectArtifactKey"; //$NON-NLS-1$
+
private static final String HAS_ARTIFACT_KEY = "hasArtifactKey"; //$NON-NLS-1$
+
private static final String WORKSPACE_RESULUTION_ENABLE = "workspaceResulutionEnable"; //$NON-NLS-1$
+
private static final String IS_BUILD_DIRECTORY = "isBuildDirectory"; //$NON-NLS-1$
+
private static final String DEFAULT_BUILD_DIR = "target"; //$NON-NLS-1$
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
- if (WORKSPACE_RESULUTION_ENABLE.equals(property)) {
+ if(WORKSPACE_RESULUTION_ENABLE.equals(property)) {
boolean enableWorkspaceResolution = true;
IAdaptable adaptable = (IAdaptable) receiver;
-
+
IProject projectAdapter = (IProject) adaptable.getAdapter(IProject.class);
- if(projectAdapter!=null) {
- IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry();
- IMavenProjectFacade projectFacade = projectManager.create(projectAdapter, new NullProgressMonitor());
- if(projectFacade != null) {
- ResolverConfiguration configuration = projectFacade.getResolverConfiguration();
- return !configuration.shouldResolveWorkspaceProjects();
- }
+ if(projectAdapter != null) {
+ IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry();
+ IMavenProjectFacade projectFacade = projectManager.create(projectAdapter, new NullProgressMonitor());
+ if(projectFacade != null) {
+ ResolverConfiguration configuration = projectFacade.getResolverConfiguration();
+ return !configuration.shouldResolveWorkspaceProjects();
+ }
}
return enableWorkspaceResolution;
}
-
- if (HAS_ARTIFACT_KEY.equals(property)) {
+
+ if(HAS_ARTIFACT_KEY.equals(property)) {
ArtifactKey ak = SelectionUtil.getType(receiver, ArtifactKey.class);
return ak != null;
}
-
- if (HAS_PROJECT_ARTIFACT_KEY.equals(property)) {
+
+ if(HAS_PROJECT_ARTIFACT_KEY.equals(property)) {
ArtifactKey key = SelectionUtil.getType(receiver, ArtifactKey.class);
if(key != null) {
IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry();
IMavenProjectFacade mavenProject = null;
mavenProject = projectManager.getMavenProject( //
key.getGroupId(), key.getArtifactId(), key.getVersion());
- return mavenProject != null;
+ return mavenProject != null;
}
}
-
- if (IS_TRANSITIVE_DEPENDENCY_TREE_NODE.equals(property)) {
- if (receiver instanceof DependencyNode) {
+
+ if(IS_TRANSITIVE_DEPENDENCY_TREE_NODE.equals(property)) {
+ if(receiver instanceof DependencyNode) {
DependencyNode nd = (DependencyNode) receiver;
return nd.getData().get("LEVEL") == null;
}
}
- if (IS_DIRECT_DEPENDENCY_TREE_NODE.equals(property)) {
- if (receiver instanceof DependencyNode) {
+ if(IS_DIRECT_DEPENDENCY_TREE_NODE.equals(property)) {
+ if(receiver instanceof DependencyNode) {
DependencyNode nd = (DependencyNode) receiver;
return "DIRECT".equals(nd.getData().get("LEVEL"));
}
}
-
- if (IS_BUILD_DIRECTORY.equals(property)) {
- if (receiver instanceof IFolder) {
+
+ if(IS_BUILD_DIRECTORY.equals(property)) {
+ if(receiver instanceof IFolder) {
IFolder folder = (IFolder) receiver;
- IProject project = folder.getProject();
+ IProject project = folder.getProject();
if(project != null) {
IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry();
//Lookup project facade in the cache registry to minimize UI locking
IMavenProjectFacade projectFacade = projectManager.create(project, new NullProgressMonitor());
IPath outputLocation;
- if (projectFacade == null || projectFacade.getMavenProject() == null) {
+ if(projectFacade == null || projectFacade.getMavenProject() == null) {
//If the project facade has not been cached yet (ex. during workspace startup),
//fall back on the default value
outputLocation = new Path(DEFAULT_BUILD_DIR);
} else {
String buildDir = projectFacade.getMavenProject().getBuild().getDirectory();
- outputLocation = MavenProjectUtils.getProjectRelativePath(project, buildDir);
+ outputLocation = MavenProjectUtils.getProjectRelativePath(project, buildDir);
}
- if (outputLocation != null) {
+ if(outputLocation != null) {
return folder.equals(project.getFolder(outputLocation));
}
}
@@ -116,8 +122,7 @@ public class MavenPropertyTester extends PropertyTester {
}
return false;
-
+
}
}
-
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/ModuleProjectWizardAction.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/ModuleProjectWizardAction.java
index 396fc450..b1706cc6 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/ModuleProjectWizardAction.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/ModuleProjectWizardAction.java
@@ -15,46 +15,45 @@ import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.m2e.core.ui.internal.wizards.MavenModuleWizard;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IObjectActionDelegate;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.PlatformUI;
+import org.eclipse.m2e.core.ui.internal.wizards.MavenModuleWizard;
+
+
/**
* A module project wizard action.
*/
public class ModuleProjectWizardAction implements IObjectActionDelegate {
/** action id */
- public static final String ID =
- "org.eclipse.m2e.actions.moduleProjectWizardAction"; //$NON-NLS-1$
-
+ public static final String ID = "org.eclipse.m2e.actions.moduleProjectWizardAction"; //$NON-NLS-1$
+
/** the current selection */
private IStructuredSelection selection;
-
+
/** parent shell */
private Shell parent;
/** Runs the action. */
- public void run( IAction action ) {
+ public void run(IAction action) {
MavenModuleWizard wizard = new MavenModuleWizard();
- wizard.init( PlatformUI.getWorkbench(), selection );
- WizardDialog dialog = new WizardDialog( parent, wizard );
+ wizard.init(PlatformUI.getWorkbench(), selection);
+ WizardDialog dialog = new WizardDialog(parent, wizard);
dialog.open();
}
-
/** Sets the active workbench part. */
- public void setActivePart( IAction action, IWorkbenchPart part ) {
+ public void setActivePart(IAction action, IWorkbenchPart part) {
parent = part.getSite().getShell();
}
-
/** Handles the selection change */
- public void selectionChanged( IAction action, ISelection selection ) {
- if( selection instanceof IStructuredSelection ) {
- this.selection = ( IStructuredSelection ) selection;
+ public void selectionChanged(IAction action, ISelection selection) {
+ if(selection instanceof IStructuredSelection) {
+ this.selection = (IStructuredSelection) selection;
}
}
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/OpenMavenConsoleAction.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/OpenMavenConsoleAction.java
index 108eca9a..e47580c5 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/OpenMavenConsoleAction.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/OpenMavenConsoleAction.java
@@ -12,15 +12,17 @@
package org.eclipse.m2e.core.ui.internal.actions;
import org.eclipse.jface.action.Action;
+
import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
+
/**
* Open Maven Console Action
- *
+ *
* @author Eugene Kuleshov
*/
public class OpenMavenConsoleAction extends Action {
-
+
public void run() {
M2EUIPluginActivator.getDefault().getMavenConsole().showConsole();
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/OpenPomAction.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/OpenPomAction.java
index 7dac78de..65e9ce85 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/OpenPomAction.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/OpenPomAction.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.ui.internal.actions;
import java.io.ByteArrayInputStream;
@@ -245,8 +246,10 @@ public class OpenPomAction extends ActionDelegate implements IWorkbenchWindowAct
try {
part[0] = page.openEditor(editorInput, editor.getId());
} catch(PartInitException ex) {
- MessageDialog.openInformation(Display.getDefault().getActiveShell(), //
- Messages.OpenPomAction_open_title, NLS.bind(Messages.OpenPomAction_33, editorInput.getName(), ex.toString()));
+ MessageDialog.openInformation(
+ Display.getDefault().getActiveShell(), //
+ Messages.OpenPomAction_open_title,
+ NLS.bind(Messages.OpenPomAction_33, editorInput.getName(), ex.toString()));
}
}
}
@@ -354,13 +357,13 @@ public class OpenPomAction extends ActionDelegate implements IWorkbenchWindowAct
//implemented as hinted by IPathEditorInput javadoc.
public boolean equals(Object obj) {
IPath path = getPath();
- if (path != null && obj instanceof MavenPathStorageEditorInput) {
- return path.equals(((MavenPathStorageEditorInput)obj).getPath());
+ if(path != null && obj instanceof MavenPathStorageEditorInput) {
+ return path.equals(((MavenPathStorageEditorInput) obj).getPath());
}
return super.equals(obj);
}
}
-
+
private static class MavenStorage implements IStorage {
private String name;
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/SelectionUtil.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/SelectionUtil.java
index eb678252..08cfe7e8 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/SelectionUtil.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/actions/SelectionUtil.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.ui.internal.actions;
import java.io.File;
@@ -115,16 +116,16 @@ public class SelectionUtil {
}
}
- ArtifactKey artifactKey = getType(element, ArtifactKey.class);
+ ArtifactKey artifactKey = getType(element, ArtifactKey.class);
if(artifactKey != null) {
return JAR_FILE;
}
IWorkingSet workingSet = getType(element, IWorkingSet.class);
- if(workingSet!=null) {
+ if(workingSet != null) {
return WORKING_SET;
}
-
+
return UNSUPPORTED;
}
@@ -133,7 +134,7 @@ public class SelectionUtil {
*/
@SuppressWarnings("unchecked")
public static <T> T getType(Object element, Class<T> type) {
- if(element==null) {
+ if(element == null) {
return null;
}
if(type.isInstance(element)) {
@@ -160,7 +161,7 @@ public class SelectionUtil {
if(resource != null) {
return resource.getLocation();
}
-
+
// IPackageFragmentRoot fragment = getType(element, IResource.class);
// if(fragment != null) {
// IJavaProject javaProject = fragment.getJavaProject();
@@ -171,8 +172,8 @@ public class SelectionUtil {
// }
// }
// }
-
- return null;
+
+ return null;
}
public static IWorkingSet getSelectedWorkingSet(IStructuredSelection selection) {
@@ -197,7 +198,7 @@ public class SelectionUtil {
// if(resource != null) {
// return getWorkingSet(resource);
// }
-
+
// IPackageFragmentRoot fragment = getType(element, IPackageFragmentRoot.class);
// if(fragment != null) {
// IJavaProject javaProject = fragment.getJavaProject();
@@ -234,16 +235,16 @@ public class SelectionUtil {
}
return list;
}
-
+
public static ArtifactKey getArtifactKey(Object element) throws CoreException {
if(element instanceof Artifact) {
return new ArtifactKey(((Artifact) element));
-
+
} else if(element instanceof org.sonatype.aether.graph.DependencyNode) {
org.sonatype.aether.artifact.Artifact artifact = ((org.sonatype.aether.graph.DependencyNode) element)
.getDependency().getArtifact();
return new ArtifactKey(artifact);
-
+
//getArtifactKey() used only in a handful of actions, to my knowledge none of these are currently available on
//model.edit.Dependency instances.
// } else if(element instanceof Dependency) {
@@ -265,7 +266,7 @@ public class SelectionUtil {
// }
// return new ArtifactKey(dependency.getGroupId(), dependency.getArtifactId(), version, null);
}
-
+
return SelectionUtil.getType(element, ArtifactKey.class);
}
@@ -274,7 +275,7 @@ public class SelectionUtil {
IFile pomFile = ((IFileEditorInput) editorInput).getFile();
IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry();
IMavenProjectFacade facade = projectManager.create(pomFile, true, monitor);
- if(facade!=null) {
+ if(facade != null) {
return facade.getMavenProject(monitor);
}
@@ -306,17 +307,18 @@ public class SelectionUtil {
}
} else if(editorInput.getClass().getName().endsWith("FileStoreEditorInput")) { //$NON-NLS-1$
- return readMavenProject(new File(Util.proxy(editorInput, FileStoreEditorInputStub.class).getURI().getPath()), monitor);
+ return readMavenProject(new File(Util.proxy(editorInput, FileStoreEditorInputStub.class).getURI().getPath()),
+ monitor);
}
-
+
return null;
}
-
+
private static MavenProject readMavenProject(File pomFile, IProgressMonitor monitor) throws CoreException {
- if(monitor==null) {
+ if(monitor == null) {
monitor = new NullProgressMonitor();
}
-
+
IMaven maven = MavenPlugin.getMaven();
MavenExecutionRequest request = maven.createExecutionRequest(monitor);
@@ -328,7 +330,7 @@ public class SelectionUtil {
MavenExecutionResult result = maven.readProject(request, monitor);
MavenProject project = result.getProject();
- if(project!=null) {
+ if(project != null) {
return project;
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/components/PomHierarchyComposite.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/components/PomHierarchyComposite.java
index efb57f08..1a880933 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/components/PomHierarchyComposite.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/components/PomHierarchyComposite.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.ui.internal.components;
import java.lang.reflect.InvocationTargetException;
@@ -132,8 +133,8 @@ public class PomHierarchyComposite extends Composite implements IInputSelectionP
public Color getForeground(Object element) {
if(element instanceof MavenProject) {
MavenProject project = (MavenProject) element;
- IMavenProjectFacade search = MavenPlugin.getMavenProjectRegistry()
- .getMavenProject(project.getGroupId(), project.getArtifactId(), project.getVersion());
+ IMavenProjectFacade search = MavenPlugin.getMavenProjectRegistry().getMavenProject(project.getGroupId(),
+ project.getArtifactId(), project.getVersion());
if(search == null) {
// This project is not in the workspace
return Display.getDefault().getSystemColor(SWT.COLOR_DARK_GRAY);
@@ -149,8 +150,8 @@ public class PomHierarchyComposite extends Composite implements IInputSelectionP
public Image getImage(Object element) {
if(element instanceof MavenProject) {
MavenProject project = (MavenProject) element;
- IMavenProjectFacade search = MavenPlugin.getMavenProjectRegistry()
- .getMavenProject(project.getGroupId(), project.getArtifactId(), project.getVersion());
+ IMavenProjectFacade search = MavenPlugin.getMavenProjectRegistry().getMavenProject(project.getGroupId(),
+ project.getArtifactId(), project.getVersion());
if(search == null) {
// This project is not in the workspace
return MavenImages.getOverlayImage(MavenImages.PATH_JAR, MavenImages.PATH_LOCK, IDecoration.BOTTOM_LEFT);
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/components/TextComboBoxCellEditor.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/components/TextComboBoxCellEditor.java
index 45c0e957..2affc2de 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/components/TextComboBoxCellEditor.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/components/TextComboBoxCellEditor.java
@@ -33,7 +33,6 @@ public class TextComboBoxCellEditor extends CellEditor {
protected String[] items;
-
protected CCombo combo;
public TextComboBoxCellEditor(Composite parent, int style) {
@@ -51,13 +50,12 @@ public class TextComboBoxCellEditor extends CellEditor {
});
combo.addTraverseListener(new TraverseListener() {
public void keyTraversed(TraverseEvent e) {
- if (e.detail == SWT.TRAVERSE_ESCAPE
- || e.detail == SWT.TRAVERSE_RETURN) {
+ if(e.detail == SWT.TRAVERSE_ESCAPE || e.detail == SWT.TRAVERSE_RETURN) {
e.doit = false;
}
}
});
-
+
loadItems();
return combo;
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/ConsoleDocument.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/ConsoleDocument.java
index 1a3d6de6..83e5da0e 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/ConsoleDocument.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/ConsoleDocument.java
@@ -16,80 +16,89 @@ package org.eclipse.m2e.core.ui.internal.console;
*/
// TODO consider use standard ConsoleDocument
public class ConsoleDocument {
- public static final int COMMAND = 0; // command text
- public static final int MESSAGE = 1; // message received
- public static final int ERROR = 2; // error received
- public static final int STATUS = 3; // status text
- public static final int DELIMITER = 4; // delimiter text between runs
-
- private int[] lineTypes;
- private String[] lines;
-
- private int writeIndex = 0;
- private int readIndex = 0;
-
- private static final int BUFFER_SIZE = 200;
-
- protected static class ConsoleLine {
- public String line;
- public int type;
- ConsoleLine(String line, int type) {
- this.line = line;
- this.type = type;
- }
+ public static final int COMMAND = 0; // command text
+
+ public static final int MESSAGE = 1; // message received
+
+ public static final int ERROR = 2; // error received
+
+ public static final int STATUS = 3; // status text
+
+ public static final int DELIMITER = 4; // delimiter text between runs
+
+ private int[] lineTypes;
+
+ private String[] lines;
+
+ private int writeIndex = 0;
+
+ private int readIndex = 0;
+
+ private static final int BUFFER_SIZE = 200;
+
+ protected static class ConsoleLine {
+ public String line;
+
+ public int type;
+
+ ConsoleLine(String line, int type) {
+ this.line = line;
+ this.type = type;
+ }
+ }
+
+ /**
+ * Creates an empty console document.
+ */
+ public ConsoleDocument() {
+ }
+
+ /**
+ * Clears the console document.
+ */
+ public void clear() {
+ lineTypes = null;
+ lines = null;
+ writeIndex = 0;
+ readIndex = 0;
+ }
+
+ /**
+ * Appends a line of the specified type to the end of the console.
+ */
+ public void appendConsoleLine(int type, String line) {
+ if(lines == null) {
+ lines = new String[BUFFER_SIZE];
+ lineTypes = new int[BUFFER_SIZE];
}
-
- /**
- * Creates an empty console document.
- */
- public ConsoleDocument() {
+ lines[writeIndex] = line;
+ lineTypes[writeIndex] = type;
+
+ if(++writeIndex >= BUFFER_SIZE) {
+ writeIndex = 0;
}
-
- /**
- * Clears the console document.
- */
- public void clear() {
- lineTypes = null;
- lines = null;
- writeIndex = 0;
+ if(writeIndex == readIndex) {
+ if(++readIndex >= BUFFER_SIZE) {
readIndex = 0;
+ }
}
-
- /**
- * Appends a line of the specified type to the end of the console.
- */
- public void appendConsoleLine(int type, String line) {
- if(lines == null) {
- lines = new String[BUFFER_SIZE];
- lineTypes = new int[BUFFER_SIZE];
- }
- lines[writeIndex] = line;
- lineTypes[writeIndex] = type;
-
- if(++writeIndex >= BUFFER_SIZE) {
- writeIndex = 0;
- }
- if(writeIndex == readIndex) {
- if(++readIndex >= BUFFER_SIZE) {
- readIndex = 0;
- }
- }
- }
-
- public ConsoleLine[] getLines() {
- if(isEmpty()) return new ConsoleLine[0];
- ConsoleLine[] docLines = new ConsoleLine[readIndex > writeIndex ? BUFFER_SIZE : writeIndex];
- int index = readIndex;
- for (int i = 0; i < docLines.length; i++) {
- docLines[i] = new ConsoleLine(lines[index], lineTypes[index]);
- if (++index >= BUFFER_SIZE) {
- index = 0;
- }
- }
- return docLines;
- }
-
- public boolean isEmpty() {
- return writeIndex == readIndex;
+ }
+
+ public ConsoleLine[] getLines() {
+ if(isEmpty())
+ return new ConsoleLine[0];
+ ConsoleLine[] docLines = new ConsoleLine[readIndex > writeIndex ? BUFFER_SIZE : writeIndex];
+ int index = readIndex;
+ for(int i = 0; i < docLines.length; i++ ) {
+ docLines[i] = new ConsoleLine(lines[index], lineTypes[index]);
+ if(++index >= BUFFER_SIZE) {
+ index = 0;
+ }
}
+ return docLines;
+ }
+
+ public boolean isEmpty() {
+ return writeIndex == readIndex;
+ }
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/IMavenConsoleListener.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/IMavenConsoleListener.java
index 4ceefe94..6f1e264b 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/IMavenConsoleListener.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/IMavenConsoleListener.java
@@ -13,6 +13,7 @@ package org.eclipse.m2e.core.ui.internal.console;
import java.util.EventListener;
+
/**
* A console listener is notified of output to the Maven console.
*
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenConsoleFactory.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenConsoleFactory.java
index 698ae936..adffe61e 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenConsoleFactory.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenConsoleFactory.java
@@ -11,15 +11,15 @@
package org.eclipse.m2e.core.ui.internal.console;
-import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
import org.eclipse.ui.console.IConsoleFactory;
+import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
+
+
/**
- * Maven Console factory is used to show the console from the "Open Console"
- * drop-down action in Console view.
+ * Maven Console factory is used to show the console from the "Open Console" drop-down action in Console view.
*
* @see org.eclipse.ui.console.consoleFactory extension point.
- *
* @author Eugene Kuleshov
*/
public class MavenConsoleFactory implements IConsoleFactory {
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenConsoleImpl.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenConsoleImpl.java
index e6b4077d..5ea82e28 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenConsoleImpl.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenConsoleImpl.java
@@ -16,13 +16,13 @@ import java.util.Date;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
+import com.ibm.icu.text.DateFormat;
+import com.ibm.icu.util.ULocale;
+
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;
-import org.eclipse.m2e.core.internal.preferences.MavenPreferenceConstants;
-import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Display;
@@ -34,8 +34,9 @@ import org.eclipse.ui.console.IConsoleManager;
import org.eclipse.ui.console.IOConsole;
import org.eclipse.ui.console.IOConsoleOutputStream;
-import com.ibm.icu.text.DateFormat;
-import com.ibm.icu.util.ULocale;
+import org.eclipse.m2e.core.internal.preferences.MavenPreferenceConstants;
+import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
+import org.eclipse.m2e.core.ui.internal.Messages;
/**
@@ -65,6 +66,7 @@ public class MavenConsoleImpl extends IOConsole implements MavenConsole, IProper
private IOConsoleOutputStream messageStream;
private IOConsoleOutputStream errorStream;
+
private static final String TITLE = Messages.MavenConsoleImpl_title;
private List<IMavenConsoleListener> listeners = new CopyOnWriteArrayList<IMavenConsoleListener>();
@@ -131,8 +133,8 @@ public class MavenConsoleImpl extends IOConsole implements MavenConsole, IProper
//the synchronization here caused a deadlock. since the writes are simply appending to the output stream
//or the document, just doing it on the main thread to avoid deadlocks and or corruption of the
//document or output stream
- Display.getDefault().asyncExec(new Runnable(){
- public void run(){
+ Display.getDefault().asyncExec(new Runnable() {
+ public void run() {
if(isVisible()) {
try {
switch(type) {
@@ -174,7 +176,7 @@ public class MavenConsoleImpl extends IOConsole implements MavenConsole, IProper
}
}
}
-
+
public void showConsole() {
boolean exists = false;
IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
@@ -188,13 +190,12 @@ public class MavenConsoleImpl extends IOConsole implements MavenConsole, IProper
}
manager.showConsoleView(this);
}
-
+
public void closeConsole() {
IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
manager.removeConsoles(new IConsole[] {this});
ConsolePlugin.getDefault().getConsoleManager().addConsoleListener(this.newLifecycle());
}
-
public void propertyChange(PropertyChangeEvent event) {
// font changed
@@ -205,7 +206,7 @@ public class MavenConsoleImpl extends IOConsole implements MavenConsole, IProper
if(PlatformUI.isWorkbenchRunning()) {
IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
if(!isVisible()) {
- manager.addConsoles(new IConsole[] {this});
+ manager.addConsoles(new IConsole[] {this});
}
manager.showConsoleView(this);
}
@@ -216,8 +217,8 @@ public class MavenConsoleImpl extends IOConsole implements MavenConsole, IProper
// Here we can't call super.dispose() because we actually want the partitioner to remain
// connected, but we won't show lines until the console is added to the console manager
// again.
- Display.getDefault().asyncExec(new Runnable(){
- public void run(){
+ Display.getDefault().asyncExec(new Runnable() {
+ public void run() {
setVisible(false);
JFaceResources.getFontRegistry().removeListener(MavenConsoleImpl.this);
}
@@ -264,10 +265,10 @@ public class MavenConsoleImpl extends IOConsole implements MavenConsole, IProper
}
public void info(String message) {
- if(showConsoleOnOutput()){
+ if(showConsoleOnOutput()) {
bringConsoleToFront();
}
- appendLine(ConsoleDocument.MESSAGE, getDateFormat().format(new Date()) + ": " + message);
+ appendLine(ConsoleDocument.MESSAGE, getDateFormat().format(new Date()) + ": " + message);
for(IMavenConsoleListener listener : listeners) {
try {
@@ -277,9 +278,9 @@ public class MavenConsoleImpl extends IOConsole implements MavenConsole, IProper
}
}
}
-
+
public void error(String message) {
- if(showConsoleOnError()){
+ if(showConsoleOnError()) {
bringConsoleToFront();
}
appendLine(ConsoleDocument.ERROR, getDateFormat().format(new Date()) + ": " + message); //$NON-NLS-1$
@@ -293,13 +294,16 @@ public class MavenConsoleImpl extends IOConsole implements MavenConsole, IProper
}
}
- public boolean showConsoleOnError(){
- return M2EUIPluginActivator.getDefault().getPreferenceStore().getBoolean(MavenPreferenceConstants.P_SHOW_CONSOLE_ON_ERR);
+ public boolean showConsoleOnError() {
+ return M2EUIPluginActivator.getDefault().getPreferenceStore()
+ .getBoolean(MavenPreferenceConstants.P_SHOW_CONSOLE_ON_ERR);
}
-
- public boolean showConsoleOnOutput(){
- return M2EUIPluginActivator.getDefault().getPreferenceStore().getBoolean(MavenPreferenceConstants.P_SHOW_CONSOLE_ON_OUTPUT);
+
+ public boolean showConsoleOnOutput() {
+ return M2EUIPluginActivator.getDefault().getPreferenceStore()
+ .getBoolean(MavenPreferenceConstants.P_SHOW_CONSOLE_ON_OUTPUT);
}
+
public IConsoleListener newLifecycle() {
return new MavenConsoleLifecycle();
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenConsolePageParticipant.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenConsolePageParticipant.java
index e42e4ba0..0cb80ee3 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenConsolePageParticipant.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenConsolePageParticipant.java
@@ -26,35 +26,38 @@ import org.eclipse.m2e.core.ui.internal.actions.MavenConsoleRemoveAction;
import org.eclipse.m2e.core.ui.internal.actions.MavenDebugOutputAction;
-
public class MavenConsolePageParticipant implements IConsolePageParticipant {
private IAction consoleRemoveAction;
+
private IAction debugAction;
+
private IAction showOnErrorAction;
+
private IAction showOnOutputAction;
-
+
private static final String SHOW_ON_OUTPUT_LBL = Messages.MavenConsolePageParticipant_any;
+
private static final String SHOW_ON_ERR_LBL = Messages.MavenConsolePageParticipant_error;
-
+
public void init(IPageBookViewPage page, IConsole console) {
this.consoleRemoveAction = new MavenConsoleRemoveAction();
this.debugAction = new MavenDebugOutputAction();
-
showOnOutputAction = new ShowOnOutputAction(console, SHOW_ON_OUTPUT_LBL);
showOnErrorAction = new ShowOnErrorAction(console, SHOW_ON_ERR_LBL);
-
+
IActionBars actionBars = page.getSite().getActionBars();
configureToolBar(actionBars.getToolBarManager());
}
- private void configureToolBar(IToolBarManager mgr){
+ private void configureToolBar(IToolBarManager mgr) {
mgr.appendToGroup(IConsoleConstants.LAUNCH_GROUP, consoleRemoveAction);
mgr.prependToGroup(IConsoleConstants.OUTPUT_GROUP, debugAction);
mgr.appendToGroup(IConsoleConstants.OUTPUT_GROUP, showOnOutputAction);
mgr.appendToGroup(IConsoleConstants.OUTPUT_GROUP, showOnErrorAction);
}
+
public void dispose() {
this.consoleRemoveAction = null;
this.debugAction = null;
@@ -71,10 +74,8 @@ public class MavenConsolePageParticipant implements IConsolePageParticipant {
return null;
}
-
-
- class ShowOnErrorAction extends MavenShowConsoleAction{
- public ShowOnErrorAction(IConsole console, String name){
+ class ShowOnErrorAction extends MavenShowConsoleAction {
+ public ShowOnErrorAction(IConsole console, String name) {
super(name);
setImageDescriptor(MavenImages.SHOW_CONSOLE_ERR);
}
@@ -86,8 +87,8 @@ public class MavenConsolePageParticipant implements IConsolePageParticipant {
return MavenPreferenceConstants.P_SHOW_CONSOLE_ON_ERR;
}
}
-
- class ShowOnOutputAction extends MavenShowConsoleAction{
+
+ class ShowOnOutputAction extends MavenShowConsoleAction {
/**
* @param console
@@ -103,6 +104,6 @@ public class MavenConsolePageParticipant implements IConsolePageParticipant {
protected String getKey() {
return MavenPreferenceConstants.P_SHOW_CONSOLE_ON_OUTPUT;
}
-
+
}
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenShowConsoleAction.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenShowConsoleAction.java
index 4e6c745e..b873895b 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenShowConsoleAction.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/console/MavenShowConsoleAction.java
@@ -16,16 +16,18 @@ import org.eclipse.jface.action.IAction;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;
+
import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
+
/**
* MavenShowConsoleAction
- *
+ *
* @author dyocum
*/
-public abstract class MavenShowConsoleAction extends Action implements IPropertyChangeListener{
-
- public MavenShowConsoleAction(String name){
+public abstract class MavenShowConsoleAction extends Action implements IPropertyChangeListener {
+
+ public MavenShowConsoleAction(String name) {
super(name, IAction.AS_CHECK_BOX);
setToolTipText(name);
getPreferenceStore().addPropertyChangeListener(this);
@@ -36,23 +38,23 @@ public abstract class MavenShowConsoleAction extends Action implements IProperty
* @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)
*/
public void propertyChange(PropertyChangeEvent event) {
- String property = event.getProperty();
- if (property.equals(getKey())) {
- update();
- }
+ String property = event.getProperty();
+ if(property.equals(getKey())) {
+ update();
+ }
}
-
+
protected abstract String getKey();
-
+
private void update() {
IPreferenceStore store = getPreferenceStore();
- if (store.getBoolean(getKey())) {
- // on
- setChecked(true);
- } else {
- // off
- setChecked(false);
- }
+ if(store.getBoolean(getKey())) {
+ // on
+ setChecked(true);
+ } else {
+ // off
+ setChecked(false);
+ }
}
/**
@@ -72,7 +74,7 @@ public abstract class MavenShowConsoleAction extends Action implements IProperty
store.setValue(getKey(), show);
store.addPropertyChangeListener(this);
}
-
+
/**
* Must be called to dispose this action.
*/
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/AbstractMavenDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/AbstractMavenDialog.java
index c614d2f6..52819139 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/AbstractMavenDialog.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/AbstractMavenDialog.java
@@ -13,12 +13,13 @@ package org.eclipse.m2e.core.ui.internal.dialogs;
import org.eclipse.jface.dialogs.DialogSettings;
import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.dialogs.SelectionStatusDialog;
+import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
+
/**
* A dialog superclass, featuring position and size settings.
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/EditDependencyDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/EditDependencyDialog.java
index d0d66484..74a08208 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/EditDependencyDialog.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/EditDependencyDialog.java
@@ -49,7 +49,6 @@ import org.apache.maven.project.MavenProject;
import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
-import org.eclipse.m2e.core.ui.internal.editing.PomHelper;
import org.eclipse.m2e.core.ui.internal.search.util.Packaging;
import org.eclipse.m2e.core.ui.internal.util.M2EUIUtils;
import org.eclipse.m2e.core.ui.internal.util.ProposalUtil;
@@ -88,10 +87,9 @@ public class EditDependencyDialog extends AbstractMavenDialog {
private Operation resultOperation;
/**
- *
* @param parent
* @param dependencyManagement
- * @param project can be null, only used for indexer search as scope
+ * @param project can be null, only used for indexer search as scope
* @param mavenProject
*/
public EditDependencyDialog(Shell parent, boolean dependencyManagement, IProject project, MavenProject mavenProject) {
@@ -205,85 +203,83 @@ public class EditDependencyDialog extends AbstractMavenDialog {
return superComposite;
}
-
+
public Operation getEditOperation() {
return resultOperation;
}
protected void computeResult() {
final String oldArtifactId = dependency.getArtifactId();
- final String oldGroupId = dependency.getGroupId();
+ final String oldGroupId = dependency.getGroupId();
final String groupId = valueOrNull(groupIdText.getText());
final String artifactId = valueOrNull(artifactIdText.getText());
- final String version = valueOrNull(versionText.getText());
+ final String version = valueOrNull(versionText.getText());
final String type = valueOrNull(typeCombo.getText());
final String scope = valueOrNull(scopeCombo.getText());
final String classifier = valueOrNull(classifierText.getText());
final String system = valueOrNull(systemPathText.getText());
final boolean optional = optionalButton.getSelection();
- resultOperation = new Operation() {
- public void process(Document document) {
- Element depsEl = dependencyManagement ? getChild(document.getDocumentElement(), DEPENDENCY_MANAGEMENT, DEPENDENCIES) : getChild(document.getDocumentElement(), DEPENDENCIES);
- Element dep = findChild(depsEl, DEPENDENCY,
- childEquals(GROUP_ID, oldGroupId),
- childEquals(ARTIFACT_ID, oldArtifactId));
- if (dep != null)
- {
- if (artifactId != null && !artifactId.equals(oldArtifactId)) {
- setText(getChild(dep, ARTIFACT_ID), artifactId);
- }
- if (groupId != null && !groupId.equals(oldGroupId)) {
- setText(getChild(dep, GROUP_ID), groupId);
- }
- //only set version if already exists
- if (version != null) {
- setText(getChild(dep, VERSION), version);
- } else {
- removeChild(dep, findChild(dep, VERSION));
- }
- if (type != null //
- && !"jar".equals(type) // //$NON-NLS-1$
- && !"null".equals(type)) { // guard against MNGECLIPSE-622 //$NON-NLS-1$
-
- setText(getChild(dep, TYPE), type);
- } else {
- removeChild(dep, findChild(dep, TYPE));
- }
- if (classifier != null) {
- setText(getChild(dep, CLASSIFIER), classifier);
- } else {
- removeChild(dep, findChild(dep, CLASSIFIER));
- }
- if (scope != null && !"compile".equals(scope)) { //$NON-NLS-1$
- setText(getChild(dep, SCOPE), scope);
- } else {
- removeChild(dep, findChild(dep, SCOPE));
- }
- if (system != null) {
- setText(getChild(dep, SYSTEM_PATH), system);
- } else {
- removeChild(dep, findChild(dep, SYSTEM_PATH));
- }
- if (optional) {
- setText(getChild(dep, OPTIONAL), Boolean.toString(optional));
- } else {
- removeChild(dep, findChild(dep, OPTIONAL));
- }
+ resultOperation = new Operation() {
+ public void process(Document document) {
+ Element depsEl = dependencyManagement ? getChild(document.getDocumentElement(), DEPENDENCY_MANAGEMENT,
+ DEPENDENCIES) : getChild(document.getDocumentElement(), DEPENDENCIES);
+ Element dep = findChild(depsEl, DEPENDENCY, childEquals(GROUP_ID, oldGroupId),
+ childEquals(ARTIFACT_ID, oldArtifactId));
+ if(dep != null) {
+ if(artifactId != null && !artifactId.equals(oldArtifactId)) {
+ setText(getChild(dep, ARTIFACT_ID), artifactId);
+ }
+ if(groupId != null && !groupId.equals(oldGroupId)) {
+ setText(getChild(dep, GROUP_ID), groupId);
+ }
+ //only set version if already exists
+ if(version != null) {
+ setText(getChild(dep, VERSION), version);
+ } else {
+ removeChild(dep, findChild(dep, VERSION));
+ }
+ if(type != null //
+ && !"jar".equals(type) // //$NON-NLS-1$
+ && !"null".equals(type)) { // guard against MNGECLIPSE-622 //$NON-NLS-1$
+
+ setText(getChild(dep, TYPE), type);
+ } else {
+ removeChild(dep, findChild(dep, TYPE));
+ }
+ if(classifier != null) {
+ setText(getChild(dep, CLASSIFIER), classifier);
+ } else {
+ removeChild(dep, findChild(dep, CLASSIFIER));
+ }
+ if(scope != null && !"compile".equals(scope)) { //$NON-NLS-1$
+ setText(getChild(dep, SCOPE), scope);
+ } else {
+ removeChild(dep, findChild(dep, SCOPE));
+ }
+ if(system != null) {
+ setText(getChild(dep, SYSTEM_PATH), system);
+ } else {
+ removeChild(dep, findChild(dep, SYSTEM_PATH));
+ }
+ if(optional) {
+ setText(getChild(dep, OPTIONAL), Boolean.toString(optional));
+ } else {
+ removeChild(dep, findChild(dep, OPTIONAL));
}
}
- };
+ }
+ };
}
-
+
private String valueOrNull(String value) {
- if (value != null) {
+ if(value != null) {
value = value.trim();
- if (value.length() == 0) {
+ if(value.length() == 0) {
value = null;
}
}
return value;
}
-
public void setDependency(Dependency dependency) {
this.dependency = dependency;
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/InputHistory.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/InputHistory.java
index c585956d..238ceba8 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/InputHistory.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/InputHistory.java
@@ -11,7 +11,6 @@ import java.util.Map;
import java.util.Set;
import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
import org.eclipse.swt.SWTException;
import org.eclipse.swt.custom.CCombo;
import org.eclipse.swt.events.DisposeEvent;
@@ -19,6 +18,8 @@ import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Control;
+import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
+
public class InputHistory {
/** the history limit */
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenGoalSelectionDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenGoalSelectionDialog.java
index 2e44a665..65384f6b 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenGoalSelectionDialog.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenGoalSelectionDialog.java
@@ -17,6 +17,9 @@ import java.util.List;
import java.util.Map;
import java.util.TreeMap;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
@@ -27,13 +30,6 @@ import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.m2e.core.MavenPlugin;
-import org.eclipse.m2e.core.internal.IMavenConstants;
-import org.eclipse.m2e.core.internal.index.IIndex;
-import org.eclipse.m2e.core.internal.index.IndexManager;
-import org.eclipse.m2e.core.internal.index.IndexedArtifact;
-import org.eclipse.m2e.core.internal.index.IndexedArtifactFile;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEvent;
@@ -52,8 +48,14 @@ import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
import org.eclipse.ui.dialogs.ISelectionStatusValidator;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
+import org.eclipse.m2e.core.MavenPlugin;
+import org.eclipse.m2e.core.internal.IMavenConstants;
+import org.eclipse.m2e.core.internal.index.IIndex;
+import org.eclipse.m2e.core.internal.index.IndexManager;
+import org.eclipse.m2e.core.internal.index.IndexedArtifact;
+import org.eclipse.m2e.core.internal.index.IndexedArtifactFile;
+import org.eclipse.m2e.core.ui.internal.Messages;
public class MavenGoalSelectionDialog extends ElementTreeSelectionDialog {
@@ -66,7 +68,7 @@ public class MavenGoalSelectionDialog extends ElementTreeSelectionDialog {
public MavenGoalSelectionDialog(Shell parent) {
super(parent, new GoalsLabelProvider(), new GoalsContentProvider());
- setTitle(Messages.launchGoalsDialogTitle);
+ setTitle(Messages.launchGoalsDialogTitle);
setMessage(org.eclipse.m2e.core.ui.internal.Messages.MavenGoalSelectionDialog_message);
setValidator(new GoalsSelectionValidator());
setInput(new Object());
@@ -179,7 +181,7 @@ public class MavenGoalSelectionDialog extends ElementTreeSelectionDialog {
try {
// TODO: this will search ALL indexes, isn't the right to search _this_ project reposes only?
// I did not find (at first glance, maybe was hasty) a way to get IProject
- Map<String, IndexedArtifact> result = indexManager.getAllIndexes().search(null, IIndex.SEARCH_PLUGIN);
+ Map<String, IndexedArtifact> result = indexManager.getAllIndexes().search(null, IIndex.SEARCH_PLUGIN);
TreeMap<String, Group> map = new TreeMap<String, Group>();
for(IndexedArtifact a : result.values()) {
IndexedArtifactFile f = a.getFiles().iterator().next();
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenMessageDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenMessageDialog.java
index 8dd4c980..667b1b08 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenMessageDialog.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenMessageDialog.java
@@ -24,14 +24,16 @@ import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
+
/**
* MavenMessageDialog
- *
+ *
* @author dyocum
*/
public class MavenMessageDialog extends MessageDialog {
private StyledText messageArea;
+
/**
* @param parentShell
* @param dialogTitle
@@ -51,7 +53,7 @@ public class MavenMessageDialog extends MessageDialog {
*/
protected Control createCustomArea(Composite parent) {
// TODO Auto-generated method createCustomArea
- this.messageArea = new StyledText(parent, SWT.WRAP|SWT.READ_ONLY|SWT.H_SCROLL|SWT.V_SCROLL|SWT.BORDER);
+ this.messageArea = new StyledText(parent, SWT.WRAP | SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
this.messageArea.setLayout(new GridLayout());
GridData gd = new GridData(SWT.LEFT, SWT.TOP, true, true);
//size hints
@@ -62,15 +64,15 @@ public class MavenMessageDialog extends MessageDialog {
}
/**
- *
* @param parent Parent shell
* @param title Title of the dialog
* @param label The label shown above the msg.
* @param message The actual message to show in the text area.
*/
public static void openInfo(Shell parent, String title, String label, String message) {
- MavenMessageDialog dialog = new MavenMessageDialog(parent, title, Display.getDefault().getSystemImage(SWT.ICON_INFORMATION), // accept
- label, INFORMATION, new String[] { IDialogConstants.OK_LABEL }, 0); // ok
+ MavenMessageDialog dialog = new MavenMessageDialog(parent, title, Display.getDefault().getSystemImage(
+ SWT.ICON_INFORMATION), // accept
+ label, INFORMATION, new String[] {IDialogConstants.OK_LABEL}, 0); // ok
dialog.create();
dialog.getMessageArea().setText(message);
dialog.getDialogArea().pack(true);
@@ -79,7 +81,6 @@ public class MavenMessageDialog extends MessageDialog {
}
/**
- *
* @param parent
* @param title
* @param label
@@ -87,15 +88,17 @@ public class MavenMessageDialog extends MessageDialog {
* @param severity constants from MessageDialog
*/
public static void openWithSeverity(Shell parent, String title, String label, String message, int severity) {
- Image icon = severity == IMessageProvider.ERROR ? Display.getDefault().getSystemImage(SWT.ICON_ERROR) : Display.getDefault().getSystemImage(SWT.ICON_INFORMATION);
+ Image icon = severity == IMessageProvider.ERROR ? Display.getDefault().getSystemImage(SWT.ICON_ERROR) : Display
+ .getDefault().getSystemImage(SWT.ICON_INFORMATION);
MavenMessageDialog dialog = new MavenMessageDialog(parent, title, icon, // accept
- label, severity, new String[] { IDialogConstants.OK_LABEL }, 0); // ok
+ label, severity, new String[] {IDialogConstants.OK_LABEL}, 0); // ok
dialog.create();
dialog.getMessageArea().setText(message);
dialog.getDialogArea().pack(true);
dialog.open();
return;
}
+
/**
* @return Returns the messageArea.
*/
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenPropertyDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenPropertyDialog.java
index 3e1ec49c..2fcdf99a 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenPropertyDialog.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenPropertyDialog.java
@@ -14,7 +14,6 @@ package org.eclipse.m2e.core.ui.internal.dialogs;
// import org.eclipse.debug.ui.StringVariableSelectionDialog;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
@@ -29,26 +28,29 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
+import org.eclipse.m2e.core.ui.internal.Messages;
+
public class MavenPropertyDialog extends Dialog {
private final String title;
-
+
private final String initialName;
-
+
private final String initialValue;
-
+
private final VerifyListener verifyListener;
-
+
protected Text nameText;
protected Text valueText;
private String name;
-
+
private String value;
- public MavenPropertyDialog(Shell shell, String title, String initialName, String initialValue, VerifyListener verifyListener) {
+ public MavenPropertyDialog(Shell shell, String title, String initialName, String initialValue,
+ VerifyListener verifyListener) {
super(shell);
this.title = title;
this.initialName = initialName;
@@ -75,7 +77,7 @@ public class MavenPropertyDialog extends Dialog {
gd.widthHint = 300;
nameText.setLayoutData(gd);
nameText.setFont(comp.getFont());
- nameText.setText(initialName==null ? "" : initialName); //$NON-NLS-1$
+ nameText.setText(initialName == null ? "" : initialName); //$NON-NLS-1$
nameText.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
updateButtons();
@@ -91,7 +93,7 @@ public class MavenPropertyDialog extends Dialog {
gd.widthHint = 300;
valueText.setLayoutData(gd);
valueText.setFont(comp.getFont());
- valueText.setText(initialValue==null ? "" : initialValue); //$NON-NLS-1$
+ valueText.setText(initialValue == null ? "" : initialValue); //$NON-NLS-1$
valueText.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
updateButtons();
@@ -120,14 +122,14 @@ public class MavenPropertyDialog extends Dialog {
// }
// });
// }
-
+
return comp;
}
public String getName() {
return this.name;
}
-
+
public String getValue() {
return this.value;
}
@@ -172,7 +174,7 @@ public class MavenPropertyDialog extends Dialog {
e.widget = nameText;
VerifyEvent ev = new VerifyEvent(e);
ev.doit = true;
- if (verifyListener != null) {
+ if(verifyListener != null) {
ev.text = name;
verifyListener.verifyText(ev);
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenRepositorySearchDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenRepositorySearchDialog.java
index 5f5b65f8..82c1a450 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenRepositorySearchDialog.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/MavenRepositorySearchDialog.java
@@ -50,6 +50,7 @@ import org.eclipse.m2e.core.ui.internal.util.M2EUIUtils;
import org.eclipse.m2e.core.ui.internal.util.ProposalUtil;
import org.eclipse.m2e.core.ui.internal.wizards.MavenPomSelectionComponent;
+
/**
* Maven POM Search dialog
*
@@ -57,7 +58,7 @@ import org.eclipse.m2e.core.ui.internal.wizards.MavenPomSelectionComponent;
*/
public class MavenRepositorySearchDialog extends AbstractMavenDialog {
private static final String DIALOG_SETTINGS = MavenRepositorySearchDialog.class.getName();
-
+
public static final String[] SCOPES = new String[] {"compile", "provided", "runtime", "test", "system"}; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
/*
@@ -65,103 +66,102 @@ public class MavenRepositorySearchDialog extends AbstractMavenDialog {
*/
public static final String[] DEP_MANAGEMENT_SCOPES = new String[] {"compile", "provided", "runtime", "test", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
"system", "import"}; //$NON-NLS-1$ //$NON-NLS-2$
-
/**
- *
* @param parent
* @param title
* @return
*/
public static MavenRepositorySearchDialog createOpenPomDialog(Shell parent, String title) {
- return new MavenRepositorySearchDialog(parent, title, IIndex.SEARCH_ARTIFACT, Collections.<ArtifactKey>emptySet(), Collections.<ArtifactKey>emptySet(), false, null, null, false);
+ return new MavenRepositorySearchDialog(parent, title, IIndex.SEARCH_ARTIFACT, Collections.<ArtifactKey> emptySet(),
+ Collections.<ArtifactKey> emptySet(), false, null, null, false);
}
-
+
/**
- *
* @param parent
* @param title
* @param mp
* @param p
- * @param inManagedSection true when the result will be added to the dependencyManagement section of the pom.
+ * @param inManagedSection true when the result will be added to the dependencyManagement section of the pom.
* @return
*/
- public static MavenRepositorySearchDialog createSearchDependencyDialog(Shell parent, String title, MavenProject mp, IProject p, boolean inManagedSection) {
- Set<ArtifactKey> artifacts = new HashSet<ArtifactKey>();
- Set<ArtifactKey> managed = new HashSet<ArtifactKey>();
- if (mp != null) {
- Set<ArtifactKey> keys = inManagedSection ? artifacts : managed;
- DependencyManagement dm = mp.getDependencyManagement();
- if (dm != null && dm.getDependencies() != null) {
- for (Dependency dep : dm.getDependencies()) {
- keys.add(new ArtifactKey(dep.getGroupId(), dep.getArtifactId(), dep.getVersion(), dep.getClassifier()));
- }
+ public static MavenRepositorySearchDialog createSearchDependencyDialog(Shell parent, String title, MavenProject mp,
+ IProject p, boolean inManagedSection) {
+ Set<ArtifactKey> artifacts = new HashSet<ArtifactKey>();
+ Set<ArtifactKey> managed = new HashSet<ArtifactKey>();
+ if(mp != null) {
+ Set<ArtifactKey> keys = inManagedSection ? artifacts : managed;
+ DependencyManagement dm = mp.getDependencyManagement();
+ if(dm != null && dm.getDependencies() != null) {
+ for(Dependency dep : dm.getDependencies()) {
+ keys.add(new ArtifactKey(dep.getGroupId(), dep.getArtifactId(), dep.getVersion(), dep.getClassifier()));
}
- if (!inManagedSection) {
- for (Dependency dep : mp.getModel().getDependencies()) {
- artifacts.add(new ArtifactKey(dep.getGroupId(), dep.getArtifactId(), dep.getVersion(), dep.getClassifier()));
- }
+ }
+ if(!inManagedSection) {
+ for(Dependency dep : mp.getModel().getDependencies()) {
+ artifacts.add(new ArtifactKey(dep.getGroupId(), dep.getArtifactId(), dep.getVersion(), dep.getClassifier()));
}
+ }
}
- return new MavenRepositorySearchDialog(parent, title, IIndex.SEARCH_ARTIFACT, artifacts, managed, true, mp, p, true);
+ return new MavenRepositorySearchDialog(parent, title, IIndex.SEARCH_ARTIFACT, artifacts, managed, true, mp, p, true);
}
+
/**
- *
* @param parent
* @param title
* @param mp
* @param p
* @return
*/
- public static MavenRepositorySearchDialog createSearchParentDialog(Shell parent, String title, MavenProject mp, IProject p) {
- Set<ArtifactKey> artifacts = new HashSet<ArtifactKey>();
- Set<ArtifactKey> managed = new HashSet<ArtifactKey>();
- if (mp != null && mp.getModel().getParent() != null) {
+ public static MavenRepositorySearchDialog createSearchParentDialog(Shell parent, String title, MavenProject mp,
+ IProject p) {
+ Set<ArtifactKey> artifacts = new HashSet<ArtifactKey>();
+ Set<ArtifactKey> managed = new HashSet<ArtifactKey>();
+ if(mp != null && mp.getModel().getParent() != null) {
Parent par = mp.getModel().getParent();
- artifacts.add(new ArtifactKey(par.getGroupId(), par.getArtifactId(), par.getVersion(), null));
+ artifacts.add(new ArtifactKey(par.getGroupId(), par.getArtifactId(), par.getVersion(), null));
}
- return new MavenRepositorySearchDialog(parent, title, IIndex.SEARCH_PARENTS, artifacts, managed, false, mp, p, true);
+ return new MavenRepositorySearchDialog(parent, title, IIndex.SEARCH_PARENTS, artifacts, managed, false, mp, p, true);
}
-
+
/**
- *
* @param parent
* @param title
* @param mp
* @param p
- * @param inManagedSection true when the result will be added to the dependencyManagement section of the pom.
+ * @param inManagedSection true when the result will be added to the dependencyManagement section of the pom.
* @return
*/
- public static MavenRepositorySearchDialog createSearchPluginDialog(Shell parent, String title, MavenProject mp, IProject p, boolean inManagedSection) {
- Set<ArtifactKey> artifacts = new HashSet<ArtifactKey>();
+ public static MavenRepositorySearchDialog createSearchPluginDialog(Shell parent, String title, MavenProject mp,
+ IProject p, boolean inManagedSection) {
+ Set<ArtifactKey> artifacts = new HashSet<ArtifactKey>();
Set<ArtifactKey> managed = new HashSet<ArtifactKey>();
Set<ArtifactKey> keys = inManagedSection ? artifacts : managed;
- if (mp != null && mp.getBuild() != null) {
- PluginManagement pm = mp.getBuild().getPluginManagement();
- if (pm != null && pm.getPlugins() != null) {
- for (Plugin plug : pm.getPlugins()) {
- keys.add(new ArtifactKey(plug.getGroupId(), plug.getArtifactId(), plug.getVersion(), null));
- }
+ if(mp != null && mp.getBuild() != null) {
+ PluginManagement pm = mp.getBuild().getPluginManagement();
+ if(pm != null && pm.getPlugins() != null) {
+ for(Plugin plug : pm.getPlugins()) {
+ keys.add(new ArtifactKey(plug.getGroupId(), plug.getArtifactId(), plug.getVersion(), null));
}
- if (!inManagedSection && mp.getModel().getBuild() != null) {
- for (Plugin plug : mp.getModel().getBuild().getPlugins()) {
- artifacts.add(new ArtifactKey(plug.getGroupId(), plug.getArtifactId(), plug.getVersion(), null));
- }
+ }
+ if(!inManagedSection && mp.getModel().getBuild() != null) {
+ for(Plugin plug : mp.getModel().getBuild().getPlugins()) {
+ artifacts.add(new ArtifactKey(plug.getGroupId(), plug.getArtifactId(), plug.getVersion(), null));
}
-
+ }
+
}
- return new MavenRepositorySearchDialog(parent, title, IIndex.SEARCH_PLUGIN, artifacts, managed, false, mp, p, true);
- }
+ return new MavenRepositorySearchDialog(parent, title, IIndex.SEARCH_PLUGIN, artifacts, managed, false, mp, p, true);
+ }
+
private final boolean showScope;
-
+
private final Set<ArtifactKey> artifacts;
private final Set<ArtifactKey> managed;
/**
- * One of
- * {@link IIndex#SEARCH_ARTIFACT},
- * {@link IIndex#SEARCH_CLASS_NAME},
+ * One of {@link IIndex#SEARCH_ARTIFACT}, {@link IIndex#SEARCH_CLASS_NAME},
*/
private final String queryType;
@@ -182,7 +182,7 @@ public class MavenRepositorySearchDialog extends AbstractMavenDialog {
private Text txtArtifactId;
private Text txtVersion;
-
+
private boolean ignoreTextChange = false;
private IProject project;
@@ -191,8 +191,8 @@ public class MavenRepositorySearchDialog extends AbstractMavenDialog {
private final boolean showCoords;
- private MavenRepositorySearchDialog(Shell parent, String title, String queryType,
- Set<ArtifactKey> artifacts, Set<ArtifactKey> managed, boolean showScope, MavenProject mp, IProject p, boolean showCoordinates) {
+ private MavenRepositorySearchDialog(Shell parent, String title, String queryType, Set<ArtifactKey> artifacts,
+ Set<ArtifactKey> managed, boolean showScope, MavenProject mp, IProject p, boolean showCoordinates) {
super(parent, DIALOG_SETTINGS);
this.artifacts = artifacts;
this.managed = managed;
@@ -213,22 +213,22 @@ public class MavenRepositorySearchDialog extends AbstractMavenDialog {
protected Control createDialogArea(Composite parent) {
readSettings();
-
+
Composite composite = (Composite) super.createDialogArea(parent);
- if (showCoords) {
+ if(showCoords) {
createGAVControls(composite);
Label separator = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);
separator.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
}
-
+
pomSelectionComponent = new MavenPomSelectionComponent(composite, SWT.NONE);
pomSelectionComponent.init(queryText, queryType, project, artifacts, managed);
-
+
pomSelectionComponent.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
+
pomSelectionComponent.addDoubleClickListener(new IDoubleClickListener() {
public void doubleClick(DoubleClickEvent event) {
- if (!pomSelectionComponent.getStatus().matches(IStatus.ERROR)) {
+ if(!pomSelectionComponent.getStatus().matches(IStatus.ERROR)) {
okPressedDelegate();
}
}
@@ -240,10 +240,10 @@ public class MavenRepositorySearchDialog extends AbstractMavenDialog {
}
});
pomSelectionComponent.setFocus();
-
+
return composite;
}
-
+
/**
* Sets the up group-artifact-version controls
*/
@@ -263,11 +263,11 @@ public class MavenRepositorySearchDialog extends AbstractMavenDialog {
txtGroupId.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
M2EUIUtils.addRequiredDecoration(txtGroupId);
- if (showScope) {
+ if(showScope) {
new Label(composite, SWT.NONE);
new Label(composite, SWT.NONE);
}
-
+
Label artifactIDlabel = new Label(composite, SWT.NONE);
artifactIDlabel.setText(Messages.AddDependencyDialog_artifactId_label);
@@ -275,7 +275,7 @@ public class MavenRepositorySearchDialog extends AbstractMavenDialog {
txtArtifactId.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
M2EUIUtils.addRequiredDecoration(txtArtifactId);
- if (showScope) {
+ if(showScope) {
new Label(composite, SWT.NONE);
new Label(composite, SWT.NONE);
}
@@ -285,11 +285,11 @@ public class MavenRepositorySearchDialog extends AbstractMavenDialog {
txtVersion = new Text(composite, SWT.BORDER);
txtVersion.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
-
- if (showScope) {
+
+ if(showScope) {
Label scopeLabel = new Label(composite, SWT.NONE);
scopeLabel.setText(Messages.AddDependencyDialog_scope_label);
-
+
comScope = new Combo(composite, SWT.DROP_DOWN | SWT.READ_ONLY);
comScope.setItems(SCOPES);
GridData scopeListData = new GridData(SWT.LEFT, SWT.CENTER, false, false);
@@ -297,7 +297,7 @@ public class MavenRepositorySearchDialog extends AbstractMavenDialog {
comScope.setText(SCOPES[0]);
}
- if (showScope) {
+ if(showScope) {
/*
* Fix the tab order (group -> artifact -> version -> scope)
*/
@@ -307,9 +307,9 @@ public class MavenRepositorySearchDialog extends AbstractMavenDialog {
}
Packaging pack;
- if (queryType.equals(IIndex.SEARCH_PARENTS)) {
+ if(queryType.equals(IIndex.SEARCH_PARENTS)) {
pack = Packaging.POM;
- } else if (queryType.equals(IIndex.SEARCH_PLUGIN)) {
+ } else if(queryType.equals(IIndex.SEARCH_PLUGIN)) {
pack = Packaging.PLUGIN;
} else {
pack = Packaging.ALL;
@@ -321,8 +321,9 @@ public class MavenRepositorySearchDialog extends AbstractMavenDialog {
txtArtifactId.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
- if (!ignoreTextChange) {
- computeResultFromField(valueOrNull(txtGroupId.getText()), valueOrNull(txtArtifactId.getText()), valueOrNull(txtVersion.getText()));
+ if(!ignoreTextChange) {
+ computeResultFromField(valueOrNull(txtGroupId.getText()), valueOrNull(txtArtifactId.getText()),
+ valueOrNull(txtVersion.getText()));
}
}
});
@@ -330,46 +331,49 @@ public class MavenRepositorySearchDialog extends AbstractMavenDialog {
txtGroupId.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
- if (!ignoreTextChange) {
- computeResultFromField(valueOrNull(txtGroupId.getText()), valueOrNull(txtArtifactId.getText()), valueOrNull(txtVersion.getText()));
+ if(!ignoreTextChange) {
+ computeResultFromField(valueOrNull(txtGroupId.getText()), valueOrNull(txtArtifactId.getText()),
+ valueOrNull(txtVersion.getText()));
}
}
});
txtVersion.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
- if (!ignoreTextChange) {
- computeResultFromField(valueOrNull(txtGroupId.getText()), valueOrNull(txtArtifactId.getText()), valueOrNull(txtVersion.getText()));
+ if(!ignoreTextChange) {
+ computeResultFromField(valueOrNull(txtGroupId.getText()), valueOrNull(txtArtifactId.getText()),
+ valueOrNull(txtVersion.getText()));
}
}
});
return composite;
- }
-
+ }
+
void okPressedDelegate() {
okPressed();
}
-
+
void updateStatusDelegate(IStatus status) {
updateStatus(status);
}
-
+
private String valueOrNull(String text) {
- return text.trim().length() == 0 ? null : text;
+ return text.trim().length() == 0 ? null : text;
}
-
+
/* (non-Javadoc)
* @see org.eclipse.ui.dialogs.SelectionStatusDialog#computeResult()
*/
protected void computeResult() {
- if (showCoords) {
- computeResultFromField(valueOrNull(txtGroupId.getText()), valueOrNull(txtArtifactId.getText()), valueOrNull(txtVersion.getText()));
+ if(showCoords) {
+ computeResultFromField(valueOrNull(txtGroupId.getText()), valueOrNull(txtArtifactId.getText()),
+ valueOrNull(txtVersion.getText()));
} else {
computeResultFromTree();
}
- }
-
+ }
+
private void computeResultFromField(String groupId, String artifactId, String version) {
selectedIndexedArtifact = cloneIndexedArtifact(selectedIndexedArtifact, groupId, artifactId);
selectedIndexedArtifactFile = cloneIndexedArtifactFile(selectedIndexedArtifactFile, groupId, artifactId, version);
@@ -382,12 +386,13 @@ public class MavenRepositorySearchDialog extends AbstractMavenDialog {
selectedIndexedArtifactFile = pomSelectionComponent.getIndexedArtifactFile();
selectedScope = comScope == null ? null : comScope.getText();
setResult(Collections.singletonList(selectedIndexedArtifactFile));
- if (selectedIndexedArtifactFile != null && showCoords) {
+ if(selectedIndexedArtifactFile != null && showCoords) {
ignoreTextChange = true;
try {
txtGroupId.setText(selectedIndexedArtifactFile.group);
txtArtifactId.setText(selectedIndexedArtifactFile.artifact);
- if (!managed.contains(new ArtifactKey(selectedIndexedArtifactFile.group, selectedIndexedArtifactFile.artifact, selectedIndexedArtifactFile.version, selectedIndexedArtifactFile.classifier))) {
+ if(!managed.contains(new ArtifactKey(selectedIndexedArtifactFile.group, selectedIndexedArtifactFile.artifact,
+ selectedIndexedArtifactFile.version, selectedIndexedArtifactFile.classifier))) {
txtVersion.setText(selectedIndexedArtifactFile.version);
} else {
txtVersion.setText(""); //$NON-NLS-1$
@@ -397,47 +402,34 @@ public class MavenRepositorySearchDialog extends AbstractMavenDialog {
}
}
}
-
+
public IndexedArtifact getSelectedIndexedArtifact() {
return this.selectedIndexedArtifact;
}
-
+
public IndexedArtifactFile getSelectedIndexedArtifactFile() {
return this.selectedIndexedArtifactFile;
}
-
+
public String getSelectedScope() {
return this.selectedScope;
- }
-
+ }
+
private IndexedArtifact cloneIndexedArtifact(IndexedArtifact old, String groupId, String artifactId) {
- if (old == null) {
+ if(old == null) {
return new IndexedArtifact(groupId, artifactId, null, null, null);
}
- return new IndexedArtifact(groupId != null ? groupId : old.getGroupId(),
- artifactId != null ? artifactId : old.getArtifactId(),
- old.getPackageName(), old.getClassname(), old.getPackaging());
+ return new IndexedArtifact(groupId != null ? groupId : old.getGroupId(), artifactId != null ? artifactId
+ : old.getArtifactId(), old.getPackageName(), old.getClassname(), old.getPackaging());
}
-
- private IndexedArtifactFile cloneIndexedArtifactFile(IndexedArtifactFile old, String groupId, String artifactId, String version) {
- if (old == null) {
+
+ private IndexedArtifactFile cloneIndexedArtifactFile(IndexedArtifactFile old, String groupId, String artifactId,
+ String version) {
+ if(old == null) {
return new IndexedArtifactFile(null, groupId, artifactId, version, null, null, null, 0L, null, 0, 0, null, null);
}
- return new IndexedArtifactFile(old.repository,
- groupId,
- artifactId,
- version,
- old.type,
- old.classifier,
- old.fname,
- old.size,
- old.date,
- old.sourcesExists,
- old.javadocExists,
- old.prefix,
- old.goals);
+ return new IndexedArtifactFile(old.repository, groupId, artifactId, version, old.type, old.classifier, old.fname,
+ old.size, old.date, old.sourcesExists, old.javadocExists, old.prefix, old.goals);
}
-
-
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateMavenProjectsDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateMavenProjectsDialog.java
index 9a806989..033dff32 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateMavenProjectsDialog.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateMavenProjectsDialog.java
@@ -79,7 +79,7 @@ public class UpdateMavenProjectsDialog extends TitleAreaDialog implements IMenuL
private Button forceUpdateBtn;
- private Map<String,IProject> projectPaths;
+ private Map<String, IProject> projectPaths;
private final IProject[] initialSelection;
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/AddDependencyOperation.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/AddDependencyOperation.java
index 2f50b086..da38b76f 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/AddDependencyOperation.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/AddDependencyOperation.java
@@ -11,12 +11,15 @@ package org.eclipse.m2e.core.ui.internal.editing;
import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.DEPENDENCIES;
import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.getChild;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
import org.apache.maven.model.Dependency;
import org.apache.maven.model.Exclusion;
+
import org.eclipse.m2e.core.embedder.ArtifactKey;
import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
+
public class AddDependencyOperation implements Operation {
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/AddExclusionOperation.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/AddExclusionOperation.java
index 5cd9c4b2..011ce86f 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/AddExclusionOperation.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/AddExclusionOperation.java
@@ -5,6 +5,7 @@
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
+
package org.eclipse.m2e.core.ui.internal.editing;
import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.ARTIFACT_ID;
@@ -17,14 +18,18 @@ import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.createElementWit
import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.format;
import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.getChild;
-import org.apache.maven.model.Dependency;
-import org.eclipse.m2e.core.embedder.ArtifactKey;
-import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+
import org.w3c.dom.Document;
import org.w3c.dom.Element;
+import org.apache.maven.model.Dependency;
+
+import org.eclipse.m2e.core.embedder.ArtifactKey;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
+
+
public class AddExclusionOperation implements Operation {
private static final Logger log = LoggerFactory.getLogger(AddExclusionOperation.class);
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/ChangeCreator.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/ChangeCreator.java
index c0507e05..ed0dad56 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/ChangeCreator.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/ChangeCreator.java
@@ -14,6 +14,9 @@ package org.eclipse.m2e.core.ui.internal.editing;
import java.util.ArrayList;
import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.compare.rangedifferencer.IRangeComparator;
import org.eclipse.compare.rangedifferencer.RangeDifference;
import org.eclipse.compare.rangedifferencer.RangeDifferencer;
@@ -30,8 +33,6 @@ import org.eclipse.text.edits.MultiTextEdit;
import org.eclipse.text.edits.ReplaceEdit;
import org.eclipse.text.edits.TextEdit;
import org.eclipse.text.edits.TextEditGroup;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/LifecycleMappingOperation.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/LifecycleMappingOperation.java
index d3f3fbe7..a77beabb 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/LifecycleMappingOperation.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/LifecycleMappingOperation.java
@@ -12,26 +12,45 @@
package org.eclipse.m2e.core.ui.internal.editing;
-import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.*;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.ARTIFACT_ID;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.BUILD;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.CONFIGURATION;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.GOAL;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.GOALS;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.GROUP_ID;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.PLUGIN;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.PLUGINS;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.PLUGIN_MANAGEMENT;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.childEquals;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.createElementWithText;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.findChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.findChilds;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.format;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.getChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.getTextValue;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.setText;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
-import org.apache.maven.artifact.versioning.DefaultArtifactVersion;
-import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException;
-import org.apache.maven.artifact.versioning.VersionRange;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+
import org.w3c.dom.Comment;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
+import org.apache.maven.artifact.versioning.DefaultArtifactVersion;
+import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException;
+import org.apache.maven.artifact.versioning.VersionRange;
+
import org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory;
import org.eclipse.m2e.core.lifecyclemapping.model.PluginExecutionAction;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
+
public class LifecycleMappingOperation implements Operation {
-
private static final Logger log = LoggerFactory.getLogger(LifecycleMappingOperation.class);
@@ -42,16 +61,18 @@ public class LifecycleMappingOperation implements Operation {
private static final String LIFECYCLE_PLUGIN_GROUPID = LifecycleMappingFactory.LIFECYCLE_MAPPING_PLUGIN_GROUPID;
private String version;
+
private String groupId;
+
private String artifactId;
private PluginExecutionAction action;
+
private String[] goals;
-
+
/**
- * If set to true, then the lifecycle mapping metadata is created
- * at the top level of the file, rather than within a plugin.
- * For use when not inside a pom
+ * If set to true, then the lifecycle mapping metadata is created at the top level of the file, rather than within a
+ * plugin. For use when not inside a pom
*/
private boolean createAtTopLevel = false;
@@ -59,7 +80,7 @@ public class LifecycleMappingOperation implements Operation {
PluginExecutionAction action, String[] goals) {
this(pluginGroupId, pluginArtifactId, pluginVersion, action, goals, false);
}
-
+
public LifecycleMappingOperation(String pluginGroupId, String pluginArtifactId, String pluginVersion,
PluginExecutionAction action, String[] goals, boolean createAtTopLevel) {
this.artifactId = pluginArtifactId;
@@ -73,53 +94,51 @@ public class LifecycleMappingOperation implements Operation {
public void process(Document document) {
Element root = document.getDocumentElement();
- Element pluginExecutions; // add the new plugins here
+ Element pluginExecutions; // add the new plugins here
-
//now find the lifecycle stuff if it's there.
- if (createAtTopLevel) {
- if (root == null) {
+ if(createAtTopLevel) {
+ if(root == null) {
// probably an empty document
root = document.createElement("lifecycleMappingMetadata"); //$NON-NLS-1$
document.appendChild(root);
}
- pluginExecutions = getChild(root, "pluginExecutions"); //$NON-NLS-1$
+ pluginExecutions = getChild(root, "pluginExecutions"); //$NON-NLS-1$
} else {
Element managedPlugins = getChild(root, BUILD, PLUGIN_MANAGEMENT, PLUGINS);
- Element lifecyclePlugin = findChild(managedPlugins, PLUGIN,
- childEquals(GROUP_ID, LIFECYCLE_PLUGIN_GROUPID),
+ Element lifecyclePlugin = findChild(managedPlugins, PLUGIN, childEquals(GROUP_ID, LIFECYCLE_PLUGIN_GROUPID),
childEquals(ARTIFACT_ID, LIFECYCLE_PLUGIN_ARTIFACTID));
-
-
- if (lifecyclePlugin == null) {
+
+ if(lifecyclePlugin == null) {
//not found, create
- lifecyclePlugin = PomHelper.createPlugin(managedPlugins, LIFECYCLE_PLUGIN_GROUPID, LIFECYCLE_PLUGIN_ARTIFACTID, LIFECYCLE_PLUGIN_VERSION);
-
+ lifecyclePlugin = PomHelper.createPlugin(managedPlugins, LIFECYCLE_PLUGIN_GROUPID, LIFECYCLE_PLUGIN_ARTIFACTID,
+ LIFECYCLE_PLUGIN_VERSION);
+
//mkleint: a bit scared to have this text localized, with chinese/japanese locales, it could write garbage into the pom file..
- Comment comment = document.createComment("This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself."); //$NON-NLS-1$
+ Comment comment = document
+ .createComment("This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself."); //$NON-NLS-1$
managedPlugins.insertBefore(comment, lifecyclePlugin);
format(comment);
}
-
+
pluginExecutions = getChild(lifecyclePlugin, CONFIGURATION, "lifecycleMappingMetadata", "pluginExecutions"); //$NON-NLS-1$ //$NON-NLS-2$
}
-
+
//now find the plugin execution for the plugin we have..
Element execution = null;
- for (Element exec : findChilds(pluginExecutions, "pluginExecution")) { //$NON-NLS-1$
- Element filter = findChild(exec, "pluginExecutionFilter", //$NON-NLS-1$
- childEquals(GROUP_ID, groupId),
- childEquals(ARTIFACT_ID, artifactId));
+ for(Element exec : findChilds(pluginExecutions, "pluginExecution")) { //$NON-NLS-1$
+ Element filter = findChild(exec, "pluginExecutionFilter", //$NON-NLS-1$
+ childEquals(GROUP_ID, groupId), childEquals(ARTIFACT_ID, artifactId));
//the action needs to match the action we want..
Element actionEl = findChild(findChild(exec, "action"), action.toString()); //$NON-NLS-1$
- if (filter != null && actionEl != null) {
+ if(filter != null && actionEl != null) {
String versionRange = getTextValue(getChild(filter, "versionRange")); //$NON-NLS-1$
- if (versionRange != null) { // paranoid null check
+ if(versionRange != null) { // paranoid null check
//now we shall do some smart matching on the existing versionRange and our version..
//so far the "smart" thing involves just overwriting the range.
try {
VersionRange range = VersionRange.createFromVersionSpec(versionRange);
- if (!range.containsVersion(new DefaultArtifactVersion(version))) {
+ if(!range.containsVersion(new DefaultArtifactVersion(version))) {
Element rangeEl = findChild(filter, "versionRange"); //$NON-NLS-1$
setText(rangeEl, "[" + version + ",)"); //$NON-NLS-1$ //$NON-NLS-2$
}
@@ -131,24 +150,24 @@ public class LifecycleMappingOperation implements Operation {
break;
}
}
- if (execution == null) {
+ if(execution == null) {
execution = createPluginExecution(document, pluginExecutions);
}
//now enter/update the goal(s)..
Element goalsEl = getChild(execution, "pluginExecutionFilter", GOALS); //$NON-NLS-1$
List<String> toAddGoals = new ArrayList<String>(Arrays.asList(goals));
- for (Element existingGoal : findChilds(goalsEl, GOAL)) {
+ for(Element existingGoal : findChilds(goalsEl, GOAL)) {
String glValue = getTextValue(existingGoal);
- if (glValue != null && toAddGoals.contains(glValue)) {
+ if(glValue != null && toAddGoals.contains(glValue)) {
toAddGoals.remove(glValue);
}
}
- if (toAddGoals.size() > 0) {
- for (String goal : toAddGoals) {
+ if(toAddGoals.size() > 0) {
+ for(String goal : toAddGoals) {
format(createElementWithText(goalsEl, GOAL, goal));
}
}
-
+
}
private Element createPluginExecution(Document document, Element parent) {
@@ -159,16 +178,18 @@ public class LifecycleMappingOperation implements Operation {
createElementWithText(filter, GROUP_ID, groupId);
createElementWithText(filter, ARTIFACT_ID, artifactId);
createElementWithText(filter, "versionRange", "[" + version + ",)"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-
+
Element actionEl = document.createElement("action"); //$NON-NLS-1$
exec.appendChild(actionEl);
Element actionEl2 = document.createElement(action.toString());
actionEl.appendChild(actionEl2);
if(PluginExecutionAction.execute.equals(action)) {
//mkleint: a bit scared to have this text localized, with chinese/japanese locales, it could write garbage into the pom file..
- actionEl2.appendChild(document.createComment("use <runOnIncremental>false</runOnIncremental>to only execute the mojo during full/clean build")); //$NON-NLS-1$
+ actionEl2
+ .appendChild(document
+ .createComment("use <runOnIncremental>false</runOnIncremental>to only execute the mojo during full/clean build")); //$NON-NLS-1$
}
-
+
format(exec);
return exec;
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/PomEdits.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/PomEdits.java
index 11529a5e..f27262cf 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/PomEdits.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/PomEdits.java
@@ -10,13 +10,18 @@
* Andrew Eisenberg - Work on Bug 350414
*******************************************************************************/
-
package org.eclipse.m2e.core.ui.internal.editing;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.Text;
+
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.text.DocumentRewriteSession;
@@ -30,108 +35,148 @@ import org.eclipse.wst.sse.core.internal.undo.IStructuredTextUndoManager;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
import org.eclipse.wst.xml.core.internal.provisional.format.FormatProcessorXML;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.Text;
+
/**
* this class contains tools for editing the pom files using dom tree operations.
+ *
* @author mkleint
- *
*/
@SuppressWarnings("restriction")
public class PomEdits {
public static final String DEPENDENCIES = "dependencies"; //$NON-NLS-1$
+
public static final String GROUP_ID = "groupId";//$NON-NLS-1$
+
public static final String ARTIFACT_ID = "artifactId"; //$NON-NLS-1$
+
public static final String DEPENDENCY = "dependency"; //$NON-NLS-1$
+
public static final String DEPENDENCY_MANAGEMENT = "dependencyManagement"; //$NON-NLS-1$
+
public static final String EXCLUSIONS = "exclusions"; //$NON-NLS-1$
+
public static final String EXCLUSION = "exclusion"; //$NON-NLS-1$
+
public static final String VERSION = "version"; //$NON-NLS-1$
+
public static final String PLUGIN = "plugin"; //$NON-NLS-1$
+
public static final String CONFIGURATION = "configuration";//$NON-NLS-1$
+
public static final String PLUGINS = "plugins";//$NON-NLS-1$
+
public static final String PLUGIN_MANAGEMENT = "pluginManagement";//$NON-NLS-1$
+
public static final String BUILD = "build";//$NON-NLS-1$
+
public static final String PARENT = "parent";//$NON-NLS-1$
+
public static final String RELATIVE_PATH = "relativePath";//$NON-NLS-1$
+
public static final String TYPE = "type";//$NON-NLS-1$
+
public static final String CLASSIFIER = "classifier";//$NON-NLS-1$
+
public static final String OPTIONAL = "optional";//$NON-NLS-1$
+
public static final String SCOPE = "scope";//$NON-NLS-1$
+
public static final String MODULES = "modules";//$NON-NLS-1$
+
public static final String MODULE = "module";//$NON-NLS-1$
+
public static final String PROFILE = "profile";//$NON-NLS-1$
+
public static final String ID = "id";//$NON-NLS-1$
+
public static final String NAME = "name"; //$NON-NLS-1$
+
public static final String URL = "url";//$NON-NLS-1$
+
public static final String DESCRIPTION = "description";//$NON-NLS-1$
+
public static final String INCEPTION_YEAR = "inceptionYear";//$NON-NLS-1$
+
public static final String ORGANIZATION = "organization"; //$NON-NLS-1$
+
public static final String SCM = "scm"; //$NON-NLS-1$
+
public static final String CONNECTION = "connection";//$NON-NLS-1$
+
public static final String DEV_CONNECTION = "developerConnection";//$NON-NLS-1$
+
public static final String TAG = "tag";//$NON-NLS-1$
+
public static final String ISSUE_MANAGEMENT = "issueManagement"; //$NON-NLS-1$
+
public static final String SYSTEM = "system"; //$NON-NLS-1$
+
public static final String SYSTEM_PATH = "systemPath"; //$NON-NLS-1$
+
public static final String CI_MANAGEMENT = "ciManagement"; //$NON-NLS-1$
+
public static final String PACKAGING = "packaging"; //$NON-NLS-1$
+
public static final String PROPERTIES = "properties"; //$NON-NLS-1$
+
public static final String EXTENSION = "extension"; //$NON-NLS-1$
+
public static final String EXTENSIONS = "extensions"; //$NON-NLS-1$
+
public static final String PROFILES = "profiles";//$NON-NLS-1$
+
public static final String EXECUTIONS = "executions"; //$NON-NLS-1$
+
public static final String EXECUTION = "execution";//$NON-NLS-1$
+
public static final String GOAL = "goal";//$NON-NLS-1$
+
public static final String GOALS = "goals";//$NON-NLS-1$
-
public static Element findChild(Element parent, String name) {
- if (parent == null) {
+ if(parent == null) {
return null;
}
- NodeList rootList = parent.getChildNodes();
- for (int i = 0; i < rootList.getLength(); i++) {
- Node nd = rootList.item(i);
- if (nd instanceof Element) {
- Element el = (Element)nd;
- if (name.equals(el.getNodeName())) {
- return el;
- }
+ NodeList rootList = parent.getChildNodes();
+ for(int i = 0; i < rootList.getLength(); i++ ) {
+ Node nd = rootList.item(i);
+ if(nd instanceof Element) {
+ Element el = (Element) nd;
+ if(name.equals(el.getNodeName())) {
+ return el;
}
+ }
}
return null;
}
public static List<Element> findChilds(Element parent, String name) {
List<Element> toRet = new ArrayList<Element>();
- if (parent != null) {
+ if(parent != null) {
NodeList rootList = parent.getChildNodes();
- for (int i = 0; i < rootList.getLength(); i++) {
- Node nd = rootList.item(i);
- if (nd instanceof Element) {
- Element el = (Element)nd;
- if (name.equals(el.getNodeName())) {
- toRet.add(el);
- }
+ for(int i = 0; i < rootList.getLength(); i++ ) {
+ Node nd = rootList.item(i);
+ if(nd instanceof Element) {
+ Element el = (Element) nd;
+ if(name.equals(el.getNodeName())) {
+ toRet.add(el);
}
+ }
}
}
return toRet;
}
public static String getTextValue(Node element) {
- if (element == null) return null;
+ if(element == null)
+ return null;
StringBuffer buff = new StringBuffer();
NodeList list = element.getChildNodes();
- for (int i = 0; i < list.getLength(); i++) {
+ for(int i = 0; i < list.getLength(); i++ ) {
Node child = list.item(i);
- if (child instanceof Text) {
- Text text = (Text)child;
+ if(child instanceof Text) {
+ Text text = (Text) child;
buff.append(text.getData().trim()); //352416 the value is trimmed because of the multiline values
//that get trimmed by maven itself as well, any comparison to resolved model needs to do the trimming
// or risks false negative results.
@@ -139,19 +184,20 @@ public class PomEdits {
}
return buff.toString();
}
-
+
/**
- * finds exactly one (first) occurence of child element with the given name (eg. dependency)
- * that fulfills conditions expressed by the Matchers (eg. groupId/artifactId match)
+ * finds exactly one (first) occurence of child element with the given name (eg. dependency) that fulfills conditions
+ * expressed by the Matchers (eg. groupId/artifactId match)
+ *
* @param parent
* @param name
* @param matchers
* @return
*/
public static Element findChild(Element parent, String name, Matcher... matchers) {
- OUTTER: for (Element el : findChilds(parent, name)) {
- for (Matcher match : matchers) {
- if (!match.matches(el)) {
+ OUTTER: for(Element el : findChilds(parent, name)) {
+ for(Matcher match : matchers) {
+ if(!match.matches(el)) {
continue OUTTER;
}
}
@@ -159,10 +205,11 @@ public class PomEdits {
}
return null;
}
-
+
/**
- * helper method, creates a subelement with text embedded. does not format the result.
- * primarily to be used in cases like <code>&lt;goals&gt;&lt;goal&gt;xxx&lt;/goal&gt;&lt;/goals&gt;</code>
+ * helper method, creates a subelement with text embedded. does not format the result. primarily to be used in cases
+ * like <code>&lt;goals&gt;&lt;goal&gt;xxx&lt;/goal&gt;&lt;/goals&gt;</code>
+ *
* @param parent
* @param name
* @param value
@@ -191,30 +238,31 @@ public class PomEdits {
}
/**
- * sets text value to the given element. any existing text children are removed and replaced by this new one.
+ * sets text value to the given element. any existing text children are removed and replaced by this new one.
+ *
* @param element
* @param value
*/
public static void setText(Element element, String value) {
NodeList list = element.getChildNodes();
List<Node> toRemove = new ArrayList<Node>();
- for (int i = 0; i < list.getLength(); i++) {
+ for(int i = 0; i < list.getLength(); i++ ) {
Node child = list.item(i);
- if (child instanceof Text) {
+ if(child instanceof Text) {
toRemove.add(child);
}
}
- for (Node rm : toRemove) {
+ for(Node rm : toRemove) {
element.removeChild(rm);
}
Document doc = element.getOwnerDocument();
element.appendChild(doc.createTextNode(value));
}
-
-
+
/**
- * unlike the findChild() equivalent, this one creates the element if not present and returns it.
- * Therefore it shall only be invoked within the PomEdits.Operation
+ * unlike the findChild() equivalent, this one creates the element if not present and returns it. Therefore it shall
+ * only be invoked within the PomEdits.Operation
+ *
* @param parent
* @param names chain of element names to find/create
* @return
@@ -222,34 +270,34 @@ public class PomEdits {
public static Element getChild(Element parent, String... names) {
Element toFormat = null;
Element toRet = null;
- if (names.length == 0) {
+ if(names.length == 0) {
throw new IllegalArgumentException("At least one child name has to be specified");
}
- for (String name : names) {
+ for(String name : names) {
toRet = findChild(parent, name);
- if (toRet == null) {
+ if(toRet == null) {
toRet = parent.getOwnerDocument().createElement(name);
parent.appendChild(toRet);
- if (toFormat == null) {
+ if(toFormat == null) {
toFormat = toRet;
}
}
parent = toRet;
}
- if (toFormat != null) {
+ if(toFormat != null) {
format(toFormat);
}
return toRet;
}
-
+
/**
* proper remove of a child element
*/
public static void removeChild(Element parent, Element child) {
- if (child != null) {
+ if(child != null) {
Node prev = child.getPreviousSibling();
- if (prev instanceof Text) {
- Text txt = (Text)prev;
+ if(prev instanceof Text) {
+ Text txt = (Text) prev;
int lastnewline = getLastEolIndex(txt.getData());
if(lastnewline >= 0) {
txt.setData(txt.getData().substring(0, lastnewline));
@@ -258,7 +306,7 @@ public class PomEdits {
parent.removeChild(child);
}
}
-
+
private static int getLastEolIndex(String s) {
if(s == null || s.length() == 0) {
return -1;
@@ -279,36 +327,37 @@ public class PomEdits {
}
/**
- * remove the current element if it doesn't contain any sublements, useful for lists etc,
- * works recursively removing all parents up that don't have any children elements.
+ * remove the current element if it doesn't contain any sublements, useful for lists etc, works recursively removing
+ * all parents up that don't have any children elements.
+ *
* @param el
*/
public static void removeIfNoChildElement(Element el) {
NodeList nl = el.getChildNodes();
boolean hasChilds = false;
- for (int i = 0; i < nl.getLength(); i++) {
+ for(int i = 0; i < nl.getLength(); i++ ) {
Node child = nl.item(i);
- if (child instanceof Element) {
+ if(child instanceof Element) {
hasChilds = true;
}
}
- if (!hasChilds) {
+ if(!hasChilds) {
Node parent = el.getParentNode();
- if (parent != null && parent instanceof Element) {
- removeChild((Element)parent, el);
- removeIfNoChildElement((Element)parent);
+ if(parent != null && parent instanceof Element) {
+ removeChild((Element) parent, el);
+ removeIfNoChildElement((Element) parent);
}
}
}
-
+
public static Element insertAt(Element newElement, int offset) {
Document doc = newElement.getOwnerDocument();
- if (doc instanceof IDOMDocument) {
+ if(doc instanceof IDOMDocument) {
IDOMDocument domDoc = (IDOMDocument) doc;
IndexedRegion ir = domDoc.getModel().getIndexedRegion(offset);
- Node parent = ((Node)ir).getParentNode();
- if (ir instanceof Text) {
- Text txt = (Text)ir;
+ Node parent = ((Node) ir).getParentNode();
+ if(ir instanceof Text) {
+ Text txt = (Text) ir;
String data = txt.getData();
int dataSplitIndex = offset - ir.getStartOffset();
String beforeText = data.substring(0, dataSplitIndex);
@@ -318,8 +367,8 @@ public class PomEdits {
parent.replaceChild(after, txt);
parent.insertBefore(newElement, after);
parent.insertBefore(before, newElement);
- } else if (ir instanceof Element) {
- ((Element)ir).appendChild(newElement);
+ } else if(ir instanceof Element) {
+ ((Element) ir).appendChild(newElement);
} else {
throw new IllegalArgumentException();
}
@@ -328,35 +377,37 @@ public class PomEdits {
}
return newElement;
}
-
+
/**
* finds the element at offset, if other type of node at offset, will return it's parent element (if any)
+ *
* @param doc
* @param offset
* @return
*/
public static Element elementAtOffset(Document doc, int offset) {
- if (doc instanceof IDOMDocument) {
+ if(doc instanceof IDOMDocument) {
IDOMDocument domDoc = (IDOMDocument) doc;
IndexedRegion ir = domDoc.getModel().getIndexedRegion(offset);
- if (ir instanceof Element) {
+ if(ir instanceof Element) {
return (Element) ir;
} else {
- Node parent = ((Node)ir).getParentNode();
- if (parent instanceof Element) {
+ Node parent = ((Node) ir).getParentNode();
+ if(parent instanceof Element) {
return (Element) parent;
}
}
}
- return null;
+ return null;
}
-
+
/**
* formats the node (and content). please make sure to only format the node you have created..
+ *
* @param newNode
*/
public static void format(Node newNode) {
- if (newNode.getParentNode() != null && newNode.equals(newNode.getParentNode().getLastChild())) {
+ if(newNode.getParentNode() != null && newNode.equals(newNode.getParentNode().getLastChild())) {
//add a new line to get the newly generated content correctly formatted.
newNode.getParentNode().appendChild(newNode.getParentNode().getOwnerDocument().createTextNode("\n")); //$NON-NLS-1$
}
@@ -367,7 +418,8 @@ public class PomEdits {
}
/**
- * performs an modifying operation on top the
+ * performs an modifying operation on top the
+ *
* @param file
* @param operation
* @throws IOException
@@ -381,35 +433,36 @@ public class PomEdits {
try {
DocumentRewriteSession session = null;
IStructuredTextUndoManager undo = null;
- if (tuple.isReadOnly()) {
+ if(tuple.isReadOnly()) {
domModel = (IDOMModel) StructuredModelManager.getModelManager().getExistingModelForRead(tuple.getDocument());
- if (domModel == null) {
- domModel = (IDOMModel) StructuredModelManager.getModelManager().getModelForRead((IStructuredDocument)tuple.getDocument());
+ if(domModel == null) {
+ domModel = (IDOMModel) StructuredModelManager.getModelManager().getModelForRead(
+ (IStructuredDocument) tuple.getDocument());
}
} else {
- domModel = tuple.getModel() != null ? tuple.getModel() :
- (tuple.getFile() != null
- ? (IDOMModel) StructuredModelManager.getModelManager().getModelForEdit(tuple.getFile())
- : (IDOMModel) StructuredModelManager.getModelManager().getExistingModelForEdit(tuple.getDocument())); //existing shall be ok here..
-
+ domModel = tuple.getModel() != null ? tuple.getModel()
+ : (tuple.getFile() != null ? (IDOMModel) StructuredModelManager.getModelManager().getModelForEdit(
+ tuple.getFile()) : (IDOMModel) StructuredModelManager.getModelManager().getExistingModelForEdit(
+ tuple.getDocument())); //existing shall be ok here..
+
//let the model know we make changes
domModel.aboutToChangeModel();
undo = domModel.getStructuredDocument().getUndoManager();
//let the document know we make changes
- if (domModel.getStructuredDocument() instanceof IDocumentExtension4) {
- IDocumentExtension4 ext4 = (IDocumentExtension4)domModel.getStructuredDocument();
+ if(domModel.getStructuredDocument() instanceof IDocumentExtension4) {
+ IDocumentExtension4 ext4 = (IDocumentExtension4) domModel.getStructuredDocument();
session = ext4.startRewriteSession(DocumentRewriteSessionType.UNRESTRICTED_SMALL);
}
undo.beginRecording(domModel);
}
-
+
try {
tuple.getOperation().process(domModel.getDocument());
} finally {
- if (!tuple.isReadOnly()) {
+ if(!tuple.isReadOnly()) {
undo.endRecording(domModel);
- if (session != null && domModel.getStructuredDocument() instanceof IDocumentExtension4) {
- IDocumentExtension4 ext4 = (IDocumentExtension4)domModel.getStructuredDocument();
+ if(session != null && domModel.getStructuredDocument() instanceof IDocumentExtension4) {
+ IDocumentExtension4 ext4 = (IDocumentExtension4) domModel.getStructuredDocument();
ext4.stopRewriteSession(session);
}
domModel.changedModel();
@@ -417,9 +470,9 @@ public class PomEdits {
}
} finally {
if(domModel != null) {
- if (tuple.isReadOnly()) {
+ if(tuple.isReadOnly()) {
domModel.releaseFromRead();
- } else if (domModel.getId() != null) { // id will be null for files outside of workspace
+ } else if(domModel.getId() != null) { // id will be null for files outside of workspace
//for ducuments saving shall generally only happen when the model is not held elsewhere (eg. in opened view)
//for files, save always
if(tuple.isForceSave() || domModel.getReferenceCountForEdit() == 1) {
@@ -431,17 +484,23 @@ public class PomEdits {
}
}
}
-
+
public static final class OperationTuple {
private final PomEdits.Operation operation;
+
private final IFile file;
+
private final IDocument document;
+
private final IDOMModel model;
+
private boolean readOnly = false;
+
private boolean forceSave = false;
/**
* operation on top of IFile is always saved
+ *
* @param file
* @param operation
*/
@@ -454,19 +513,24 @@ public class PomEdits {
model = null;
forceSave = true;
}
+
/**
- * operation on top of IDocument is only saved when noone else is editing the document.
+ * operation on top of IDocument is only saved when noone else is editing the document.
+ *
* @param document
* @param operation
*/
public OperationTuple(IDocument document, PomEdits.Operation operation) {
this(document, operation, false);
}
+
/**
- * operation on top of IDocument is only saved when noone else is editing the document.
+ * operation on top of IDocument is only saved when noone else is editing the document.
+ *
* @param document
* @param operation
- * @param readonly operation that doesn't modify the content. Will only get the read, not edit model, up to the user of the code to ensure no edits happen
+ * @param readonly operation that doesn't modify the content. Will only get the read, not edit model, up to the user
+ * of the code to ensure no edits happen
*/
public OperationTuple(IDocument document, PomEdits.Operation operation, boolean readOnly) {
assert operation != null;
@@ -476,8 +540,10 @@ public class PomEdits {
model = null;
this.readOnly = readOnly;
}
+
/**
* only use for unmanaged models
+ *
* @param model
* @param operation
*/
@@ -488,18 +554,18 @@ public class PomEdits {
document = null;
file = null;
}
-
+
/**
* force saving the document after performing the operation
*/
public void setForceSave() {
forceSave = true;
}
-
+
public boolean isForceSave() {
return forceSave;
}
-
+
/**
* @return Returns the readOnly.
*/
@@ -518,89 +584,92 @@ public class PomEdits {
public IDocument getDocument() {
return document;
}
+
public IDOMModel getModel() {
return model;
}
-
+
}
-
+
/**
* operation to perform on top of the DOM document. see performOnDOMDocument()
+ *
* @author mkleint
- *
*/
public static interface Operation {
void process(Document document);
}
-
+
/**
* an Operation instance that aggregates multiple operations and performs then in given order.
+ *
* @author mkleint
- *
*/
public static final class CompoundOperation implements Operation {
-
+
private final Operation[] operations;
public CompoundOperation(Operation... operations) {
this.operations = operations;
}
-
+
public void process(Document document) {
- for (Operation oper : operations) {
+ for(Operation oper : operations) {
oper.process(document);
}
}
}
-
+
/**
- * an interface for identifying child elements that fulfill conditions expressed by the matcher.
+ * an interface for identifying child elements that fulfill conditions expressed by the matcher.
+ *
* @author mkleint
- *
*/
public static interface Matcher {
/**
* returns true if the given element matches the condition.
+ *
* @param child
* @return
*/
boolean matches(Element element);
}
-
+
public static Matcher childEquals(final String elementName, final String matchingValue) {
return new Matcher() {
public boolean matches(Element child) {
String toMatch = PomEdits.getTextValue(PomEdits.findChild(child, elementName));
- return toMatch != null && toMatch.trim().equals(matchingValue);
+ return toMatch != null && toMatch.trim().equals(matchingValue);
}
};
}
-
+
public static Matcher textEquals(final String matchingValue) {
return new Matcher() {
public boolean matches(Element child) {
String toMatch = PomEdits.getTextValue(child);
- return toMatch != null && toMatch.trim().equals(matchingValue);
+ return toMatch != null && toMatch.trim().equals(matchingValue);
}
};
}
-
+
public static Matcher childMissingOrEqual(final String elementName, final String matchingValue) {
return new Matcher() {
public boolean matches(Element child) {
Element match = PomEdits.findChild(child, elementName);
- if (match == null) {
+ if(match == null) {
return true;
}
String toMatch = PomEdits.getTextValue(match);
- return toMatch != null && toMatch.trim().equals(matchingValue);
+ return toMatch != null && toMatch.trim().equals(matchingValue);
}
};
}
-
+
/**
+ * keeps internal state, needs to be recreated for each query, when used in conjunction with out matchers shall
+ * probably be placed last.
*
- * keeps internal state, needs to be recreated for each query, when used in conjunction with out matchers shall probably be placed last.
* @param elementName
* @param index
* @return
@@ -608,14 +677,15 @@ public class PomEdits {
public static Matcher childAt(final int index) {
return new Matcher() {
int count = 0;
+
public boolean matches(Element child) {
- if (count == index) {
+ if(count == index) {
return true;
}
- count++;
+ count++ ;
return false;
}
};
- }
-
-} \ No newline at end of file
+ }
+
+}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/PomHelper.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/PomHelper.java
index 97c765f6..31d3c33e 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/PomHelper.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/PomHelper.java
@@ -8,11 +8,34 @@
package org.eclipse.m2e.core.ui.internal.editing;
-import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.*;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.ARTIFACT_ID;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.CLASSIFIER;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.DEPENDENCIES;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.DEPENDENCY;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.GROUP_ID;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.PLUGIN;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.SCOPE;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.TYPE;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.VERSION;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.childEquals;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.createElement;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.createElementWithText;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.findChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.findChilds;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.format;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.getChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.performOnDOMDocument;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.removeChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.setText;
import java.util.List;
-import org.apache.maven.model.Dependency;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IStatus;
@@ -20,11 +43,6 @@ import org.eclipse.core.runtime.Status;
import org.eclipse.jface.text.IDocument;
import org.eclipse.ltk.core.refactoring.TextChange;
import org.eclipse.ltk.core.refactoring.TextFileChange;
-
-import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
-import org.eclipse.m2e.core.ui.internal.Messages;
-import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
-import org.eclipse.m2e.core.ui.internal.editing.PomEdits.OperationTuple;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IEditorReference;
import org.eclipse.ui.IWorkbenchPage;
@@ -33,17 +51,18 @@ import org.eclipse.ui.PlatformUI;
import org.eclipse.wst.sse.core.StructuredModelManager;
import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
+import org.apache.maven.model.Dependency;
-public final class PomHelper {
+import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
+import org.eclipse.m2e.core.ui.internal.Messages;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits.OperationTuple;
- private static final Logger LOG = LoggerFactory.getLogger(PomHelper.class);
+public final class PomHelper {
+ private static final Logger LOG = LoggerFactory.getLogger(PomHelper.class);
/*
* Return the Element matching the dependency or null,
@@ -57,15 +76,15 @@ public final class PomHelper {
}
private static boolean isOpened(IDocument document) {
- for (IWorkbenchWindow window : PlatformUI.getWorkbench().getWorkbenchWindows()) {
- for (IWorkbenchPage page : window.getPages()) {
+ for(IWorkbenchWindow window : PlatformUI.getWorkbench().getWorkbenchWindows()) {
+ for(IWorkbenchPage page : window.getPages()) {
//page.getEditors() - this call restores all the pages content, didn't feel like doing so, unless
// we can bring to life only the maven pom editors..
- for (IEditorReference ref : page.getEditorReferences()) {
+ for(IEditorReference ref : page.getEditorReferences()) {
IEditorPart editor = ref.getEditor(false);
- if (editor != null) {
+ if(editor != null) {
IDocument doc = (IDocument) editor.getAdapter(IDocument.class);
- if (doc !=null && doc.equals(document)) {
+ if(doc != null && doc.equals(document)) {
return true;
}
}
@@ -74,8 +93,8 @@ public final class PomHelper {
}
return false;
}
+
/**
- *
* @param file
* @param operation
* @param label
@@ -84,7 +103,8 @@ public final class PomHelper {
* @throws CoreException
*/
@SuppressWarnings("restriction")
- public static TextChange createChange(IFile file, Operation operation, String label, boolean forceSave) throws CoreException {
+ public static TextChange createChange(IFile file, Operation operation, String label, boolean forceSave)
+ throws CoreException {
IStructuredModel model = null;
try {
model = StructuredModelManager.getModelManager().getModelForRead(file);
@@ -96,11 +116,13 @@ public final class PomHelper {
IDocument tempDocument = tempModel.getStructuredDocument();
performOnDOMDocument(new OperationTuple((IDOMModel) tempModel, operation));
- TextChange change = new ChangeCreator(!forceSave && existing ? null : file, document, tempDocument, label).createChange();
- if (forceSave) assert change instanceof TextFileChange; //if assert not fullfilled, we will not get the file saved..
-
- if (forceSave && change instanceof TextFileChange) {
- ((TextFileChange)change).setSaveMode(TextFileChange.FORCE_SAVE);
+ TextChange change = new ChangeCreator(!forceSave && existing ? null : file, document, tempDocument, label)
+ .createChange();
+ if(forceSave)
+ assert change instanceof TextFileChange; //if assert not fullfilled, we will not get the file saved..
+
+ if(forceSave && change instanceof TextFileChange) {
+ ((TextFileChange) change).setSaveMode(TextFileChange.FORCE_SAVE);
}
return change;
} catch(Exception exc) {
@@ -116,6 +138,7 @@ public final class PomHelper {
/**
* by default will create a change that won't save files with opened documents
+ *
* @param file
* @param operation
* @param label
@@ -128,6 +151,7 @@ public final class PomHelper {
/**
* creates and adds new plugin to the parent. Formats the result.
+ *
* @param parentList
* @param groupId null or value
* @param artifactId never null
@@ -138,12 +162,12 @@ public final class PomHelper {
Document doc = parentList.getOwnerDocument();
Element plug = doc.createElement(PLUGIN);
parentList.appendChild(plug);
-
- if (groupId != null) {
+
+ if(groupId != null) {
createElementWithText(plug, GROUP_ID, groupId);
}
createElementWithText(plug, ARTIFACT_ID, artifactId);
- if (version != null) {
+ if(version != null) {
createElementWithText(plug, VERSION, version);
}
format(plug);
@@ -152,6 +176,7 @@ public final class PomHelper {
/**
* creates and adds new dependency to the parent. formats the result.
+ *
* @param parentList
* @param groupId null or value
* @param artifactId never null
@@ -160,12 +185,12 @@ public final class PomHelper {
*/
public static Element createDependency(Element parentList, String groupId, String artifactId, String version) {
Element dep = createElement(parentList, DEPENDENCY);
-
- if (groupId != null) {
+
+ if(groupId != null) {
createElementWithText(dep, GROUP_ID, groupId);
}
createElementWithText(dep, ARTIFACT_ID, artifactId);
- if (version != null) {
+ if(version != null) {
createElementWithText(dep, VERSION, version);
}
format(dep);
@@ -174,15 +199,17 @@ public final class PomHelper {
/**
* node is expected to be the node containing <dependencies> node, so <project>, <dependencyManagement> etc..
+ *
* @param node
* @return
*/
public static List<Element> findDependencies(Element node) {
return findChilds(findChild(node, DEPENDENCIES), DEPENDENCY);
}
-
+
/**
* null in any value parameter mean remove the element.
+ *
* @param depsEl
* @param groupId
* @param artifactId
@@ -192,36 +219,35 @@ public final class PomHelper {
* @param classifier
* @return the root xml element of the dependency
*/
- public static Element addOrUpdateDependency(Element depsEl, String groupId, String artifactId, String version, String type, String scope, String classifier) {
- Element dep = findChild(depsEl, DEPENDENCY,
- childEquals(GROUP_ID, groupId),
- childEquals(ARTIFACT_ID, artifactId));
- if (dep == null) {
+ public static Element addOrUpdateDependency(Element depsEl, String groupId, String artifactId, String version,
+ String type, String scope, String classifier) {
+ Element dep = findChild(depsEl, DEPENDENCY, childEquals(GROUP_ID, groupId), childEquals(ARTIFACT_ID, artifactId));
+ if(dep == null) {
dep = createDependency(depsEl, groupId, artifactId, version);
} else {
//only set version if already exists
- if (version != null) {
+ if(version != null) {
setText(getChild(dep, VERSION), version);
} else {
removeChild(dep, findChild(dep, VERSION));
}
}
- if (type != null //
+ if(type != null //
&& !"jar".equals(type) // //$NON-NLS-1$
&& !"null".equals(type)) { // guard against MNGECLIPSE-622 //$NON-NLS-1$
-
+
setText(getChild(dep, TYPE), type);
} else {
removeChild(dep, findChild(dep, TYPE));
}
-
- if (classifier != null) {
+
+ if(classifier != null) {
setText(getChild(dep, CLASSIFIER), classifier);
} else {
removeChild(dep, findChild(dep, CLASSIFIER));
}
-
- if (scope != null && !"compile".equals(scope)) { //$NON-NLS-1$
+
+ if(scope != null && !"compile".equals(scope)) { //$NON-NLS-1$
setText(getChild(dep, SCOPE), scope);
} else {
removeChild(dep, findChild(dep, SCOPE));
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/RemoveDependencyOperation.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/RemoveDependencyOperation.java
index 93fb88a3..b670a682 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/RemoveDependencyOperation.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/RemoveDependencyOperation.java
@@ -8,11 +8,19 @@
package org.eclipse.m2e.core.ui.internal.editing;
-import org.apache.maven.model.Dependency;
-import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.*;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.DEPENDENCIES;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.findChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.removeChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.removeIfNoChildElement;
+
import org.w3c.dom.Document;
import org.w3c.dom.Element;
+import org.apache.maven.model.Dependency;
+
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
+
+
public class RemoveDependencyOperation implements Operation {
private Dependency dependency;
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/AggregateMappingLabelProvider.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/AggregateMappingLabelProvider.java
index 4ee049ef..c261f314 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/AggregateMappingLabelProvider.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/AggregateMappingLabelProvider.java
@@ -25,18 +25,21 @@ import org.eclipse.m2e.core.internal.lifecyclemapping.discovery.PackagingTypeMap
import org.eclipse.m2e.core.internal.lifecyclemapping.discovery.PackagingTypeMappingConfiguration.PackagingTypeMappingRequirement;
import org.eclipse.m2e.core.project.configurator.MojoExecutionKey;
+
/**
* AggregateMappingLabelProvider
- *
+ *
* @author mkleint
*/
@SuppressWarnings("restriction")
public class AggregateMappingLabelProvider implements ILifecycleMappingLabelProvider {
private final List<ILifecycleMappingLabelProvider> content;
+
private final ILifecycleMappingRequirement element;
- public AggregateMappingLabelProvider(ILifecycleMappingRequirement element, List<ILifecycleMappingLabelProvider> content) {
+ public AggregateMappingLabelProvider(ILifecycleMappingRequirement element,
+ List<ILifecycleMappingLabelProvider> content) {
this.content = content;
this.element = element;
}
@@ -57,8 +60,8 @@ public class AggregateMappingLabelProvider implements ILifecycleMappingLabelProv
}
public boolean isError(LifecycleMappingConfiguration mappingConfiguration) {
- for (ILifecycleMappingLabelProvider pr : content) {
- if (pr.isError(mappingConfiguration)) {
+ for(ILifecycleMappingLabelProvider pr : content) {
+ if(pr.isError(mappingConfiguration)) {
return true;
}
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/ILifecycleMappingLabelProvider.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/ILifecycleMappingLabelProvider.java
index 18e1c669..7bbfa961 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/ILifecycleMappingLabelProvider.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/ILifecycleMappingLabelProvider.java
@@ -15,6 +15,7 @@ import org.apache.maven.project.MavenProject;
import org.eclipse.m2e.core.internal.lifecyclemapping.discovery.ILifecycleMappingRequirement;
import org.eclipse.m2e.core.internal.lifecyclemapping.discovery.LifecycleMappingConfiguration;
+
/**
* ILifecycleMappingLabelProvider
*
@@ -26,9 +27,9 @@ public interface ILifecycleMappingLabelProvider {
* Returns label of Maven Project element, i.e. project itself, packaging type, plugin execution, etc.
*/
public String getMavenText();
-
+
public boolean isError(LifecycleMappingConfiguration mappingConfiguration);
-
+
public ILifecycleMappingRequirement getKey();
public Collection<MavenProject> getProjects();
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/PackagingTypeMappingLabelProvider.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/PackagingTypeMappingLabelProvider.java
index 215bd061..a74a0f84 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/PackagingTypeMappingLabelProvider.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/PackagingTypeMappingLabelProvider.java
@@ -28,9 +28,11 @@ import org.eclipse.m2e.core.internal.lifecyclemapping.discovery.ProjectLifecycle
public class PackagingTypeMappingLabelProvider implements ILifecycleMappingLabelProvider {
private PackagingTypeMappingConfiguration element;
+
private ProjectLifecycleMappingConfiguration prjconf;
- public PackagingTypeMappingLabelProvider(ProjectLifecycleMappingConfiguration prjconf, PackagingTypeMappingConfiguration element) {
+ public PackagingTypeMappingLabelProvider(ProjectLifecycleMappingConfiguration prjconf,
+ PackagingTypeMappingConfiguration element) {
this.element = element;
this.prjconf = prjconf;
}
@@ -46,7 +48,6 @@ public class PackagingTypeMappingLabelProvider implements ILifecycleMappingLabel
return !mappingConfiguration.isRequirementSatisfied(getKey(), true);
}
-
/* (non-Javadoc)
* @see org.eclipse.m2e.core.ui.internal.lifecyclemapping.ILifecycleMappingLabelProvider#getKey()
*/
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/ProjectLifecycleMappingElement.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/ProjectLifecycleMappingElement.java
index 4691d5aa..c18258ec 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/ProjectLifecycleMappingElement.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/lifecyclemapping/ProjectLifecycleMappingElement.java
@@ -20,7 +20,7 @@ public class ProjectLifecycleMappingElement {
private final ProjectLifecycleMappingConfiguration project;
private final ILifecycleMappingElement element;
-
+
public ProjectLifecycleMappingElement(ProjectLifecycleMappingConfiguration project, ILifecycleMappingElement element) {
this.project = project;
this.element = element;
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/markers/MarkerResolutionGenerator.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/markers/MarkerResolutionGenerator.java
index c1dddff3..71cd78f1 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/markers/MarkerResolutionGenerator.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/markers/MarkerResolutionGenerator.java
@@ -35,12 +35,13 @@ import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob;
+
public class MarkerResolutionGenerator implements IMarkerResolutionGenerator, IMarkerResolutionGenerator2 {
private static final Logger LOG = LoggerFactory.getLogger(MarkerResolutionGenerator.class);
static QualifiedName QUALIFIED = new QualifiedName("org.eclipse.m2e.core.ui", "refreshResolution"); //$NON-NLS-1$ //$NON-NLS-2$
-
+
public boolean hasResolutions(IMarker marker) {
// TODO is the resolution for all lifecycle markers??
return true;
@@ -52,7 +53,7 @@ public class MarkerResolutionGenerator implements IMarkerResolutionGenerator, IM
//for each file have just one instance of the discover proposal array.
//important for 335299
IMarkerResolution[] cached = (IMarkerResolution[]) marker.getResource().getSessionProperty(QUALIFIED);
- if (cached == null) {
+ if(cached == null) {
cached = new IMarkerResolution[] {new RefreshResolution(marker)};
marker.getResource().setSessionProperty(QUALIFIED, cached);
}
@@ -61,9 +62,8 @@ public class MarkerResolutionGenerator implements IMarkerResolutionGenerator, IM
return new IMarkerResolution[] {new RefreshResolution(marker)};
}
}
-
- private class RefreshResolution extends WorkbenchMarkerResolution {
+ private class RefreshResolution extends WorkbenchMarkerResolution {
private IMarker marker;
@@ -103,7 +103,7 @@ public class MarkerResolutionGenerator implements IMarkerResolutionGenerator, IM
final Set<IProject> projects = getProjects(marker);
new UpdateMavenProjectJob(projects.toArray(new IProject[projects.size()])).schedule();
}
-
+
/* (non-Javadoc)
* @see org.eclipse.ui.views.markers.WorkbenchMarkerResolution#run(org.eclipse.core.resources.IMarker[], org.eclipse.core.runtime.IProgressMonitor)
*/
@@ -111,7 +111,6 @@ public class MarkerResolutionGenerator implements IMarkerResolutionGenerator, IM
final Set<IProject> projects = getProjects(markers);
new UpdateMavenProjectJob(projects.toArray(new IProject[projects.size()])).schedule();
}
-
/**
* @param markers
@@ -119,10 +118,10 @@ public class MarkerResolutionGenerator implements IMarkerResolutionGenerator, IM
*/
private Set<IProject> getProjects(IMarker... markers) {
Set<IProject> toRet = new HashSet<IProject>();
- for (IMarker mark : markers) {
+ for(IMarker mark : markers) {
IResource res = mark.getResource();
IProject prj = res.getProject();
- if (prj != null) {
+ if(prj != null) {
toRet.add(prj);
}
}
@@ -134,9 +133,9 @@ public class MarkerResolutionGenerator implements IMarkerResolutionGenerator, IM
*/
public IMarker[] findOtherMarkers(IMarker[] markers) {
List<IMarker> toRet = new ArrayList<IMarker>();
- for (IMarker m : markers) {
+ for(IMarker m : markers) {
try {
- if (IMavenConstants.MARKER_CONFIGURATION_ID.equals(m.getType()) && m != marker) {
+ if(IMavenConstants.MARKER_CONFIGURATION_ID.equals(m.getType()) && m != marker) {
//TODO is this the only condition for lifecycle markers
toRet.add(m);
}
@@ -147,7 +146,6 @@ public class MarkerResolutionGenerator implements IMarkerResolutionGenerator, IM
return toRet.toArray(new IMarker[0]);
}
-
}
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/GoalsFieldEditor.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/GoalsFieldEditor.java
index 480f0dad..433e01f5 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/GoalsFieldEditor.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/GoalsFieldEditor.java
@@ -23,46 +23,44 @@ import org.eclipse.swt.widgets.Text;
/**
- * A field editor for a combo box that allows the drop-down selection of one of
- * a list of items.
- *
- * Adapted from org.eclipse.jface.preference.ComboFieldEditor
+ * A field editor for a combo box that allows the drop-down selection of one of a list of items. Adapted from
+ * org.eclipse.jface.preference.ComboFieldEditor
*/
public class GoalsFieldEditor extends FieldEditor {
- /**
- * The <code>Combo</code> widget.
- */
- Text goalsText;
-
- /**
- * The value (not the name) of the currently selected item in the Combo widget.
- */
- String value;
+ /**
+ * The <code>Combo</code> widget.
+ */
+ Text goalsText;
+
+ /**
+ * The value (not the name) of the currently selected item in the Combo widget.
+ */
+ String value;
private Button goialsSelectButton;
private final String buttonText;
-
- /**
+
+ /**
* Create the combo box field editor.
*
* @param name the name of the preference this field editor works on
* @param labelText the label text of the field editor
- * @param buttonText
+ * @param buttonText
* @param entryValues the entry values
* @param parent the parent composite
*/
- public GoalsFieldEditor(String name, String labelText, String buttonText, Composite parent) {
+ public GoalsFieldEditor(String name, String labelText, String buttonText, Composite parent) {
init(name, labelText);
this.buttonText = buttonText;
- createControl(parent);
- }
+ createControl(parent);
+ }
- /* (non-Javadoc)
- * @see org.eclipse.jface.preference.FieldEditor#adjustForNumColumns(int)
- */
- protected void adjustForNumColumns(int numColumns) {
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.preference.FieldEditor#adjustForNumColumns(int)
+ */
+ protected void adjustForNumColumns(int numColumns) {
if(numColumns > 1) {
Control control = getLabelControl();
((GridData) control.getLayoutData()).horizontalSpan = numColumns;
@@ -74,10 +72,10 @@ public class GoalsFieldEditor extends FieldEditor {
}
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.preference.FieldEditor#doFillIntoGrid(org.eclipse.swt.widgets.Composite, int)
- */
- protected void doFillIntoGrid(Composite parent, int numColumns) {
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.preference.FieldEditor#doFillIntoGrid(org.eclipse.swt.widgets.Composite, int)
+ */
+ protected void doFillIntoGrid(Composite parent, int numColumns) {
Control labelControl = getLabelControl(parent);
GridData gd = new GridData();
gd.horizontalSpan = numColumns;
@@ -92,7 +90,7 @@ public class GoalsFieldEditor extends FieldEditor {
gd.grabExcessHorizontalSpace = true;
goalsText.setLayoutData(gd);
goalsText.setFont(parent.getFont());
-
+
goialsSelectButton = new Button(parent, SWT.NONE);
goialsSelectButton.setText(buttonText);
goialsSelectButton.addSelectionListener(new MavenGoalSelectionAdapter(goalsText, parent.getShell()));
@@ -103,45 +101,45 @@ public class GoalsFieldEditor extends FieldEditor {
goalsText.setLayoutData(gd);
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.preference.FieldEditor#doLoad()
- */
- protected void doLoad() {
- updateComboForValue(getPreferenceStore().getString(getPreferenceName()));
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.preference.FieldEditor#doLoadDefault()
- */
- protected void doLoadDefault() {
- updateComboForValue(getPreferenceStore().getDefaultString(getPreferenceName()));
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.preference.FieldEditor#doStore()
- */
- protected void doStore() {
- if (value == null) {
- getPreferenceStore().setToDefault(getPreferenceName());
- } else {
- getPreferenceStore().setValue(getPreferenceName(), value);
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.preference.FieldEditor#getNumberOfControls()
- */
- public int getNumberOfControls() {
- return 2;
- }
-
- /*
- * Lazily create and return the Combo control.
- */
- private Text getTextControl(Composite parent) {
- if (goalsText == null) {
- goalsText = new Text(parent, SWT.BORDER);
- goalsText.setFont(parent.getFont());
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.preference.FieldEditor#doLoad()
+ */
+ protected void doLoad() {
+ updateComboForValue(getPreferenceStore().getString(getPreferenceName()));
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.preference.FieldEditor#doLoadDefault()
+ */
+ protected void doLoadDefault() {
+ updateComboForValue(getPreferenceStore().getDefaultString(getPreferenceName()));
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.preference.FieldEditor#doStore()
+ */
+ protected void doStore() {
+ if(value == null) {
+ getPreferenceStore().setToDefault(getPreferenceName());
+ } else {
+ getPreferenceStore().setValue(getPreferenceName(), value);
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.preference.FieldEditor#getNumberOfControls()
+ */
+ public int getNumberOfControls() {
+ return 2;
+ }
+
+ /*
+ * Lazily create and return the Combo control.
+ */
+ private Text getTextControl(Composite parent) {
+ if(goalsText == null) {
+ goalsText = new Text(parent, SWT.BORDER);
+ goalsText.setFont(parent.getFont());
// for (int i = 0; i < entryValues.length; i++) {
// goalsCombo.add(entryValues[i], i);
// }
@@ -153,26 +151,26 @@ public class GoalsFieldEditor extends FieldEditor {
// fireValueChanged(VALUE, oldValue, value);
// }
// });
- goalsText.addModifyListener(new ModifyListener() {
- public void modifyText(ModifyEvent modifyevent) {
- String oldValue = value;
- value = goalsText.getText();
- setPresentsDefaultValue(false);
- fireValueChanged(VALUE, oldValue, value);
- }
- });
- }
- return goalsText;
- }
-
- protected void setPresentsDefaultValue(boolean booleanValue) {
- super.setPresentsDefaultValue(booleanValue);
- }
-
- protected void fireValueChanged(String property, Object oldValue, Object newValue) {
- super.fireValueChanged(property, oldValue, newValue);
- }
-
+ goalsText.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent modifyevent) {
+ String oldValue = value;
+ value = goalsText.getText();
+ setPresentsDefaultValue(false);
+ fireValueChanged(VALUE, oldValue, value);
+ }
+ });
+ }
+ return goalsText;
+ }
+
+ protected void setPresentsDefaultValue(boolean booleanValue) {
+ super.setPresentsDefaultValue(booleanValue);
+ }
+
+ protected void fireValueChanged(String property, Object oldValue, Object newValue) {
+ super.fireValueChanged(property, oldValue, newValue);
+ }
+
// /*
// * Given the name (label) of an entry, return the corresponding value.
// */
@@ -185,12 +183,12 @@ public class GoalsFieldEditor extends FieldEditor {
// }
// return fEntryValues[0][0];
// }
-
- /*
- * Set the name in the combo widget to match the specified value.
- */
- private void updateComboForValue(String value) {
- this.value = value;
- goalsText.setText(value);
- }
+
+ /*
+ * Set the name in the combo widget to match the specified value.
+ */
+ private void updateComboForValue(String value) {
+ this.value = value;
+ goalsText.setText(value);
+ }
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/LifecycleMappingPropertyPage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/LifecycleMappingPropertyPage.java
index 30644535..7385f938 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/LifecycleMappingPropertyPage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/LifecycleMappingPropertyPage.java
@@ -39,9 +39,9 @@ public class LifecycleMappingPropertyPage extends PropertyPage {
public void setElement(IAdaptable element) {
super.setElement(element);
-
+
IProject project = (IProject) getElement().getAdapter(IProject.class);
- if (project != null) {
+ if(project != null) {
mappingsViewer.setTarget(project);
}
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/LocalArchetypeCatalogDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/LocalArchetypeCatalogDialog.java
index 8b58738f..1befee5d 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/LocalArchetypeCatalogDialog.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/LocalArchetypeCatalogDialog.java
@@ -16,18 +16,11 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
-import org.apache.maven.archetype.catalog.Archetype;
-import org.apache.maven.archetype.catalog.ArchetypeCatalog;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.jface.dialogs.DialogSettings;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.jface.dialogs.TitleAreaDialog;
-
-import org.eclipse.m2e.core.internal.archetype.ArchetypeCatalogFactory;
-import org.eclipse.m2e.core.internal.archetype.ArchetypeCatalogFactory.LocalCatalogFactory;
-import org.eclipse.m2e.core.ui.internal.Messages;
-import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
@@ -44,6 +37,15 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
+import org.apache.maven.archetype.catalog.Archetype;
+import org.apache.maven.archetype.catalog.ArchetypeCatalog;
+
+import org.eclipse.m2e.core.internal.archetype.ArchetypeCatalogFactory;
+import org.eclipse.m2e.core.internal.archetype.ArchetypeCatalogFactory.LocalCatalogFactory;
+import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
+import org.eclipse.m2e.core.ui.internal.Messages;
+
+
/**
* Local Archetype catalog dialog
*
@@ -54,7 +56,7 @@ public class LocalArchetypeCatalogDialog extends TitleAreaDialog {
private static final String DIALOG_SETTINGS = LocalArchetypeCatalogDialog.class.getName();
private static final String KEY_LOCATIONS = "catalogLocation"; //$NON-NLS-1$
-
+
private static final int MAX_HISTORY = 15;
private String title;
@@ -69,7 +71,6 @@ public class LocalArchetypeCatalogDialog extends TitleAreaDialog {
private ArchetypeCatalogFactory archetypeCatalogFactory;
-
protected LocalArchetypeCatalogDialog(Shell shell, ArchetypeCatalogFactory factory) {
super(shell);
this.archetypeCatalogFactory = factory;
@@ -119,7 +120,7 @@ public class LocalArchetypeCatalogDialog extends TitleAreaDialog {
FileDialog dialog = new FileDialog(getShell());
dialog.setText(Messages.LocalArchetypeCatalogDialog_dialog_title);
String location = dialog.open();
- if(location!=null) {
+ if(location != null) {
catalogLocationCombo.setText(location);
update();
}
@@ -132,13 +133,12 @@ public class LocalArchetypeCatalogDialog extends TitleAreaDialog {
catalogDescriptionText = new Text(composite, SWT.BORDER);
catalogDescriptionText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
-
-
- if(archetypeCatalogFactory!=null) {
+
+ if(archetypeCatalogFactory != null) {
catalogLocationCombo.setText(archetypeCatalogFactory.getId());
catalogDescriptionText.setText(archetypeCatalogFactory.getDescription());
}
-
+
ModifyListener modifyListener = new ModifyListener() {
public void modifyText(final ModifyEvent e) {
update();
@@ -168,9 +168,9 @@ public class LocalArchetypeCatalogDialog extends TitleAreaDialog {
protected void okPressed() {
String description = catalogDescriptionText.getText().trim();
String location = catalogLocationCombo.getText().trim();
-
+
archetypeCatalogFactory = new LocalCatalogFactory(location, description, true);
-
+
saveValue(KEY_LOCATIONS, location);
super.okPressed();
@@ -205,11 +205,11 @@ public class LocalArchetypeCatalogDialog extends TitleAreaDialog {
setMessage(null, IStatus.WARNING);
String location = catalogLocationCombo.getText().trim();
- if(location.length()==0) {
+ if(location.length() == 0) {
setErrorMessage(Messages.LocalArchetypeCatalogDialog_error_no_location);
return false;
}
-
+
if(!new File(location).exists()) {
setErrorMessage(Messages.LocalArchetypeCatalogDialog_error_exist);
return false;
@@ -219,10 +219,10 @@ public class LocalArchetypeCatalogDialog extends TitleAreaDialog {
ArchetypeCatalog archetypeCatalog = factory.getArchetypeCatalog();
@SuppressWarnings("unchecked")
List<Archetype> archetypes = archetypeCatalog.getArchetypes();
- if(archetypes==null || archetypes.size()==0) {
+ if(archetypes == null || archetypes.size() == 0) {
setMessage(Messages.LocalArchetypeCatalogDialog_error_empty, IStatus.WARNING);
}
-
+
return true;
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenArchetypesPreferencePage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenArchetypesPreferencePage.java
index e38c377c..bdef27cd 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenArchetypesPreferencePage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenArchetypesPreferencePage.java
@@ -57,9 +57,9 @@ import org.eclipse.ui.browser.IWebBrowser;
import org.eclipse.m2e.core.internal.MavenPluginActivator;
import org.eclipse.m2e.core.internal.archetype.ArchetypeCatalogFactory;
-import org.eclipse.m2e.core.internal.archetype.ArchetypeManager;
import org.eclipse.m2e.core.internal.archetype.ArchetypeCatalogFactory.LocalCatalogFactory;
import org.eclipse.m2e.core.internal.archetype.ArchetypeCatalogFactory.RemoteCatalogFactory;
+import org.eclipse.m2e.core.internal.archetype.ArchetypeManager;
import org.eclipse.m2e.core.ui.internal.Messages;
@@ -72,16 +72,17 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
private static final Logger log = LoggerFactory.getLogger(MavenArchetypesPreferencePage.class);
ArchetypeManager archetypeManager;
+
TableViewer archetypesViewer;
List<ArchetypeCatalogFactory> archetypeCatalogs;
-
+
public MavenArchetypesPreferencePage() {
setTitle(Messages.MavenArchetypesPreferencePage_title);
this.archetypeManager = MavenPluginActivator.getDefault().getArchetypeManager();
}
-
+
protected void performDefaults() {
for(Iterator<ArchetypeCatalogFactory> it = archetypeCatalogs.iterator(); it.hasNext();) {
ArchetypeCatalogFactory factory = it.next();
@@ -89,10 +90,10 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
it.remove();
}
}
-
+
archetypesViewer.setInput(archetypeCatalogs);
archetypesViewer.setSelection(null, true);
-
+
super.performDefaults();
}
@@ -108,17 +109,17 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
archetypeManager.addArchetypeCatalogFactory(factory);
}
}
-
+
try {
archetypeManager.saveCatalogs();
} catch(IOException ex) {
setErrorMessage(NLS.bind(Messages.MavenArchetypesPreferencePage_error, ex.getMessage()));
return false;
}
-
+
return super.performOk();
}
-
+
public void init(IWorkbench workbench) {
}
@@ -136,7 +137,8 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
addRemoveOrLink.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
try {
- URL url = new URL("http://maven.apache.org/plugins/maven-archetype-plugin/specification/archetype-catalog.html"); //$NON-NLS-1$
+ URL url = new URL(
+ "http://maven.apache.org/plugins/maven-archetype-plugin/specification/archetype-catalog.html"); //$NON-NLS-1$
IWebBrowser browser = PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser();
browser.openURL(url);
} catch(MalformedURLException ex) {
@@ -144,7 +146,7 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
} catch(PartInitException ex) {
log.error(ex.getMessage(), ex);
}
- }
+ }
});
// archetypesViewer = CheckboxTableViewer.newCheckList(composite, SWT.BORDER | SWT.FULL_SELECTION);
@@ -160,13 +162,13 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
}
return new Object[0];
}
-
+
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
}
public void dispose() {
}
-
+
});
Table table = archetypesViewer.getTable();
@@ -184,7 +186,7 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
addLocalButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
LocalArchetypeCatalogDialog dialog = new LocalArchetypeCatalogDialog(getShell(), null);
- if (dialog.open()==Window.OK) {
+ if(dialog.open() == Window.OK) {
ArchetypeCatalogFactory factory = dialog.getArchetypeCatalogFactory();
archetypeCatalogs.add(factory);
archetypesViewer.setInput(archetypeCatalogs);
@@ -199,7 +201,7 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
addRemoteButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
RemoteArchetypeCatalogDialog dialog = new RemoteArchetypeCatalogDialog(getShell(), null);
- if (dialog.open()==Window.OK) {
+ if(dialog.open() == Window.OK) {
ArchetypeCatalogFactory factory = dialog.getArchetypeCatalogFactory();
archetypeCatalogs.add(factory);
archetypesViewer.setInput(archetypeCatalogs);
@@ -207,7 +209,7 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
}
}
});
-
+
final Button editButton = new Button(composite, SWT.NONE);
editButton.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false));
editButton.setEnabled(false);
@@ -218,18 +220,18 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
ArchetypeCatalogFactory newFactory = null;
if(factory instanceof LocalCatalogFactory) {
LocalArchetypeCatalogDialog dialog = new LocalArchetypeCatalogDialog(getShell(), factory);
- if (dialog.open()==Window.OK) {
+ if(dialog.open() == Window.OK) {
newFactory = dialog.getArchetypeCatalogFactory();
}
} else if(factory instanceof RemoteCatalogFactory) {
RemoteArchetypeCatalogDialog dialog = new RemoteArchetypeCatalogDialog(getShell(), factory);
- if (dialog.open()==Window.OK) {
+ if(dialog.open() == Window.OK) {
newFactory = dialog.getArchetypeCatalogFactory();
}
}
- if(newFactory!=null) {
+ if(newFactory != null) {
int n = archetypeCatalogs.indexOf(factory);
- if(n>-1) {
+ if(n > -1) {
archetypeCatalogs.set(n, newFactory);
archetypesViewer.setInput(archetypeCatalogs);
archetypesViewer.setSelection(new StructuredSelection(newFactory), true);
@@ -250,7 +252,7 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
archetypesViewer.setSelection(null, true);
}
});
-
+
archetypesViewer.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
if(archetypesViewer.getSelection() instanceof IStructuredSelection) {
@@ -261,11 +263,11 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
}
}
});
-
+
archetypeCatalogs = new ArrayList<ArchetypeCatalogFactory>(archetypeManager.getArchetypeCatalogs());
archetypesViewer.setInput(archetypeCatalogs);
- archetypesViewer.refresh(); // should listen on property changes instead?
-
+ archetypesViewer.refresh(); // should listen on property changes instead?
+
return composite;
}
@@ -274,9 +276,8 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
return (ArchetypeCatalogFactory) selection.getFirstElement();
}
-
static class CatalogsLabelProvider implements ITableLabelProvider, IColorProvider {
-
+
private Color disabledColor = Display.getCurrent().getSystemColor(SWT.COLOR_DARK_GRAY);
public String getColumnText(Object element, int columnIndex) {
@@ -285,13 +286,13 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
return NLS.bind(Messages.MavenArchetypesPreferencePage_local, factory.getDescription());
} else if(factory instanceof RemoteCatalogFactory) {
if(factory.isEditable()) {
- return NLS.bind(Messages.MavenArchetypesPreferencePage_remote,factory.getDescription());
+ return NLS.bind(Messages.MavenArchetypesPreferencePage_remote, factory.getDescription());
}
return NLS.bind(Messages.MavenArchetypesPreferencePage_packaged, factory.getDescription());
}
return factory.getDescription();
}
-
+
public Image getColumnImage(Object element, int columnIndex) {
return null;
}
@@ -304,7 +305,7 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
ArchetypeCatalogFactory factory = (ArchetypeCatalogFactory) element;
return !factory.isEditable() ? disabledColor : null;
}
-
+
public void dispose() {
}
@@ -314,10 +315,10 @@ public class MavenArchetypesPreferencePage extends PreferencePage implements IWo
public void addListener(ILabelProviderListener listener) {
}
-
+
public void removeListener(ILabelProviderListener listener) {
}
}
-
+
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenGoalSelectionAdapter.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenGoalSelectionAdapter.java
index 10f316b9..97a26369 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenGoalSelectionAdapter.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenGoalSelectionAdapter.java
@@ -12,61 +12,64 @@
package org.eclipse.m2e.core.ui.internal.preferences;
import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.m2e.core.ui.internal.dialogs.MavenGoalSelectionDialog;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
+import org.eclipse.m2e.core.ui.internal.dialogs.MavenGoalSelectionDialog;
+
+
public class MavenGoalSelectionAdapter extends SelectionAdapter {
- private Shell shell;
- private Text text;
+ private Shell shell;
- public MavenGoalSelectionAdapter(Text text, Shell shell) {
- this.text = text;
- this.shell = shell;
- }
+ private Text text;
+
+ public MavenGoalSelectionAdapter(Text text, Shell shell) {
+ this.text = text;
+ this.shell = shell;
+ }
- public void widgetSelected(SelectionEvent e) {
+ public void widgetSelected(SelectionEvent e) {
// String fileName = Util.substituteVar(fPomDirName.getText());
// if(!isDirectoryExist(fileName)) {
// MessageDialog.openError(getShell(), Messages.getString("launch.errorPomMissing"),
// Messages.getString("launch.errorSelectPom")); //$NON-NLS-1$ //$NON-NLS-2$
// return;
// }
- MavenGoalSelectionDialog dialog = new MavenGoalSelectionDialog(shell);
- int rc = dialog.open();
- if(rc == IDialogConstants.OK_ID) {
- text.insert(""); // clear selected text //$NON-NLS-1$
-
- String txt = text.getText();
- int len = txt.length();
- int pos = text.getCaretPosition();
-
- StringBuffer sb = new StringBuffer();
- if((pos > 0 && txt.charAt(pos - 1) != ' ')) {
- sb.append(' ');
- }
+ MavenGoalSelectionDialog dialog = new MavenGoalSelectionDialog(shell);
+ int rc = dialog.open();
+ if(rc == IDialogConstants.OK_ID) {
+ text.insert(""); // clear selected text //$NON-NLS-1$
- String sep = ""; //$NON-NLS-1$
- Object[] o = dialog.getResult();
- for(int i = 0; i < o.length; i++ ) {
- if(o[i] instanceof MavenGoalSelectionDialog.Entry) {
- if(dialog.isQualifiedName()) {
- sb.append(sep).append(((MavenGoalSelectionDialog.Entry) o[i]).getQualifiedName());
- } else {
- sb.append(sep).append(((MavenGoalSelectionDialog.Entry) o[i]).getName());
- }
+ String txt = text.getText();
+ int len = txt.length();
+ int pos = text.getCaretPosition();
+
+ StringBuffer sb = new StringBuffer();
+ if((pos > 0 && txt.charAt(pos - 1) != ' ')) {
+ sb.append(' ');
+ }
+
+ String sep = ""; //$NON-NLS-1$
+ Object[] o = dialog.getResult();
+ for(int i = 0; i < o.length; i++ ) {
+ if(o[i] instanceof MavenGoalSelectionDialog.Entry) {
+ if(dialog.isQualifiedName()) {
+ sb.append(sep).append(((MavenGoalSelectionDialog.Entry) o[i]).getQualifiedName());
+ } else {
+ sb.append(sep).append(((MavenGoalSelectionDialog.Entry) o[i]).getName());
}
- sep = " "; //$NON-NLS-1$
- }
-
- if(pos < len && txt.charAt(pos) != ' ') {
- sb.append(' ');
}
-
- text.insert(sb.toString());
- text.setFocus();
+ sep = " "; //$NON-NLS-1$
}
+
+ if(pos < len && txt.charAt(pos) != ' ') {
+ sb.append(' ');
+ }
+
+ text.insert(sb.toString());
+ text.setFocus();
}
- } \ No newline at end of file
+ }
+}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenInstallationsPreferencePage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenInstallationsPreferencePage.java
index bd4d5569..c2105492 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenInstallationsPreferencePage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenInstallationsPreferencePage.java
@@ -97,9 +97,9 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
private static final Logger log = LoggerFactory.getLogger(MavenInstallationsPreferencePage.class);
final MavenRuntimeManager runtimeManager;
-
+
final IMavenConfiguration mavenConfiguration;
-
+
final IMaven maven;
MavenRuntime defaultRuntime;
@@ -109,7 +109,7 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
CheckboxTableViewer runtimesViewer;
Text globalSettingsText;
-
+
private String globalSettings;
boolean dirty = false;
@@ -133,8 +133,8 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
runtimesViewer.setInput(runtimes);
runtimesViewer.setChecked(defaultRuntime, true);
- runtimesViewer.refresh();
-
+ runtimesViewer.refresh();
+
storeCustom(""); //$NON-NLS-1$
globalSettingsText.setText(""); //$NON-NLS-1$
try {
@@ -142,14 +142,13 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
} catch(CoreException e) {
log.error(e.getMessage(), e);
}
-
+
updateGlobals(true);
super.performDefaults();
setDirty(true);
}
-
-
- protected void storeCustom(String dir){
+
+ protected void storeCustom(String dir) {
M2EUIPluginActivator.getDefault().getPreferenceStore().setValue(P_MAVEN_CUSTOM_GLOBAL, dir == null ? "" : dir); //$NON-NLS-1$
}
@@ -173,7 +172,7 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
log.error(e.getMessage(), e);
throw new RuntimeException(e.getMessage(), e);
}
- if(defaultRuntime == null || defaultRuntime instanceof MavenEmbeddedRuntime){
+ if(defaultRuntime == null || defaultRuntime instanceof MavenEmbeddedRuntime) {
storeCustom(dir);
}
IndexManager indexManager = MavenPlugin.getIndexManager();
@@ -182,48 +181,51 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
} catch(CoreException ex) {
return ex.getStatus();
}
- if((dir == null && oldSettings != null) || (dir != null && !(dir.equals(oldSettings)))){
+ if((dir == null && oldSettings != null) || (dir != null && !(dir.equals(oldSettings)))) {
//mavenPlugin.getIndexManager().scheduleIndexUpdate(IndexManager.LOCAL_INDEX, true, 0L);
}
return Status.OK_STATUS;
}
}.schedule();
}
-
+
@Override
public boolean performOk() {
- if (dirty) {
+ if(dirty) {
updateSettings();
}
return true;
}
-
- public void setDirty(boolean dirty){
+
+ public void setDirty(boolean dirty) {
this.dirty = dirty;
}
-
- public boolean isDirty(){
+
+ public boolean isDirty() {
return this.dirty;
}
-
- protected boolean validateMavenInstall(String dir){
- if(dir == null || dir.length() == 0){
+
+ protected boolean validateMavenInstall(String dir) {
+ if(dir == null || dir.length() == 0) {
return false;
}
File selectedDir = new File(dir);
- if(!selectedDir.isDirectory()){
- MessageDialog.openError(getShell(), Messages.MavenInstallationsPreferencePage_error_title, Messages.MavenInstallationsPreferencePage_error_message);
+ if(!selectedDir.isDirectory()) {
+ MessageDialog.openError(getShell(), Messages.MavenInstallationsPreferencePage_error_title,
+ Messages.MavenInstallationsPreferencePage_error_message);
return false;
}
File binDir = new File(dir, "bin"); //$NON-NLS-1$
File confDir = new File(dir, "conf"); //$NON-NLS-1$
File libDir = new File(dir, "lib"); //$NON-NLS-1$
- if(!binDir.exists() || !confDir.exists() || !libDir.exists()){
- MessageDialog.openError(getShell(), Messages.MavenInstallationsPreferencePage_error_title, Messages.MavenInstallationsPreferencePage_error2_message);
+ if(!binDir.exists() || !confDir.exists() || !libDir.exists()) {
+ MessageDialog.openError(getShell(), Messages.MavenInstallationsPreferencePage_error_title,
+ Messages.MavenInstallationsPreferencePage_error2_message);
return false;
}
return true;
}
+
protected Control createContents(Composite parent) {
Composite composite = new Composite(parent, SWT.NONE);
@@ -237,12 +239,10 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
Label link = new Label(composite, SWT.NONE);
link.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 3, 1));
link.setText(Messages.MavenInstallationsPreferencePage_link);
-
createTable(composite);
createGlobalSettings(composite);
-
defaultRuntime = runtimeManager.getDefaultRuntime();
runtimes = runtimeManager.getMavenRuntimes();
@@ -257,13 +257,13 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
setGlobalSettingsText(globalSettingsText.getText());
updateGlobalSettingsLink();
checkSettings();
- setDirty(true);
+ setDirty(true);
}
});
return composite;
}
-
+
/**
*
*/
@@ -271,30 +271,34 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
String globalSettings = getGlobalSettingsFile(useLastCustomGlobal);
globalSettingsText.setText(globalSettings == null ? "" : globalSettings); //$NON-NLS-1$
}
-
+
/**
* Use this to retrieve the global settings file which has not been applied yet
+ *
* @return
*/
private String getGlobalSettingsFile(boolean useLastCustomGlobal) {
- if(defaultRuntime == null || defaultRuntime instanceof MavenEmbeddedRuntime){
+ if(defaultRuntime == null || defaultRuntime instanceof MavenEmbeddedRuntime) {
String globalSettings = null;
- if(useLastCustomGlobal){
+ if(useLastCustomGlobal) {
globalSettings = M2EUIPluginActivator.getDefault().getPreferenceStore().getString(P_MAVEN_CUSTOM_GLOBAL);
} else {
- globalSettings = M2EUIPluginActivator.getDefault().getPreferenceStore().getString(MavenPreferenceConstants.P_GLOBAL_SETTINGS_FILE);
+ globalSettings = M2EUIPluginActivator.getDefault().getPreferenceStore()
+ .getString(MavenPreferenceConstants.P_GLOBAL_SETTINGS_FILE);
}
- return globalSettings.trim().length()==0 ? null : globalSettings;
+ return globalSettings.trim().length() == 0 ? null : globalSettings;
}
return defaultRuntime == null ? null : defaultRuntime.getSettings();
- }
-
- public void setGlobalSettingsText(String settings){
+ }
+
+ public void setGlobalSettingsText(String settings) {
this.globalSettings = settings;
}
- public String getGlobalSettingsText(){
+
+ public String getGlobalSettingsText() {
return this.globalSettings;
}
+
/**
*
*/
@@ -307,55 +311,55 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
private Link globalSettingsLink;
private Button globalSettingsBrowseButton;
-
- private MavenRuntime getCheckedRuntime(){
+
+ private MavenRuntime getCheckedRuntime() {
Object[] runtimes = runtimesViewer.getCheckedElements();
- if(runtimes != null && runtimes.length > 0){
- return (MavenRuntime)runtimes[0];
+ if(runtimes != null && runtimes.length > 0) {
+ return (MavenRuntime) runtimes[0];
}
return null;
}
-
- protected MavenRuntime getSelectedMavenRuntime(){
- IStructuredSelection sel = (IStructuredSelection)runtimesViewer.getSelection();
+
+ protected MavenRuntime getSelectedMavenRuntime() {
+ IStructuredSelection sel = (IStructuredSelection) runtimesViewer.getSelection();
return (MavenRuntime) sel.getFirstElement();
}
-
- private void updateGlobalSettingsLink(){
+
+ private void updateGlobalSettingsLink() {
MavenRuntime runtime = getCheckedRuntime();
String text = ""; //$NON-NLS-1$
String currText = globalSettingsText.getText();
boolean showURL = false;
-
+
File f = new File(currText);
- if(f.exists()){
+ if(f.exists()) {
showURL = true;
}
String openFile = showURL ? Messages.MavenInstallationsPreferencePage_link_open : ""; //$NON-NLS-1$
- if(runtime instanceof MavenEmbeddedRuntime){
+ if(runtime instanceof MavenEmbeddedRuntime) {
text = NLS.bind(Messages.MavenInstallationsPreferencePage_settings, openFile);
} else {
text = NLS.bind(Messages.MavenInstallationsPreferencePage_settings_install, openFile);
}
globalSettingsLink.setText(text);
}
-
- private void updateGlobalSettingsBrowseButton(){
+
+ private void updateGlobalSettingsBrowseButton() {
MavenRuntime runtime = getCheckedRuntime();
boolean enabled = (runtime != null && (runtime instanceof MavenEmbeddedRuntime));
globalSettingsBrowseButton.setEnabled(enabled);
globalSettingsText.setEditable(enabled);
}
-
+
private void createGlobalSettings(Composite composite) {
globalSettingsLink = new Link(composite, SWT.NONE);
globalSettingsLink.setData("name", "globalSettingsLink"); //$NON-NLS-1$ //$NON-NLS-2$
-
+
globalSettingsLink.setToolTipText(Messages.MavenInstallationsPreferencePage_link_global);
GridData gd = new GridData(SWT.FILL, SWT.CENTER, true, false, 3, 1);
gd.verticalIndent = 25;
globalSettingsLink.setLayoutData(gd);
-
+
globalSettingsLink.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
String globalSettings = getGlobalSettings();
@@ -391,9 +395,8 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
}
});
}
-
- private void createTable(Composite composite){
+ private void createTable(Composite composite) {
runtimesViewer = CheckboxTableViewer.newCheckList(composite, SWT.BORDER | SWT.FULL_SELECTION);
runtimesViewer.setLabelProvider(new RuntimesLabelProvider());
@@ -436,20 +439,21 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
dlg.setText(Messages.MavenInstallationsPreferencePage_dialog_install_title);
dlg.setMessage(Messages.MavenInstallationsPreferencePage_dialog_install_message);
String dir = dlg.open();
- if(dir == null){
+ if(dir == null) {
return;
}
boolean ok = validateMavenInstall(dir);
- if(ok){
+ if(ok) {
MavenRuntime runtime = MavenRuntimeManager.createExternalRuntime(dir);
if(runtimes.contains(runtime)) {
- MessageDialog.openError(getShell(), Messages.MavenInstallationsPreferencePage_error_title, Messages.MavenInstallationsPreferencePage_error3_message);
+ MessageDialog.openError(getShell(), Messages.MavenInstallationsPreferencePage_error_title,
+ Messages.MavenInstallationsPreferencePage_error3_message);
} else {
runtimes.add(runtime);
runtimesViewer.refresh();
runtimesViewer.setAllChecked(false);
runtimesViewer.setChecked(runtime, true);
- if(runtime != null){
+ if(runtime != null) {
setCheckedRuntime(runtime);
}
}
@@ -473,12 +477,13 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
if(ok && !dir.equals(runtime.getLocation())) {
MavenRuntime newRuntime = MavenRuntimeManager.createExternalRuntime(dir);
if(runtimes.contains(newRuntime)) {
- MessageDialog.openError(getShell(), Messages.MavenInstallationsPreferencePage_error_title, Messages.MavenInstallationsPreferencePage_error4_message);
+ MessageDialog.openError(getShell(), Messages.MavenInstallationsPreferencePage_error_title,
+ Messages.MavenInstallationsPreferencePage_error4_message);
} else {
runtimes.set(runtimes.indexOf(runtime), newRuntime);
runtimesViewer.refresh();
setDirty(true);
- if(newRuntime != null){
+ if(newRuntime != null) {
setCheckedRuntime(newRuntime);
}
}
@@ -518,9 +523,9 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
runtimesViewer.addCheckStateListener(new ICheckStateListener() {
public void checkStateChanged(CheckStateChangedEvent event) {
- if(event.getElement() != null && event.getChecked()){
-
- setCheckedRuntime((MavenRuntime)event.getElement());
+ if(event.getElement() != null && event.getChecked()) {
+
+ setCheckedRuntime((MavenRuntime) event.getElement());
}
}
});
@@ -528,10 +533,10 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
GridData noteLabelData = new GridData(SWT.FILL, SWT.TOP, false, false, 2, 1);
noteLabelData.horizontalIndent = 15;
noteLabelData.widthHint = 100;
-
+
noteLabel.setLayoutData(noteLabelData);
- noteLabel.setText(Messages.MavenInstallationsPreferencePage_lblNote1 +
- Messages.MavenInstallationsPreferencePage_lblNote2);
+ noteLabel.setText(Messages.MavenInstallationsPreferencePage_lblNote1
+ + Messages.MavenInstallationsPreferencePage_lblNote2);
noteLabel.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
try {
@@ -546,10 +551,10 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
}
});
}
-
+
private static final String P_MAVEN_CUSTOM_GLOBAL = "customGlobalSettingsFile"; //$NON-NLS-1$
-
- protected void setCheckedRuntime(MavenRuntime runtime){
+
+ protected void setCheckedRuntime(MavenRuntime runtime) {
runtimesViewer.setAllChecked(false);
runtimesViewer.setChecked(runtime, true);
defaultRuntime = runtime;
@@ -575,13 +580,12 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
List<SettingsProblem> result = maven.validateSettings(globalSettings);
if(result.size() > 0) {
- setMessage(Messages.MavenInstallationsPreferencePage_error_global_parse + result.get(0).getMessage(), IMessageProvider.WARNING);
+ setMessage(Messages.MavenInstallationsPreferencePage_error_global_parse + result.get(0).getMessage(),
+ IMessageProvider.WARNING);
}
}
-
-
@SuppressWarnings("rawtypes")
void openEditor(final String fileName) {
// XXX create new settings.xml if does not exist
@@ -626,7 +630,6 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
}
}
-
void invalidateMavenSettings(final boolean reindex) {
// new Job("Invalidating Maven settings") {
// protected IStatus run(IProgressMonitor monitor) {
@@ -638,6 +641,7 @@ public class MavenInstallationsPreferencePage extends PreferencePage implements
// }
// }.schedule();
}
+
String getGlobalSettings() {
return globalSettingsText.getText().trim();
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenPreferencePage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenPreferencePage.java
index 89c2d53d..d8704424 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenPreferencePage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenPreferencePage.java
@@ -15,24 +15,15 @@ package org.eclipse.m2e.core.ui.internal.preferences;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.eclipse.core.internal.filesystem.local.LocalFile;
import org.eclipse.jface.preference.BooleanFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.ide.IDE;
-import org.eclipse.m2e.core.internal.MavenPluginActivator;
import org.eclipse.m2e.core.internal.preferences.MavenPreferenceConstants;
import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
import org.eclipse.m2e.core.ui.internal.Messages;
@@ -41,7 +32,7 @@ import org.eclipse.m2e.core.ui.internal.Messages;
public class MavenPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
private static final Logger log = LoggerFactory.getLogger(MavenPreferencePage.class);
-
+
public MavenPreferencePage() {
super(GRID);
setPreferenceStore(M2EUIPluginActivator.getDefault().getPreferenceStore());
@@ -64,32 +55,29 @@ public class MavenPreferencePage extends FieldEditorPreferencePage implements IW
Messages.preferencesGlobalUpdateNever, getFieldEditorParent()));
addField(new BooleanFieldEditor(MavenPreferenceConstants.P_DEBUG_OUTPUT, //
- Messages.preferencesDebugOutput,
- getFieldEditorParent()));
+ Messages.preferencesDebugOutput, getFieldEditorParent()));
// addField( new BooleanFieldEditor( MavenPreferenceConstants.P_UPDATE_SNAPSHOTS,
// Messages.getString( "preferences.updateSnapshots" ), //$NON-NLS-1$
// getFieldEditorParent() ) );
addField(new BooleanFieldEditor(MavenPreferenceConstants.P_DOWNLOAD_SOURCES, //
- Messages.preferencesDownloadSources,
- getFieldEditorParent()));
+ Messages.preferencesDownloadSources, getFieldEditorParent()));
addField(new BooleanFieldEditor(MavenPreferenceConstants.P_DOWNLOAD_JAVADOC, //
- Messages.preferencesDownloadJavadoc,
- getFieldEditorParent()));
+ Messages.preferencesDownloadJavadoc, getFieldEditorParent()));
addField(new BooleanFieldEditor(MavenPreferenceConstants.P_UPDATE_INDEXES, //
Messages.MavenPreferencePage_download, //
getFieldEditorParent()));
-
+
addField(new BooleanFieldEditor(MavenPreferenceConstants.P_UPDATE_PROJECTS, //
Messages.MavenPreferencePage_update, //
getFieldEditorParent()));
-
+
addField(new BooleanFieldEditor(MavenPreferenceConstants.P_HIDE_FOLDERS_OF_NESTED_PROJECTS, //
Messages.MavenPreferencePage_hide, getFieldEditorParent()));
-
+
GridData comboCompositeGridData = new GridData();
comboCompositeGridData.verticalIndent = 25;
comboCompositeGridData.horizontalSpan = 3;
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenProjectPreferencePage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenProjectPreferencePage.java
index 36cb144c..9dc7f03b 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenProjectPreferencePage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenProjectPreferencePage.java
@@ -38,17 +38,19 @@ import org.eclipse.m2e.core.project.IProjectConfigurationManager;
import org.eclipse.m2e.core.project.ResolverConfiguration;
import org.eclipse.m2e.core.ui.internal.Messages;
+
/**
* Maven project preference page
- *
+ *
* @author Eugene Kuleshov
*/
public class MavenProjectPreferencePage extends PropertyPage {
private static final Logger log = LoggerFactory.getLogger(MavenProjectPreferencePage.class);
private Button resolveWorspaceProjectsButton;
+
// private Button includeModulesButton;
-
+
private Text selectedProfilesText;
public MavenProjectPreferencePage() {
@@ -93,14 +95,14 @@ public class MavenProjectPreferencePage extends PropertyPage {
// + "project build path (use \"Update Sources\" action)");
init(getResolverConfiguration());
-
+
return composite;
}
protected void performDefaults() {
init(new ResolverConfiguration());
}
-
+
private void init(ResolverConfiguration configuration) {
resolveWorspaceProjectsButton.setSelection(configuration.shouldResolveWorkspaceProjects());
@@ -122,37 +124,37 @@ public class MavenProjectPreferencePage extends PropertyPage {
final ResolverConfiguration configuration = getResolverConfiguration();
if(configuration.getSelectedProfiles().equals(selectedProfilesText.getText()) &&
// configuration.shouldIncludeModules()==includeModulesButton.getSelection() &&
- configuration.shouldResolveWorkspaceProjects()==resolveWorspaceProjectsButton.getSelection()) {
+ configuration.shouldResolveWorkspaceProjects() == resolveWorspaceProjectsButton.getSelection()) {
return true;
}
-
+
configuration.setResolveWorkspaceProjects(resolveWorspaceProjectsButton.getSelection());
// configuration.setIncludeModules(includeModulesButton.getSelection());
configuration.setSelectedProfiles(selectedProfilesText.getText());
-
+
IProjectConfigurationManager projectManager = MavenPlugin.getProjectConfigurationManager();
boolean isSet = projectManager.setResolverConfiguration(getProject(), configuration);
if(isSet) {
- boolean res = MessageDialog.openQuestion(getShell(), Messages.MavenProjectPreferencePage_dialog_title, //
- Messages.MavenProjectPreferencePage_dialog_message);
- if(res) {
- WorkspaceJob job = new WorkspaceJob(NLS.bind(Messages.MavenProjectPreferencePage_job, project.getName() )) {
- public IStatus runInWorkspace(IProgressMonitor monitor) {
- try {
- MavenPlugin.getProjectConfigurationManager().updateProjectConfiguration(project, monitor);
- } catch(CoreException ex) {
- return ex.getStatus();
- }
- return Status.OK_STATUS;
+ boolean res = MessageDialog.openQuestion(getShell(), Messages.MavenProjectPreferencePage_dialog_title, //
+ Messages.MavenProjectPreferencePage_dialog_message);
+ if(res) {
+ WorkspaceJob job = new WorkspaceJob(NLS.bind(Messages.MavenProjectPreferencePage_job, project.getName())) {
+ public IStatus runInWorkspace(IProgressMonitor monitor) {
+ try {
+ MavenPlugin.getProjectConfigurationManager().updateProjectConfiguration(project, monitor);
+ } catch(CoreException ex) {
+ return ex.getStatus();
}
- };
- job.setRule(MavenPlugin.getProjectConfigurationManager().getRule());
- job.schedule();
- }
+ return Status.OK_STATUS;
+ }
+ };
+ job.setRule(MavenPlugin.getProjectConfigurationManager().getRule());
+ job.schedule();
+ }
}
-
+
return isSet;
}
@@ -166,4 +168,3 @@ public class MavenProjectPreferencePage extends PropertyPage {
}
}
-
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenSettingsPreferencePage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenSettingsPreferencePage.java
index 6eb02459..0a171918 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenSettingsPreferencePage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/MavenSettingsPreferencePage.java
@@ -82,9 +82,9 @@ public class MavenSettingsPreferencePage extends PreferencePage implements IWork
private static final Logger log = LoggerFactory.getLogger(MavenSettingsPreferencePage.class);
final MavenRuntimeManager runtimeManager;
-
+
final IMavenConfiguration mavenConfiguration;
-
+
final IMaven maven;
MavenRuntime defaultRuntime;
@@ -108,13 +108,12 @@ public class MavenSettingsPreferencePage extends PreferencePage implements IWork
public void init(IWorkbench workbench) {
}
-
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.DialogPage#setVisible(boolean)
*/
public void setVisible(boolean visible) {
super.setVisible(visible);
- if(visible){
+ if(visible) {
updateLocalRepository();
}
}
@@ -126,9 +125,9 @@ public class MavenSettingsPreferencePage extends PreferencePage implements IWork
super.performDefaults();
}
- protected void updateSettings(final boolean updateMavenDependencies){
+ protected void updateSettings(final boolean updateMavenDependencies) {
final String userSettings = getUserSettings();
-
+
new Job(org.eclipse.m2e.core.ui.internal.Messages.MavenSettingsPreferencePage_job_updating) {
protected IStatus run(IProgressMonitor monitor) {
try {
@@ -146,50 +145,50 @@ public class MavenSettingsPreferencePage extends PreferencePage implements IWork
IndexManager indexManager = MavenPlugin.getIndexManager();
indexManager.getWorkspaceIndex().updateIndex(true, monitor);
}
- if(updateMavenDependencies){
+ if(updateMavenDependencies) {
IMavenProjectFacade[] projects = MavenPlugin.getMavenProjectRegistry().getProjects();
ArrayList<IProject> allProjects = new ArrayList<IProject>();
- if(projects != null){
+ if(projects != null) {
MavenPlugin.getMaven().reloadSettings();
SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, projects.length);
- for(int i=0;i<projects.length;i++){
- subMonitor.beginTask(NLS.bind(org.eclipse.m2e.core.ui.internal.Messages.MavenSettingsPreferencePage_task_updating, projects[i].getProject().getName()), 1);
+ for(int i = 0; i < projects.length; i++ ) {
+ subMonitor.beginTask(NLS.bind(
+ org.eclipse.m2e.core.ui.internal.Messages.MavenSettingsPreferencePage_task_updating, projects[i]
+ .getProject().getName()), 1);
allProjects.add(projects[i].getProject());
}
- MavenPlugin.getMavenProjectRegistry()
- .refresh(
- new MavenUpdateRequest(allProjects.toArray(new IProject[] {}), mavenConfiguration.isOffline(),
- true));
+ MavenPlugin.getMavenProjectRegistry().refresh(
+ new MavenUpdateRequest(allProjects.toArray(new IProject[] {}), mavenConfiguration.isOffline(), true));
subMonitor.done();
}
}
return Status.OK_STATUS;
- } catch (CoreException e) {
+ } catch(CoreException e) {
log.error(e.getMessage(), e);
return e.getStatus();
}
}
}.schedule();
}
-
+
protected void performApply() {
- if(dirty){
+ if(dirty) {
updateSettings(false);
}
}
-
+
public boolean performOk() {
- if (dirty) {
+ if(dirty) {
updateSettings(false);
}
return true;
}
-
- public void setDirty(boolean dirty){
+
+ public void setDirty(boolean dirty) {
this.dirty = dirty;
}
-
- public boolean isDirty(){
+
+ public boolean isDirty() {
return this.dirty;
}
@@ -205,30 +204,30 @@ public class MavenSettingsPreferencePage extends PreferencePage implements IWork
createUserSettings(composite);
Label localRepositoryLabel = new Label(composite, SWT.NONE);
GridData gd = new GridData(SWT.FILL, SWT.CENTER, true, false, 4, 1);
- gd.verticalIndent=25;
+ gd.verticalIndent = 25;
localRepositoryLabel.setLayoutData(gd);
localRepositoryLabel.setText(org.eclipse.m2e.core.ui.internal.Messages.MavenSettingsPreferencePage_lblLocal);
-
- localRepositoryText = new Text(composite, SWT.READ_ONLY|SWT.BORDER);
+
+ localRepositoryText = new Text(composite, SWT.READ_ONLY | SWT.BORDER);
localRepositoryText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 3, 1));
localRepositoryText.setData("name", "localRepositoryText"); //$NON-NLS-1$ //$NON-NLS-2$
localRepositoryText.setEditable(false);
Button reindexButton = new Button(composite, SWT.NONE);
reindexButton.setLayoutData(new GridData(SWT.FILL, SWT.RIGHT, false, false, 1, 1));
reindexButton.setText(Messages.preferencesReindexButton);
- reindexButton.addSelectionListener(new SelectionAdapter(){
+ reindexButton.addSelectionListener(new SelectionAdapter() {
/* (non-Javadoc)
* @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
*/
public void widgetSelected(SelectionEvent e) {
new WorkspaceJob(org.eclipse.m2e.core.ui.internal.Messages.MavenSettingsPreferencePage_job_indexing) {
- public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
+ public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
IndexManager indexManager = MavenPlugin.getIndexManager();
- indexManager.getWorkspaceIndex().updateIndex(true, monitor);
- return Status.OK_STATUS;
- }
- }.schedule();
+ indexManager.getWorkspaceIndex().updateIndex(true, monitor);
+ return Status.OK_STATUS;
+ }
+ }.schedule();
}
});
defaultRuntime = runtimeManager.getDefaultRuntime();
@@ -253,14 +252,15 @@ public class MavenSettingsPreferencePage extends PreferencePage implements IWork
return composite;
}
-
- public void updateSettingsLink(boolean active){
+
+ public void updateSettingsLink(boolean active) {
String text = org.eclipse.m2e.core.ui.internal.Messages.MavenSettingsPreferencePage_link1;
- if(active){
+ if(active) {
text = org.eclipse.m2e.core.ui.internal.Messages.MavenSettingsPreferencePage_link2;
}
userSettingsLink.setText(text);
}
+
/**
* @param composite
*/
@@ -271,7 +271,7 @@ public class MavenSettingsPreferencePage extends PreferencePage implements IWork
userSettingsLink.setText(org.eclipse.m2e.core.ui.internal.Messages.MavenSettingsPreferencePage_link2);
userSettingsLink.setToolTipText(org.eclipse.m2e.core.ui.internal.Messages.MavenSettingsPreferencePage_link_tooltip);
GridData gd_userSettingsLabel = new GridData(SWT.FILL, SWT.CENTER, true, false, 4, 1);
-
+
gd_userSettingsLabel.verticalIndent = 15;
userSettingsLink.setLayoutData(gd_userSettingsLabel);
userSettingsLink.addSelectionListener(new SelectionAdapter() {
@@ -292,7 +292,7 @@ public class MavenSettingsPreferencePage extends PreferencePage implements IWork
Button userSettingsBrowseButton = new Button(composite, SWT.NONE);
GridData gd_userSettingsBrowseButton = new GridData(SWT.FILL, SWT.RIGHT, false, false, 1, 1);
-
+
userSettingsBrowseButton.setLayoutData(gd_userSettingsBrowseButton);
userSettingsBrowseButton.setText(org.eclipse.m2e.core.ui.internal.Messages.MavenSettingsPreferencePage_btnBrowse);
userSettingsBrowseButton.addSelectionListener(new SelectionAdapter() {
@@ -312,11 +312,11 @@ public class MavenSettingsPreferencePage extends PreferencePage implements IWork
}
}
});
-
+
Button updateSettings = new Button(composite, SWT.NONE);
updateSettings.setText(org.eclipse.m2e.core.ui.internal.Messages.MavenSettingsPreferencePage_btnUpdate);
- updateSettings.addSelectionListener(new SelectionAdapter(){
- public void widgetSelected(SelectionEvent e){
+ updateSettings.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
updateSettings(true);
}
});
@@ -328,13 +328,13 @@ public class MavenSettingsPreferencePage extends PreferencePage implements IWork
try {
Settings settings = maven.buildSettings(globalSettings, userSettings);
String localRepository = settings.getLocalRepository();
- if(localRepository == null){
+ if(localRepository == null) {
localRepository = RepositorySystem.defaultUserLocalRepository.getAbsolutePath();
}
if(!localRepositoryText.isDisposed()) {
localRepositoryText.setText(localRepository == null ? "" : localRepository); //$NON-NLS-1$
}
- } catch (CoreException e) {
+ } catch(CoreException e) {
setMessage(e.getMessage(), IMessageProvider.ERROR);
}
}
@@ -347,23 +347,25 @@ public class MavenSettingsPreferencePage extends PreferencePage implements IWork
if(userSettings != null && userSettings.length() > 0) {
File userSettingsFile = new File(userSettings);
if(!userSettingsFile.exists()) {
- setMessage(org.eclipse.m2e.core.ui.internal.Messages.MavenSettingsPreferencePage_error_missing, IMessageProvider.WARNING);
+ setMessage(org.eclipse.m2e.core.ui.internal.Messages.MavenSettingsPreferencePage_error_missing,
+ IMessageProvider.WARNING);
userSettings = null;
-
+
} else {
fileExists = true;
}
-
+
} else {
userSettings = null;
}
updateSettingsLink(fileExists);
List<SettingsProblem> result = maven.validateSettings(userSettings);
if(result.size() > 0) {
- setMessage(NLS.bind(org.eclipse.m2e.core.ui.internal.Messages.MavenSettingsPreferencePage_error_parse, result.get(0).getMessage()), IMessageProvider.WARNING);
+ setMessage(NLS.bind(org.eclipse.m2e.core.ui.internal.Messages.MavenSettingsPreferencePage_error_parse, result
+ .get(0).getMessage()), IMessageProvider.WARNING);
}
}
-
+
void openEditor(final String fileName) {
IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/RemoteArchetypeCatalogDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/RemoteArchetypeCatalogDialog.java
index 5613ca42..50e29b98 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/RemoteArchetypeCatalogDialog.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/RemoteArchetypeCatalogDialog.java
@@ -16,8 +16,6 @@ import java.util.Arrays;
import java.util.Collections;
import java.util.List;
-import org.apache.maven.archetype.catalog.Archetype;
-import org.apache.maven.archetype.catalog.ArchetypeCatalog;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
@@ -26,11 +24,6 @@ import org.eclipse.jface.dialogs.DialogSettings;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.jface.dialogs.TitleAreaDialog;
-
-import org.eclipse.m2e.core.internal.archetype.ArchetypeCatalogFactory;
-import org.eclipse.m2e.core.internal.archetype.ArchetypeCatalogFactory.RemoteCatalogFactory;
-import org.eclipse.m2e.core.ui.internal.Messages;
-import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
@@ -47,6 +40,15 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
+import org.apache.maven.archetype.catalog.Archetype;
+import org.apache.maven.archetype.catalog.ArchetypeCatalog;
+
+import org.eclipse.m2e.core.internal.archetype.ArchetypeCatalogFactory;
+import org.eclipse.m2e.core.internal.archetype.ArchetypeCatalogFactory.RemoteCatalogFactory;
+import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
+import org.eclipse.m2e.core.ui.internal.Messages;
+
+
/**
* Remote Archetype catalog dialog
*
@@ -62,7 +64,7 @@ public class RemoteArchetypeCatalogDialog extends TitleAreaDialog {
private static final String DIALOG_SETTINGS = RemoteArchetypeCatalogDialog.class.getName();
private static final String KEY_LOCATIONS = "catalogUrl"; //$NON-NLS-1$
-
+
private static final int MAX_HISTORY = 15;
private String title;
@@ -79,7 +81,6 @@ public class RemoteArchetypeCatalogDialog extends TitleAreaDialog {
Button verifyButton;
-
protected RemoteArchetypeCatalogDialog(Shell shell, ArchetypeCatalogFactory factory) {
super(shell);
this.archetypeCatalogFactory = factory;
@@ -127,12 +128,12 @@ public class RemoteArchetypeCatalogDialog extends TitleAreaDialog {
catalogDescriptionText = new Text(composite, SWT.BORDER);
catalogDescriptionText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
-
- if(archetypeCatalogFactory!=null) {
+
+ if(archetypeCatalogFactory != null) {
catalogUrlCombo.setText(archetypeCatalogFactory.getId());
catalogDescriptionText.setText(archetypeCatalogFactory.getDescription());
}
-
+
ModifyListener modifyListener = new ModifyListener() {
public void modifyText(final ModifyEvent e) {
update();
@@ -140,7 +141,7 @@ public class RemoteArchetypeCatalogDialog extends TitleAreaDialog {
};
catalogUrlCombo.addModifyListener(modifyListener);
catalogDescriptionText.addModifyListener(modifyListener);
-
+
return composite;
}
@@ -162,7 +163,7 @@ public class RemoteArchetypeCatalogDialog extends TitleAreaDialog {
if(isHelpAvailable()) {
createHelpControl(composite);
}
-
+
verifyButton = createButton(composite, VERIFY_ID, Messages.RemoteArchetypeCatalogDialog_btnVerify, false);
verifyButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
@@ -179,17 +180,18 @@ public class RemoteArchetypeCatalogDialog extends TitleAreaDialog {
} finally {
final IStatus s = status;
@SuppressWarnings("unchecked")
- final List<Archetype> archetypes = catalog==null ? Collections.emptyList() : catalog.getArchetypes();
+ final List<Archetype> archetypes = catalog == null ? Collections.emptyList() : catalog.getArchetypes();
getShell().getDisplay().asyncExec(new Runnable() {
public void run() {
verifyButton.setEnabled(true);
if(!s.isOK()) {
- setErrorMessage(NLS.bind(Messages.RemoteArchetypeCatalogDialog_error_read,s.getMessage()));
+ setErrorMessage(NLS.bind(Messages.RemoteArchetypeCatalogDialog_error_read, s.getMessage()));
getButton(IDialogConstants.OK_ID).setEnabled(false);
- } else if(archetypes.size()==0) {
+ } else if(archetypes.size() == 0) {
setMessage(Messages.RemoteArchetypeCatalogDialog_error_empty, IStatus.WARNING);
} else {
- setMessage(NLS.bind(Messages.RemoteArchetypeCatalogDialog_message_found, archetypes.size()), IStatus.INFO);
+ setMessage(NLS.bind(Messages.RemoteArchetypeCatalogDialog_message_found, archetypes.size()),
+ IStatus.INFO);
}
}
});
@@ -199,20 +201,20 @@ public class RemoteArchetypeCatalogDialog extends TitleAreaDialog {
}.schedule();
}
});
-
- Label filler= new Label(composite, SWT.NONE);
+
+ Label filler = new Label(composite, SWT.NONE);
filler.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL));
- layout.numColumns++;
-
- super.createButtonsForButtonBar(composite); // cancel button
-
+ layout.numColumns++ ;
+
+ super.createButtonsForButtonBar(composite); // cancel button
+
return composite;
}
-
+
protected Button getButton(int id) {
return super.getButton(id);
}
-
+
private String[] getSavedValues(String key) {
String[] array = dialogSettings.getArray(key);
return array == null ? new String[0] : array;
@@ -232,9 +234,9 @@ public class RemoteArchetypeCatalogDialog extends TitleAreaDialog {
protected void okPressed() {
String description = catalogDescriptionText.getText().trim();
String location = catalogUrlCombo.getText().trim();
-
+
archetypeCatalogFactory = new RemoteCatalogFactory(location, description, true);
-
+
saveValue(KEY_LOCATIONS, location);
super.okPressed();
@@ -268,14 +270,13 @@ public class RemoteArchetypeCatalogDialog extends TitleAreaDialog {
setErrorMessage(null);
setMessage(null, IStatus.WARNING);
-
String url = catalogUrlCombo.getText().trim();
- if(url.length()==0) {
+ if(url.length() == 0) {
setErrorMessage(Messages.RemoteArchetypeCatalogDialog_error_required);
verifyButton.setEnabled(false);
return false;
}
-
+
verifyButton.setEnabled(true);
return true;
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/UserInterfacePreferencePage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/UserInterfacePreferencePage.java
index bd84fde3..fee99a74 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/UserInterfacePreferencePage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/UserInterfacePreferencePage.java
@@ -23,9 +23,9 @@ import org.eclipse.m2e.core.ui.internal.Messages;
public class UserInterfacePreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
-
+
private Composite parent;
-
+
public UserInterfacePreferencePage() {
super(GRID);
setPreferenceStore(M2EUIPluginActivator.getDefault().getPreferenceStore());
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/WarningsPreferencePage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/WarningsPreferencePage.java
index cf6d72f2..48cc049c 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/WarningsPreferencePage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/WarningsPreferencePage.java
@@ -24,9 +24,9 @@ import org.eclipse.m2e.core.ui.internal.Messages;
public class WarningsPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
-
+
private Composite parent;
-
+
public WarningsPreferencePage() {
super(GRID);
setPreferenceStore(M2EUIPluginActivator.getDefault().getPreferenceStore());
@@ -43,17 +43,13 @@ public class WarningsPreferencePage extends FieldEditorPreferencePage implements
public void createFieldEditors() {
parent = getFieldEditorParent();
String text;
-
+
text = NLS.bind(Messages.MavenWarningsPreferencePage_groupidDupParent,
org.eclipse.m2e.core.internal.Messages.MavenMarkerManager_duplicate_groupid);
- addField(new BooleanFieldEditor(
- MavenPreferenceConstants.P_DISABLE_GROUPID_DUP_OF_PARENT_WARNING,
- text, parent));
+ addField(new BooleanFieldEditor(MavenPreferenceConstants.P_DISABLE_GROUPID_DUP_OF_PARENT_WARNING, text, parent));
text = NLS.bind(Messages.MavenWarningsPreferencePage_versionDupParent,
org.eclipse.m2e.core.internal.Messages.MavenMarkerManager_duplicate_version);
- addField(new BooleanFieldEditor(
- MavenPreferenceConstants.P_DISABLE_VERSION_DUP_OF_PARENT_WARNING,
- text, parent));
+ addField(new BooleanFieldEditor(MavenPreferenceConstants.P_DISABLE_VERSION_DUP_OF_PARENT_WARNING, text, parent));
}
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ArtifactInfo.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ArtifactInfo.java
index ea5b18ee..b046cabf 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ArtifactInfo.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ArtifactInfo.java
@@ -11,19 +11,22 @@
package org.eclipse.m2e.core.ui.internal.search.util;
-
/**
* Information about the artifact.
- *
+ *
* @author Lukas Krecan
*/
public class ArtifactInfo {
private final String groupId;
+
private final String artifactId;
+
private final String version;
+
private final String classfier;
+
private final String type;
-
+
public ArtifactInfo(String groupId, String artifactId, String version, String classfier, String type) {
this.groupId = groupId;
this.artifactId = artifactId;
@@ -53,26 +56,23 @@ public class ArtifactInfo {
}
/**
- * Constructs a <code>String</code> with all attributes
- * in name = value format.
- *
- * @return a <code>String</code> representation
- * of this object.
+ * Constructs a <code>String</code> with all attributes in name = value format.
+ *
+ * @return a <code>String</code> representation of this object.
*/
- public String toString()
- {
- final String TAB = " "; //$NON-NLS-1$
-
- String retValue = ""; //$NON-NLS-1$
-
- retValue = "ArtifactInfo ( " //$NON-NLS-1$
- + "groupId = " + this.groupId + TAB //$NON-NLS-1$
- + "artifactId = " + this.artifactId + TAB //$NON-NLS-1$
- + "version = " + this.version + TAB //$NON-NLS-1$
- + "classfier = " + this.classfier + TAB //$NON-NLS-1$
- + "type = " + this.type + TAB //$NON-NLS-1$
- + " )"; //$NON-NLS-1$
-
- return retValue;
+ public String toString() {
+ final String TAB = " "; //$NON-NLS-1$
+
+ String retValue = ""; //$NON-NLS-1$
+
+ retValue = "ArtifactInfo ( " //$NON-NLS-1$
+ + "groupId = " + this.groupId + TAB //$NON-NLS-1$
+ + "artifactId = " + this.artifactId + TAB //$NON-NLS-1$
+ + "version = " + this.version + TAB //$NON-NLS-1$
+ + "classfier = " + this.classfier + TAB //$NON-NLS-1$
+ + "type = " + this.type + TAB //$NON-NLS-1$
+ + " )"; //$NON-NLS-1$
+
+ return retValue;
}
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/CComboContentAdapter.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/CComboContentAdapter.java
index aa465fc1..088b9014 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/CComboContentAdapter.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/CComboContentAdapter.java
@@ -25,7 +25,7 @@ import org.eclipse.swt.widgets.Control;
* An {@link IControlContentAdapter} for SWT CCombo controls. This is a convenience class for easily creating a
* {@link ContentProposalAdapter} for combo fields.
*/
-public class CComboContentAdapter implements IControlContentAdapter /*, IControlContentAdapter2 */ {
+public class CComboContentAdapter implements IControlContentAdapter /*, IControlContentAdapter2 */{
/*
* Set to <code>true</code> if we should compute the text
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ControlDecoration.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ControlDecoration.java
index 8c90a57d..e08fb8d2 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ControlDecoration.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ControlDecoration.java
@@ -9,7 +9,6 @@
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
-
package org.eclipse.m2e.core.ui.internal.search.util;
import org.eclipse.core.runtime.ListenerList;
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/IndexSearchEngine.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/IndexSearchEngine.java
index 3d43497e..313f1611 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/IndexSearchEngine.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/IndexSearchEngine.java
@@ -19,16 +19,17 @@ import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
-import org.apache.maven.artifact.versioning.ComparableVersion;
import org.eclipse.core.runtime.CoreException;
+import org.apache.maven.artifact.versioning.ComparableVersion;
+
import org.eclipse.m2e.core.internal.index.IIndex;
import org.eclipse.m2e.core.internal.index.IndexManager;
import org.eclipse.m2e.core.internal.index.IndexedArtifact;
import org.eclipse.m2e.core.internal.index.IndexedArtifactFile;
+import org.eclipse.m2e.core.internal.index.MatchTyped.MatchType;
import org.eclipse.m2e.core.internal.index.MatchTypedStringSearchExpression;
import org.eclipse.m2e.core.internal.index.SearchExpression;
-import org.eclipse.m2e.core.internal.index.MatchTyped.MatchType;
/**
@@ -69,8 +70,8 @@ public class IndexSearchEngine implements SearchEngine {
try {
TreeSet<String> ids = new TreeSet<String>();
- for(IndexedArtifact artifact : index.find(groupIdSearchExpressions, null, null, packaging.toSearchExpression() == null ? null :
- Collections.singleton(packaging.toSearchExpression()))) {
+ for(IndexedArtifact artifact : index.find(groupIdSearchExpressions, null, null,
+ packaging.toSearchExpression() == null ? null : Collections.singleton(packaging.toSearchExpression()))) {
ids.add(artifact.getArtifactId());
}
return subSet(ids, searchExpression);
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/MenuDetectEvent.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/MenuDetectEvent.java
index 15745da3..07cd9d93 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/MenuDetectEvent.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/MenuDetectEvent.java
@@ -11,67 +11,61 @@
package org.eclipse.m2e.core.ui.internal.search.util;
-
import org.eclipse.swt.events.TypedEvent;
import org.eclipse.swt.widgets.Event;
+
/**
- * Instances of this class are sent whenever the platform-
- * specific trigger for showing a context menu is detected.
- *
+ * Instances of this class are sent whenever the platform- specific trigger for showing a context menu is detected.
+ *
* @see MenuDetectListener
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
- *
* @since 3.3
*/
public final class MenuDetectEvent extends TypedEvent {
- /**
- * the display-relative x coordinate of the pointer
- * at the time the context menu trigger occurred
- */
- public int x;
-
- /**
- * the display-relative y coordinate of the pointer
- * at the time the context menu trigger occurred
- */
- public int y;
-
- /**
- * A flag indicating whether the operation should be allowed.
- * Setting this field to <code>false</code> will cancel the operation.
- */
- public boolean doit;
+ /**
+ * the display-relative x coordinate of the pointer at the time the context menu trigger occurred
+ */
+ public int x;
- private static final long serialVersionUID = -3061660596590828941L;
+ /**
+ * the display-relative y coordinate of the pointer at the time the context menu trigger occurred
+ */
+ public int y;
-/**
- * Constructs a new instance of this class based on the
- * information in the given untyped event.
- *
- * @param e the untyped event containing the information
- */
-public MenuDetectEvent(Event e) {
- super(e);
- this.x = e.x;
- this.y = e.y;
- this.doit = e.doit;
-}
+ /**
+ * A flag indicating whether the operation should be allowed. Setting this field to <code>false</code> will cancel the
+ * operation.
+ */
+ public boolean doit;
-/**
- * Returns a string containing a concise, human-readable
- * description of the receiver.
- *
- * @return a string representation of the event
- */
-public String toString() {
- String string = super.toString ();
- return string.substring (0, string.length() - 1) // remove trailing '}'
- + " x=" + x //$NON-NLS-1$
- + " y=" + y //$NON-NLS-1$
- + " doit=" + doit //$NON-NLS-1$
- + "}"; //$NON-NLS-1$
-}
+ private static final long serialVersionUID = -3061660596590828941L;
+
+ /**
+ * Constructs a new instance of this class based on the information in the given untyped event.
+ *
+ * @param e the untyped event containing the information
+ */
+ public MenuDetectEvent(Event e) {
+ super(e);
+ this.x = e.x;
+ this.y = e.y;
+ this.doit = e.doit;
+ }
+
+ /**
+ * Returns a string containing a concise, human-readable description of the receiver.
+ *
+ * @return a string representation of the event
+ */
+ public String toString() {
+ String string = super.toString();
+ return string.substring(0, string.length() - 1) // remove trailing '}'
+ + " x=" + x //$NON-NLS-1$
+ + " y=" + y //$NON-NLS-1$
+ + " doit=" + doit //$NON-NLS-1$
+ + "}"; //$NON-NLS-1$
+ }
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/MenuDetectListener.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/MenuDetectListener.java
index 26cb1421..0b8cc610 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/MenuDetectListener.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/MenuDetectListener.java
@@ -11,33 +11,27 @@
package org.eclipse.m2e.core.ui.internal.search.util;
-
import java.util.EventListener;
+
/**
- * Classes which implement this interface provide methods
- * that deal with the events that are generated when the
- * platform-specific trigger for showing a context menu is
- * detected.
+ * Classes which implement this interface provide methods that deal with the events that are generated when the
+ * platform-specific trigger for showing a context menu is detected.
* <p>
- * After creating an instance of a class that implements
- * this interface it can be added to a control or TrayItem
- * using the <code>addMenuDetectListener</code> method and
- * removed using the <code>removeMenuDetectListener</code> method.
- * When the context menu trigger occurs, the
- * <code>menuDetected</code> method will be invoked.
+ * After creating an instance of a class that implements this interface it can be added to a control or TrayItem using
+ * the <code>addMenuDetectListener</code> method and removed using the <code>removeMenuDetectListener</code> method.
+ * When the context menu trigger occurs, the <code>menuDetected</code> method will be invoked.
* </p>
- *
+ *
* @see MenuDetectEvent
- *
* @since 3.3
*/
public interface MenuDetectListener extends EventListener {
-/**
- * Sent when the platform-dependent trigger for showing a menu item is detected.
- *
- * @param e an event containing information about the menu detect
- */
-public void menuDetected (MenuDetectEvent e);
+ /**
+ * Sent when the platform-dependent trigger for showing a menu item is detected.
+ *
+ * @param e an event containing information about the menu detect
+ */
+ public void menuDetected(MenuDetectEvent e);
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/SearchEngine.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/SearchEngine.java
index c6f8634a..6230c4da 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/SearchEngine.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/SearchEngine.java
@@ -20,9 +20,10 @@ import java.util.Collection;
* @author Lukas Krecan
*/
public interface SearchEngine {
-
+
/**
- * Finds groupIds for given expression.
+ * Finds groupIds for given expression.
+ *
* @param searchExpression
* @param packaging
* @param containingArtifact When looking for exclusion, contains information about artifact we are excluding from.
@@ -32,18 +33,22 @@ public interface SearchEngine {
/**
* Finds artifactIds for given expression
+ *
* @param groupId
* @param searchExpression
* @param packaging
- * @param containingArtifact When looking for exclusion, contains information about artifact we are excluding from.
+ * @param containingArtifact When looking for exclusion, contains information about artifact we are excluding from.
* @return
*/
- public Collection<String> findArtifactIds(String groupId, String searchExpression, Packaging packaging, ArtifactInfo containingArtifact);
+ public Collection<String> findArtifactIds(String groupId, String searchExpression, Packaging packaging,
+ ArtifactInfo containingArtifact);
public Collection<String> findVersions(String groupId, String artifactId, String searchExpression, Packaging packaging);
- public Collection<String> findClassifiers(String groupId, String artifactId, String version, String prefix, Packaging packaging);
+ public Collection<String> findClassifiers(String groupId, String artifactId, String version, String prefix,
+ Packaging packaging);
- public Collection<String> findTypes(String groupId, String artifactId, String version, String prefix, Packaging packaging);
+ public Collection<String> findTypes(String groupId, String artifactId, String version, String prefix,
+ Packaging packaging);
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/M2EErrorDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/M2EErrorDialog.java
index 40ed66e4..2b2b16f7 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/M2EErrorDialog.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/M2EErrorDialog.java
@@ -11,7 +11,6 @@
package org.eclipse.m2e.core.ui.internal.util;
-
import java.util.Collection;
import java.util.Map;
import java.util.Set;
@@ -22,8 +21,6 @@ import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.m2e.core.internal.M2EUtils;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
@@ -34,22 +31,29 @@ import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TableColumn;
+import org.eclipse.m2e.core.internal.M2EUtils;
+import org.eclipse.m2e.core.ui.internal.Messages;
+
+
/**
- * M2EErrorDialog
- * Error dialog for displaying a list/table of error values.
- *
+ * M2EErrorDialog Error dialog for displaying a list/table of error values.
+ *
* @author dyocum
*/
public class M2EErrorDialog extends MessageDialog {
-
private TableViewer errorTable;
+
private static final int PROJECT_COL = 0;
+
protected static final int TABLE_WIDTH = 700;
+
protected String[] COL_NAMES = {Messages.M2EErrorDialog_column_name, Messages.M2EErrorDialog_column_error};
+
protected int[] COL_STYLES = {SWT.LEFT, SWT.LEFT};
+
protected Map<String, Throwable> errorMap;
-
+
/**
* @param parentShell
* @param dialogTitle
@@ -70,20 +74,20 @@ public class M2EErrorDialog extends MessageDialog {
Composite comp = new Composite(parent, SWT.NONE);
GridLayout layout = new GridLayout(1, true);
comp.setLayout(layout);
-
+
GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
- gd.widthHint = TABLE_WIDTH+50;
- gd.grabExcessHorizontalSpace=true;
- gd.grabExcessVerticalSpace=true;
+ gd.widthHint = TABLE_WIDTH + 50;
+ gd.grabExcessHorizontalSpace = true;
+ gd.grabExcessVerticalSpace = true;
comp.setLayoutData(gd);
-
+
gd = new GridData(SWT.FILL, SWT.FILL, true, true);
gd.widthHint = TABLE_WIDTH;
gd.heightHint = 200;
- errorTable = new TableViewer(comp, SWT.BORDER|SWT.H_SCROLL|SWT.V_SCROLL|SWT.FULL_SELECTION);
+ errorTable = new TableViewer(comp, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION);
errorTable.getTable().setHeaderVisible(true);
errorTable.getTable().setLinesVisible(true);
-
+
errorTable.setContentProvider(new ErrorTableContentProvider());
errorTable.setLabelProvider(new ErrorTableLabelProvider());
errorTable.getControl().setLayoutData(gd);
@@ -99,7 +103,7 @@ public class M2EErrorDialog extends MessageDialog {
protected void setupTableColumns() {
GC gc = new GC(errorTable.getControl());
gc.setFont(errorTable.getControl().getFont());
- for(int i=0;i<COL_NAMES.length;i++){
+ for(int i = 0; i < COL_NAMES.length; i++ ) {
TableColumn col = new TableColumn(errorTable.getTable(), COL_STYLES[i]);
col.setText(COL_NAMES[i]);
int width = calcStringWidth(gc, i);
@@ -107,38 +111,39 @@ public class M2EErrorDialog extends MessageDialog {
}
gc.dispose();
}
-
+
/**
- * Find out how wide the strings are so the columns can be set correctly.
+ * Find out how wide the strings are so the columns can be set correctly.
+ *
* @param gc
* @param column
* @return
*/
- private int calcStringWidth(GC gc, int column){
+ private int calcStringWidth(GC gc, int column) {
int maxWidth = 100;
- if(column == PROJECT_COL){
+ if(column == PROJECT_COL) {
Set<String> keySet = errorMap.keySet();
- for(String projectName : keySet){
- int width = gc.stringExtent(projectName).x+10;
+ for(String projectName : keySet) {
+ int width = gc.stringExtent(projectName).x + 10;
maxWidth = Math.max(maxWidth, width);
}
return maxWidth;
}
Collection<Throwable> values = errorMap.values();
- for(Throwable t : values){
+ for(Throwable t : values) {
String msg = M2EUtils.getRootCauseMessage(t);
- if(msg == null){
+ if(msg == null) {
msg = ""; //$NON-NLS-1$
}
- int width = gc.stringExtent(msg).x+10;
+ int width = gc.stringExtent(msg).x + 10;
maxWidth = Math.max(maxWidth, width);
}
return maxWidth;
}
-
+
/**
* ErrorTableContentProvider
- *
+ *
* @author dyocum
*/
class ErrorTableContentProvider implements IStructuredContentProvider {
@@ -147,8 +152,8 @@ public class M2EErrorDialog extends MessageDialog {
* @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
*/
public Object[] getElements(Object inputElement) {
- if(inputElement instanceof Map){
- return ((Map)inputElement).keySet().toArray();
+ if(inputElement instanceof Map) {
+ return ((Map) inputElement).keySet().toArray();
}
return new Object[0];
}
@@ -166,7 +171,7 @@ public class M2EErrorDialog extends MessageDialog {
}
}
- class ErrorTableLabelProvider implements ITableLabelProvider{
+ class ErrorTableLabelProvider implements ITableLabelProvider {
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, int)
@@ -179,7 +184,7 @@ public class M2EErrorDialog extends MessageDialog {
* @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnText(java.lang.Object, int)
*/
public String getColumnText(Object element, int columnIndex) {
- if(columnIndex == PROJECT_COL){
+ if(columnIndex == PROJECT_COL) {
return element.toString();
}
String msg = M2EUtils.getRootCauseMessage(errorMap.get(element));
@@ -190,7 +195,7 @@ public class M2EErrorDialog extends MessageDialog {
* @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProviderListener)
*/
public void addListener(ILabelProviderListener listener) {
-
+
}
/* (non-Javadoc)
@@ -214,5 +219,4 @@ public class M2EErrorDialog extends MessageDialog {
}
}
-
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/M2EUIUtils.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/M2EUIUtils.java
index 0b9aa536..966fd6b3 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/M2EUIUtils.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/M2EUIUtils.java
@@ -19,7 +19,6 @@ import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.fieldassist.ControlDecoration;
import org.eclipse.jface.fieldassist.FieldDecoration;
import org.eclipse.jface.fieldassist.FieldDecorationRegistry;
-import org.eclipse.m2e.core.internal.M2EUtils;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.FontData;
@@ -27,32 +26,35 @@ import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
+import org.eclipse.m2e.core.internal.M2EUtils;
+
+
/**
* M2EUtils
- *
+ *
* @author dyocum
*/
public class M2EUIUtils {
- public static Font deriveFont(Font f, int style, int height){
+ public static Font deriveFont(Font f, int style, int height) {
FontData[] fd = f.getFontData();
FontData[] newFD = new FontData[fd.length];
- for(int i=0;i<fd.length;i++){
+ for(int i = 0; i < fd.length; i++ ) {
newFD[i] = new FontData(fd[i].getName(), height, style);
}
return new Font(Display.getCurrent(), newFD);
}
-
- public static void showErrorDialog(Shell shell, String title, String msg, Exception e){
+
+ public static void showErrorDialog(Shell shell, String title, String msg, Exception e) {
StringBuffer buff = new StringBuffer(msg);
Throwable t = M2EUtils.getRootCause(e);
- if(t != null && !nullOrEmpty(t.getMessage())){
+ if(t != null && !nullOrEmpty(t.getMessage())) {
buff.append(t.getMessage());
}
MessageDialog.openError(shell, title, buff.toString());
}
-
- public static boolean nullOrEmpty(String s){
+
+ public static boolean nullOrEmpty(String s) {
return s == null || s.length() == 0;
}
@@ -65,19 +67,19 @@ public class M2EUIUtils {
public static void showErrorsForProjectsDialog(final Shell shell, final String title, final String message,
final Map<String, Throwable> errorMap) {
// TODO Auto-generated method showErrorsForProjectsDialog
- Display.getDefault().asyncExec(new Runnable(){
- public void run(){
+ Display.getDefault().asyncExec(new Runnable() {
+ public void run() {
String[] buttons = {IDialogConstants.OK_LABEL};
int ok_button = 0;
- M2EErrorDialog errDialog = new M2EErrorDialog(shell, title, Dialog.getImage(Dialog.DLG_IMG_MESSAGE_ERROR), message, MessageDialog.ERROR, buttons, ok_button,
- errorMap);
+ M2EErrorDialog errDialog = new M2EErrorDialog(shell, title, Dialog.getImage(Dialog.DLG_IMG_MESSAGE_ERROR),
+ message, MessageDialog.ERROR, buttons, ok_button, errorMap);
errDialog.create();
errDialog.open();
}
});
}
-
+
public static void addRequiredDecoration(Control control) {
FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
FieldDecorationRegistry.DEC_REQUIRED);
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/ParentGatherer.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/ParentGatherer.java
index a891db81..116f04d5 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/ParentGatherer.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/ParentGatherer.java
@@ -13,17 +13,20 @@ package org.eclipse.m2e.core.ui.internal.util;
import java.util.LinkedList;
-import org.apache.maven.execution.MavenExecutionRequest;
-import org.apache.maven.project.MavenProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
+
+import org.apache.maven.execution.MavenExecutionRequest;
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.embedder.IMaven;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
import org.eclipse.m2e.core.project.IMavenProjectRegistry;
+
/**
- * Helper class to get the parent chain given a pom
+ * Helper class to get the parent chain given a pom
*/
public class ParentGatherer {
private MavenProject mavenProject;
@@ -37,9 +40,10 @@ public class ParentGatherer {
/**
* Return the list of parents for a give pom
+ *
* @param monitor
- * @return list of {@link MavenProject} from the given project to its ultimate parent.
- * The first entry is the given pom, the last one the ultimate parent.
+ * @return list of {@link MavenProject} from the given project to its ultimate parent. The first entry is the given
+ * pom, the last one the ultimate parent.
* @throws CoreException
*/
public LinkedList<MavenProject> getParentHierarchy(IProgressMonitor monitor) throws CoreException {
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/ProposalUtil.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/ProposalUtil.java
index beea5d61..e8d735c8 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/ProposalUtil.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/util/ProposalUtil.java
@@ -13,7 +13,9 @@ import java.util.Collection;
import java.util.Collections;
import java.util.Properties;
-import org.apache.maven.project.MavenProject;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.fieldassist.ContentProposalAdapter;
@@ -23,11 +25,6 @@ import org.eclipse.jface.fieldassist.IContentProposal;
import org.eclipse.jface.fieldassist.IContentProposalProvider;
import org.eclipse.jface.fieldassist.IControlContentAdapter;
import org.eclipse.jface.fieldassist.TextContentAdapter;
-import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
-import org.eclipse.m2e.core.ui.internal.search.util.CComboContentAdapter;
-import org.eclipse.m2e.core.ui.internal.search.util.ControlDecoration;
-import org.eclipse.m2e.core.ui.internal.search.util.Packaging;
-import org.eclipse.m2e.core.ui.internal.search.util.SearchEngine;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Control;
@@ -36,8 +33,13 @@ import org.eclipse.ui.fieldassist.ContentAssistCommandAdapter;
import org.apache.lucene.queryParser.QueryParser;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import org.apache.maven.project.MavenProject;
+
+import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
+import org.eclipse.m2e.core.ui.internal.search.util.CComboContentAdapter;
+import org.eclipse.m2e.core.ui.internal.search.util.ControlDecoration;
+import org.eclipse.m2e.core.ui.internal.search.util.Packaging;
+import org.eclipse.m2e.core.ui.internal.search.util.SearchEngine;
/**
@@ -91,7 +93,7 @@ public class ProposalUtil {
ArrayList<IContentProposal> proposals = new ArrayList<IContentProposal>();
try {
for(final String text : searcher.search()) {
- if (text.startsWith(start)) {
+ if(text.startsWith(start)) {
proposals.add(new TextProposal(text));
}
}
@@ -123,28 +125,30 @@ public class ProposalUtil {
final Text versionText, final Text classifierText, final Packaging packaging) {
addCompletionProposal(classifierText, new Searcher() {
public Collection<String> search() throws CoreException {
- return getSearchEngine(project).findClassifiers(escapeQuerySpecialCharacters(groupIdText.getText()), //
- escapeQuerySpecialCharacters(artifactIdText.getText()), escapeQuerySpecialCharacters(versionText.getText()), "", packaging);
+ return getSearchEngine(project).findClassifiers(
+ escapeQuerySpecialCharacters(groupIdText.getText()), //
+ escapeQuerySpecialCharacters(artifactIdText.getText()),
+ escapeQuerySpecialCharacters(versionText.getText()), "", packaging);
}
});
}
- public static void addVersionProposal(final IProject project, final MavenProject mp, final Text groupIdText, final Text artifactIdText,
- final Text versionText, final Packaging packaging) {
+ public static void addVersionProposal(final IProject project, final MavenProject mp, final Text groupIdText,
+ final Text artifactIdText, final Text versionText, final Packaging packaging) {
addCompletionProposal(versionText, new Searcher() {
public Collection<String> search() throws CoreException {
Collection<String> toRet = new ArrayList<String>();
toRet.addAll(getSearchEngine(project).findVersions(escapeQuerySpecialCharacters(groupIdText.getText()), //
escapeQuerySpecialCharacters(artifactIdText.getText()), "", packaging));
- if (mp != null) {
+ if(mp != null) {
//add version props now..
Properties props = mp.getProperties();
ArrayList<String> list = new ArrayList<String>();
- if (props != null) {
- for (Object prop : props.keySet()) {
+ if(props != null) {
+ for(Object prop : props.keySet()) {
String propString = prop.toString();
- if (propString.endsWith("Version") || propString.endsWith(".version")) { //$NON-NLS-1$//$NON-NLS-2$
- list.add("${" + propString + "}"); //$NON-NLS-1$//$NON-NLS-2$
+ if(propString.endsWith("Version") || propString.endsWith(".version")) { //$NON-NLS-1$//$NON-NLS-2$
+ list.add("${" + propString + "}"); //$NON-NLS-1$//$NON-NLS-2$
}
}
}
@@ -161,8 +165,8 @@ public class ProposalUtil {
addCompletionProposal(artifactIdText, new Searcher() {
public Collection<String> search() throws CoreException {
// TODO handle artifact info
- return getSearchEngine(project).findArtifactIds(escapeQuerySpecialCharacters(groupIdText.getText()), "", packaging,
- null);
+ return getSearchEngine(project).findArtifactIds(escapeQuerySpecialCharacters(groupIdText.getText()), "",
+ packaging, null);
}
});
}
@@ -171,7 +175,8 @@ public class ProposalUtil {
addCompletionProposal(groupIdText, new Searcher() {
public Collection<String> search() throws CoreException {
// TODO handle artifact info
- return getSearchEngine(project).findGroupIds(escapeQuerySpecialCharacters(groupIdText.getText()), packaging, null);
+ return getSearchEngine(project).findGroupIds(escapeQuerySpecialCharacters(groupIdText.getText()), packaging,
+ null);
}
});
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/MavenRepositoryView.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/MavenRepositoryView.java
index 36a0471c..1add2017 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/MavenRepositoryView.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/MavenRepositoryView.java
@@ -97,34 +97,43 @@ public class MavenRepositoryView extends ViewPart {
private static final Logger log = LoggerFactory.getLogger(MavenRepositoryView.class);
private static final String ENABLE_FULL = Messages.MavenRepositoryView_enable_full;
+
private static final String ENABLED_FULL = Messages.MavenRepositoryView_enabled_full;
+
private static final String DISABLE_DETAILS = Messages.MavenRepositoryView_disable_details;
+
private static final String DISABLED_DETAILS = Messages.MavenRepositoryView_details_disabled;
+
private static final String ENABLE_MIN = Messages.MavenRepositoryView_enable_minimum;
+
private static final String ENABLED_MIN = Messages.MavenRepositoryView_minimum_enabled;
+
private static final String MENU_ID = ".repositoryViewMenu"; //$NON-NLS-1$
-
+
private IndexManager indexManager = MavenPlugin.getIndexManager();
private IAction collapseAllAction;
-
+
private IAction reloadSettings;
-
+
BaseSelectionListenerAction openPomAction;
private BaseSelectionListenerAction updateAction;
-
+
private BaseSelectionListenerAction rebuildAction;
-
+
private DisableIndexAction disableAction;
+
private EnableMinIndexAction enableMinAction;
+
private EnableFullIndexAction enableFullAction;
private BaseSelectionListenerAction copyUrlAction;
-
+
//private BaseSelectionListenerAction materializeProjectAction;
-
+
TreeViewer viewer;
+
private RepositoryViewContentProvider contentProvider;
private DrillDownAdapter drillDownAdapter;
@@ -134,7 +143,7 @@ public class MavenRepositoryView extends ViewPart {
public void setFocus() {
viewer.getControl().setFocus();
}
-
+
public void createPartControl(Composite parent) {
viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
contentProvider = new RepositoryViewContentProvider();
@@ -146,7 +155,7 @@ public class MavenRepositoryView extends ViewPart {
viewer.addDoubleClickListener(new IDoubleClickListener() {
public void doubleClick(DoubleClickEvent event) {
-
+
}
});
viewer.setInput(getViewSite());
@@ -176,15 +185,15 @@ public class MavenRepositoryView extends ViewPart {
refreshView();
}
- public void indexUpdating(IRepository repository){
- Display.getDefault().asyncExec(new Runnable(){
- public void run(){
- viewer.refresh(true);
+ public void indexUpdating(IRepository repository) {
+ Display.getDefault().asyncExec(new Runnable() {
+ public void run() {
+ viewer.refresh(true);
}
});
}
};
-
+
indexManager.addIndexListener(this.indexListener);
}
@@ -215,42 +224,44 @@ public class MavenRepositoryView extends ViewPart {
manager.add(reloadSettings);
}
- protected List<AbstractIndexedRepositoryNode> getSelectedRepositoryNodes(List elements){
+ protected List<AbstractIndexedRepositoryNode> getSelectedRepositoryNodes(List elements) {
ArrayList<AbstractIndexedRepositoryNode> list = new ArrayList<AbstractIndexedRepositoryNode>();
- if (elements != null) {
- for(int i=0;i<elements.size();i++){
+ if(elements != null) {
+ for(int i = 0; i < elements.size(); i++ ) {
Object elem = elements.get(i);
if(elem instanceof AbstractIndexedRepositoryNode) {
- list.add((AbstractIndexedRepositoryNode)elem);
+ list.add((AbstractIndexedRepositoryNode) elem);
}
}
}
return list;
}
- protected List<IArtifactNode> getArtifactNodes(List elements){
- if(elements == null || elements.size() == 0){
+
+ protected List<IArtifactNode> getArtifactNodes(List elements) {
+ if(elements == null || elements.size() == 0) {
return null;
}
ArrayList<IArtifactNode> list = new ArrayList<IArtifactNode>();
- for(int i=0;i<elements.size();i++){
+ for(int i = 0; i < elements.size(); i++ ) {
Object elem = elements.get(i);
- if(elem instanceof IArtifactNode){
- IArtifactNode node = (IArtifactNode)elem;
+ if(elem instanceof IArtifactNode) {
+ IArtifactNode node = (IArtifactNode) elem;
list.add(node);
}
}
return list;
}
+
void fillContextMenu(IMenuManager manager) {
manager.add(new Separator(MENU_OPEN_GRP));
manager.add(new Separator(MENU_UPDATE_GRP));
manager.add(new Separator("import")); //$NON-NLS-1$
manager.prependToGroup(MENU_OPEN_GRP, copyUrlAction);
manager.prependToGroup(MENU_OPEN_GRP, openPomAction);
-
+
manager.prependToGroup(MENU_UPDATE_GRP, updateAction);
manager.prependToGroup(MENU_UPDATE_GRP, rebuildAction);
-
+
manager.add(disableAction);
manager.add(enableMinAction);
manager.add(enableFullAction);
@@ -278,12 +289,12 @@ public class MavenRepositoryView extends ViewPart {
collapseAllAction.setToolTipText(Messages.MavenRepositoryView_btnCollapse_tooltip);
collapseAllAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages()
.getImageDescriptor(ISharedImages.IMG_ELCL_COLLAPSEALL));
- reloadSettings = new Action(Messages.MavenRepositoryView_action_reload){
- public void run(){
+ reloadSettings = new Action(Messages.MavenRepositoryView_action_reload) {
+ public void run() {
String msg = Messages.MavenRepositoryView_reload_msg;
boolean res = MessageDialog.openConfirm(getViewSite().getShell(), //
Messages.MavenRepositoryView_reload_title, msg);
- if(res){
+ if(res) {
Job job = new WorkspaceJob(Messages.MavenRepositoryView_job_reloading) {
public IStatus runInWorkspace(IProgressMonitor monitor) {
try {
@@ -298,7 +309,7 @@ public class MavenRepositoryView extends ViewPart {
}
}
};
-
+
reloadSettings.setImageDescriptor(MavenImages.REFRESH);
// deleteFromLocalAction = new BaseSelectionListenerAction("Delete from Repository") {
// public void run() {
@@ -320,12 +331,11 @@ public class MavenRepositoryView extends ViewPart {
// deleteFromLocalAction.setToolTipText("Delete the selected GAV from the local repository");
//updateAction.setImageDescriptor(MavenImages.UPD_INDEX);
-
updateAction = new BaseSelectionListenerAction(Messages.MavenRepositoryView_action_update) {
public void run() {
List<AbstractIndexedRepositoryNode> nodes = getSelectedRepositoryNodes(getStructuredSelection().toList());
for(AbstractIndexedRepositoryNode node : nodes) {
- if (node instanceof RepositoryNode) {
+ if(node instanceof RepositoryNode) {
((RepositoryNode) node).getIndex().scheduleIndexUpdate(false);
}
}
@@ -333,12 +343,12 @@ public class MavenRepositoryView extends ViewPart {
protected boolean updateSelection(IStructuredSelection selection) {
int indexCount = 0;
- for (AbstractIndexedRepositoryNode node : getSelectedRepositoryNodes(selection.toList())) {
- if (node instanceof RepositoryNode && node.isEnabledIndex()) {
- indexCount ++;
+ for(AbstractIndexedRepositoryNode node : getSelectedRepositoryNodes(selection.toList())) {
+ if(node instanceof RepositoryNode && node.isEnabledIndex()) {
+ indexCount++ ;
}
}
- if(indexCount > 1){
+ if(indexCount > 1) {
setText(Messages.MavenRepositoryView_update_more);
} else {
setText(Messages.MavenRepositoryView_update_one);
@@ -399,15 +409,15 @@ public class MavenRepositoryView extends ViewPart {
}
}.schedule();
}
-
+
protected boolean updateSelection(IStructuredSelection selection) {
int indexCount = 0;
- for (AbstractIndexedRepositoryNode node : getSelectedRepositoryNodes(selection.toList())) {
- if ((node instanceof LocalRepositoryNode) || node.isEnabledIndex()) {
- indexCount ++;
+ for(AbstractIndexedRepositoryNode node : getSelectedRepositoryNodes(selection.toList())) {
+ if((node instanceof LocalRepositoryNode) || node.isEnabledIndex()) {
+ indexCount++ ;
}
}
- if(indexCount > 1){
+ if(indexCount > 1) {
setText(Messages.MavenRepositoryView_rebuild_many);
} else {
setText(Messages.MavenRepositoryView_rebuild_one);
@@ -415,7 +425,7 @@ public class MavenRepositoryView extends ViewPart {
return indexCount > 0;
}
};
-
+
rebuildAction.setToolTipText(Messages.MavenRepositoryView_action_rebuild_tooltip);
rebuildAction.setImageDescriptor(MavenImages.REBUILD_INDEX);
@@ -482,7 +492,7 @@ public class MavenRepositoryView extends ViewPart {
copyUrlAction.setToolTipText(Messages.MavenRepositoryView_action_copy_tooltip);
copyUrlAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages()
.getImageDescriptor(ISharedImages.IMG_TOOL_COPY));
-
+
// materializeProjectAction = new BaseSelectionListenerAction(Messages.MavenRepositoryView_action_materialize) {
// public void run() {
// Object element = getStructuredSelection().getFirstElement();
@@ -511,22 +521,23 @@ public class MavenRepositoryView extends ViewPart {
}
protected void setIndexDetails(AbstractIndexedRepositoryNode node, String details) {
- if (node != null && node.getIndex() != null) {
+ if(node != null && node.getIndex() != null) {
try {
node.getIndex().setIndexDetails(details);
} catch(CoreException ex) {
- M2EUIUtils.showErrorDialog(this.getViewSite().getShell(), Messages.MavenRepositoryView_error_title, Messages.MavenRepositoryView_error_message, ex);
+ M2EUIUtils.showErrorDialog(this.getViewSite().getShell(), Messages.MavenRepositoryView_error_title,
+ Messages.MavenRepositoryView_error_message, ex);
}
}
}
protected AbstractIndexedRepositoryNode getSelectedRepositoryNode(IStructuredSelection selection) {
List elements = selection.toList();
- if (elements.size() != 1) {
+ if(elements.size() != 1) {
return null;
}
Object element = elements.get(0);
- return element instanceof AbstractIndexedRepositoryNode? (AbstractIndexedRepositoryNode) element: null;
+ return element instanceof AbstractIndexedRepositoryNode ? (AbstractIndexedRepositoryNode) element : null;
}
public void dispose() {
@@ -546,9 +557,9 @@ public class MavenRepositoryView extends ViewPart {
Display.getDefault().asyncExec(new Runnable() {
public void run() {
Object[] expandedElems = viewer.getExpandedElements();
- if (!viewer.getControl().isDisposed()) {
+ if(!viewer.getControl().isDisposed()) {
viewer.setInput(getViewSite());
- if(expandedElems != null && expandedElems.length > 0){
+ if(expandedElems != null && expandedElems.length > 0) {
viewer.setExpandedElements(expandedElems);
}
}
@@ -557,87 +568,89 @@ public class MavenRepositoryView extends ViewPart {
};
/**
- * Base Selection Listener does not allow the style (radio button/check) to be set.
- * This base class listens to selections and sets the appropriate index value
- * depending on its value
- * AbstractIndexAction
- *
+ * Base Selection Listener does not allow the style (radio button/check) to be set. This base class listens to
+ * selections and sets the appropriate index value depending on its value AbstractIndexAction
+ *
* @author dyocum
*/
- abstract class AbstractIndexAction extends Action implements ISelectionChangedListener{
+ abstract class AbstractIndexAction extends Action implements ISelectionChangedListener {
protected abstract String getDetailsValue();
+
protected abstract String getActionText();
-
- public AbstractIndexAction(String text, int style){
+
+ public AbstractIndexAction(String text, int style) {
super(text, style);
}
-
+
public void run() {
- IStructuredSelection sel = (IStructuredSelection)viewer.getSelection();
+ IStructuredSelection sel = (IStructuredSelection) viewer.getSelection();
setIndexDetails(getSelectedRepositoryNode(sel), getDetailsValue());
}
-
+
/*
*/
public void selectionChanged(SelectionChangedEvent event) {
- IStructuredSelection sel = (IStructuredSelection)event.getSelection();
+ IStructuredSelection sel = (IStructuredSelection) event.getSelection();
updateSelection(sel);
}
-
- protected void updateSelection(IStructuredSelection selection) {
+
+ protected void updateSelection(IStructuredSelection selection) {
AbstractIndexedRepositoryNode node = getSelectedRepositoryNode(selection);
updateIndexDetails(node);
setText(getActionText());
boolean enabled = (node != null && node instanceof RepositoryNode);
this.setEnabled(enabled);
}
-
- protected void updateIndexDetails(AbstractIndexedRepositoryNode node){
- if(node == null || node.getIndex() == null){
+
+ protected void updateIndexDetails(AbstractIndexedRepositoryNode node) {
+ if(node == null || node.getIndex() == null) {
return;
}
NexusIndex index = node.getIndex();
setChecked(getDetailsValue().equals(index.getIndexDetails()));
}
-
+
}
-
+
class DisableIndexAction extends AbstractIndexAction {
- public DisableIndexAction(){
+ public DisableIndexAction() {
super(DISABLE_DETAILS, IAction.AS_CHECK_BOX);
}
-
- protected String getDetailsValue(){
+
+ protected String getDetailsValue() {
return NexusIndex.DETAILS_DISABLED;
}
- protected String getActionText(){
+
+ protected String getActionText() {
return isChecked() ? DISABLED_DETAILS : DISABLE_DETAILS;
}
}
-
+
class EnableMinIndexAction extends AbstractIndexAction {
- public EnableMinIndexAction(){
+ public EnableMinIndexAction() {
super(ENABLE_MIN, IAction.AS_CHECK_BOX);
}
-
- protected String getDetailsValue(){
+
+ protected String getDetailsValue() {
return NexusIndex.DETAILS_MIN;
}
- protected String getActionText(){
+
+ protected String getActionText() {
return isChecked() ? ENABLED_MIN : ENABLE_MIN;
}
}
class EnableFullIndexAction extends AbstractIndexAction {
- public EnableFullIndexAction(){
+ public EnableFullIndexAction() {
super(ENABLE_FULL, IAction.AS_CHECK_BOX);
}
-
- protected String getDetailsValue(){
+
+ protected String getDetailsValue() {
return NexusIndex.DETAILS_FULL;
}
- protected String getActionText(){
+
+ protected String getActionText() {
return isChecked() ? ENABLED_FULL : ENABLE_FULL;
}
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/RepositoryViewContentProvider.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/RepositoryViewContentProvider.java
index a084fc52..773d9bcc 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/RepositoryViewContentProvider.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/RepositoryViewContentProvider.java
@@ -14,25 +14,30 @@ package org.eclipse.m2e.core.ui.internal.views;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.ui.IViewSite;
+
import org.eclipse.m2e.core.ui.internal.views.nodes.CustomRepositoriesNode;
import org.eclipse.m2e.core.ui.internal.views.nodes.GlobalRepositoriesNode;
import org.eclipse.m2e.core.ui.internal.views.nodes.IMavenRepositoryNode;
import org.eclipse.m2e.core.ui.internal.views.nodes.LocalRepositoryRootNode;
import org.eclipse.m2e.core.ui.internal.views.nodes.ProjectRepositoriesNode;
-import org.eclipse.ui.IViewSite;
+
/**
* RepositoryViewContentProvider
- *
+ *
* @author dyocum
*/
public class RepositoryViewContentProvider implements IStructuredContentProvider, ITreeContentProvider {
private LocalRepositoryRootNode localNode;
+
private GlobalRepositoriesNode globalNode;
+
private ProjectRepositoriesNode projectNode;
+
private CustomRepositoriesNode customNode;
-
+
public RepositoryViewContentProvider() {
}
@@ -41,7 +46,7 @@ public class RepositoryViewContentProvider implements IStructuredContentProvider
public void dispose() {
}
-
+
public Object[] getElements(Object parent) {
return getChildren(parent);
}
@@ -51,18 +56,18 @@ public class RepositoryViewContentProvider implements IStructuredContentProvider
}
public boolean hasChildren(Object parent) {
- if(parent instanceof IMavenRepositoryNode){
- return ((IMavenRepositoryNode)parent).hasChildren();
+ if(parent instanceof IMavenRepositoryNode) {
+ return ((IMavenRepositoryNode) parent).hasChildren();
}
return false;
}
- public Object[] getRootNodes(){
- if(localNode == null){
+ public Object[] getRootNodes() {
+ if(localNode == null) {
localNode = new LocalRepositoryRootNode();
-
+
}
- if(globalNode == null){
+ if(globalNode == null) {
globalNode = new GlobalRepositoriesNode();
}
if(projectNode == null) {
@@ -71,15 +76,15 @@ public class RepositoryViewContentProvider implements IStructuredContentProvider
if(customNode == null) {
customNode = new CustomRepositoriesNode();
}
- return new Object[]{localNode, globalNode, projectNode, customNode};
+ return new Object[] {localNode, globalNode, projectNode, customNode};
}
-
+
public Object[] getChildren(Object parent) {
- if(parent instanceof IViewSite){
+ if(parent instanceof IViewSite) {
return getRootNodes();
- } else if(parent instanceof IMavenRepositoryNode){
- return ((IMavenRepositoryNode)parent).getChildren();
+ } else if(parent instanceof IMavenRepositoryNode) {
+ return ((IMavenRepositoryNode) parent).getChildren();
}
return new Object[0];
}
-} \ No newline at end of file
+}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/RepositoryViewLabelProvider.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/RepositoryViewLabelProvider.java
index e83707bf..2d91d9c8 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/RepositoryViewLabelProvider.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/RepositoryViewLabelProvider.java
@@ -16,10 +16,6 @@ import org.eclipse.jface.viewers.IColorProvider;
import org.eclipse.jface.viewers.IFontProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.viewers.StyledString;
-
-import org.eclipse.m2e.core.ui.internal.util.M2EUIUtils;
-import org.eclipse.m2e.core.ui.internal.views.nodes.IMavenRepositoryNode;
-import org.eclipse.m2e.core.ui.internal.views.nodes.RepositoryNode;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
@@ -29,28 +25,34 @@ import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.PlatformUI;
+import org.eclipse.m2e.core.ui.internal.util.M2EUIUtils;
+import org.eclipse.m2e.core.ui.internal.views.nodes.IMavenRepositoryNode;
+import org.eclipse.m2e.core.ui.internal.views.nodes.RepositoryNode;
+
+
/**
* RepositoryViewLabelProvider
- *
+ *
* @author dyocum
*/
-public class RepositoryViewLabelProvider extends LabelProvider implements IStyledLabelProvider, IColorProvider, IFontProvider {
+public class RepositoryViewLabelProvider extends LabelProvider implements IStyledLabelProvider, IColorProvider,
+ IFontProvider {
private Font italicFont;
- public RepositoryViewLabelProvider(Font treeFont){
+
+ public RepositoryViewLabelProvider(Font treeFont) {
int size = 0;
FontData[] data = treeFont.getFontData();
- if(data == null){
+ if(data == null) {
size = 12;
} else {
- for(int i=0;i<data.length;i++){
+ for(int i = 0; i < data.length; i++ ) {
size = Math.max(size, data[i].getHeight());
}
}
italicFont = M2EUIUtils.deriveFont(treeFont, SWT.ITALIC, size);
}
-
-
+
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.BaseLabelProvider#dispose()
*/
@@ -59,17 +61,16 @@ public class RepositoryViewLabelProvider extends LabelProvider implements IStyle
super.dispose();
}
-
public String getText(Object obj) {
- if(obj instanceof IMavenRepositoryNode){
- return ((IMavenRepositoryNode)obj).getName();
+ if(obj instanceof IMavenRepositoryNode) {
+ return ((IMavenRepositoryNode) obj).getName();
}
return obj.toString();
}
public Image getImage(Object obj) {
- if(obj instanceof IMavenRepositoryNode){
- return ((IMavenRepositoryNode)obj).getImage();
+ if(obj instanceof IMavenRepositoryNode) {
+ return ((IMavenRepositoryNode) obj).getImage();
}
return PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_ELEMENT);
}
@@ -79,18 +80,18 @@ public class RepositoryViewLabelProvider extends LabelProvider implements IStyle
}
public Color getForeground(Object element) {
- if(element instanceof RepositoryNode){
- if(((RepositoryNode)element).isEnabledIndex()){
+ if(element instanceof RepositoryNode) {
+ if(((RepositoryNode) element).isEnabledIndex()) {
return Display.getDefault().getSystemColor(SWT.COLOR_BLACK);
}
return Display.getDefault().getSystemColor(SWT.COLOR_DARK_GRAY);
- }
+ }
return Display.getDefault().getSystemColor(SWT.COLOR_BLACK);
}
public Font getFont(Object element) {
- if(element instanceof IMavenRepositoryNode){
- boolean updating = ((IMavenRepositoryNode)element).isUpdating();
+ if(element instanceof IMavenRepositoryNode) {
+ boolean updating = ((IMavenRepositoryNode) element).isUpdating();
return updating ? italicFont : null;
}
return null;
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/AbstractIndexedRepositoryNode.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/AbstractIndexedRepositoryNode.java
index 8d1cec99..60cc0fdb 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/AbstractIndexedRepositoryNode.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/AbstractIndexedRepositoryNode.java
@@ -13,14 +13,15 @@ package org.eclipse.m2e.core.ui.internal.views.nodes;
import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.swt.graphics.Image;
import org.eclipse.m2e.core.internal.index.nexus.IndexedArtifactGroup;
import org.eclipse.m2e.core.internal.index.nexus.NexusIndex;
import org.eclipse.m2e.core.ui.internal.MavenImages;
-import org.eclipse.swt.graphics.Image;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
@@ -34,7 +35,7 @@ public abstract class AbstractIndexedRepositoryNode implements IMavenRepositoryN
protected static final Object[] NO_CHILDREN = new Object[0];
protected final NexusIndex index;
-
+
protected AbstractIndexedRepositoryNode(NexusIndex index) {
this.index = index;
}
@@ -63,7 +64,7 @@ public abstract class AbstractIndexedRepositoryNode implements IMavenRepositoryN
}
public Image getImage() {
- return MavenImages.IMG_INDEX;
+ return MavenImages.IMG_INDEX;
}
public boolean hasChildren() {
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/AbstractRepositoriesNode.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/AbstractRepositoriesNode.java
index e13e7f5f..029affd3 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/AbstractRepositoriesNode.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/AbstractRepositoriesNode.java
@@ -14,22 +14,25 @@ package org.eclipse.m2e.core.ui.internal.views.nodes;
import java.util.ArrayList;
import java.util.List;
+import org.eclipse.swt.graphics.Image;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.internal.index.nexus.NexusIndex;
import org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager;
import org.eclipse.m2e.core.repository.IRepository;
import org.eclipse.m2e.core.repository.IRepositoryRegistry;
import org.eclipse.m2e.core.ui.internal.MavenImages;
-import org.eclipse.swt.graphics.Image;
+
/**
* AbstractRepositoriesNode
- *
+ *
* @author igor
*/
public abstract class AbstractRepositoriesNode implements IMavenRepositoryNode {
protected final NexusIndexManager indexManager = (NexusIndexManager) MavenPlugin.getIndexManager();
+
protected final IRepositoryRegistry repositoryRegistry = MavenPlugin.getRepositoryRegistry();
public Object[] getChildren() {
@@ -37,11 +40,11 @@ public abstract class AbstractRepositoriesNode implements IMavenRepositoryNode {
ArrayList<Object> mirrorNodes = new ArrayList<Object>();
ArrayList<Object> globalRepoNodes = new ArrayList<Object>();
- for (IRepository repo : getRepositories()) {
+ for(IRepository repo : getRepositories()) {
NexusIndex index = indexManager.getIndex(repo);
RepositoryNode node = new RepositoryNode(index);
- if (repo.getMirrorOf() != null) {
- mirrorNodes.add(node);
+ if(repo.getMirrorOf() != null) {
+ mirrorNodes.add(node);
} else {
globalRepoNodes.add(node);
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/CustomRepositoriesNode.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/CustomRepositoriesNode.java
index 30135673..2d05cf49 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/CustomRepositoriesNode.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/CustomRepositoriesNode.java
@@ -13,13 +13,14 @@ package org.eclipse.m2e.core.ui.internal.views.nodes;
import java.util.List;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.m2e.core.repository.IRepository;
import org.eclipse.m2e.core.repository.IRepositoryRegistry;
+import org.eclipse.m2e.core.ui.internal.Messages;
+
/**
* CustomRepositoriesNode
- *
+ *
* @author igor
*/
public class CustomRepositoriesNode extends AbstractRepositoriesNode {
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/GlobalRepositoriesNode.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/GlobalRepositoriesNode.java
index b8ede9e1..5bd07027 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/GlobalRepositoriesNode.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/GlobalRepositoriesNode.java
@@ -13,9 +13,9 @@ package org.eclipse.m2e.core.ui.internal.views.nodes;
import java.util.List;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.m2e.core.repository.IRepository;
import org.eclipse.m2e.core.repository.IRepositoryRegistry;
+import org.eclipse.m2e.core.ui.internal.Messages;
/**
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/IArtifactNode.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/IArtifactNode.java
index 54c908fb..fab8dbe4 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/IArtifactNode.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/IArtifactNode.java
@@ -11,10 +11,9 @@
package org.eclipse.m2e.core.ui.internal.views.nodes;
-
/**
* AbstractArtifactNode
- *
+ *
* @author dyocum
*/
public interface IArtifactNode {
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/IMavenRepositoryNode.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/IMavenRepositoryNode.java
index b296ca7f..0bd0caee 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/IMavenRepositoryNode.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/IMavenRepositoryNode.java
@@ -13,16 +13,21 @@ package org.eclipse.m2e.core.ui.internal.views.nodes;
import org.eclipse.swt.graphics.Image;
+
/**
* MavenRepositoryRootNode
- *
+ *
* @author dyocum
*/
public interface IMavenRepositoryNode {
public Object[] getChildren();
+
public String getName();
+
public Image getImage();
+
public boolean hasChildren();
+
public boolean isUpdating();
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/IndexedArtifactGroupNode.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/IndexedArtifactGroupNode.java
index b00a472e..6e62b866 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/IndexedArtifactGroupNode.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/IndexedArtifactGroupNode.java
@@ -14,44 +14,48 @@ package org.eclipse.m2e.core.ui.internal.views.nodes;
import java.util.ArrayList;
import java.util.Collection;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.ISharedImages;
+import org.eclipse.ui.PlatformUI;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.internal.index.IndexedArtifact;
import org.eclipse.m2e.core.internal.index.nexus.IndexedArtifactGroup;
import org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.ISharedImages;
-import org.eclipse.ui.PlatformUI;
/**
* IndexedArtifactGroupNode
- *
+ *
* @author dyocum
*/
public class IndexedArtifactGroupNode implements IMavenRepositoryNode, IArtifactNode {
private IndexedArtifactGroup indexedArtifactGroup;
+
private Object[] kids = null;
- public IndexedArtifactGroupNode(IndexedArtifactGroup group){
+
+ public IndexedArtifactGroupNode(IndexedArtifactGroup group) {
this.indexedArtifactGroup = group;
}
+
/* (non-Javadoc)
* @see org.eclipse.m2e.ui.internal.views.IMavenRepositoryNode#getChildren()
*/
public Object[] getChildren() {
NexusIndexManager indexManager = (NexusIndexManager) MavenPlugin.getIndexManager();
-
+
IndexedArtifactGroup resolvedGroup = indexManager.resolveGroup(indexedArtifactGroup);
//IndexedArtifactGroup resolvedGroup = indexedArtifactGroup;
ArrayList<Object> results = new ArrayList<Object>();
Collection<IndexedArtifactGroup> groups = resolvedGroup.getNodes().values();
- for(IndexedArtifactGroup group : groups){
- IndexedArtifactGroupNode node = new IndexedArtifactGroupNode(group);
- results.add(node);
+ for(IndexedArtifactGroup group : groups) {
+ IndexedArtifactGroupNode node = new IndexedArtifactGroupNode(group);
+ results.add(node);
}
-
+
Collection<IndexedArtifact> artifacts = resolvedGroup.getFiles().values(); // IndexedArtifact
- for(IndexedArtifact artifact : artifacts){
+ for(IndexedArtifact artifact : artifacts) {
IndexedArtifactNode artifactNode = new IndexedArtifactNode(artifact);
results.add(artifactNode);
}
@@ -78,18 +82,21 @@ public class IndexedArtifactGroupNode implements IMavenRepositoryNode, IArtifact
// return kids != null && kids.length > 0;
return true;
}
+
/* (non-Javadoc)
* @see org.eclipse.m2e.ui.internal.views.nodes.IMavenRepositoryNode#getImage()
*/
public Image getImage() {
return PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_FOLDER);
}
+
/* (non-Javadoc)
* @see org.eclipse.m2e.ui.internal.views.nodes.IArtifactNode#getDocumentKey()
*/
public String getDocumentKey() {
return indexedArtifactGroup.getPrefix();
}
+
/* (non-Javadoc)
* @see org.eclipse.m2e.ui.internal.views.nodes.IMavenRepositoryNode#isUpdating()
*/
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/LocalRepositoryNode.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/LocalRepositoryNode.java
index b42e29a0..291bedaf 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/LocalRepositoryNode.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/LocalRepositoryNode.java
@@ -11,13 +11,14 @@
package org.eclipse.m2e.core.ui.internal.views.nodes;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.m2e.core.internal.index.nexus.NexusIndex;
import org.eclipse.m2e.core.repository.IRepository;
+import org.eclipse.m2e.core.ui.internal.Messages;
+
/**
* LocalRepositoryNode
- *
+ *
* @author igor
*/
public class LocalRepositoryNode extends AbstractIndexedRepositoryNode {
@@ -30,7 +31,7 @@ public class LocalRepositoryNode extends AbstractIndexedRepositoryNode {
IRepository repository = index.getRepository();
StringBuilder sb = new StringBuilder();
sb.append(Messages.LocalRepositoryNode_local);
- if (repository.getBasedir() != null) {
+ if(repository.getBasedir() != null) {
sb.append(" (").append(repository.getBasedir().getAbsolutePath()).append(')'); //$NON-NLS-1$
}
return sb.toString();
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/LocalRepositoryRootNode.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/LocalRepositoryRootNode.java
index 6cc82b6a..67e7f35c 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/LocalRepositoryRootNode.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/LocalRepositoryRootNode.java
@@ -11,28 +11,27 @@
package org.eclipse.m2e.core.ui.internal.views.nodes;
+import org.eclipse.swt.graphics.Image;
+
import org.eclipse.m2e.core.MavenPlugin;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.m2e.core.internal.index.nexus.NexusIndex;
import org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager;
import org.eclipse.m2e.core.ui.internal.MavenImages;
-import org.eclipse.swt.graphics.Image;
+import org.eclipse.m2e.core.ui.internal.Messages;
+
/**
* LocalRepositoryNode
- *
+ *
* @author dyocum
*/
-public class LocalRepositoryRootNode implements IMavenRepositoryNode{
+public class LocalRepositoryRootNode implements IMavenRepositoryNode {
public Object[] getChildren() {
NexusIndexManager indexManager = (NexusIndexManager) MavenPlugin.getIndexManager();
NexusIndex localIndex = indexManager.getLocalIndex();
NexusIndex workspaceIndex = indexManager.getWorkspaceIndex();
- return new Object[]{
- new LocalRepositoryNode(localIndex),
- new WorkspaceRepositoryNode(workspaceIndex)
- };
+ return new Object[] {new LocalRepositoryNode(localIndex), new WorkspaceRepositoryNode(workspaceIndex)};
}
public String getName() {
@@ -50,5 +49,5 @@ public class LocalRepositoryRootNode implements IMavenRepositoryNode{
public boolean isUpdating() {
return false;
}
-
+
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/ProjectRepositoriesNode.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/ProjectRepositoriesNode.java
index f057af73..2224aabb 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/ProjectRepositoriesNode.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/ProjectRepositoriesNode.java
@@ -13,14 +13,15 @@ package org.eclipse.m2e.core.ui.internal.views.nodes;
import java.util.ArrayList;
+import org.eclipse.swt.graphics.Image;
+
import org.eclipse.m2e.core.MavenPlugin;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.m2e.core.internal.index.nexus.NexusIndex;
import org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager;
import org.eclipse.m2e.core.repository.IRepository;
import org.eclipse.m2e.core.repository.IRepositoryRegistry;
import org.eclipse.m2e.core.ui.internal.MavenImages;
-import org.eclipse.swt.graphics.Image;
+import org.eclipse.m2e.core.ui.internal.Messages;
/**
@@ -29,6 +30,7 @@ import org.eclipse.swt.graphics.Image;
public class ProjectRepositoriesNode implements IMavenRepositoryNode {
private NexusIndexManager indexManager = (NexusIndexManager) MavenPlugin.getIndexManager();
+
private IRepositoryRegistry repositoryRegistry = MavenPlugin.getRepositoryRegistry();
public Object[] getChildren() {
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/RepositoryNode.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/RepositoryNode.java
index de94a5bd..33bbadcf 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/RepositoryNode.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/RepositoryNode.java
@@ -11,20 +11,21 @@
package org.eclipse.m2e.core.ui.internal.views.nodes;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.m2e.core.internal.index.nexus.NexusIndex;
import org.eclipse.m2e.core.repository.IRepository;
+import org.eclipse.m2e.core.ui.internal.Messages;
+
/**
* LocalRepsoitoryNode
- *
+ *
* @author dyocum
*/
public class RepositoryNode extends AbstractIndexedRepositoryNode {
private final IRepository repository;
- public RepositoryNode(NexusIndex index){
+ public RepositoryNode(NexusIndex index) {
super(index);
this.repository = index.getRepository();
}
@@ -33,13 +34,13 @@ public class RepositoryNode extends AbstractIndexedRepositoryNode {
StringBuilder sb = new StringBuilder();
sb.append(repository.getId());
sb.append(" (").append(repository.getUrl()).append(")"); //$NON-NLS-1$ //$NON-NLS-2$
- if (repository.getMirrorOf() != null) {
+ if(repository.getMirrorOf() != null) {
sb.append(" [mirrorOf=").append(repository.getMirrorOf()).append("]"); //$NON-NLS-2$
}
- if (repository.getMirrorId() != null) {
+ if(repository.getMirrorId() != null) {
sb.append(" [mirrored by ").append(repository.getMirrorId()).append("]"); //$NON-NLS-2$
}
- if (isUpdating()) {
+ if(isUpdating()) {
sb.append(Messages.RepositoryNode_updating);
}
return sb.toString();
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/WorkspaceRepositoryNode.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/WorkspaceRepositoryNode.java
index 2ed0da50..5d2fb626 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/WorkspaceRepositoryNode.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/views/nodes/WorkspaceRepositoryNode.java
@@ -11,12 +11,13 @@
package org.eclipse.m2e.core.ui.internal.views.nodes;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.m2e.core.internal.index.nexus.NexusIndex;
+import org.eclipse.m2e.core.ui.internal.Messages;
+
/**
* WorkspaceRepositoryNode
- *
+ *
* @author igor
*/
public class WorkspaceRepositoryNode extends AbstractIndexedRepositoryNode {
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstactCreateMavenProjectJob.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstactCreateMavenProjectJob.java
index 83ae24eb..29c050f7 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstactCreateMavenProjectJob.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstactCreateMavenProjectJob.java
@@ -21,11 +21,12 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
-import org.eclipse.m2e.core.project.IMavenProjectImportResult;
-import org.eclipse.m2e.core.ui.internal.actions.OpenMavenConsoleAction;
import org.eclipse.ui.IWorkingSet;
import org.eclipse.ui.progress.IProgressConstants;
+import org.eclipse.m2e.core.project.IMavenProjectImportResult;
+import org.eclipse.m2e.core.ui.internal.actions.OpenMavenConsoleAction;
+
public abstract class AbstactCreateMavenProjectJob extends WorkspaceJob {
@@ -60,5 +61,5 @@ public abstract class AbstactCreateMavenProjectJob extends WorkspaceJob {
protected static ArrayList<IProject> toProjects(List<IMavenProjectImportResult> results) {
return AbstractCreateMavenProjectsOperation.toProjects(results);
}
-
+
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstractCreateMavenProjectsOperation.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstractCreateMavenProjectsOperation.java
index 771a1e19..15006e54 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstractCreateMavenProjectsOperation.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstractCreateMavenProjectsOperation.java
@@ -22,9 +22,10 @@ import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.ISchedulingRule;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.operation.IRunnableWithProgress;
+import org.eclipse.ui.IWorkingSet;
+
import org.eclipse.m2e.core.project.IMavenProjectImportResult;
import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
-import org.eclipse.ui.IWorkingSet;
public abstract class AbstractCreateMavenProjectsOperation implements IRunnableWithProgress {
@@ -86,7 +87,7 @@ public abstract class AbstractCreateMavenProjectsOperation implements IRunnableW
public static IStatus toStatus(InvocationTargetException e) {
Throwable t = e.getCause();
- if (t instanceof CoreException) {
+ if(t instanceof CoreException) {
return ((CoreException) t).getStatus();
}
return new Status(IStatus.ERROR, M2EUIPluginActivator.PLUGIN_ID, t.getMessage(), t);
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstractMavenProjectWizard.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstractMavenProjectWizard.java
index 33eb20ca..becf4dad 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstractMavenProjectWizard.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstractMavenProjectWizard.java
@@ -16,12 +16,13 @@ import java.util.List;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkingSet;
+
import org.eclipse.m2e.core.internal.lifecyclemapping.discovery.IMavenDiscovery;
import org.eclipse.m2e.core.project.ProjectImportConfiguration;
import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
import org.eclipse.m2e.core.ui.internal.actions.SelectionUtil;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkingSet;
@SuppressWarnings("restriction")
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstractMavenWizardPage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstractMavenWizardPage.java
index 4c961dde..ee5f5fbb 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstractMavenWizardPage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/AbstractMavenWizardPage.java
@@ -24,16 +24,16 @@ import org.eclipse.core.runtime.IStatus;
import org.eclipse.jface.dialogs.DialogSettings;
import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.jface.wizard.WizardPage;
-import org.eclipse.m2e.core.MavenPlugin;
-import org.eclipse.m2e.core.internal.MavenPluginActivator;
-import org.eclipse.m2e.core.project.ProjectImportConfiguration;
-import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.m2e.core.internal.MavenPluginActivator;
+import org.eclipse.m2e.core.project.ProjectImportConfiguration;
+import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
+import org.eclipse.m2e.core.ui.internal.Messages;
+
/**
* AbstractMavenImportWizardPage
@@ -127,15 +127,14 @@ public abstract class AbstractMavenWizardPage extends WizardPage {
/** Loads the dialog settings using the page name as a section name. */
private void initDialogSettings() {
IDialogSettings pluginSettings;
-
+
// This is strictly to get SWT Designer working locally without blowing up.
- if( MavenPluginActivator.getDefault() == null ) {
+ if(MavenPluginActivator.getDefault() == null) {
pluginSettings = new DialogSettings("Workbench");
+ } else {
+ pluginSettings = M2EUIPluginActivator.getDefault().getDialogSettings();
}
- else {
- pluginSettings = M2EUIPluginActivator.getDefault().getDialogSettings();
- }
-
+
dialogSettings = pluginSettings.getSection(getName());
if(dialogSettings == null) {
dialogSettings = pluginSettings.addNewSection(getName());
@@ -200,25 +199,31 @@ public abstract class AbstractMavenWizardPage extends WizardPage {
protected String validateArtifactIdInput(String text) {
return validateIdInput(text, true);
}
+
protected String validateGroupIdInput(String text) {
return validateIdInput(text, false);
}
+
private String validateIdInput(String text, boolean artifact) {
if(text == null || text.length() == 0) {
- return artifact? Messages.wizardProjectPageMaven2ValidatorArtifactID: Messages.wizardProjectPageMaven2ValidatorGroupID;
+ return artifact ? Messages.wizardProjectPageMaven2ValidatorArtifactID
+ : Messages.wizardProjectPageMaven2ValidatorGroupID;
}
if(text.contains(" ")) { //$NON-NLS-1$
- return artifact? Messages.wizardProjectPageMaven2ValidatorArtifactIDnospaces: Messages.wizardProjectPageMaven2ValidatorGroupIDnospaces;
+ return artifact ? Messages.wizardProjectPageMaven2ValidatorArtifactIDnospaces
+ : Messages.wizardProjectPageMaven2ValidatorGroupIDnospaces;
}
IStatus nameStatus = ResourcesPlugin.getWorkspace().validateName(text, IResource.PROJECT);
if(!nameStatus.isOK()) {
- return NLS.bind(artifact? Messages.wizardProjectPageMaven2ValidatorArtifactIDinvalid: Messages.wizardProjectPageMaven2ValidatorGroupIDinvalid, nameStatus.getMessage());
+ return NLS.bind(artifact ? Messages.wizardProjectPageMaven2ValidatorArtifactIDinvalid
+ : Messages.wizardProjectPageMaven2ValidatorGroupIDinvalid, nameStatus.getMessage());
}
if(!text.matches("[A-Za-z0-9_\\-.]+")) { //$NON-NLS-1$
- return NLS.bind(artifact? Messages.wizardProjectPageMaven2ValidatorArtifactIDinvalid: Messages.wizardProjectPageMaven2ValidatorGroupIDinvalid, text);
+ return NLS.bind(artifact ? Messages.wizardProjectPageMaven2ValidatorArtifactIDinvalid
+ : Messages.wizardProjectPageMaven2ValidatorGroupIDinvalid, text);
}
return null;
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/CustomArchetypeDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/CustomArchetypeDialog.java
index 45fb7375..ddc5d3dc 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/CustomArchetypeDialog.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/CustomArchetypeDialog.java
@@ -20,8 +20,6 @@ import org.eclipse.jface.dialogs.DialogSettings;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.jface.dialogs.TitleAreaDialog;
-import org.eclipse.m2e.core.ui.internal.Messages;
-import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
@@ -33,6 +31,10 @@ import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
+import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
+import org.eclipse.m2e.core.ui.internal.Messages;
+
+
/**
* Custom Archetype dialog
*
@@ -43,7 +45,7 @@ public class CustomArchetypeDialog extends TitleAreaDialog {
private static final String DIALOG_SETTINGS = CustomArchetypeDialog.class.getName();
private static final String KEY_ARCHETYPE_GROUP_ID = "archetypeGroupId"; //$NON-NLS-1$
-
+
private static final String KEY_ARCHETYPE_ARTIFACT_ID = "archetypeArtifactId"; //$NON-NLS-1$
private static final String KEY_ARCHETYPE_VERSION = "archetypeVersion"; //$NON-NLS-1$
@@ -134,18 +136,18 @@ public class CustomArchetypeDialog extends TitleAreaDialog {
Label repositoryLabel = new Label(composite, SWT.NONE);
repositoryLabel.setText(Messages.CustomArchetypeDialog_lblRepo);
-
+
repositoryCombo = new Combo(composite, SWT.NONE);
repositoryCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
repositoryCombo.setItems(getSavedValues(KEY_REPOSITORY_URL));
repositoryCombo.setData("name", "repository"); //$NON-NLS-1$ //$NON-NLS-2$
-
+
ModifyListener modifyListener = new ModifyListener() {
public void modifyText(final ModifyEvent e) {
update();
}
};
-
+
archetypeGroupIdCombo.addModifyListener(modifyListener);
archetypeArtifactIdCombo.addModifyListener(modifyListener);
archetypeVersionCombo.addModifyListener(modifyListener);
@@ -179,7 +181,7 @@ public class CustomArchetypeDialog extends TitleAreaDialog {
archetypeGroupId = archetypeGroupIdCombo.getText().trim();
archetypeVersion = archetypeVersionCombo.getText().trim();
repositoryUrl = repositoryCombo.getText().trim();
-
+
saveValue(KEY_ARCHETYPE_GROUP_ID, archetypeGroupId);
saveValue(KEY_ARCHETYPE_ARTIFACT_ID, archetypeArtifactId);
saveValue(KEY_ARCHETYPE_VERSION, archetypeVersion);
@@ -199,11 +201,11 @@ public class CustomArchetypeDialog extends TitleAreaDialog {
public String getArchetypeVersion() {
return archetypeVersion;
}
-
+
public String getRepositoryUrl() {
return repositoryUrl;
}
-
+
private void saveValue(String key, String value) {
List<String> dirs = new ArrayList<String>();
dirs.addAll(Arrays.asList(getSavedValues(key)));
@@ -228,23 +230,23 @@ public class CustomArchetypeDialog extends TitleAreaDialog {
setErrorMessage(null);
setMessage(null, IStatus.WARNING);
- if(archetypeGroupIdCombo.getText().trim().length()==0) {
+ if(archetypeGroupIdCombo.getText().trim().length() == 0) {
setErrorMessage(Messages.CustomArchetypeDialog_error_grid);
return false;
}
-
- if(archetypeArtifactIdCombo.getText().trim().length()==0) {
+
+ if(archetypeArtifactIdCombo.getText().trim().length() == 0) {
setErrorMessage(Messages.CustomArchetypeDialog_error_artid);
return false;
}
-
- if(archetypeVersionCombo.getText().trim().length()==0) {
+
+ if(archetypeVersionCombo.getText().trim().length() == 0) {
setErrorMessage(Messages.CustomArchetypeDialog_error_version);
return false;
}
-
+
// TODO check if archetype available locally
-
+
return true;
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/LifecycleMappingPage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/LifecycleMappingPage.java
index 37ebd277..49879743 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/LifecycleMappingPage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/LifecycleMappingPage.java
@@ -214,7 +214,7 @@ public class LifecycleMappingPage extends WizardPage {
for(IMavenDiscoveryProposal prop : all) {
values.add(NLS.bind(Messages.LifecycleMappingPage_installDescription, prop.toString()));
}
- if (prov.isError(mappingConfiguration)) {
+ if(prov.isError(mappingConfiguration)) {
values.add(Messages.LifecycleMappingPage_resolveLaterDescription);
} else {
values.add(EMPTY_STRING);
@@ -224,8 +224,8 @@ public class LifecycleMappingPage extends WizardPage {
.size()]));
Control cont = edit.getControl();
//this attempts to disable text edits in the combo..
- if (cont instanceof CCombo) {
- CCombo combo = (CCombo)cont;
+ if(cont instanceof CCombo) {
+ CCombo combo = (CCombo) cont;
combo.setEditable(false);
}
return edit;
@@ -387,12 +387,10 @@ public class LifecycleMappingPage extends WizardPage {
ILifecycleMappingLabelProvider prov = (ILifecycleMappingLabelProvider) ((IStructuredSelection) event
.getSelection()).getFirstElement();
if(ignore.contains(prov)) {
- details
- .setText(Messages.LifecycleMappingPage_doNotExecutePomDescription);
+ details.setText(Messages.LifecycleMappingPage_doNotExecutePomDescription);
license.setText(EMPTY_STRING);
} else if(ignoreAtDefinition.contains(prov)) {
- details
- .setText(Messages.LifecycleMappingPage_doNotExecuteParentDescription);
+ details.setText(Messages.LifecycleMappingPage_doNotExecuteParentDescription);
license.setText(EMPTY_STRING);
} else {
IMavenDiscoveryProposal proposal = mappingConfiguration.getSelectedProposal(prov.getKey());
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenArtifactComponent.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenArtifactComponent.java
index 456e18ca..78ee06bf 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenArtifactComponent.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenArtifactComponent.java
@@ -11,8 +11,6 @@
package org.eclipse.m2e.core.ui.internal.wizards;
-import org.apache.maven.model.Model;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.layout.GridData;
@@ -23,6 +21,10 @@ import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
+import org.apache.maven.model.Model;
+
+import org.eclipse.m2e.core.ui.internal.Messages;
+
public class MavenArtifactComponent extends Composite {
@@ -39,7 +41,7 @@ public class MavenArtifactComponent extends Composite {
// MNGECLIPSE-688 add EJB Support
public static final String EJB = "ejb"; //$NON-NLS-1$
- public static final String[] PACKAGING_OPTIONS = {JAR, POM, WAR };
+ public static final String[] PACKAGING_OPTIONS = {JAR, POM, WAR};
public static final String DEFAULT_PACKAGING = JAR;
@@ -162,19 +164,17 @@ public class MavenArtifactComponent extends Composite {
packagingCombo.removeModifyListener(modifyingListener);
}
}
-
+
/* (non-Javadoc)
* @see org.eclipse.swt.widgets.Composite#setFocus()
*/
public boolean setFocus() {
- if (groupIdCombo != null) {
+ if(groupIdCombo != null) {
return groupIdCombo.setFocus();
}
return super.setFocus();
}
-
-
public String getModelName() {
return nameCombo.getText();
}
@@ -230,19 +230,19 @@ public class MavenArtifactComponent extends Composite {
public Model getModel() {
Model model = new Model();
model.setModelVersion("4.0.0"); //$NON-NLS-1$
-
+
model.setGroupId(getGroupId());
model.setArtifactId(getArtifactId());
model.setVersion(getVersion());
model.setPackaging(getPackaging());
-
- if(getModelName().length()>0) {
+
+ if(getModelName().length() > 0) {
model.setName(getModelName());
}
- if(getDescription().length()>0) {
+ if(getDescription().length() > 0) {
model.setDescription(getDescription());
}
-
+
return model;
}
@@ -266,7 +266,7 @@ public class MavenArtifactComponent extends Composite {
public Combo getNameCombo() {
return nameCombo;
}
-
+
public void setWidthGroup(WidthGroup widthGroup) {
widthGroup.addControl(this.groupIdlabel);
widthGroup.addControl(this.artifactIdLabel);
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenDependenciesWizardPage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenDependenciesWizardPage.java
index a236cdc9..e8bba957 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenDependenciesWizardPage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenDependenciesWizardPage.java
@@ -15,7 +15,6 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Set;
-import org.apache.maven.model.Dependency;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.LabelProvider;
@@ -25,13 +24,6 @@ import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerComparator;
import org.eclipse.jface.window.Window;
import org.eclipse.jface.wizard.IWizardContainer;
-
-import org.eclipse.m2e.core.internal.index.IndexedArtifact;
-import org.eclipse.m2e.core.internal.index.IndexedArtifactFile;
-import org.eclipse.m2e.core.project.ProjectImportConfiguration;
-import org.eclipse.m2e.core.ui.internal.MavenImages;
-import org.eclipse.m2e.core.ui.internal.Messages;
-import org.eclipse.m2e.core.ui.internal.dialogs.MavenRepositorySearchDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
@@ -42,19 +34,28 @@ import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
+import org.apache.maven.model.Dependency;
+
+import org.eclipse.m2e.core.internal.index.IndexedArtifact;
+import org.eclipse.m2e.core.internal.index.IndexedArtifactFile;
+import org.eclipse.m2e.core.project.ProjectImportConfiguration;
+import org.eclipse.m2e.core.ui.internal.MavenImages;
+import org.eclipse.m2e.core.ui.internal.Messages;
+import org.eclipse.m2e.core.ui.internal.dialogs.MavenRepositorySearchDialog;
+
+
/**
- * Wizard page for gathering information about Maven artifacts. Allows to select
- * artifacts from the repository index.
+ * Wizard page for gathering information about Maven artifacts. Allows to select artifacts from the repository index.
*/
public class MavenDependenciesWizardPage extends AbstractMavenWizardPage {
- /**
+ /**
* Viewer containing dependencies
*/
TableViewer dependencyViewer;
-
+
private Dependency[] dependencies;
-
+
/**
* Listeners notified about all changes
*/
@@ -65,8 +66,9 @@ public class MavenDependenciesWizardPage extends AbstractMavenWizardPage {
public MavenDependenciesWizardPage() {
this(null, Messages.wizardProjectPageDependenciesTitle, Messages.wizardProjectPageDependenciesDescription);
}
-
- public MavenDependenciesWizardPage(ProjectImportConfiguration projectImportConfiguration, String title, String description) {
+
+ public MavenDependenciesWizardPage(ProjectImportConfiguration projectImportConfiguration, String title,
+ String description) {
super("MavenDependenciesWizardPage", projectImportConfiguration); //$NON-NLS-1$
setTitle(title);
setDescription(description);
@@ -76,11 +78,11 @@ public class MavenDependenciesWizardPage extends AbstractMavenWizardPage {
public void setShowScope(boolean showScope) {
this.showScope = showScope;
}
-
+
public void setDependencies(Dependency[] dependencies) {
this.dependencies = dependencies;
}
-
+
/**
* {@inheritDoc} This wizard page contains a <code>TableViewer</code> to display the currently included Maven2
* directories and a button area with buttons to add further dependencies or remove existing ones.
@@ -90,10 +92,10 @@ public class MavenDependenciesWizardPage extends AbstractMavenWizardPage {
GridLayout layout = new GridLayout(3, false);
composite.setLayout(layout);
- if(dependencies!=null) {
+ if(dependencies != null) {
createArtifacts(composite);
}
-
+
createAdvancedSettings(composite, new GridData(SWT.FILL, SWT.TOP, false, false, 3, 1));
setControl(composite);
@@ -105,7 +107,7 @@ public class MavenDependenciesWizardPage extends AbstractMavenWizardPage {
Label mavenArtifactsLabel = new Label(composite, SWT.NONE);
mavenArtifactsLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 3, 1));
mavenArtifactsLabel.setText(org.eclipse.m2e.core.ui.internal.Messages.MavenDependenciesWizardPage_lblArtifacts);
-
+
dependencyViewer = new TableViewer(composite, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL);
dependencyViewer.getTable().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 2));
dependencyViewer.setUseHashlookup(true);
@@ -120,8 +122,11 @@ public class MavenDependenciesWizardPage extends AbstractMavenWizardPage {
addDependencyButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
- MavenRepositorySearchDialog dialog = MavenRepositorySearchDialog.createSearchDependencyDialog(getShell(), //
- org.eclipse.m2e.core.ui.internal.Messages.MavenDependenciesWizardPage_searchDialog_title, null, null, false);
+ MavenRepositorySearchDialog dialog = MavenRepositorySearchDialog
+ .createSearchDependencyDialog(
+ getShell(), //
+ org.eclipse.m2e.core.ui.internal.Messages.MavenDependenciesWizardPage_searchDialog_title, null, null,
+ false);
if(dialog.open() == Window.OK) {
Object result = dialog.getFirstResult();
if(result instanceof IndexedArtifactFile) {
@@ -146,7 +151,7 @@ public class MavenDependenciesWizardPage extends AbstractMavenWizardPage {
removeDependencyButton.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, true));
removeDependencyButton.setText(Messages.wizardProjectPageDependenciesRemove);
removeDependencyButton.setEnabled(false);
-
+
removeDependencyButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
IStructuredSelection selection = (IStructuredSelection) dependencyViewer.getSelection();
@@ -164,7 +169,7 @@ public class MavenDependenciesWizardPage extends AbstractMavenWizardPage {
}
});
}
-
+
public IWizardContainer getContainer() {
return super.getContainer();
}
@@ -177,7 +182,7 @@ public class MavenDependenciesWizardPage extends AbstractMavenWizardPage {
setErrorMessage(null);
return true;
}
-
+
/**
* Notify listeners about changes
*/
@@ -191,12 +196,11 @@ public class MavenDependenciesWizardPage extends AbstractMavenWizardPage {
public void addListener(ISelectionChangedListener listener) {
listeners.add(listener);
}
-
+
/**
* Returns dependencies currently chosen by the user.
*
- * @return dependencies currently chosen by the user. Neither the array nor any of its elements is
- * <code>null</code>.
+ * @return dependencies currently chosen by the user. Neither the array nor any of its elements is <code>null</code>.
*/
public Dependency[] getDependencies() {
List<Dependency> dependencies = new ArrayList<Dependency>();
@@ -208,7 +212,6 @@ public class MavenDependenciesWizardPage extends AbstractMavenWizardPage {
}
return dependencies.toArray(new Dependency[dependencies.size()]);
}
-
/**
* Simple <code>LabelProvider</code> attached to the dependency viewer.
@@ -238,7 +241,8 @@ public class MavenDependenciesWizardPage extends AbstractMavenWizardPage {
public String getText(Object element) {
if(element instanceof Dependency) {
Dependency d = (Dependency) element;
- return d.getGroupId() + ":" + d.getArtifactId() + ":" + d.getVersion() + (d.getClassifier() == null ? "" : ":" + d.getClassifier()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ return d.getGroupId()
+ + ":" + d.getArtifactId() + ":" + d.getVersion() + (d.getClassifier() == null ? "" : ":" + d.getClassifier()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
}
return super.getText(element);
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenImportWizard.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenImportWizard.java
index 2cae6cec..1f6942c3 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenImportWizard.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenImportWizard.java
@@ -74,6 +74,7 @@ import org.eclipse.m2e.core.ui.internal.editing.PomEdits;
import org.eclipse.m2e.core.ui.internal.editing.PomEdits.OperationTuple;
import org.eclipse.m2e.core.ui.internal.lifecyclemapping.ILifecycleMappingLabelProvider;
+
/**
* Maven Import Wizard
*
@@ -91,7 +92,7 @@ public class MavenImportWizard extends AbstractMavenProjectWizard implements IIm
private List<String> locations;
private boolean showLocation = true;
-
+
private boolean basedirRemameRequired = false;
private boolean initialized = false;
@@ -114,7 +115,7 @@ public class MavenImportWizard extends AbstractMavenProjectWizard implements IIm
this(importConfiguration, locations);
this.mappingConfiguration = mappingConfiguration;
}
-
+
public void setBasedirRemameRequired(boolean basedirRemameRequired) {
this.basedirRemameRequired = basedirRemameRequired;
}
@@ -319,7 +320,7 @@ public class MavenImportWizard extends AbstractMavenProjectWizard implements IIm
discoverProposals(mappingConfiguration, monitor);
}
- void discoverProposals(LifecycleMappingConfiguration mappingConfiguration, IProgressMonitor monitor) {
+ void discoverProposals(LifecycleMappingConfiguration mappingConfiguration, IProgressMonitor monitor) {
final IMavenDiscovery discovery = getDiscovery();
if(discovery == null) {
@@ -338,9 +339,10 @@ public class MavenImportWizard extends AbstractMavenProjectWizard implements IIm
MavenProject mavenProject = project.getMavenProject();
List<MojoExecution> mojoExecutions = project.getMojoExecutions();
try {
- proposals.putAll(discovery.discover(mavenProject, mojoExecutions,
- mappingConfiguration.getSelectedProposals(),
- SubMonitor.convert(monitor, NLS.bind(Messages.MavenImportWizard_analyzingProject, project.getRelpath()), 1)));
+ proposals
+ .putAll(discovery.discover(mavenProject, mojoExecutions, mappingConfiguration.getSelectedProposals(),
+ SubMonitor.convert(monitor,
+ NLS.bind(Messages.MavenImportWizard_analyzingProject, project.getRelpath()), 1)));
} catch(CoreException e) {
//XXX we shall not swallow this exception but associate with the project/execution
LOG.error(e.getMessage(), e);
@@ -357,7 +359,7 @@ public class MavenImportWizard extends AbstractMavenProjectWizard implements IIm
}
private boolean warnIncompleteMapping() {
- if (!skipIncompleteWarning()) {
+ if(!skipIncompleteWarning()) {
MessageDialogWithToggle dialog = MessageDialogWithToggle.open(MessageDialog.CONFIRM, getShell(),
Messages.MavenImportWizard_titleIncompleteMapping, Messages.MavenImportWizard_messageIncompleteMapping,
Messages.MavenImportWizard_hideWarningMessage, false, null, null, SWT.SHEET);
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenImportWizardPage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenImportWizardPage.java
index ba0f1694..506ac61b 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenImportWizardPage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenImportWizardPage.java
@@ -19,8 +19,9 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
-import org.apache.maven.model.Model;
-import org.apache.maven.model.Parent;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.IWorkspaceRoot;
@@ -43,14 +44,6 @@ import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.StyledString;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.wizard.IWizardPage;
-import org.eclipse.m2e.core.MavenPlugin;
-import org.eclipse.m2e.core.embedder.MavenModelManager;
-import org.eclipse.m2e.core.internal.lifecyclemapping.discovery.LifecycleMappingConfiguration;
-import org.eclipse.m2e.core.project.AbstractProjectScanner;
-import org.eclipse.m2e.core.project.LocalProjectScanner;
-import org.eclipse.m2e.core.project.MavenProjectInfo;
-import org.eclipse.m2e.core.project.ProjectImportConfiguration;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.FocusAdapter;
@@ -68,12 +61,22 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.DirectoryDialog;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Tree;
-import org.eclipse.ui.IWorkingSet;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
+import org.eclipse.swt.widgets.Tree;
+import org.eclipse.ui.IWorkingSet;
+
+import org.apache.maven.model.Model;
+import org.apache.maven.model.Parent;
+
+import org.eclipse.m2e.core.MavenPlugin;
+import org.eclipse.m2e.core.embedder.MavenModelManager;
+import org.eclipse.m2e.core.internal.lifecyclemapping.discovery.LifecycleMappingConfiguration;
+import org.eclipse.m2e.core.project.AbstractProjectScanner;
+import org.eclipse.m2e.core.project.LocalProjectScanner;
+import org.eclipse.m2e.core.project.MavenProjectInfo;
+import org.eclipse.m2e.core.project.ProjectImportConfiguration;
+import org.eclipse.m2e.core.ui.internal.Messages;
/**
@@ -97,7 +100,7 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
private WorkingSetGroup workingSetGroup;
private boolean showLocation = true;
-
+
private boolean basedirRemameRequired = false;
private final List<IWorkingSet> workingSets;
@@ -125,17 +128,17 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
public void setLocations(List<String> locations) {
this.locations = locations;
}
-
+
public void setBasedirRemameRequired(boolean basedirRemameRequired) {
this.basedirRemameRequired = basedirRemameRequired;
}
-
+
public void createControl(Composite parent) {
Composite composite = new Composite(parent, SWT.NONE);
composite.setLayout(new GridLayout(3, false));
setControl(composite);
- if(showLocation || locations==null || locations.isEmpty()) {
+ if(showLocation || locations == null || locations.isEmpty()) {
final Label selectRootDirectoryLabel = new Label(composite, SWT.NONE);
selectRootDirectoryLabel.setLayoutData(new GridData());
selectRootDirectoryLabel.setText(Messages.wizardImportPageRoot);
@@ -144,8 +147,8 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
rootDirectoryCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
rootDirectoryCombo.setFocus();
addFieldWithHistory("rootDirectory", rootDirectoryCombo); //$NON-NLS-1$
-
- if(locations!=null && locations.size()==1) {
+
+ if(locations != null && locations.size() == 1) {
rootDirectoryCombo.setText(locations.get(0));
rootDirectory = locations.get(0);
}
@@ -158,7 +161,7 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.NONE);
dialog.setText(Messages.wizardImportPageSelectRootFolder);
String path = rootDirectoryCombo.getText();
- if(path.length()==0) {
+ if(path.length() == 0) {
path = ResourcesPlugin.getWorkspace().getRoot().getLocation().toPortableString();
}
dialog.setFilterPath(path);
@@ -166,7 +169,7 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
String result = dialog.open();
if(result != null) {
rootDirectoryCombo.setText(result);
- if (rootDirectoryChanged()) {
+ if(rootDirectoryChanged()) {
scanProjects();
}
}
@@ -227,19 +230,20 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
IStructuredSelection selection = (IStructuredSelection) event.getSelection();
btnSelectTree.setEnabled(!selection.isEmpty());
btnDeselectTree.setEnabled(!selection.isEmpty());
- if (selection.getFirstElement() != null) {
- String errorMsg = validateProjectInfo((MavenProjectInfo) selection.getFirstElement());
- if (errorMsg != null) {
+ if(selection.getFirstElement() != null) {
+ String errorMsg = validateProjectInfo((MavenProjectInfo) selection.getFirstElement());
+ if(errorMsg != null) {
setMessage(errorMsg, IMessageProvider.WARNING);
} else {
- //TODO if no error on current, shall show any existing general errors if found..
+ //TODO if no error on current, shall show any existing general errors if found..
setMessage(loadingErrorMessage, IMessageProvider.WARNING);
}
} else {
//TODO if on current selection, shall show any existing general errors if existing..
setMessage(loadingErrorMessage, IMessageProvider.WARNING);
}
- }});
+ }
+ });
projectTreeViewer.setContentProvider(new ITreeContentProvider() {
@@ -294,10 +298,10 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
projectTreeData.heightHint = 250;
projectTreeData.widthHint = 500;
projectTree.setLayoutData(projectTreeData);
-
+
Menu menu = new Menu(projectTree);
projectTree.setMenu(menu);
-
+
MenuItem mntmSelectTree = new MenuItem(menu, SWT.NONE);
mntmSelectTree.addSelectionListener(new SelectionAdapter() {
@Override
@@ -306,7 +310,7 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
}
});
mntmSelectTree.setText(Messages.MavenImportWizardPage_mntmSelectTree_text);
-
+
MenuItem mntmDeselectTree = new MenuItem(menu, SWT.NONE);
mntmDeselectTree.addSelectionListener(new SelectionAdapter() {
@Override
@@ -338,7 +342,7 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
setPageComplete(false);
}
});
-
+
btnSelectTree = new Button(composite, SWT.NONE);
btnSelectTree.setEnabled(false);
btnSelectTree.addSelectionListener(new SelectionAdapter() {
@@ -349,7 +353,7 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
});
btnSelectTree.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
btnSelectTree.setText(Messages.MavenImportWizardPage_btnSelectTree_text);
-
+
btnDeselectTree = new Button(composite, SWT.NONE);
btnDeselectTree.setEnabled(false);
btnDeselectTree.addSelectionListener(new SelectionAdapter() {
@@ -371,9 +375,9 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
});
this.workingSetGroup = new WorkingSetGroup(composite, workingSets, getShell());
-
+
createAdvancedSettings(composite, new GridData(SWT.FILL, SWT.TOP, false, false, 3, 1));
- resolverConfigurationComponent.template.addModifyListener(new ModifyListener(){
+ resolverConfigurationComponent.template.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent arg0) {
Display.getDefault().asyncExec(new Runnable() {
public void run() {
@@ -382,11 +386,11 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
});
}
});
-
- if(locations!=null && !locations.isEmpty()) {
+
+ if(locations != null && !locations.isEmpty()) {
scanProjects();
}
-
+
}
protected boolean rootDirectoryChanged() {
@@ -399,7 +403,7 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
super.dispose();
workingSetGroup.dispose();
}
-
+
protected void scanProjects() {
final AbstractProjectScanner<MavenProjectInfo> projectScanner = getProjectScanner();
try {
@@ -408,17 +412,17 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
projectScanner.run(monitor);
((MavenImportWizard) getWizard()).scanProjects(getProjects(projectScanner.getProjects()), monitor);
}
-
+
//this collects all projects for analyzing..
List<MavenProjectInfo> getProjects(Collection<MavenProjectInfo> input) {
List<MavenProjectInfo> toRet = new ArrayList<MavenProjectInfo>();
- for (MavenProjectInfo info : input) {
+ for(MavenProjectInfo info : input) {
toRet.add(info);
toRet.addAll(getProjects(info.getProjects()));
}
return toRet;
}
-
+
});
projectTreeViewer.setInput(projectScanner.getProjects());
@@ -429,12 +433,12 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
setErrorMessage(null);
setMessage(null);
loadingErrorMessage = null;
- LifecycleMappingConfiguration config = ((MavenImportWizard)getWizard()).getMappingConfiguration();
-
+ LifecycleMappingConfiguration config = ((MavenImportWizard) getWizard()).getMappingConfiguration();
+
//mkleint: XXX this sort of error handling is rather unfortunate
-
+
List<Throwable> errors = new ArrayList<Throwable>(projectScanner.getErrors());
- if (config != null) {
+ if(config != null) {
errors.addAll(config.getErrors().values());
}
if(!errors.isEmpty()) {
@@ -444,17 +448,17 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
if(ex instanceof CoreException) {
String msg = ((CoreException) ex).getStatus().getMessage();
sb.append("\n ").append(n).append(" ").append(msg.trim()); //$NON-NLS-1$ //$NON-NLS-2$
-
+
} else {
- String msg = ex.getMessage()==null ? ex.toString() : ex.getMessage();
+ String msg = ex.getMessage() == null ? ex.toString() : ex.getMessage();
sb.append("\n ").append(n).append(" ").append(msg.trim()); //$NON-NLS-1$ //$NON-NLS-2$
}
- n++;
+ n++ ;
}
loadingErrorMessage = sb.toString();
setMessage(sb.toString(), IMessageProvider.WARNING);
}
-
+
} catch(InterruptedException ex) {
// canceled
@@ -477,14 +481,14 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
void setAllChecked(boolean state) {
@SuppressWarnings("unchecked")
List<MavenProjectInfo> input = (List<MavenProjectInfo>) projectTreeViewer.getInput();
- if(input!=null) {
+ if(input != null) {
for(MavenProjectInfo mavenProjectInfo : input) {
projectTreeViewer.setSubtreeChecked(mavenProjectInfo, state);
}
updateCheckedState();
}
}
-
+
void updateCheckedState() {
Object[] elements = projectTreeViewer.getCheckedElements();
for(int i = 0; i < elements.length; i++ ) {
@@ -499,7 +503,7 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
}
boolean isWorkspaceFolder(MavenProjectInfo info) {
- if(info!=null) {
+ if(info != null) {
File pomFile = info.getPomFile();
if(pomFile != null) {
File parentFile = pomFile.getParentFile();
@@ -509,57 +513,58 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
}
}
return false;
- }
-
+ }
+
boolean isAlreadyExists(MavenProjectInfo info) {
- if(info!=null) {
+ if(info != null) {
IWorkspace workspace = ResourcesPlugin.getWorkspace();
String name = getImportConfiguration().getProjectName(info.getModel());
- if (name != null && name.length() > 0) {
+ if(name != null && name.length() > 0) {
IProject project = workspace.getRoot().getProject(name);
return project.exists();
}
}
return false;
}
-
+
/**
- * this will iterate all existing projects and return true
- * if the absolute location URI of the old (imported) and new (to-be-imported) projects match
+ * this will iterate all existing projects and return true if the absolute location URI of the old (imported) and new
+ * (to-be-imported) projects match
+ *
* @param info
* @return
*/
boolean isAlreadyImported(MavenProjectInfo info) {
- if(info!=null) {
+ if(info != null) {
IWorkspace workspace = ResourcesPlugin.getWorkspace();
- for (IProject project : workspace.getRoot().getProjects()) {
+ for(IProject project : workspace.getRoot().getProjects()) {
URI mavenuri = info.getPomFile().getParentFile().toURI();
//mkleint: this is sort of heuristic blah blah code. unfortunately for some reason the
// URI returned by the eclipse code in project.getLocationURI() differs by the ending / character from the
// java.io.File code. That results in failing match of the URIs. I've blah it by removing the ending slash.
// please tell me there is a more sane solution!
- if (mavenuri.toString().endsWith("/")) { //$NON-NLS-1$
+ if(mavenuri.toString().endsWith("/")) { //$NON-NLS-1$
try {
mavenuri = new URI(mavenuri.toString().substring(0, mavenuri.toString().length() - 1));
} catch(URISyntaxException ex) {
log.error(ex.getMessage(), ex);
}
}
- boolean ok = project.exists() && project.getLocationURI().equals(mavenuri);
- if (ok) {
+ boolean ok = project.exists() && project.getLocationURI().equals(mavenuri);
+ if(ok) {
return true;
}
}
}
return false;
- }
+ }
protected AbstractProjectScanner<MavenProjectInfo> getProjectScanner() {
File root = workspaceRoot.getLocation().toFile();
MavenModelManager modelManager = MavenPlugin.getMavenModelManager();
if(showLocation) {
String location = rootDirectoryCombo.getText().trim();
- if (location.length() > 0) {
+ if(location.length() > 0) {
return new LocalProjectScanner(root, location, basedirRemameRequired, modelManager);
}
} else if(locations != null && !locations.isEmpty()) {
@@ -592,21 +597,20 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
}
/**
- *
* @param info
* @return
*/
protected String validateProjectInfo(MavenProjectInfo info) {
- if(info!=null) {
+ if(info != null) {
if(isWorkspaceFolder(info)) {
String projectName = getImportConfiguration().getProjectName(info.getModel());
- return NLS.bind(Messages.wizardImportValidatorWorkspaceFolder, projectName);
+ return NLS.bind(Messages.wizardImportValidatorWorkspaceFolder, projectName);
} else if(isAlreadyImported(info)) {
String projectName = getImportConfiguration().getProjectName(info.getModel());
- return NLS.bind(Messages.wizardImportValidatorProjectImported, projectName);
+ return NLS.bind(Messages.wizardImportValidatorProjectImported, projectName);
} else if(isAlreadyExists(info)) {
String projectName = getImportConfiguration().getProjectName(info.getModel());
- return NLS.bind(Messages.wizardImportValidatorProjectExists, projectName);
+ return NLS.bind(Messages.wizardImportValidatorProjectExists, projectName);
}
}
return null;
@@ -617,8 +621,8 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
for(int i = 0; i < elements.length; i++ ) {
Object element = elements[i];
if(element instanceof MavenProjectInfo) {
- String errorMsg = validateProjectInfo((MavenProjectInfo) element);
- if (errorMsg != null) {
+ String errorMsg = validateProjectInfo((MavenProjectInfo) element);
+ if(errorMsg != null) {
setPageComplete(false);
return;
}
@@ -633,7 +637,7 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
public IWizardPage getNextPage() {
IWizardPage next = super.getNextPage();
LifecycleMappingConfiguration config = getMappingConfiguration();
- if (config == null || (config.isMappingComplete(true) && config.getAllProposals().isEmpty())) {
+ if(config == null || (config.isMappingComplete(true) && config.getAllProposals().isEmpty())) {
next = null;
}
return next;
@@ -659,16 +663,17 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
/**
* ProjectLabelProvider
*/
- class ProjectLabelProvider extends LabelProvider implements IColorProvider, DelegatingStyledCellLabelProvider.IStyledLabelProvider {
+ class ProjectLabelProvider extends LabelProvider implements IColorProvider,
+ DelegatingStyledCellLabelProvider.IStyledLabelProvider {
public String getText(Object element) {
if(element instanceof MavenProjectInfo) {
MavenProjectInfo info = (MavenProjectInfo) element;
-
+
if(info.getProfiles().isEmpty()) {
return info.getLabel() + " - " + getId(info); //$NON-NLS-1$
}
-
+
return info.getLabel() + " - " + getId(info) + " " + info.getProfiles(); //$NON-NLS-1$ //$NON-NLS-2$
}
return super.getText(element);
@@ -676,7 +681,7 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
private String getId(MavenProjectInfo info) {
Model model = info.getModel();
-
+
String groupId = model.getGroupId();
String artifactId = model.getArtifactId();
String version = model.getVersion();
@@ -684,17 +689,17 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
Parent parent = model.getParent();
- if(groupId==null && parent!=null) {
+ if(groupId == null && parent != null) {
groupId = parent.getGroupId();
}
- if(groupId==null) {
+ if(groupId == null) {
groupId = org.eclipse.m2e.core.ui.internal.Messages.MavenImportWizardPage_inherited;
}
-
- if(version==null && parent!=null) {
+
+ if(version == null && parent != null) {
version = parent.getVersion();
}
- if(version==null) {
+ if(version == null) {
version = org.eclipse.m2e.core.ui.internal.Messages.MavenImportWizardPage_inherited;
}
@@ -732,8 +737,8 @@ public class MavenImportWizardPage extends AbstractMavenWizardPage {
StyledString ss = new StyledString();
ss.append(info.getLabel() + " ");
ss.append(getId(info), StyledString.DECORATIONS_STYLER);
- if (! info.getProfiles().isEmpty()) {
- ss.append(" - " + info.getProfiles(), StyledString.QUALIFIER_STYLER );
+ if(!info.getProfiles().isEmpty()) {
+ ss.append(" - " + info.getProfiles(), StyledString.QUALIFIER_STYLER);
}
return ss;
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenInstallFileArtifactWizardPage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenInstallFileArtifactWizardPage.java
index 0bd5dd5e..545f4a45 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenInstallFileArtifactWizardPage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenInstallFileArtifactWizardPage.java
@@ -55,15 +55,21 @@ public class MavenInstallFileArtifactWizardPage extends WizardPage {
private static final Logger log = LoggerFactory.getLogger(MavenInstallFileArtifactWizardPage.class);
Text artifactFileNameText;
+
Text pomFileNameText;
private Combo groupIdCombo;
+
private Combo artifactIdCombo;
+
private Combo versionCombo;
+
private Combo packagingCombo;
+
private Combo classifierCombo;
Button createChecksumButton;
+
Button generatePomButton;
private final IFile file;
@@ -88,7 +94,7 @@ public class MavenInstallFileArtifactWizardPage extends WizardPage {
Label artifactFileNameLabel = new Label(container, SWT.NONE);
artifactFileNameLabel.setText(Messages.MavenInstallFileArtifactWizardPage_lblFileName);
-
+
artifactFileNameText = new Text(container, SWT.BORDER);
artifactFileNameText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
artifactFileNameText.setData("name", "artifactFileNametext"); //$NON-NLS-1$ //$NON-NLS-2$
@@ -98,7 +104,7 @@ public class MavenInstallFileArtifactWizardPage extends WizardPage {
pageChanged();
}
});
-
+
final Button artifactFileNameButton = new Button(container, SWT.NONE);
artifactFileNameButton.setLayoutData(new GridData());
artifactFileNameButton.setData("name", "externalPomFileButton"); //$NON-NLS-1$ //$NON-NLS-2$
@@ -109,7 +115,7 @@ public class MavenInstallFileArtifactWizardPage extends WizardPage {
fileDialog.setText(Messages.MavenInstallFileArtifactWizardPage_file_title);
fileDialog.setFileName(artifactFileNameText.getText());
String name = fileDialog.open();
- if(name!=null) {
+ if(name != null) {
updateFileName(name);
}
}
@@ -123,7 +129,7 @@ public class MavenInstallFileArtifactWizardPage extends WizardPage {
pomFileNameText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
pomFileNameText.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
- generatePomButton.setSelection(getPomFileName().length()==0);
+ generatePomButton.setSelection(getPomFileName().length() == 0);
pageChanged();
}
});
@@ -138,12 +144,12 @@ public class MavenInstallFileArtifactWizardPage extends WizardPage {
fileDialog.setText(Messages.MavenInstallFileArtifactWizardPage_file_title);
fileDialog.setFileName(pomFileNameText.getText());
String res = fileDialog.open();
- if(res!=null) {
+ if(res != null) {
updatePOMFileName(res);
}
}
});
-
+
new Label(container, SWT.NONE);
generatePomButton = new Button(container, SWT.CHECK);
@@ -204,10 +210,10 @@ public class MavenInstallFileArtifactWizardPage extends WizardPage {
packagingComboData.widthHint = 150;
packagingCombo.setLayoutData(packagingComboData);
packagingCombo.addModifyListener(modifyingListener);
-
+
Label classifierLabel = new Label(container, SWT.NONE);
classifierLabel.setText(Messages.MavenInstallFileArtifactWizardPage_lblClassifier);
-
+
classifierCombo = new Combo(container, SWT.NONE);
classifierCombo.setData("name", "classifierText"); //$NON-NLS-1$ //$NON-NLS-2$
classifierCombo.setItems(new String[] {"sources", "javadoc"}); //$NON-NLS-1$ //$NON-NLS-2$
@@ -216,14 +222,14 @@ public class MavenInstallFileArtifactWizardPage extends WizardPage {
classifierCombo.setLayoutData(classifierTextData);
classifierCombo.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
- generatePomButton.setSelection(getClassifier().length()==0);
+ generatePomButton.setSelection(getClassifier().length() == 0);
}
});
if(file != null) {
updateFileName(file.getLocation().toOSString());
}
-
+
setControl(container);
}
@@ -231,18 +237,18 @@ public class MavenInstallFileArtifactWizardPage extends WizardPage {
if(!getArtifactFileName().equals(fileName)) {
artifactFileNameText.setText(fileName);
}
-
+
File file = new File(fileName);
if(!file.exists() || !file.isFile()) {
return;
}
if(fileName.endsWith(".jar") || fileName.endsWith(".war") || fileName.endsWith(".ear")) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- packagingCombo.setText(fileName.substring(fileName.length()-3));
+ packagingCombo.setText(fileName.substring(fileName.length() - 3));
}
int n = fileName.lastIndexOf('.');
- if(n>-1) {
+ if(n > -1) {
String pomFileName = fileName.substring(0, n) + ".pom"; //$NON-NLS-1$
if(new File(pomFileName).exists()) {
pomFileNameText.setText(pomFileName);
@@ -250,17 +256,17 @@ public class MavenInstallFileArtifactWizardPage extends WizardPage {
} else {
pomFileNameText.setText(""); //$NON-NLS-1$
}
-
+
try {
IndexedArtifactFile iaf = MavenPlugin.getIndexManager().getAllIndexes().identify(file);
- if(iaf!=null) {
+ if(iaf != null) {
groupIdCombo.setText(iaf.group);
artifactIdCombo.setText(iaf.artifact);
versionCombo.setText(iaf.version);
- if(iaf.classifier!=null) {
+ if(iaf.classifier != null) {
classifierCombo.setText(iaf.classifier);
}
-
+
String name = iaf.group + ":" + iaf.artifact + "-" + iaf.version // //$NON-NLS-1$ //$NON-NLS-2$
+ (iaf.classifier == null ? "" : iaf.classifier); //$NON-NLS-1$
setMessage(NLS.bind(Messages.MavenInstallFileArtifactWizardPage_message, name), WARNING);
@@ -270,38 +276,38 @@ public class MavenInstallFileArtifactWizardPage extends WizardPage {
log.error(ex.getMessage(), ex);
}
- if(n>-1) {
+ if(n > -1) {
String pomFileName = fileName.substring(0, n) + ".pom"; //$NON-NLS-1$
if(new File(pomFileName).exists()) {
pomFileNameText.setText(pomFileName);
readPOMFile(pomFileName);
}
}
-
+
ArtifactKey artifactKey = SelectionUtil.getType(file, ArtifactKey.class);
- if(artifactKey!=null) {
+ if(artifactKey != null) {
groupIdCombo.setText(artifactKey.getGroupId());
artifactIdCombo.setText(artifactKey.getArtifactId());
versionCombo.setText(artifactKey.getVersion());
- if(artifactKey.getClassifier()!=null) {
+ if(artifactKey.getClassifier() != null) {
classifierCombo.setText(artifactKey.getClassifier());
}
}
}
-
- private void updatePOMFileName(String fileName){
+
+ private void updatePOMFileName(String fileName) {
if(!getPomFileName().equals(fileName))
pomFileNameText.setText(fileName);
-
+
File file = new File(fileName);
if(!file.exists() || !file.isFile() || !fileName.endsWith(".pom")) { //$NON-NLS-1$
return;
}
-
+
readPOMFile(fileName);
}
-
- private void readPOMFile(String fileName){
+
+ private void readPOMFile(String fileName) {
try {
IMaven maven = MavenPlugin.getMaven();
MavenProject mavenProject = maven.readProject(new File(fileName), null);
@@ -329,9 +335,9 @@ public class MavenInstallFileArtifactWizardPage extends WizardPage {
updateStatus(Messages.MavenInstallFileArtifactWizardPage_error_missing);
return;
}
-
+
String pomFileName = getPomFileName();
- if(pomFileName.length()>0) {
+ if(pomFileName.length() > 0) {
if(!new File(pomFileName).exists()) {
updateStatus(Messages.MavenInstallFileArtifactWizardPage_error_missingpom);
return;
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenInstallFileWizard.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenInstallFileWizard.java
index 1926cd1a..33137c81 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenInstallFileWizard.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenInstallFileWizard.java
@@ -53,9 +53,9 @@ public class MavenInstallFileWizard extends Wizard implements IImportWizard {
private static final Logger log = LoggerFactory.getLogger(MavenInstallFileWizard.class);
private IFile selectedFile;
-
+
private IFile pomFile;
-
+
private MavenInstallFileArtifactWizardPage artifactPage;
public MavenInstallFileWizard() {
@@ -66,27 +66,27 @@ public class MavenInstallFileWizard extends Wizard implements IImportWizard {
public void addPages() {
artifactPage = new MavenInstallFileArtifactWizardPage(selectedFile);
addPage(artifactPage);
-
+
// repositoryPage = new MavenInstallFileRepositoryWizardPage(pomFile);
// addPage(repositoryPage);
}
-
+
public boolean performFinish() {
final Properties properties = new Properties();
-
+
// Mandatory Properties for install:install-file
properties.setProperty("file", artifactPage.getArtifactFileName()); //$NON-NLS-1$
-
+
properties.setProperty("groupId", artifactPage.getGroupId()); //$NON-NLS-1$
properties.setProperty("artifactId", artifactPage.getArtifactId()); //$NON-NLS-1$
properties.setProperty("version", artifactPage.getVersion()); //$NON-NLS-1$
properties.setProperty("packaging", artifactPage.getPackaging()); //$NON-NLS-1$
- if(artifactPage.getClassifier().length()>0) {
+ if(artifactPage.getClassifier().length() > 0) {
properties.setProperty("classifier", artifactPage.getClassifier()); //$NON-NLS-1$
}
- if(artifactPage.getPomFileName().length()>0) {
+ if(artifactPage.getPomFileName().length() > 0) {
properties.setProperty("pomFile", artifactPage.getPomFileName()); //$NON-NLS-1$
}
if(artifactPage.isGeneratePom()) {
@@ -95,7 +95,7 @@ public class MavenInstallFileWizard extends Wizard implements IImportWizard {
if(artifactPage.isCreateChecksum()) {
properties.setProperty("createChecksum", "true"); //$NON-NLS-1$ //$NON-NLS-2$
}
-
+
new Job(Messages.MavenInstallFileWizard_job) {
protected IStatus run(IProgressMonitor monitor) {
setProperty(IProgressConstants.ACTION_PROPERTY, new OpenMavenConsoleAction());
@@ -106,7 +106,7 @@ public class MavenInstallFileWizard extends Wizard implements IImportWizard {
request.setGoals(Arrays.asList("install:install-file")); //$NON-NLS-1$
request.setUserProperties(properties);
MavenExecutionResult executionResult = maven.execute(request, monitor);
-
+
List<Throwable> exceptions = executionResult.getExceptions();
if(!exceptions.isEmpty()) {
for(Throwable exception : exceptions) {
@@ -115,15 +115,15 @@ public class MavenInstallFileWizard extends Wizard implements IImportWizard {
log.error(msg, exception);
}
}
-
+
// TODO update index for local maven repository
- } catch (CoreException ex) {
+ } catch(CoreException ex) {
log.error("Failed to install artifact:" + ex.getMessage(), ex);
}
return Status.OK_STATUS;
}
}.schedule();
-
+
return true;
}
@@ -140,8 +140,8 @@ public class MavenInstallFileWizard extends Wizard implements IImportWizard {
private void setPomFile(IProject project) {
if(project.isAccessible()) {
IFile pomFile = project.getFile(IMavenConstants.POM_FILE_NAME);
- if(pomFile!=null && pomFile.isAccessible()) {
- this.pomFile = pomFile;
+ if(pomFile != null && pomFile.isAccessible()) {
+ this.pomFile = pomFile;
}
}
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenLocationComponent.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenLocationComponent.java
index c692ceba..ef7b5e3a 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenLocationComponent.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenLocationComponent.java
@@ -15,7 +15,6 @@ import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
@@ -29,13 +28,12 @@ import org.eclipse.swt.widgets.DirectoryDialog;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
+import org.eclipse.m2e.core.ui.internal.Messages;
+
/**
- * Simple GUI component which allows the user to choose between a workspace
- * location and a user specified external location.
- *
- * This component is mainly used for choosing the location at which to create
- * a new project.
+ * Simple GUI component which allows the user to choose between a workspace location and a user specified external
+ * location. This component is mainly used for choosing the location at which to create a new project.
*/
public class MavenLocationComponent extends Composite {
@@ -56,137 +54,130 @@ public class MavenLocationComponent extends Composite {
protected Label locationLabel;
/**
- * Constructor.
- *
- * Constructs all the GUI components contained in this <code>Composite</code>.
- * These components allow the user to choose between a workspace location and
- * a user specified external location.
- *
- * @param parent The widget which will be the parent of this component.
- * @param styles The widget style for this component.
- * @param modifyingListener Listener which is notified when the contents of
- * this component change due to user input.
+ * Constructor. Constructs all the GUI components contained in this <code>Composite</code>. These components allow the
+ * user to choose between a workspace location and a user specified external location.
+ *
+ * @param parent The widget which will be the parent of this component.
+ * @param styles The widget style for this component.
+ * @param modifyingListener Listener which is notified when the contents of this component change due to user input.
*/
- public MavenLocationComponent( final Composite parent, int styles ) {
- super( parent, styles );
+ public MavenLocationComponent(final Composite parent, int styles) {
+ super(parent, styles);
GridLayout gridLayout = new GridLayout();
gridLayout.marginHeight = 0;
gridLayout.marginWidth = 0;
- setLayout( gridLayout );
+ setLayout(gridLayout);
- Group locationGroup = new Group( this, SWT.NONE );
- locationGroup.setText( Messages.locationComponentLocation);
- locationGroup.setLayoutData( new GridData( GridData.FILL, GridData.FILL, true, true, 3, 1 ) );
+ Group locationGroup = new Group(this, SWT.NONE);
+ locationGroup.setText(Messages.locationComponentLocation);
+ locationGroup.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true, 3, 1));
GridLayout groupLayout = new GridLayout();
groupLayout.numColumns = 3;
groupLayout.marginLeft = 0;
- locationGroup.setLayout( groupLayout );
+ locationGroup.setLayout(groupLayout);
GridData gridData = new GridData();
gridData.horizontalSpan = 3;
// first radio button
- inWorkspaceButton = new Button( locationGroup, SWT.RADIO );
- inWorkspaceButton.setText( Messages.locationComponentInWorkspace);
- inWorkspaceButton.setLayoutData( new GridData(SWT.LEFT, SWT.CENTER, false, false, 3, 1) );
- inWorkspaceButton.addSelectionListener( new SelectionAdapter() {
- public void widgetSelected( SelectionEvent e ) {
+ inWorkspaceButton = new Button(locationGroup, SWT.RADIO);
+ inWorkspaceButton.setText(Messages.locationComponentInWorkspace);
+ inWorkspaceButton.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 3, 1));
+ inWorkspaceButton.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
boolean isEnabled = !inWorkspaceButton.getSelection();
- locationLabel.setEnabled( isEnabled );
- locationCombo.setEnabled( isEnabled );
- locationBrowseButton.setEnabled( isEnabled );
- if(modifyingListener!=null) {
- modifyingListener.modifyText( null );
+ locationLabel.setEnabled(isEnabled);
+ locationCombo.setEnabled(isEnabled);
+ locationBrowseButton.setEnabled(isEnabled);
+ if(modifyingListener != null) {
+ modifyingListener.modifyText(null);
}
}
- } );
+ });
// second radio button
- inExternalLocationButton = new Button( locationGroup, SWT.RADIO );
- inExternalLocationButton.setText( Messages.locationComponentAtExternal);
- inExternalLocationButton.setLayoutData( gridData );
+ inExternalLocationButton = new Button(locationGroup, SWT.RADIO);
+ inExternalLocationButton.setText(Messages.locationComponentAtExternal);
+ inExternalLocationButton.setLayoutData(gridData);
// choose directory
- locationLabel = new Label( locationGroup, SWT.NONE );
+ locationLabel = new Label(locationGroup, SWT.NONE);
GridData gd_locationLabel = new GridData();
gd_locationLabel.horizontalIndent = 10;
locationLabel.setLayoutData(gd_locationLabel);
- locationLabel.setText( Messages.locationComponentDirectory);
+ locationLabel.setText(Messages.locationComponentDirectory);
- locationCombo = new Combo( locationGroup, SWT.BORDER );
- locationCombo.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
+ locationCombo = new Combo(locationGroup, SWT.BORDER);
+ locationCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- locationBrowseButton = new Button( locationGroup, SWT.PUSH );
- locationBrowseButton.setText( Messages.locationComponentBrowse);
+ locationBrowseButton = new Button(locationGroup, SWT.PUSH);
+ locationBrowseButton.setText(Messages.locationComponentBrowse);
- gridData = new GridData( SWT.FILL, SWT.DEFAULT, false, false );
- locationBrowseButton.setLayoutData( gridData );
+ gridData = new GridData(SWT.FILL, SWT.DEFAULT, false, false);
+ locationBrowseButton.setLayoutData(gridData);
- locationBrowseButton.addSelectionListener( new SelectionAdapter() {
- public void widgetSelected( SelectionEvent e ) {
+ locationBrowseButton.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
DirectoryDialog dialog = new DirectoryDialog(getShell());
dialog.setText(Messages.locationComponentSelectLocation);
-
+
String path = locationCombo.getText();
- if(path.length()==0) {
+ if(path.length() == 0) {
path = ResourcesPlugin.getWorkspace().getRoot().getLocation().toPortableString();
}
dialog.setFilterPath(path);
String selectedDir = dialog.open();
if(selectedDir != null) {
- locationCombo.setText( selectedDir.trim() );
+ locationCombo.setText(selectedDir.trim());
}
}
- } );
+ });
- inWorkspaceButton.setSelection( true );
-
- locationLabel.setEnabled( false );
- locationCombo.setEnabled( false );
- locationBrowseButton.setEnabled( false );
+ inWorkspaceButton.setSelection(true);
+
+ locationLabel.setEnabled(false);
+ locationCombo.setEnabled(false);
+ locationBrowseButton.setEnabled(false);
}
/**
- * Returns the path of the location chosen by the user.
- *
- * According to the user input, the path either points to the workspace or
- * to a valid user specified location on the filesystem.
- *
- * @return The path of the location chosen by the user.
- * Is never <code>null</code>.
+ * Returns the path of the location chosen by the user. According to the user input, the path either points to the
+ * workspace or to a valid user specified location on the filesystem.
+ *
+ * @return The path of the location chosen by the user. Is never <code>null</code>.
*/
public IPath getLocationPath() {
- if ( isInWorkspace() ) {
+ if(isInWorkspace()) {
return Platform.getLocation();
}
- return Path.fromOSString( locationCombo.getText().trim() );
+ return Path.fromOSString(locationCombo.getText().trim());
}
/**
* Returns whether the workspace has been chosen as the location to use.
- *
- * @return <code>true</code> if the workspace is chosen as the location to use,
- * <code>false</code> if the specified external location is to be used.
+ *
+ * @return <code>true</code> if the workspace is chosen as the location to use, <code>false</code> if the specified
+ * external location is to be used.
*/
public boolean isInWorkspace() {
return inWorkspaceButton.getSelection();
}
-
- public void setModifyingListener( ModifyListener modifyingListener ) {
+
+ public void setModifyingListener(ModifyListener modifyingListener) {
this.modifyingListener = modifyingListener;
- locationCombo.addModifyListener( modifyingListener );
+ locationCombo.addModifyListener(modifyingListener);
}
-
+
public Combo getLocationCombo() {
return locationCombo;
}
-
+
public void dispose() {
super.dispose();
- if(modifyingListener!=null) {
- locationCombo.removeModifyListener( modifyingListener );
+ if(modifyingListener != null) {
+ locationCombo.removeModifyListener(modifyingListener);
}
}
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java
index 9fa38c82..67dac3a8 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java
@@ -62,6 +62,7 @@ import org.eclipse.m2e.core.ui.internal.actions.OpenMavenConsoleAction;
import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
import org.eclipse.m2e.core.ui.internal.editing.PomEdits.OperationTuple;
+
/**
* A project wizard for creating a new Maven2 module project.
*/
@@ -138,7 +139,7 @@ public class MavenModuleWizard extends AbstractMavenProjectWizard implements INe
copyParentValues();
}
});
-
+
archetypePage.addArchetypeSelectionListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent selectionchangedevent) {
parametersPage.setArchetype(archetypePage.getArchetype());
@@ -201,7 +202,7 @@ public class MavenModuleWizard extends AbstractMavenProjectWizard implements INe
if(parentPage.isSimpleProject()) {
final Model model = artifactPage.getModel();
- if (model.getParent() != null) {
+ if(model.getParent() != null) {
Parent par = model.getParent();
String relPath = location.makeRelativeTo(location.append(moduleName)).toOSString();
if(!"..".equals(relPath)) { //$NON-NLS-1$
@@ -209,17 +210,18 @@ public class MavenModuleWizard extends AbstractMavenProjectWizard implements INe
}
//#335331 remove current model's version and groupId if equal to parent, to prevent showing a warning marker
- if (par.getGroupId() != null && par.getGroupId().equals(model.getGroupId())) {
+ if(par.getGroupId() != null && par.getGroupId().equals(model.getGroupId())) {
model.setGroupId(null);
}
- if (par.getVersion() != null && par.getVersion().equals(model.getVersion())) {
+ if(par.getVersion() != null && par.getVersion().equals(model.getVersion())) {
model.setVersion(null);
}
}
final String[] folders = artifactPage.getFolders();
- job = new AbstactCreateMavenProjectJob(NLS.bind(Messages.wizardProjectJobCreatingProject, moduleName), workingSets) {
+ job = new AbstactCreateMavenProjectJob(NLS.bind(Messages.wizardProjectJobCreatingProject, moduleName),
+ workingSets) {
@Override
protected List<IProject> doCreateMavenProjects(IProgressMonitor monitor) throws CoreException {
setProperty(IProgressConstants.ACTION_PROPERTY, new OpenMavenConsoleAction());
@@ -240,9 +242,9 @@ public class MavenModuleWizard extends AbstractMavenProjectWizard implements INe
} else {
Model model = parametersPage.getModel();
-
+
final Archetype archetype = archetypePage.getArchetype();
-
+
final String groupId = model.getGroupId();
final String artifactId = model.getArtifactId();
final String version = model.getVersion();
@@ -253,7 +255,8 @@ public class MavenModuleWizard extends AbstractMavenProjectWizard implements INe
workingSets) {
@Override
protected List<IProject> doCreateMavenProjects(IProgressMonitor monitor) throws CoreException {
- List<IProject> projects = MavenPlugin.getProjectConfigurationManager().createArchetypeProjects(location, archetype, //
+ List<IProject> projects = MavenPlugin.getProjectConfigurationManager().createArchetypeProjects(location,
+ archetype, //
groupId, artifactId, version, javaPackage, properties, importConfiguration, monitor);
setModule(moduleName);
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizardParentPage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizardParentPage.java
index 3adb9dd2..d8ff5dfe 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizardParentPage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizardParentPage.java
@@ -82,9 +82,9 @@ public class MavenModuleWizardParentPage extends AbstractMavenWizardPage {
private final List<IWorkingSet> workingSets;
-
/** Creates a new page. */
- public MavenModuleWizardParentPage(ProjectImportConfiguration projectImportConfiguration, List<IWorkingSet> workingSets) {
+ public MavenModuleWizardParentPage(ProjectImportConfiguration projectImportConfiguration,
+ List<IWorkingSet> workingSets) {
super("MavenModuleWizardParentPage", projectImportConfiguration);
this.workingSets = workingSets;
setTitle(Messages.wizardModulePageParentTitle);
@@ -169,8 +169,7 @@ public class MavenModuleWizardParentPage extends AbstractMavenWizardPage {
}
// check whether the project name is valid
- IStatus nameStatus =
- ResourcesPlugin.getWorkspace().validateName(moduleName, IResource.PROJECT);
+ IStatus nameStatus = ResourcesPlugin.getWorkspace().validateName(moduleName, IResource.PROJECT);
if(!nameStatus.isOK()) {
setErrorMessage(nameStatus.getMessage());
setPageComplete(false);
@@ -179,18 +178,18 @@ public class MavenModuleWizardParentPage extends AbstractMavenWizardPage {
// check if the given folder already exists
if(parentContainer != null && parentContainer.exists(new Path(moduleName))) {
- setErrorMessage(Messages.wizardModulePageParentValidatorNameExists);
+ setErrorMessage(Messages.wizardModulePageParentValidatorNameExists);
setPageComplete(false);
return;
}
-
+
if(pom == null) {
setErrorMessage(null);
setMessage(Messages.wizardModulePageParentValidatorParentProject);
setPageComplete(false);
return;
}
- if(!validateParent()){
+ if(!validateParent()) {
return;
}
setErrorMessage(null);
@@ -217,7 +216,7 @@ public class MavenModuleWizardParentPage extends AbstractMavenWizardPage {
} else if(SelectionUtil.PROJECT_WITH_NATURE == type) {
IProject project = SelectionUtil.getType(parentObject, IProject.class);
pom = project.getFile(IMavenConstants.POM_FILE_NAME);
-
+
workingSetGroup.selectWorkingSets(SelectionUtil.getAssignedWorkingSets(project));
} else if(parentObject instanceof IContainer) {
pom = ((IContainer) parentObject).getFile(new Path(IMavenConstants.POM_FILE_NAME));
@@ -236,10 +235,10 @@ public class MavenModuleWizardParentPage extends AbstractMavenWizardPage {
}
}
}
-
- private boolean validateParent(){
- if(parentModel != null){
- if(!"pom".equals(parentModel.getPackaging())){ //$NON-NLS-1$
+
+ private boolean validateParent() {
+ if(parentModel != null) {
+ if(!"pom".equals(parentModel.getPackaging())) { //$NON-NLS-1$
setMessage(null);
setErrorMessage(org.eclipse.m2e.core.ui.internal.Messages.MavenModuleWizardParentPage_error);
setPageComplete(false);
@@ -256,8 +255,8 @@ public class MavenModuleWizardParentPage extends AbstractMavenWizardPage {
/** Skips the archetype selection page if the user chooses a simple project. */
public IWizardPage getNextPage() {
- return getWizard().getPage(
- isSimpleProject() ? "MavenProjectWizardArtifactPage" : "MavenProjectWizardArchetypePage");
+ return getWizard()
+ .getPage(isSimpleProject() ? "MavenProjectWizardArtifactPage" : "MavenProjectWizardArchetypePage");
}
/** Returns the module name. */
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenParentComponent.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenParentComponent.java
index eab6fdc6..aaa3586b 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenParentComponent.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenParentComponent.java
@@ -11,9 +11,6 @@
package org.eclipse.m2e.core.ui.internal.wizards;
-import org.apache.maven.model.Model;
-import org.apache.maven.model.Parent;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
@@ -28,6 +25,11 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
+import org.apache.maven.model.Model;
+import org.apache.maven.model.Parent;
+
+import org.eclipse.m2e.core.ui.internal.Messages;
+
/**
* Wizard page component showing panel project properties.
@@ -54,7 +56,7 @@ public class MavenParentComponent extends Composite {
private Label artifactIdLabel;
private Label versionLabel;
-
+
/** Creates a new panel with parent controls. */
public MavenParentComponent(Composite parent, int style) {
super(parent, SWT.NONE);
@@ -125,7 +127,7 @@ public class MavenParentComponent extends Composite {
});
}
}
-
+
public Combo getGroupIdCombo() {
return parentGroupIdCombo;
}
@@ -133,11 +135,11 @@ public class MavenParentComponent extends Composite {
public Combo getArtifactIdCombo() {
return this.parentArtifactIdCombo;
}
-
+
public Combo getVersionCombo() {
return this.parentVersionCombo;
}
-
+
public void setWidthGroup(WidthGroup widthGroup) {
widthGroup.addControl(this.groupIdLabel);
widthGroup.addControl(this.artifactIdLabel);
@@ -181,9 +183,9 @@ public class MavenParentComponent extends Composite {
/** Sets the parent group values. */
public void setValues(String groupId, String artifactId, String version) {
- parentGroupIdCombo.setText(groupId==null ? "" : groupId); //$NON-NLS-1$
- parentArtifactIdCombo.setText(artifactId==null ? "" : artifactId); //$NON-NLS-1$
- parentVersionCombo.setText(version==null ? "" : version); //$NON-NLS-1$
+ parentGroupIdCombo.setText(groupId == null ? "" : groupId); //$NON-NLS-1$
+ parentArtifactIdCombo.setText(artifactId == null ? "" : artifactId); //$NON-NLS-1$
+ parentVersionCombo.setText(version == null ? "" : version); //$NON-NLS-1$
}
/** Updates a Maven model. */
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenPomSelectionComponent.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenPomSelectionComponent.java
index d5fbc217..3efbb74e 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenPomSelectionComponent.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenPomSelectionComponent.java
@@ -132,8 +132,9 @@ public class MavenPomSelectionComponent extends Composite {
private static final long SHORT_DELAY = 150L;
private static final long LONG_DELAY = 500L;
-
+
final HashSet<String> artifactKeys = new HashSet<String>();
+
final HashSet<String> managedKeys = new HashSet<String>();
private IProject project;
@@ -213,7 +214,6 @@ public class MavenPomSelectionComponent extends Composite {
return (queryType != null && IIndex.SEARCH_ARTIFACT.equals(queryType));
}
-
public void init(String queryText, String queryType, IProject project, Set<ArtifactKey> artifacts,
Set<ArtifactKey> managed) {
this.queryType = queryType;
@@ -229,13 +229,13 @@ public class MavenPomSelectionComponent extends Composite {
artifactKeys.add(a.getGroupId() + ":" + a.getArtifactId() + ":" + a.getVersion()); //$NON-NLS-1$ //$NON-NLS-2$
}
}
- if (managed != null) {
- for (ArtifactKey a : managed) {
+ if(managed != null) {
+ for(ArtifactKey a : managed) {
managedKeys.add(a.getGroupId() + ":" + a.getArtifactId()); //$NON-NLS-1$
managedKeys.add(a.getGroupId() + ":" + a.getArtifactId() + ":" + a.getVersion()); //$NON-NLS-1$ //$NON-NLS-2$
}
}
-
+
searchResultViewer.setContentProvider(new SearchResultContentProvider());
SearchResultLabelProvider labelProvider = new SearchResultLabelProvider(artifactKeys, managedKeys);
@@ -256,10 +256,10 @@ public class MavenPomSelectionComponent extends Composite {
ArtifactFilterManager filterManager = MavenPluginActivator.getDefault().getArifactFilterManager();
- for (IndexedArtifactFile file : files) {
+ for(IndexedArtifactFile file : files) {
ArtifactKey key = (ArtifactKey) file.getAdapter(ArtifactKey.class);
IStatus status = filterManager.filter(MavenPomSelectionComponent.this.project, key);
- if (!status.isOK()) {
+ if(!status.isOK()) {
setStatus(IStatus.ERROR, status.getMessage());
return; // TODO not nice to exit method like this
}
@@ -324,8 +324,9 @@ public class MavenPomSelectionComponent extends Composite {
}
public IndexedArtifactFile getIndexedArtifactFile() {
- List<IndexedArtifactFile> files = getSelectedIndexedArtifactFiles((IStructuredSelection) searchResultViewer.getSelection());
- return !files.isEmpty()? files.get(0): null;
+ List<IndexedArtifactFile> files = getSelectedIndexedArtifactFiles((IStructuredSelection) searchResultViewer
+ .getSelection());
+ return !files.isEmpty() ? files.get(0) : null;
}
List<IndexedArtifactFile> getSelectedIndexedArtifactFiles(IStructuredSelection selection) {
@@ -352,7 +353,7 @@ public class MavenPomSelectionComponent extends Composite {
break;
}
}
- if (!added) {//just in case we deal with all snapshots..
+ if(!added) {//just in case we deal with all snapshots..
result.add(ia.getFiles().iterator().next());
}
}
@@ -385,14 +386,14 @@ public class MavenPomSelectionComponent extends Composite {
}
}
}
-
+
public static String getKey(IndexedArtifactFile file) {
return file.group + ":" + file.artifact + ":" + file.version; //$NON-NLS-1$ //$NON-NLS-2$
}
+
public static String getKey(IndexedArtifact art) {
return art.getGroupId() + ":" + art.getArtifactId(); //$NON-NLS-1$
}
-
/**
* Search Job
@@ -440,14 +441,15 @@ public class MavenPomSelectionComponent extends Composite {
setResult(IStatus.OK, NLS.bind(Messages.MavenPomSelectionComponent_searching, activeQuery.toLowerCase()),
null);
- Map<String, IndexedArtifact> res = indexManager.getAllIndexes().search( new UserInputSearchExpression(activeQuery), field, classifier);
-
+ Map<String, IndexedArtifact> res = indexManager.getAllIndexes().search(
+ new UserInputSearchExpression(activeQuery), field, classifier);
+
//335139 have the managed entries always come up as first results
LinkedHashMap<String, IndexedArtifact> managed = new LinkedHashMap<String, IndexedArtifact>();
LinkedHashMap<String, IndexedArtifact> nonManaged = new LinkedHashMap<String, IndexedArtifact>();
- for (Map.Entry<String, IndexedArtifact> art : res.entrySet()) {
+ for(Map.Entry<String, IndexedArtifact> art : res.entrySet()) {
String key = art.getValue().getGroupId() + ":" + art.getValue().getArtifactId(); //$NON-NLS-1$
- if (managedKeys.contains(key)) {
+ if(managedKeys.contains(key)) {
managed.put(art.getKey(), art.getValue());
} else {
nonManaged.put(art.getKey(), art.getValue());
@@ -489,13 +491,15 @@ public class MavenPomSelectionComponent extends Composite {
}
}
- public static class SearchResultLabelProvider extends LabelProvider implements IColorProvider, DelegatingStyledCellLabelProvider.IStyledLabelProvider {
+ public static class SearchResultLabelProvider extends LabelProvider implements IColorProvider,
+ DelegatingStyledCellLabelProvider.IStyledLabelProvider {
private final Set<String> artifactKeys;
private final Set<String> managedKeys;
/**
* both managedkeys and artifctkeys are supposed to hold both gr:art:ver combos and gr:art combos
+ *
* @param artifactKeys
* @param managedKeys
*/
@@ -515,7 +519,7 @@ public class MavenPomSelectionComponent extends Composite {
public Color getForeground(Object element) {
if(element instanceof IndexedArtifactFile) {
IndexedArtifactFile f = (IndexedArtifactFile) element;
- if(artifactKeys.contains(getKey(f))) {
+ if(artifactKeys.contains(getKey(f))) {
return Display.getDefault().getSystemColor(SWT.COLOR_DARK_GRAY);
}
} else if(element instanceof IndexedArtifact) {
@@ -534,18 +538,18 @@ public class MavenPomSelectionComponent extends Composite {
public Image getImage(Object element) {
if(element instanceof IndexedArtifactFile) {
IndexedArtifactFile f = (IndexedArtifactFile) element;
- if (managedKeys.contains(getKey(f))) {
- return MavenImages.getOverlayImage(f.sourcesExists==IIndex.PRESENT ? MavenImages.PATH_VERSION_SRC : MavenImages.PATH_VERSION,
- MavenImages.PATH_LOCK, IDecoration.BOTTOM_LEFT);
+ if(managedKeys.contains(getKey(f))) {
+ return MavenImages.getOverlayImage(f.sourcesExists == IIndex.PRESENT ? MavenImages.PATH_VERSION_SRC
+ : MavenImages.PATH_VERSION, MavenImages.PATH_LOCK, IDecoration.BOTTOM_LEFT);
}
-
- if(f.sourcesExists==IIndex.PRESENT) {
+
+ if(f.sourcesExists == IIndex.PRESENT) {
return MavenImages.IMG_VERSION_SRC;
}
return MavenImages.IMG_VERSION;
} else if(element instanceof IndexedArtifact) {
IndexedArtifact i = (IndexedArtifact) element;
- if (managedKeys.contains(getKey(i))) {
+ if(managedKeys.contains(getKey(i))) {
return MavenImages.getOverlayImage(MavenImages.PATH_JAR, MavenImages.PATH_LOCK, IDecoration.BOTTOM_LEFT);
}
return MavenImages.IMG_JAR;
@@ -562,16 +566,17 @@ public class MavenPomSelectionComponent extends Composite {
String name = (a.getClassname() == null ? "" : a.getClassname() + " " + a.getPackageName() + " ") + a.getGroupId() + " " + a.getArtifactId(); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
StyledString ss = new StyledString();
ss.append(name);
- if (managedKeys.contains(getKey(a))) {
+ if(managedKeys.contains(getKey(a))) {
ss.append(Messages.MavenPomSelectionComponent_managed_decoration, StyledString.DECORATIONS_STYLER);
}
return ss;
} else if(element instanceof IndexedArtifactFile) {
IndexedArtifactFile f = (IndexedArtifactFile) element;
StyledString ss = new StyledString();
- String name = f.version + " [" + (f.type == null ? "jar" : f.type) + (f.classifier != null ? ", " + f.classifier : "") + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
+ String name = f.version
+ + " [" + (f.type == null ? "jar" : f.type) + (f.classifier != null ? ", " + f.classifier : "") + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
ss.append(name);
- if (managedKeys.contains(getKey(f))) {
+ if(managedKeys.contains(getKey(f))) {
ss.append(Messages.MavenPomSelectionComponent_managed_decoration, StyledString.DECORATIONS_STYLER);
}
return ss;
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenPomWizard.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenPomWizard.java
index dc287fe0..5795bb50 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenPomWizard.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenPomWizard.java
@@ -14,7 +14,9 @@ package org.eclipse.m2e.core.ui.internal.wizards;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
-import org.apache.maven.model.Model;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
@@ -30,10 +32,6 @@ import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.m2e.core.MavenPlugin;
-import org.eclipse.m2e.core.embedder.MavenModelManager;
-import org.eclipse.m2e.core.internal.IMavenConstants;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.osgi.util.NLS;
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.IWorkbench;
@@ -42,8 +40,13 @@ import org.eclipse.ui.IWorkbenchWizard;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.ide.IDE;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
+import org.apache.maven.model.Model;
+
+import org.eclipse.m2e.core.MavenPlugin;
+import org.eclipse.m2e.core.embedder.MavenModelManager;
+import org.eclipse.m2e.core.internal.IMavenConstants;
+import org.eclipse.m2e.core.ui.internal.Messages;
/**
@@ -51,6 +54,7 @@ import org.slf4j.LoggerFactory;
*/
public class MavenPomWizard extends Wizard implements INewWizard {
private static final Logger log = LoggerFactory.getLogger(MavenPomWizard.class);
+
private MavenPomWizardPage artifactPage;
private ISelection selection;
@@ -118,15 +122,16 @@ public class MavenPomWizard extends Wizard implements INewWizard {
IResource resource = root.findMember(new Path(projectName));
if(!resource.exists() || (resource.getType() & IResource.FOLDER | IResource.PROJECT) == 0) {
// TODO show warning popup
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
- NLS.bind(Messages.MavenPomWizard_status_not_exists, projectName), null));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, NLS.bind(
+ Messages.MavenPomWizard_status_not_exists, projectName), null));
}
IContainer container = (IContainer) resource;
final IFile file = container.getFile(new Path(IMavenConstants.POM_FILE_NAME));
if(file.exists()) {
// TODO show warning popup
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, Messages.MavenPomWizard_error_exists, null));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
+ Messages.MavenPomWizard_error_exists, null));
}
final File pom = file.getLocation().toFile();
@@ -135,7 +140,7 @@ public class MavenPomWizard extends Wizard implements INewWizard {
//#359340 : Convert existing Eclipse config into Maven model config
//TODO We could let the user choose which conversion participants to run (in case of conflicts?)
MavenPlugin.getProjectConversionManager().convert(resource.getProject(), model, monitor);
-
+
MavenModelManager modelManager = MavenPlugin.getMavenModelManager();
modelManager.createMavenModel(file, model);
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenPomWizardPage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenPomWizardPage.java
index d3e564eb..3c14363b 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenPomWizardPage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenPomWizardPage.java
@@ -11,7 +11,6 @@
package org.eclipse.m2e.core.ui.internal.wizards;
-import org.apache.maven.model.Model;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
@@ -19,7 +18,6 @@ import org.eclipse.core.runtime.Path;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.window.Window;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
@@ -30,6 +28,10 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.dialogs.ContainerSelectionDialog;
+import org.apache.maven.model.Model;
+
+import org.eclipse.m2e.core.ui.internal.Messages;
+
/**
* Wizard page used to specify basic POM parameters
@@ -70,8 +72,6 @@ public class MavenPomWizardPage extends AbstractMavenWizardPage {
projectText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
projectText.addModifyListener(modifyingListener);
-
-
pomComponent = new MavenArtifactComponent(container, SWT.NONE);
pomComponent.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));
pomComponent.setModifyingListener(modifyingListener);
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectSelectionDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectSelectionDialog.java
index 2e65d088..7393f62f 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectSelectionDialog.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectSelectionDialog.java
@@ -14,6 +14,9 @@ package org.eclipse.m2e.core.ui.internal.wizards;
import java.util.ArrayList;
import java.util.List;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
@@ -27,10 +30,6 @@ import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jface.viewers.Viewer;
-
-import org.eclipse.m2e.core.internal.IMavenConstants;
-import org.eclipse.m2e.core.ui.internal.Messages;
-import org.eclipse.m2e.core.ui.internal.dialogs.AbstractMavenDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
@@ -40,8 +39,10 @@ import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.ui.dialogs.FilteredTree;
import org.eclipse.ui.dialogs.PatternFilter;
import org.eclipse.ui.model.WorkbenchLabelProvider;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
+import org.eclipse.m2e.core.internal.IMavenConstants;
+import org.eclipse.m2e.core.ui.internal.Messages;
+import org.eclipse.m2e.core.ui.internal.dialogs.AbstractMavenDialog;
/**
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizard.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizard.java
index 9ee85683..e031a496 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizard.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizard.java
@@ -97,12 +97,11 @@ public class MavenProjectWizard extends AbstractMavenProjectWizard implements IN
setDefaultPageImageDescriptor(MavenImages.WIZ_NEW_PROJECT);
setNeedsProgressMonitor(true);
}
-
+
public void addPages() {
locationPage = new MavenProjectWizardLocationPage(importConfiguration, //
- Messages.wizardProjectPageProjectTitle,
- Messages.wizardProjectPageProjectDescription, workingSets) { //
-
+ Messages.wizardProjectPageProjectTitle, Messages.wizardProjectPageProjectDescription, workingSets) { //
+
protected void createAdditionalControls(Composite container) {
simpleProject = new Button(container, SWT.CHECK);
simpleProject.setText(Messages.wizardProjectPageProjectSimpleProject);
@@ -112,20 +111,20 @@ public class MavenProjectWizard extends AbstractMavenProjectWizard implements IN
validate();
}
});
-
+
Label label = new Label(container, SWT.NONE);
GridData labelData = new GridData(SWT.FILL, SWT.TOP, false, false, 3, 1);
labelData.heightHint = 10;
label.setLayoutData(labelData);
}
-
+
/** Skips the archetype selection page if the user chooses a simple project. */
public IWizardPage getNextPage() {
return getPage(simpleProject.getSelection() ? "MavenProjectWizardArtifactPage" : "MavenProjectWizardArchetypePage"); //$NON-NLS-1$ //$NON-NLS-2$
}
};
locationPage.setLocationPath(SelectionUtil.getSelectedLocation(selection));
-
+
archetypePage = new MavenProjectWizardArchetypePage(importConfiguration);
parametersPage = new MavenProjectWizardArchetypeParametersPage(importConfiguration);
artifactPage = new MavenProjectWizardArtifactPage(importConfiguration);
@@ -149,7 +148,7 @@ public class MavenProjectWizard extends AbstractMavenProjectWizard implements IN
getContainer().updateButtons();
}
});
-
+
archetypePage.addArchetypeSelectionListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent selectionchangedevent) {
parametersPage.setArchetype(archetypePage.getArchetype());
@@ -172,7 +171,7 @@ public class MavenProjectWizard extends AbstractMavenProjectWizard implements IN
}
return parametersPage.getModel();
}
-
+
/**
* To perform the actual project creation, an operation is created and run using this wizard as execution context.
* That way, messages about the progress of the project creation are displayed inside the wizard.
@@ -195,29 +194,32 @@ public class MavenProjectWizard extends AbstractMavenProjectWizard implements IN
final String projectName = importConfiguration.getProjectName(model);
IStatus nameStatus = importConfiguration.validateProjectName(model);
if(!nameStatus.isOK()) {
- MessageDialog.openError(getShell(), NLS.bind(Messages.wizardProjectJobFailed, projectName), nameStatus.getMessage());
+ MessageDialog.openError(getShell(), NLS.bind(Messages.wizardProjectJobFailed, projectName),
+ nameStatus.getMessage());
return false;
}
IWorkspace workspace = ResourcesPlugin.getWorkspace();
-
+
final IPath location = locationPage.isInWorkspace() ? null : locationPage.getLocationPath();
final IWorkspaceRoot root = workspace.getRoot();
final IProject project = importConfiguration.getProject(root, model);
-
- boolean pomExists = ( locationPage.isInWorkspace() ?
- root.getLocation().append(project.getName()) : location ).append(IMavenConstants.POM_FILE_NAME).toFile().exists();
- if ( pomExists ) {
- MessageDialog.openError(getShell(), NLS.bind(Messages.wizardProjectJobFailed, projectName), Messages.wizardProjectErrorPomAlreadyExists);
+
+ boolean pomExists = (locationPage.isInWorkspace() ? root.getLocation().append(project.getName()) : location)
+ .append(IMavenConstants.POM_FILE_NAME).toFile().exists();
+ if(pomExists) {
+ MessageDialog.openError(getShell(), NLS.bind(Messages.wizardProjectJobFailed, projectName),
+ Messages.wizardProjectErrorPomAlreadyExists);
return false;
}
final Job job;
-
+
if(simpleProject.getSelection()) {
final String[] folders = artifactPage.getFolders();
- job = new AbstactCreateMavenProjectJob(NLS.bind(Messages.wizardProjectJobCreatingProject, projectName), workingSets) {
+ job = new AbstactCreateMavenProjectJob(NLS.bind(Messages.wizardProjectJobCreatingProject, projectName),
+ workingSets) {
@Override
protected List<IProject> doCreateMavenProjects(IProgressMonitor monitor) throws CoreException {
MavenPlugin.getProjectConfigurationManager().createSimpleProject(project, location, model, folders, //
@@ -228,17 +230,19 @@ public class MavenProjectWizard extends AbstractMavenProjectWizard implements IN
} else {
final Archetype archetype = archetypePage.getArchetype();
-
+
final String groupId = model.getGroupId();
final String artifactId = model.getArtifactId();
final String version = model.getVersion();
final String javaPackage = parametersPage.getJavaPackage();
final Properties properties = parametersPage.getProperties();
-
- job = new AbstactCreateMavenProjectJob(NLS.bind(Messages.wizardProjectJobCreating, archetype.getArtifactId()), workingSets) {
+
+ job = new AbstactCreateMavenProjectJob(NLS.bind(Messages.wizardProjectJobCreating, archetype.getArtifactId()),
+ workingSets) {
@Override
protected List<IProject> doCreateMavenProjects(IProgressMonitor monitor) throws CoreException {
- List<IProject> projects = MavenPlugin.getProjectConfigurationManager().createArchetypeProjects(location, archetype, //
+ List<IProject> projects = MavenPlugin.getProjectConfigurationManager().createArchetypeProjects(location,
+ archetype, //
groupId, artifactId, version, javaPackage, properties, importConfiguration, monitor);
return projects;
}
@@ -252,13 +256,12 @@ public class MavenProjectWizard extends AbstractMavenProjectWizard implements IN
Display.getDefault().asyncExec(new Runnable() {
public void run() {
MessageDialog.openError(getShell(), //
- NLS.bind(Messages.wizardProjectJobFailed, projectName), result.getMessage());
+ NLS.bind(Messages.wizardProjectJobFailed, projectName), result.getMessage());
}
});
}
}
});
-
job.setRule(MavenPlugin.getProjectConfigurationManager().getRule());
job.schedule();
@@ -285,7 +288,6 @@ public class MavenProjectWizard extends AbstractMavenProjectWizard implements IN
return true;
}
-
// static class ProjectListener implements IResourceChangeListener {
// private IProject newProject = null;
//
@@ -308,5 +310,5 @@ public class MavenProjectWizard extends AbstractMavenProjectWizard implements IN
// return newProject;
// }
// }
-
+
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArchetypePage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArchetypePage.java
index 92248242..9d1f6377 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArchetypePage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArchetypePage.java
@@ -347,15 +347,15 @@ public class MavenProjectWizardArchetypePage extends AbstractMavenWizardPage imp
TableColumn column1 = new TableColumn(table, SWT.LEFT);
column1.setWidth(150);
- column1.setText(Messages.wizardProjectPageArchetypeColumnGroupId);
+ column1.setText(Messages.wizardProjectPageArchetypeColumnGroupId);
TableColumn column0 = new TableColumn(table, SWT.LEFT);
column0.setWidth(150);
- column0.setText(Messages.wizardProjectPageArchetypeColumnArtifactId);
+ column0.setText(Messages.wizardProjectPageArchetypeColumnArtifactId);
TableColumn column2 = new TableColumn(table, SWT.LEFT);
column2.setWidth(100);
- column2.setText(Messages.wizardProjectPageArchetypeColumnVersion);
+ column2.setText(Messages.wizardProjectPageArchetypeColumnVersion);
GridData tableData = new GridData(SWT.FILL, SWT.FILL, true, true);
tableData.widthHint = 400;
@@ -453,7 +453,8 @@ public class MavenProjectWizardArchetypePage extends AbstractMavenWizardPage imp
GridData buttonData = new GridData(SWT.LEFT, SWT.CENTER, true, false);
buttonData.horizontalIndent = 25;
includeShapshotsButton.setLayoutData(buttonData);
- includeShapshotsButton.setText(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypePage_btnSnapshots);
+ includeShapshotsButton
+ .setText(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypePage_btnSnapshots);
includeShapshotsButton.setSelection(DEFAULT_INCLUDE_SNAPSHOTS);
includeShapshotsButton.addSelectionListener(versionFilter);
@@ -576,7 +577,7 @@ public class MavenProjectWizardArchetypePage extends AbstractMavenWizardPage imp
}
/**
- * @deprecated this method is not used ad will be removed from 1.1
+ * @deprecated this method is not used ad will be removed from 1.1
*/
public Set<Archetype> filterVersions(Collection<Archetype> archetypes) {
HashMap<String, Archetype> filteredArchetypes = new HashMap<String, Archetype>();
@@ -752,8 +753,9 @@ public class MavenProjectWizardArchetypePage extends AbstractMavenWizardPage imp
} else {
//Use id = archetypeArtifactId+"-repo" to enable mirror/proxy authentication
//see http://maven.apache.org/archetype/maven-archetype-plugin/faq.html
- ArtifactRepository repository = maven.createArtifactRepository(archetypeArtifactId+"-repo", repositoryUrl); //$NON-NLS-1$
-
+ ArtifactRepository repository = maven.createArtifactRepository(
+ archetypeArtifactId + "-repo", repositoryUrl); //$NON-NLS-1$
+
remoteRepositories = Collections.singletonList(repository);
}
@@ -767,7 +769,8 @@ public class MavenProjectWizardArchetypePage extends AbstractMavenWizardPage imp
File pomFile = pomArtifact.getFile();
if(pomFile.exists()) {
- monitor.subTask(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypePage_task_resolving2);
+ monitor
+ .subTask(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypePage_task_resolving2);
Artifact jarArtifact = maven.resolve(archetypeGroupId, archetypeArtifactId, archetypeVersion,
"jar", null, remoteRepositories, monitor); //$NON-NLS-1$
monitor.worked(1);
@@ -815,8 +818,9 @@ public class MavenProjectWizardArchetypePage extends AbstractMavenWizardPage imp
throw ex;
} catch(final Exception ex) {
- final String msg = NLS.bind(
- org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypePage_error_resolve2, archetypeName);
+ final String msg = NLS
+ .bind(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypePage_error_resolve2,
+ archetypeName);
log.error(msg, ex);
getShell().getDisplay().asyncExec(new Runnable() {
public void run() {
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArchetypeParametersPage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArchetypeParametersPage.java
index a904ea88..21381c4c 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArchetypeParametersPage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArchetypeParametersPage.java
@@ -118,7 +118,7 @@ public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWiza
public MavenProjectWizardArchetypeParametersPage(ProjectImportConfiguration projectImportConfiguration) {
super("Maven2ProjectWizardArchifactPage", projectImportConfiguration); //$NON-NLS-1$
- setTitle(Messages.wizardProjectPageMaven2Title);
+ setTitle(Messages.wizardProjectPageMaven2Title);
setDescription(Messages.wizardProjectPageMaven2ArchetypeParametersDescription);
setPageComplete(false);
@@ -154,7 +154,7 @@ public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWiza
// artifactGroup.setLayout(new GridLayout(2, false));
Label groupIdlabel = new Label(parent, SWT.NONE);
- groupIdlabel.setText(Messages.artifactComponentGroupId);
+ groupIdlabel.setText(Messages.artifactComponentGroupId);
groupIdCombo = new Combo(parent, SWT.BORDER);
groupIdCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
@@ -168,7 +168,7 @@ public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWiza
});
Label artifactIdLabel = new Label(parent, SWT.NONE);
- artifactIdLabel.setText(Messages.artifactComponentArtifactId);
+ artifactIdLabel.setText(Messages.artifactComponentArtifactId);
artifactIdCombo = new Combo(parent, SWT.BORDER);
artifactIdCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1));
@@ -182,7 +182,7 @@ public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWiza
});
Label versionLabel = new Label(parent, SWT.NONE);
- versionLabel.setText(Messages.artifactComponentVersion);
+ versionLabel.setText(Messages.artifactComponentVersion);
versionCombo = new Combo(parent, SWT.BORDER);
GridData gd_versionCombo = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);
@@ -197,7 +197,7 @@ public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWiza
});
Label packageLabel = new Label(parent, SWT.NONE);
- packageLabel.setText(Messages.artifactComponentPackage);
+ packageLabel.setText(Messages.artifactComponentPackage);
packageCombo = new Combo(parent, SWT.BORDER);
packageCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1));
@@ -216,7 +216,8 @@ public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWiza
private void createPropertiesGroup(Composite composite) {
Label propertiesLabel = new Label(composite, SWT.NONE);
propertiesLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 3, 1));
- propertiesLabel.setText(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypeParametersPage_lblProps);
+ propertiesLabel
+ .setText(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypeParametersPage_lblProps);
propertiesViewer = new TableViewer(composite, SWT.BORDER | SWT.FULL_SELECTION);
propertiesTable = propertiesViewer.getTable();
@@ -226,11 +227,13 @@ public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWiza
TableColumn propertiesTableNameColumn = new TableColumn(propertiesTable, SWT.NONE);
propertiesTableNameColumn.setWidth(130);
- propertiesTableNameColumn.setText(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypeParametersPage_columnName);
+ propertiesTableNameColumn
+ .setText(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypeParametersPage_columnName);
TableColumn propertiesTableValueColumn = new TableColumn(propertiesTable, SWT.NONE);
propertiesTableValueColumn.setWidth(230);
- propertiesTableValueColumn.setText(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypeParametersPage_columnValue);
+ propertiesTableValueColumn
+ .setText(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypeParametersPage_columnValue);
propertiesViewer.setColumnProperties(new String[] {KEY_PROPERTY, VALUE_PROPERTY});
@@ -306,7 +309,7 @@ public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWiza
}
private String validateInput() {
- String error = validateGroupIdInput(groupIdCombo.getText().trim());
+ String error = validateGroupIdInput(groupIdCombo.getText().trim());
if(error != null) {
return error;
}
@@ -340,7 +343,7 @@ public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWiza
for(String key : requiredProperties) {
String value = properties.getProperty(key);
if(value == null || value.length() == 0) {
- return NLS.bind(Messages.wizardProjectPageMaven2ValidatorRequiredProperty, key);
+ return NLS.bind(Messages.wizardProjectPageMaven2ValidatorRequiredProperty, key);
}
}
}
@@ -377,11 +380,11 @@ public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWiza
}
void loadArchetypeDescriptor() {
-
+
try {
RequiredPropertiesLoader propertiesLoader = new RequiredPropertiesLoader(archetype);
getContainer().run(true, true, propertiesLoader);
-
+
List<?> properties = propertiesLoader.getProperties();
if(properties != null) {
for(Object o : properties) {
@@ -396,7 +399,9 @@ public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWiza
} catch(InterruptedException ex) {
// ignore
} catch(InvocationTargetException ex) {
- String msg = NLS.bind(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypeParametersPage_error_download, getName(archetype));
+ String msg = NLS.bind(
+ org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypeParametersPage_error_download,
+ getName(archetype));
log.error(msg, ex);
setErrorMessage(msg + "\n" + ex.toString()); //$NON-NLS-1$
}
@@ -408,43 +413,45 @@ public class MavenProjectWizardArchetypeParametersPage extends AbstractMavenWiza
final String version = archetype.getVersion();
return groupId + ":" + artifactId + ":" + version; //$NON-NLS-1$ //$NON-NLS-2$
}
-
+
private static class RequiredPropertiesLoader implements IRunnableWithProgress {
-
+
private Archetype archetype;
-
+
private List<?> properties;
-
+
RequiredPropertiesLoader(Archetype archetype) {
this.archetype = archetype;
}
-
+
List<?> getProperties() {
return properties;
}
-
+
public void run(IProgressMonitor monitor) {
String archetypeName = getName(archetype);
- monitor.beginTask(NLS.bind(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypeParametersPage_task, archetypeName ), IProgressMonitor.UNKNOWN);
-
+ monitor.beginTask(NLS.bind(
+ org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArchetypeParametersPage_task, archetypeName),
+ IProgressMonitor.UNKNOWN);
+
try {
-
+
ArchetypeManager archetypeManager = MavenPluginActivator.getDefault().getArchetypeManager();
-
+
ArtifactRepository remoteArchetypeRepository = archetypeManager.getArchetypeRepository(archetype);
-
+
properties = archetypeManager.getRequiredProperties(archetype, remoteArchetypeRepository, monitor);
-
+
} catch(UnknownArchetype e) {
- log.error(NLS.bind("Error downloading archetype {0}",archetypeName), e); //$NON-NLS-1$
+ log.error(NLS.bind("Error downloading archetype {0}", archetypeName), e); //$NON-NLS-1$
} catch(CoreException ex) {
log.error(ex.getMessage(), ex);
} finally {
monitor.done();
}
- }
+ }
}
-
+
/**
* @param key
* @param value
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArtifactPage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArtifactPage.java
index 3be03e3b..9e22ce6c 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArtifactPage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardArtifactPage.java
@@ -14,14 +14,8 @@ package org.eclipse.m2e.core.ui.internal.wizards;
import java.util.HashMap;
import java.util.Map;
-import org.apache.maven.model.Model;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.jface.window.Window;
-
-import org.eclipse.m2e.core.internal.index.IndexedArtifactFile;
-import org.eclipse.m2e.core.project.ProjectImportConfiguration;
-import org.eclipse.m2e.core.ui.internal.Messages;
-import org.eclipse.m2e.core.ui.internal.dialogs.MavenRepositorySearchDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
@@ -31,6 +25,13 @@ import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
+import org.apache.maven.model.Model;
+
+import org.eclipse.m2e.core.internal.index.IndexedArtifactFile;
+import org.eclipse.m2e.core.project.ProjectImportConfiguration;
+import org.eclipse.m2e.core.ui.internal.Messages;
+import org.eclipse.m2e.core.ui.internal.dialogs.MavenRepositorySearchDialog;
+
/**
* Wizard page responsible for gathering information about the Maven2 artifact and the directories to create. This
@@ -93,6 +94,7 @@ public class MavenProjectWizardArtifactPage extends AbstractMavenWizardPage {
/**
* Sets the title and description of this wizard page and marks it as not being complete as user input is required for
* continuing.
+ *
* @wbp.parser.constructor
*/
public MavenProjectWizardArtifactPage(ProjectImportConfiguration projectImportConfiguration) {
@@ -146,9 +148,9 @@ public class MavenProjectWizardArtifactPage extends AbstractMavenWizardPage {
parentComponent.addModifyListener(modifyingListener);
parentComponent.addBrowseButtonListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
- MavenRepositorySearchDialog dialog = MavenRepositorySearchDialog.createSearchParentDialog(getShell(),
- org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArtifactPage_searchDialog_title, null, null);
-
+ MavenRepositorySearchDialog dialog = MavenRepositorySearchDialog.createSearchParentDialog(getShell(),
+ org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardArtifactPage_searchDialog_title, null, null);
+
if(dialog.open() == Window.OK) {
IndexedArtifactFile indexedArtifactFile = (IndexedArtifactFile) dialog.getFirstResult();
if(indexedArtifactFile != null) {
@@ -257,7 +259,7 @@ public class MavenProjectWizardArtifactPage extends AbstractMavenWizardPage {
return error;
}
- error = validateArtifactIdInput(artifactComponent.getArtifactId().trim());
+ error = validateArtifactIdInput(artifactComponent.getArtifactId().trim());
if(error != null) {
return error;
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardLocationPage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardLocationPage.java
index 54a4e2b9..4e5bb727 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardLocationPage.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenProjectWizardLocationPage.java
@@ -43,10 +43,13 @@ import org.eclipse.m2e.core.ui.internal.Messages;
public class MavenProjectWizardLocationPage extends AbstractMavenWizardPage {
Button useDefaultWorkspaceLocationButton;
+
Label locationLabel;
+
Combo locationCombo;
boolean initialized = false;
+
private WorkingSetGroup workingSetGroup;
private IPath location;
@@ -67,18 +70,18 @@ public class MavenProjectWizardLocationPage extends AbstractMavenWizardPage {
setDescription(description);
validate();
}
-
+
/**
* {@inheritDoc} This wizard page contains a component to query the project name and a
- * <code>MavenLocationComponent</code> which allows to specify whether the project should be created in the
- * workspace or at some given external location.
+ * <code>MavenLocationComponent</code> which allows to specify whether the project should be created in the workspace
+ * or at some given external location.
*/
public void createControl(Composite parent) {
Composite container = new Composite(parent, SWT.NULL);
container.setLayout(new GridLayout(3, false));
createAdditionalControls(container);
-
+
// // project name
// GridData gridData = new GridData();
// Label label = new Label(container, SWT.NULL);
@@ -98,7 +101,8 @@ public class MavenProjectWizardLocationPage extends AbstractMavenWizardPage {
useDefaultWorkspaceLocationButton = new Button(container, SWT.CHECK);
GridData useDefaultWorkspaceLocationButtonData = new GridData(SWT.LEFT, SWT.CENTER, false, false, 3, 1);
useDefaultWorkspaceLocationButton.setLayoutData(useDefaultWorkspaceLocationButtonData);
- useDefaultWorkspaceLocationButton.setText(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardLocationPage_btnUserDefault);
+ useDefaultWorkspaceLocationButton
+ .setText(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardLocationPage_btnUserDefault);
useDefaultWorkspaceLocationButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
boolean inWorkspace = isInWorkspace();
@@ -107,14 +111,14 @@ public class MavenProjectWizardLocationPage extends AbstractMavenWizardPage {
}
});
useDefaultWorkspaceLocationButton.setSelection(true);
-
+
locationLabel = new Label(container, SWT.NONE);
GridData locationLabelData = new GridData();
locationLabelData.horizontalIndent = 10;
locationLabel.setLayoutData(locationLabelData);
locationLabel.setText(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardLocationPage_lblLocation);
locationLabel.setEnabled(false);
-
+
locationCombo = new Combo(container, SWT.NONE);
GridData locationComboData = new GridData(SWT.FILL, SWT.CENTER, true, false);
locationCombo.setLayoutData(locationComboData);
@@ -125,7 +129,7 @@ public class MavenProjectWizardLocationPage extends AbstractMavenWizardPage {
});
locationCombo.setEnabled(false);
addFieldWithHistory("location", locationCombo); //$NON-NLS-1$
-
+
Button locationBrowseButton = new Button(container, SWT.NONE);
GridData locationBrowseButtonData = new GridData(SWT.FILL, SWT.CENTER, false, false);
locationBrowseButton.setLayoutData(locationBrowseButtonData);
@@ -134,13 +138,13 @@ public class MavenProjectWizardLocationPage extends AbstractMavenWizardPage {
public void widgetSelected(SelectionEvent e) {
DirectoryDialog dialog = new DirectoryDialog(getShell());
dialog.setText(org.eclipse.m2e.core.ui.internal.Messages.MavenProjectWizardLocationPage_dialog_location);
-
+
String path = locationCombo.getText();
- if(path.length()==0) {
+ if(path.length() == 0) {
path = ResourcesPlugin.getWorkspace().getRoot().getLocation().toPortableString();
}
dialog.setFilterPath(path);
-
+
String selectedDir = dialog.open();
if(selectedDir != null) {
locationCombo.setText(selectedDir);
@@ -152,7 +156,7 @@ public class MavenProjectWizardLocationPage extends AbstractMavenWizardPage {
this.workingSetGroup = new WorkingSetGroup(container, workingSets, getShell());
- if(location==null || Platform.getLocation().equals(location)) {
+ if(location == null || Platform.getLocation().equals(location)) {
// useDefaultWorkspaceLocationButton.setSelection(true);
} else {
// useDefaultWorkspaceLocationButton.setSelection(false);
@@ -160,9 +164,9 @@ public class MavenProjectWizardLocationPage extends AbstractMavenWizardPage {
// locationCombo.setEnabled(true);
locationCombo.setText(location.toOSString());
}
-
+
createAdvancedSettings(container, new GridData(SWT.FILL, SWT.TOP, true, false, 3, 1));
-
+
setControl(container);
}
@@ -176,7 +180,7 @@ public class MavenProjectWizardLocationPage extends AbstractMavenWizardPage {
super.dispose();
workingSetGroup.dispose();
}
-
+
/**
* Returns whether the user has chosen to create the project in the workspace or at an external location.
*
@@ -199,11 +203,11 @@ public class MavenProjectWizardLocationPage extends AbstractMavenWizardPage {
}
return Path.fromOSString(locationCombo.getText().trim());
}
-
+
public void setLocationPath(IPath location) {
this.location = location;
}
-
+
/** {@inheritDoc} */
public void setVisible(boolean visible) {
super.setVisible(visible);
@@ -240,7 +244,7 @@ public class MavenProjectWizardLocationPage extends AbstractMavenWizardPage {
* @see org.eclipse.jface.wizard.WizardPage#setPageComplete(boolean)
*/
protected void validate() {
- if (!initialized) {
+ if(!initialized) {
return;
}
@@ -295,11 +299,11 @@ public class MavenProjectWizardLocationPage extends AbstractMavenWizardPage {
//this wizardpage is used in multiple wizards, not only in MavenProjectWizard
// the other wizard don't seem to have any getModel() methods.
//see MNGECLIPSE-1252 for more.
- if (getWizard() instanceof MavenProjectWizard)
- {
- String projectName = getImportConfiguration().getProjectName(((MavenProjectWizard)getWizard()).getModel());
- if(projectName.length()>0){
- final IStatus locationStatus = workspace.validateProjectLocation(workspace.getRoot().getProject(projectName), projectPath);
+ if(getWizard() instanceof MavenProjectWizard) {
+ String projectName = getImportConfiguration().getProjectName(((MavenProjectWizard) getWizard()).getModel());
+ if(projectName.length() > 0) {
+ final IStatus locationStatus = workspace.validateProjectLocation(workspace.getRoot().getProject(projectName),
+ projectPath);
if(!locationStatus.isOK()) {
setErrorMessage(locationStatus.getMessage());
setPageComplete(false);
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/ResolverConfigurationComponent.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/ResolverConfigurationComponent.java
index 690a5eac..883a61e7 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/ResolverConfigurationComponent.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/ResolverConfigurationComponent.java
@@ -11,9 +11,6 @@
package org.eclipse.m2e.core.ui.internal.wizards;
-import org.eclipse.m2e.core.project.ProjectImportConfiguration;
-import org.eclipse.m2e.core.project.ResolverConfiguration;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
@@ -32,6 +29,10 @@ import org.eclipse.ui.forms.events.ExpansionAdapter;
import org.eclipse.ui.forms.events.ExpansionEvent;
import org.eclipse.ui.forms.widgets.ExpandableComposite;
+import org.eclipse.m2e.core.project.ProjectImportConfiguration;
+import org.eclipse.m2e.core.project.ResolverConfiguration;
+import org.eclipse.m2e.core.ui.internal.Messages;
+
/**
* A foldable resolver configuration panel
@@ -108,7 +109,7 @@ public class ResolverConfigurationComponent extends ExpandableComposite {
if(enableProjectNameTemplate) {
Label templateLabel = new Label(advancedComposite, SWT.NONE);
templateLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false));
- templateLabel.setText(Messages.resolverConfigurationTemplate);
+ templateLabel.setText(Messages.resolverConfigurationTemplate);
template = new Combo(advancedComposite, SWT.BORDER);
template.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/WidthGroup.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/WidthGroup.java
index c5ef651f..338b3eb6 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/WidthGroup.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/WidthGroup.java
@@ -18,9 +18,10 @@ import org.eclipse.swt.events.ControlEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Control;
+
/**
* Group of controls with the same width
- *
+ *
* @author Eugene Kuleshov
*/
public class WidthGroup extends ControlAdapter {
@@ -43,11 +44,10 @@ public class WidthGroup extends ControlAdapter {
}
}
}
-
+
public void addControl(Control control) {
controls.add(control);
control.getParent().layout();
}
-
-}
+}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/WorkingSetGroup.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/WorkingSetGroup.java
index caddcd29..7d80b67a 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/WorkingSetGroup.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/WorkingSetGroup.java
@@ -33,7 +33,6 @@ import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerComparator;
import org.eclipse.jface.window.Window;
-import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
@@ -49,6 +48,8 @@ import org.eclipse.ui.IWorkingSetManager;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.dialogs.IWorkingSetSelectionDialog;
+import org.eclipse.m2e.core.ui.internal.Messages;
+
/**
* Working set group
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/WorkingSetHelper.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/WorkingSetHelper.java
index 171a95b9..73162f03 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/WorkingSetHelper.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/WorkingSetHelper.java
@@ -1,8 +1,6 @@
package org.eclipse.m2e.core.ui.internal.wizards;
-
-
public class WorkingSetHelper {
}
diff --git a/org.eclipse.m2e.core/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.core/.settings/org.eclipse.jdt.core.prefs
index afa0422d..80d9c54b 100644
--- a/org.eclipse.m2e.core/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.m2e.core/.settings/org.eclipse.jdt.core.prefs
@@ -1,4 +1,3 @@
-#Sat Jul 30 19:01:59 MSD 2011
eclipse.preferences.version=1
org.eclipse.jdt.core.builder.cleanOutputFolder=clean
org.eclipse.jdt.core.builder.duplicateResourceTask=warning
@@ -112,6 +111,7 @@ org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH
org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
@@ -122,15 +122,18 @@ org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=2
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
org.eclipse.jdt.core.formatter.blank_lines_before_field=1
@@ -166,10 +169,16 @@ org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert
org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=2
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
@@ -187,6 +196,7 @@ org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert
org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
@@ -253,12 +263,14 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invoca
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
@@ -282,6 +294,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
@@ -337,6 +350,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
@@ -346,6 +360,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=inser
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
@@ -355,6 +370,8 @@ org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
@@ -367,7 +384,10 @@ org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
org.eclipse.jdt.core.formatter.tabulation.char=space
org.eclipse.jdt.core.formatter.tabulation.size=2
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
org.eclipse.jdt.core.incompatibleJDKLevel=ignore
org.eclipse.jdt.core.incompleteClasspath=error
diff --git a/org.eclipse.m2e.core/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.m2e.core/.settings/org.eclipse.jdt.ui.prefs
index 64b10b1b..595d9975 100644
--- a/org.eclipse.m2e.core/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.m2e.core/.settings/org.eclipse.jdt.ui.prefs
@@ -1,6 +1,7 @@
eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_m2 plugin
-formatter_settings_version=11
+formatter_settings_version=12
org.eclipse.jdt.ui.exception.name=ex
org.eclipse.jdt.ui.gettersetter.use.is=true
org.eclipse.jdt.ui.ignorelowercasenames=true
@@ -10,4 +11,56 @@ org.eclipse.jdt.ui.keywordthis=true
org.eclipse.jdt.ui.ondemandthreshold=99
org.eclipse.jdt.ui.overrideannotation=false
org.eclipse.jdt.ui.staticondemandthreshold=99
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\r\n * @return Returns the ${bare_field_name}.\r\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\r\n * @param ${param} The ${bare_field_name} to set.\r\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\r\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\r\n * All rights reserved. This program and the accompanying materials&\#13;\r\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\r\n * which accompanies this distribution, and is available at&\#13;\r\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\r\n *&\#13;\r\n * Contributors\:&\#13;\r\n * Sonatype, Inc. - initial API and implementation&\#13;\r\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * ${type_name}\r\n *\r\n * @author ${user}\r\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\r\n * ${see_to_overridden}\r\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\r\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\r\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\r\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\r\n * ${tags}\r\n * ${see_to_target}\r\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\r\n * @return the ${bare_field_name}\r\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\r\n * @param ${param} the ${bare_field_name} to set\r\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author ${user}\r\n *\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\r\n * ${see_to_overridden}\r\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\r\n * ${tags}\r\n * ${see_to_target}\r\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\r\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\r\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\r\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/MavenPlugin.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/MavenPlugin.java
index 3be53e36..df93ebbd 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/MavenPlugin.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/MavenPlugin.java
@@ -17,9 +17,8 @@ import org.eclipse.m2e.core.embedder.MavenModelManager;
import org.eclipse.m2e.core.embedder.MavenRuntimeManager;
import org.eclipse.m2e.core.internal.MavenPluginActivator;
import org.eclipse.m2e.core.internal.index.IndexManager;
-import org.eclipse.m2e.core.internal.project.conversion.ProjectConversionManager;
-import org.eclipse.m2e.core.project.IProjectConfigurationManager;
import org.eclipse.m2e.core.project.IMavenProjectRegistry;
+import org.eclipse.m2e.core.project.IProjectConfigurationManager;
import org.eclipse.m2e.core.project.conversion.IProjectConversionManager;
import org.eclipse.m2e.core.repository.IRepositoryRegistry;
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/AbstractMavenConfigurationChangeListener.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/AbstractMavenConfigurationChangeListener.java
index 88d2538c..e63258d4 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/AbstractMavenConfigurationChangeListener.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/AbstractMavenConfigurationChangeListener.java
@@ -13,10 +13,9 @@ package org.eclipse.m2e.core.embedder;
/**
* AbstractMavenConfigurationChangeListener
- *
+ *
* @author igor
*/
public abstract class AbstractMavenConfigurationChangeListener implements IMavenConfigurationChangeListener {
-
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ArtifactKey.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ArtifactKey.java
index 35fa5fbf..2652f4ad 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ArtifactKey.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ArtifactKey.java
@@ -17,12 +17,16 @@ import org.eclipse.osgi.util.NLS;
import org.apache.maven.artifact.Artifact;
+
public class ArtifactKey implements Serializable {
private static final long serialVersionUID = -8984509272834024387L;
-
+
private final String groupId;
+
private final String artifactId;
+
private final String version;
+
private final String classifier;
/**
@@ -44,12 +48,11 @@ public class ArtifactKey implements Serializable {
}
public boolean equals(Object o) {
- if (this == o) return true;
- if (o instanceof ArtifactKey) {
+ if(this == o)
+ return true;
+ if(o instanceof ArtifactKey) {
ArtifactKey other = (ArtifactKey) o;
- return equals(groupId, other.groupId)
- && equals(artifactId, other.artifactId)
- && equals(version, other.version)
+ return equals(groupId, other.groupId) && equals(artifactId, other.artifactId) && equals(version, other.version)
&& equals(classifier, other.classifier);
}
return false;
@@ -57,29 +60,27 @@ public class ArtifactKey implements Serializable {
public int hashCode() {
int hash = 17;
- hash = hash * 31 + (groupId != null? groupId.hashCode(): 0);
- hash = hash * 31 + (artifactId != null? artifactId.hashCode(): 0);
- hash = hash * 31 + (version != null? version.hashCode(): 0);
- hash = hash * 31 + (classifier != null? classifier.hashCode(): 0);
+ hash = hash * 31 + (groupId != null ? groupId.hashCode() : 0);
+ hash = hash * 31 + (artifactId != null ? artifactId.hashCode() : 0);
+ hash = hash * 31 + (version != null ? version.hashCode() : 0);
+ hash = hash * 31 + (classifier != null ? classifier.hashCode() : 0);
return hash;
}
private static boolean equals(Object o1, Object o2) {
- return o1 == null? o2 == null: o1.equals(o2);
+ return o1 == null ? o2 == null : o1.equals(o2);
}
// XXX this method does not belong here, it compares versions, while ArtifactKey uses baseVersions in many cases
public static boolean equals(Artifact a1, Artifact a2) {
- if (a1 == null) {
+ if(a1 == null) {
return a2 == null;
}
- if (a2 == null) {
+ if(a2 == null) {
return false;
}
- return equals(a1.getGroupId(), a2.getGroupId())
- && equals(a1.getArtifactId(), a2.getArtifactId())
- && equals(a1.getVersion(), a2.getVersion())
- && equals(a1.getClassifier(), a2.getClassifier());
+ return equals(a1.getGroupId(), a2.getGroupId()) && equals(a1.getArtifactId(), a2.getArtifactId())
+ && equals(a1.getVersion(), a2.getVersion()) && equals(a1.getClassifier(), a2.getClassifier());
}
public String toString() {
@@ -94,38 +95,51 @@ public class ArtifactKey implements Serializable {
public static ArtifactKey fromPortableString(String str) {
int p, c;
- p = 0; c = nextColonIndex(str, p);
- String groupId = substring(str, p, c);
+ p = 0;
+ c = nextColonIndex(str, p);
+ String groupId = substring(str, p, c);
- p = c + 1; c = nextColonIndex(str, p);
- String artifactId = substring(str, p, c);
-
- p = c + 1; c = nextColonIndex(str, p);
+ p = c + 1;
+ c = nextColonIndex(str, p);
+ String artifactId = substring(str, p, c);
+
+ p = c + 1;
+ c = nextColonIndex(str, p);
String version = substring(str, p, c);
-
- p = c + 1; c = nextColonIndex(str, p);
+
+ p = c + 1;
+ c = nextColonIndex(str, p);
String classifier = substring(str, p, c);
-
+
return new ArtifactKey(groupId, artifactId, version, classifier);
}
-
+
private static String substring(String str, int start, int end) {
String substring = str.substring(start, end);
- return "".equals(substring)? null: substring; //$NON-NLS-1$
+ return "".equals(substring) ? null : substring; //$NON-NLS-1$
}
private static int nextColonIndex(String str, int pos) {
int idx = str.indexOf(':', pos);
- if (idx < 0) throw new IllegalArgumentException(NLS.bind("Invalid portable string: {0}", str));
+ if(idx < 0)
+ throw new IllegalArgumentException(NLS.bind("Invalid portable string: {0}", str));
return idx;
}
public String toPortableString() {
StringBuilder sb = new StringBuilder();
- if (groupId != null) sb.append(groupId); sb.append(':');
- if (artifactId != null) sb.append(artifactId); sb.append(':');
- if (version != null) sb.append(version); sb.append(':');
- if (classifier != null) sb.append(classifier); sb.append(':');
+ if(groupId != null)
+ sb.append(groupId);
+ sb.append(':');
+ if(artifactId != null)
+ sb.append(artifactId);
+ sb.append(':');
+ if(version != null)
+ sb.append(version);
+ sb.append(':');
+ if(classifier != null)
+ sb.append(classifier);
+ sb.append(':');
return sb.toString();
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ArtifactRef.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ArtifactRef.java
index 5d5ecb88..86c88fdb 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ArtifactRef.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ArtifactRef.java
@@ -17,13 +17,15 @@ import java.util.Set;
import org.apache.maven.artifact.Artifact;
+
/**
* @author Igor Fedorenko
*/
public class ArtifactRef implements Serializable {
private static final long serialVersionUID = -7560496230862532267L;
-
+
private final ArtifactKey artifactKey;
+
private final String scope;
public ArtifactRef(Artifact artifact) {
@@ -34,7 +36,7 @@ public class ArtifactRef implements Serializable {
public ArtifactKey getArtifactKey() {
return artifactKey;
}
-
+
public String getGroupId() {
return artifactKey.getGroupId();
}
@@ -54,10 +56,10 @@ public class ArtifactRef implements Serializable {
public String getScope() {
return scope;
}
-
+
public static Set<ArtifactKey> toArtifactKey(Set<ArtifactRef> refs) {
LinkedHashSet<ArtifactKey> keys = new LinkedHashSet<ArtifactKey>(refs.size());
- for (ArtifactRef ref : refs) {
+ for(ArtifactRef ref : refs) {
keys.add(ref.getArtifactKey());
}
return keys;
@@ -65,7 +67,7 @@ public class ArtifactRef implements Serializable {
public static Set<ArtifactRef> fromArtifact(Set<Artifact> artifacts) {
LinkedHashSet<ArtifactRef> refs = new LinkedHashSet<ArtifactRef>(artifacts.size());
- for (Artifact artifact : artifacts) {
+ for(Artifact artifact : artifacts) {
refs.add(new ArtifactRef(artifact));
}
return refs;
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ArtifactRepositoryRef.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ArtifactRepositoryRef.java
index d5a458ac..ee52506c 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ArtifactRepositoryRef.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ArtifactRepositoryRef.java
@@ -29,7 +29,7 @@ public class ArtifactRepositoryRef implements Serializable {
public ArtifactRepositoryRef(ArtifactRepository repository) {
this.id = repository.getId();
this.url = repository.getUrl();
- this.username = repository.getAuthentication() != null? repository.getAuthentication().getUsername(): null;
+ this.username = repository.getAuthentication() != null ? repository.getAuthentication().getUsername() : null;
}
public String getId() {
@@ -64,6 +64,6 @@ public class ArtifactRepositoryRef implements Serializable {
}
private static <T> boolean eq(T a, T b) {
- return a != null? a.equals(b): b == null;
+ return a != null ? a.equals(b) : b == null;
}
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMaven.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMaven.java
index 122d963c..db7d125d 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMaven.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMaven.java
@@ -37,6 +37,7 @@ import org.apache.maven.settings.building.SettingsProblem;
import org.apache.maven.wagon.events.TransferListener;
import org.apache.maven.wagon.proxy.ProxyInfo;
+
/**
* Entry point for all Maven functionality in m2e. Note that this component does not directly support workspace artifact
* resolution.
@@ -64,8 +65,9 @@ public interface IMaven {
/**
* Resolves specified artifact from specified remote repositories.
+ *
* @return Artifact resolved artifact
- * @throws CoreException if the artifact cannot be resolved.
+ * @throws CoreException if the artifact cannot be resolved.
*/
public Artifact resolve(String groupId, String artifactId, String version, String type, String classifier,
List<ArtifactRepository> artifactRepositories, IProgressMonitor monitor) throws CoreException;
@@ -78,8 +80,8 @@ public interface IMaven {
String type, String classifier) throws CoreException;
/**
- * Returns true if the artifact does NOT exist in the local repository and
- * known to be UNavailable from all specified repositories.
+ * Returns true if the artifact does NOT exist in the local repository and known to be UNavailable from all specified
+ * repositories.
*/
public boolean isUnavailable(String groupId, String artifactId, String version, String type, String classifier,
List<ArtifactRepository> repositories) throws CoreException;
@@ -99,7 +101,7 @@ public interface IMaven {
public void detachFromSession(MavenProject project) throws CoreException;
/**
- * Returns MavenProject parent project or null if no such project.
+ * Returns MavenProject parent project or null if no such project.
*
* @TODO Currently returns null in case of resolution error, consider if it should throw CoreException instead
*/
@@ -117,7 +119,8 @@ public interface IMaven {
public MavenExecutionPlan calculateExecutionPlan(MavenSession session, MavenProject project, List<String> goals,
boolean setup, IProgressMonitor monitor) throws CoreException;
- public MojoExecution setupMojoExecution(MavenSession session, MavenProject project, MojoExecution execution) throws CoreException;
+ public MojoExecution setupMojoExecution(MavenSession session, MavenProject project, MojoExecution execution)
+ throws CoreException;
public <T> T getMojoParameterValue(MavenSession session, MojoExecution mojoExecution, String parameter,
Class<T> asType) throws CoreException;
@@ -147,11 +150,8 @@ public interface IMaven {
/**
* Returns list of remote artifact repositories configured in settings.xml. Only profiles active by default are
- * considered when calculating the list.
- *
- * If injectSettings=true, mirrors, authentication and proxy info will be injected.
- *
- * If injectSettings=false, raw repository definition will be used.
+ * considered when calculating the list. If injectSettings=true, mirrors, authentication and proxy info will be
+ * injected. If injectSettings=false, raw repository definition will be used.
*/
public List<ArtifactRepository> getArtifactRepositories(boolean injectSettings) throws CoreException;
@@ -184,19 +184,18 @@ public interface IMaven {
public void removeLocalRepositoryListener(ILocalRepositoryListener listener);
/**
- * Creates wagon TransferListener that can be used with Archetype, NexusIndexer
- * and other components that use wagon API directly. The listener will adopt
- * wagon transfer events to corresponding calls to IProgressMonitor and all
+ * Creates wagon TransferListener that can be used with Archetype, NexusIndexer and other components that use wagon
+ * API directly. The listener will adopt wagon transfer events to corresponding calls to IProgressMonitor and all
* registered ILocalRepositoryListeners.
*
- * @deprecated IMaven API should not expose maven.repository.ArtifactTransferListener
+ * @deprecated IMaven API should not expose maven.repository.ArtifactTransferListener
*/
public TransferListener createTransferListener(IProgressMonitor monitor);
public ProxyInfo getProxyInfo(String protocol) throws CoreException;
/**
- * Sort projects by build order
+ * Sort projects by build order
*/
public List<MavenProject> getSortedProjects(List<MavenProject> projects) throws CoreException;
@@ -207,7 +206,8 @@ public interface IMaven {
* {@link #releaseMojo(Object, MojoExecution)}. This method is intended to allow introspection of mojo configuration
* parameters, use {@link #execute(MavenSession, MojoExecution, IProgressMonitor)} to execute mojo.
*/
- public <T> T getConfiguredMojo(MavenSession session, MojoExecution mojoExecution, Class<T> clazz) throws CoreException;
+ public <T> T getConfiguredMojo(MavenSession session, MojoExecution mojoExecution, Class<T> clazz)
+ throws CoreException;
/**
* Releases resources used by Mojo acquired with {@link #getConfiguredMojo(MavenSession, MojoExecution, Class)}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMavenConfigurationChangeListener.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMavenConfigurationChangeListener.java
index d0401a96..217c65f4 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMavenConfigurationChangeListener.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMavenConfigurationChangeListener.java
@@ -13,9 +13,10 @@ package org.eclipse.m2e.core.embedder;
import org.eclipse.core.runtime.CoreException;
+
/**
* IMavenConfigurationChangeListener
- *
+ *
* @author igor
*/
public interface IMavenConfigurationChangeListener {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMavenLauncherConfiguration.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMavenLauncherConfiguration.java
index 06683bff..538be2db 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMavenLauncherConfiguration.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/IMavenLauncherConfiguration.java
@@ -15,17 +15,17 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
+
/**
- * Receive notification of content of plexus configuration.
- *
- * @author Igor Fedorenko
+ * Receive notification of content of plexus configuration.
*
+ * @author Igor Fedorenko
* @see MavenRuntime#createLauncherConfiguration
*/
public interface IMavenLauncherConfiguration {
/**
- * Special realm name used for launcher classpath entries.
+ * Special realm name used for launcher classpath entries.
*/
public static final String LAUNCHER_REALM = "]launcher"; //$NON-NLS-1$
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ISettingsChangeListener.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ISettingsChangeListener.java
index 1fb0af01..d81a278c 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ISettingsChangeListener.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/ISettingsChangeListener.java
@@ -15,9 +15,10 @@ import org.eclipse.core.runtime.CoreException;
import org.apache.maven.settings.Settings;
+
/**
* ISettingsChangeListener
- *
+ *
* @author igor
*/
public interface ISettingsChangeListener {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/MavenConfigurationChangeEvent.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/MavenConfigurationChangeEvent.java
index 905980b9..797066e5 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/MavenConfigurationChangeEvent.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/MavenConfigurationChangeEvent.java
@@ -13,9 +13,10 @@ package org.eclipse.m2e.core.embedder;
import org.eclipse.m2e.core.internal.preferences.MavenPreferenceConstants;
+
/**
* MavenConfigurationChangeEvent
- *
+ *
* @author igor
*/
public class MavenConfigurationChangeEvent implements MavenPreferenceConstants {
@@ -23,7 +24,9 @@ public class MavenConfigurationChangeEvent implements MavenPreferenceConstants {
public static final String P_USER_SETTINGS_FILE = MavenPreferenceConstants.P_USER_SETTINGS_FILE;
private final String key;
+
private final Object newValue;
+
private final Object oldValue;
public MavenConfigurationChangeEvent(String key, Object newValue, Object oldValue) {
@@ -35,11 +38,11 @@ public class MavenConfigurationChangeEvent implements MavenPreferenceConstants {
public String getKey() {
return key;
}
-
+
public Object getNewValue() {
return newValue;
}
-
+
public Object getOldValue() {
return oldValue;
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/MavenModelManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/MavenModelManager.java
index 3d4b5ed5..c54a7fcb 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/MavenModelManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/MavenModelManager.java
@@ -72,14 +72,11 @@ import org.eclipse.m2e.core.project.IMavenProjectRegistry;
/**
* Model manager used to read and and modify Maven models
*
- * @author Eugene Kuleshov
- *
- * XXX fix circular dependency
+ * @author Eugene Kuleshov XXX fix circular dependency
*/
public class MavenModelManager {
private static final Logger log = LoggerFactory.getLogger(MavenModelManager.class);
-
private final IMavenProjectRegistry projectManager;
private final IMaven maven;
@@ -117,7 +114,7 @@ public class MavenModelManager {
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
documentBuilderFactory.setNamespaceAware(false);
DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
-
+
Document document = documentBuilder.parse(new ByteArrayInputStream(buf.toByteArray()));
Element documentElement = document.getDocumentElement();
@@ -140,7 +137,7 @@ public class MavenModelManager {
attr.setTextContent("http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"); //$NON-NLS-1$
documentElement.setAttributeNode(attr);
}
-
+
TransformerFactory transfac = TransformerFactory.newInstance();
Transformer trans = transfac.newTransformer();
trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes"); //$NON-NLS-1$
@@ -163,8 +160,8 @@ public class MavenModelManager {
* @deprecated use {@link #readDependencyTree(IMavenProjectFacade, MavenProject, String, IProgressMonitor)}, which
* supports workspace dependency resolution
*/
- public synchronized DependencyNode readDependencyTree(IFile file, String classpath,
- IProgressMonitor monitor) throws CoreException {
+ public synchronized DependencyNode readDependencyTree(IFile file, String classpath, IProgressMonitor monitor)
+ throws CoreException {
monitor.setTaskName(Messages.MavenModelManager_monitor_reading);
MavenProject mavenProject = readMavenProject(file, monitor);
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/MavenRuntime.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/MavenRuntime.java
index 31940164..65fc8fba 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/MavenRuntime.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/MavenRuntime.java
@@ -14,25 +14,24 @@ package org.eclipse.m2e.core.embedder;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
+
/**
* Maven runtime
- *
+ *
* @author Eugene Kuleshov
* @author Igor Fedorenko
- *
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface MavenRuntime {
-
+
public abstract boolean isEditable();
/**
- * Reads m2.conf file and notifies configuration collector of the logical content of plexus configuration.
- *
- * Collector callback methods are invoked in the order corresponding
- * configuration elements are present in m2.conf file.
+ * Reads m2.conf file and notifies configuration collector of the logical content of plexus configuration. Collector
+ * callback methods are invoked in the order corresponding configuration elements are present in m2.conf file.
*/
- public abstract void createLauncherConfiguration(IMavenLauncherConfiguration collector, IProgressMonitor monitor) throws CoreException;
+ public abstract void createLauncherConfiguration(IMavenLauncherConfiguration collector, IProgressMonitor monitor)
+ throws CoreException;
public abstract String getLocation();
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/NearestVersionConflictResolver.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/NearestVersionConflictResolver.java
index 92c73f1f..ee8bc365 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/NearestVersionConflictResolver.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/embedder/NearestVersionConflictResolver.java
@@ -116,16 +116,13 @@ class NearestVersionConflictResolver implements DependencyGraphTransformer {
}
}
- private boolean isAcceptable( ConflictGroup group, Version version )
- {
- for ( VersionConstraint constraint : group.constraints )
- {
- if ( !constraint.containsVersion( version ) )
- {
- return false;
- }
+ private boolean isAcceptable(ConflictGroup group, Version version) {
+ for(VersionConstraint constraint : group.constraints) {
+ if(!constraint.containsVersion(version)) {
+ return false;
}
- return true;
+ }
+ return true;
}
private void backtrack(ConflictGroup group) throws UnsolvableVersionConflictException {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/ExtensionReader.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/ExtensionReader.java
index 74bc12c6..9fb1f39f 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/ExtensionReader.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/ExtensionReader.java
@@ -41,7 +41,8 @@ public class ExtensionReader {
public static final String EXTENSION_ARCHETYPES = IMavenConstants.PLUGIN_ID + ".archetypeCatalogs"; //$NON-NLS-1$
- public static final String EXTENSION_PROJECT_CHANGED_EVENT_LISTENERS = IMavenConstants.PLUGIN_ID + ".mavenProjectChangedListeners"; //$NON-NLS-1$
+ public static final String EXTENSION_PROJECT_CHANGED_EVENT_LISTENERS = IMavenConstants.PLUGIN_ID
+ + ".mavenProjectChangedListeners"; //$NON-NLS-1$
private static final String ELEMENT_LOCAL_ARCHETYPE = "local"; //$NON-NLS-1$
@@ -116,7 +117,7 @@ public class ExtensionReader {
for(IConfigurationElement element : elements) {
if(element.getName().equals(ELEMENT_LISTENER)) {
try {
- listeners.add( (IMavenProjectChangedListener) element.createExecutableExtension("class") ); //$NON-NLS-1$
+ listeners.add((IMavenProjectChangedListener) element.createExecutableExtension("class")); //$NON-NLS-1$
} catch(CoreException ex) {
log.error(ex.getMessage(), ex);
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/M2EUtils.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/M2EUtils.java
index e64a244c..776121ca 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/M2EUtils.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/M2EUtils.java
@@ -72,14 +72,14 @@ public class M2EUtils {
}
}
- public static String getRootCauseMessage(Throwable t){
+ public static String getRootCauseMessage(Throwable t) {
Throwable root = getRootCause(t);
- if(t == null){
+ if(t == null) {
return null;
}
return root.getMessage();
}
-
+
public static Throwable getRootCause(Throwable ex) {
if(ex == null) {
return null;
@@ -120,7 +120,7 @@ public class M2EUtils {
public static Collection<MavenProject> getDefiningProjects(MojoExecutionKey key, Collection<MavenProject> projects) {
Set<MavenProject> sourceProjects = new HashSet<MavenProject>();
- for (MavenProject project : projects) {
+ for(MavenProject project : projects) {
if(definesPlugin(project, key)) {
sourceProjects.add(project);
continue;
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/MavenPluginActivator.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/MavenPluginActivator.java
index 58d24da5..437c584b 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/MavenPluginActivator.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/MavenPluginActivator.java
@@ -21,14 +21,11 @@ import org.osgi.framework.Version;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResourceChangeEvent;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Plugin;
-import org.eclipse.core.runtime.preferences.IEclipsePreferences;
-import org.eclipse.core.runtime.preferences.InstanceScope;
import org.codehaus.plexus.ContainerConfiguration;
import org.codehaus.plexus.DefaultContainerConfiguration;
@@ -246,7 +243,7 @@ public class MavenPluginActivator extends Plugin {
// fork repository registry update. must after index manager registered as a listener
this.repositoryRegistry.updateRegistry();
-
+
this.projectConversionManager = new ProjectConversionManager();
}
@@ -297,7 +294,7 @@ public class MavenPluginActivator extends Plugin {
LifecycleMappingFactory.setBundleMetadataSources(null);
this.projectConversionManager = null;
-
+
plugin = null;
}
@@ -379,7 +376,8 @@ public class MavenPluginActivator extends Plugin {
public static String getUserAgent() {
// cast is necessary for eclipse 3.6 compatibility
- String osgiVersion = (String) Platform.getBundle("org.eclipse.osgi").getHeaders().get(org.osgi.framework.Constants.BUNDLE_VERSION); //$NON-NLS-1$
+ String osgiVersion = (String) Platform
+ .getBundle("org.eclipse.osgi").getHeaders().get(org.osgi.framework.Constants.BUNDLE_VERSION); //$NON-NLS-1$
String m2eVersion = plugin.qualifiedVersion;
return "m2e/" + osgiVersion + "/" + m2eVersion; //$NON-NLS-1$
}
@@ -442,6 +440,7 @@ public class MavenPluginActivator extends Plugin {
public ArtifactFilterManager getArifactFilterManager() {
return artifactFilterManager;
}
+
/**
* @return
*/
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/Messages.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/Messages.java
index c6dabdc8..e3cc4fd3 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/Messages.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/Messages.java
@@ -239,7 +239,7 @@ public class Messages extends NLS {
public static String pluginMarkerBuildError;
public static String importProjectExists;
-
+
public static String buildConextFileAccessOutsideOfProjectBasedir;
static {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/NoSuchComponentException.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/NoSuchComponentException.java
index cc09334b..a4d68f85 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/NoSuchComponentException.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/NoSuchComponentException.java
@@ -13,9 +13,10 @@ package org.eclipse.m2e.core.internal;
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
+
/**
* NoSuchComponentException
- *
+ *
* @author igor
*/
public class NoSuchComponentException extends IllegalArgumentException {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/archetype/ArchetypeCatalogFactory.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/archetype/ArchetypeCatalogFactory.java
index 3d3a1721..45356b90 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/archetype/ArchetypeCatalogFactory.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/archetype/ArchetypeCatalogFactory.java
@@ -130,7 +130,8 @@ public abstract class ArchetypeCatalogFactory {
public static class LocalCatalogFactory extends ArchetypeCatalogFactory {
public LocalCatalogFactory(String path, String description, boolean editable) {
- super(path, description == null || description.trim().length() == 0 ? NLS.bind(Messages.ArchetypeCatalogFactory_local, path) : description, editable);
+ super(path, description == null || description.trim().length() == 0 ? NLS.bind(
+ Messages.ArchetypeCatalogFactory_local, path) : description, editable);
}
public ArchetypeCatalog getArchetypeCatalog() {
@@ -144,29 +145,29 @@ public abstract class ArchetypeCatalogFactory {
public static class RemoteCatalogFactory extends ArchetypeCatalogFactory {
private String repositoryUrl = null;
-
+
public RemoteCatalogFactory(String url, String description, boolean editable) {
- super(url, description == null || description.trim().length() == 0 ? NLS.bind(Messages.ArchetypeCatalogFactory_remote, url) : description, editable);
+ super(url, description == null || description.trim().length() == 0 ? NLS.bind(
+ Messages.ArchetypeCatalogFactory_remote, url) : description, editable);
repositoryUrl = parseCatalogUrl(url);
}
/**
* @param url
* @return
-
*/
private String parseCatalogUrl(String url) {
- if (url == null) {
+ if(url == null) {
return null;
}
int length = url.length();
- if (length > 1 && url.endsWith("/")) //$NON-NLS-1$
+ if(length > 1 && url.endsWith("/")) //$NON-NLS-1$
{
- return url.substring(0, url.length()-1);
+ return url.substring(0, url.length() - 1);
}
int idx = url.lastIndexOf("/"); //$NON-NLS-1$
- idx = (idx>0)?idx:0;
- if (url.lastIndexOf(".") >= idx) { //$NON-NLS-1$
+ idx = (idx > 0) ? idx : 0;
+ if(url.lastIndexOf(".") >= idx) { //$NON-NLS-1$
//Assume last fragment of the url is a file, let's keep its parent folder
return url.substring(0, idx);
}
@@ -176,13 +177,12 @@ public abstract class ArchetypeCatalogFactory {
public ArchetypeCatalog getArchetypeCatalog() {
String url = getId();
int idx = url.lastIndexOf("/archetype-catalog.xml");
- if (idx > -1) {
+ if(idx > -1) {
url = url.substring(0, idx);
}
return getArchetyper().getRemoteCatalog(url);
}
-
/**
* @return the url of the remote repository hosting the catalog
*/
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/archetype/ArchetypeCatalogsWriter.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/archetype/ArchetypeCatalogsWriter.java
index e096e49e..10b459f6 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/archetype/ArchetypeCatalogsWriter.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/archetype/ArchetypeCatalogsWriter.java
@@ -60,14 +60,13 @@ public class ArchetypeCatalogsWriter {
private static final String ATT_CATALOG_TYPE = "type"; //$NON-NLS-1$
private static final String ATT_CATALOG_LOCATION = "location"; //$NON-NLS-1$
-
+
public static final String ATT_CATALOG_DESCRIPTION = "description"; //$NON-NLS-1$
-
+
private static final String TYPE_LOCAL = "local"; //$NON-NLS-1$
private static final String TYPE_REMOTE = "remote"; //$NON-NLS-1$
-
public Collection<ArchetypeCatalogFactory> readArchetypeCatalogs(InputStream is) throws IOException {
Collection<ArchetypeCatalogFactory> catalogs = new ArrayList<ArchetypeCatalogFactory>();
try {
@@ -86,17 +85,19 @@ public class ArchetypeCatalogsWriter {
return catalogs;
}
- public void writeArchetypeCatalogs(final Collection<ArchetypeCatalogFactory> catalogs, OutputStream os) throws IOException {
+ public void writeArchetypeCatalogs(final Collection<ArchetypeCatalogFactory> catalogs, OutputStream os)
+ throws IOException {
try {
Transformer transformer = TransformerFactory.newInstance().newTransformer();
- transformer.transform(new SAXSource(new XMLArchetypeCatalogsWriter(catalogs), new InputSource()), new StreamResult(os));
+ transformer.transform(new SAXSource(new XMLArchetypeCatalogsWriter(catalogs), new InputSource()),
+ new StreamResult(os));
} catch(TransformerFactoryConfigurationError ex) {
throw new IOException(NLS.bind(Messages.ArchetypeCatalogsWriter_error_write, ex.getMessage()));
} catch(TransformerException ex) {
throw new IOException(NLS.bind(Messages.ArchetypeCatalogsWriter_error_write, ex.getMessage()));
-
+
}
}
@@ -151,13 +152,13 @@ public class ArchetypeCatalogsWriter {
String type = attributes.getValue(ATT_CATALOG_TYPE);
if(TYPE_LOCAL.equals(type)) {
String path = attributes.getValue(ATT_CATALOG_LOCATION);
- if(path!=null) {
+ if(path != null) {
String description = attributes.getValue(ATT_CATALOG_DESCRIPTION);
catalogs.add(new LocalCatalogFactory(path, description, true));
}
} else if(TYPE_REMOTE.equals(type)) {
String url = attributes.getValue(ATT_CATALOG_LOCATION);
- if(url!=null) {
+ if(url != null) {
String description = attributes.getValue(ATT_CATALOG_DESCRIPTION);
catalogs.add(new RemoteCatalogFactory(url, description, true));
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/archetype/ArchetypeManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/archetype/ArchetypeManager.java
index cdd6b7bf..ebdacd12 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/archetype/ArchetypeManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/archetype/ArchetypeManager.java
@@ -45,8 +45,6 @@ import org.eclipse.m2e.core.internal.MavenPluginActivator;
import org.eclipse.m2e.core.internal.archetype.ArchetypeCatalogFactory.RemoteCatalogFactory;
-
-
/**
* Archetype Manager
*
@@ -57,7 +55,7 @@ public class ArchetypeManager {
private final Map<String, ArchetypeCatalogFactory> catalogs = new LinkedHashMap<String, ArchetypeCatalogFactory>();
private final File configFile;
-
+
private final ArchetypeCatalogsWriter writer;
public ArchetypeManager(File configFile) {
@@ -81,11 +79,11 @@ public class ArchetypeManager {
public void removeArchetypeCatalogFactory(String catalogId) {
catalogs.remove(catalogId);
}
-
+
public ArchetypeCatalogFactory getArchetypeCatalogFactory(String catalogId) {
return catalogs.get(catalogId);
}
-
+
public void readCatalogs() throws IOException {
if(configFile.exists()) {
InputStream is = null;
@@ -100,7 +98,7 @@ public class ArchetypeManager {
}
}
}
-
+
public void saveCatalogs() throws IOException {
OutputStream os = null;
try {
@@ -114,15 +112,16 @@ public class ArchetypeManager {
/**
* @return the archetypeCatalogFactory containing the archetype parameter, null if none was found.
*/
- public <T extends ArchetypeCatalogFactory> T findParentCatalogFactory(Archetype a, Class<T> type) throws CoreException {
- if (a!=null){
- for (ArchetypeCatalogFactory factory : getArchetypeCatalogs()) {
- if ((type.isAssignableFrom(factory.getClass()))
- //temporary hack to get around https://issues.sonatype.org/browse/MNGECLIPSE-1792
- //cf. MavenProjectWizardArchetypePage.getAllArchetypes
- && !(factory.getDescription() != null && factory.getDescription().startsWith("Test")) //$NON-NLS-1$
- && factory.getArchetypeCatalog().getArchetypes().contains(a)) {
- return (T)factory;
+ public <T extends ArchetypeCatalogFactory> T findParentCatalogFactory(Archetype a, Class<T> type)
+ throws CoreException {
+ if(a != null) {
+ for(ArchetypeCatalogFactory factory : getArchetypeCatalogs()) {
+ if((type.isAssignableFrom(factory.getClass()))
+ //temporary hack to get around https://issues.sonatype.org/browse/MNGECLIPSE-1792
+ //cf. MavenProjectWizardArchetypePage.getAllArchetypes
+ && !(factory.getDescription() != null && factory.getDescription().startsWith("Test")) //$NON-NLS-1$
+ && factory.getArchetypeCatalog().getArchetypes().contains(a)) {
+ return (T) factory;
}
}
}
@@ -130,27 +129,29 @@ public class ArchetypeManager {
}
/**
- * Gets the remote {@link ArtifactRepository} of the given {@link Archetype}, or null if none is found.
- * The repository url is extracted from {@link Archetype#getRepository()}, or, if it has none, the remote catalog the archetype is found in.
- * The {@link ArtifactRepository} id is set to <strong>archetypeId+"-repo"</strong>, to enable authentication on that repository.
- *
- * @see <a href="http://maven.apache.org/archetype/maven-archetype-plugin/faq.html">http://maven.apache.org/archetype/maven-archetype-plugin/faq.html</a>
+ * Gets the remote {@link ArtifactRepository} of the given {@link Archetype}, or null if none is found. The repository
+ * url is extracted from {@link Archetype#getRepository()}, or, if it has none, the remote catalog the archetype is
+ * found in. The {@link ArtifactRepository} id is set to <strong>archetypeId+"-repo"</strong>, to enable
+ * authentication on that repository.
+ *
+ * @see <a
+ * href="http://maven.apache.org/archetype/maven-archetype-plugin/faq.html">http://maven.apache.org/archetype/maven-archetype-plugin/faq.html</a>
* @param archetype
* @return the remote {@link ArtifactRepository} of the given {@link Archetype}, or null if none is found.
* @throws CoreException
*/
public ArtifactRepository getArchetypeRepository(Archetype archetype) throws CoreException {
String repoUrl = archetype.getRepository();
- if (repoUrl == null) {
+ if(repoUrl == null) {
RemoteCatalogFactory catalogFactory = findParentCatalogFactory(archetype, RemoteCatalogFactory.class);
- if (catalogFactory != null ) {
+ if(catalogFactory != null) {
repoUrl = catalogFactory.getRepositoryUrl();
}
}
- return repoUrl == null?null:MavenPlugin.getMaven().createArtifactRepository(archetype.getArtifactId()+"-repo", repoUrl); //$NON-NLS-1$
+ return repoUrl == null ? null : MavenPlugin.getMaven().createArtifactRepository(
+ archetype.getArtifactId() + "-repo", repoUrl); //$NON-NLS-1$
}
-
/**
* Gets the required properties of an {@link Archetype}.
*
@@ -161,32 +162,33 @@ public class ArchetypeManager {
* @throws UnknownArchetype thrown if no archetype is can be resolved
* @throws CoreException
*/
- public List<?> getRequiredProperties(Archetype archetype, ArtifactRepository remoteArchetypeRepository, IProgressMonitor monitor) throws UnknownArchetype, CoreException {
+ public List<?> getRequiredProperties(Archetype archetype, ArtifactRepository remoteArchetypeRepository,
+ IProgressMonitor monitor) throws UnknownArchetype, CoreException {
Assert.isNotNull(archetype, "Archetype can not be null");
-
- if (monitor == null) {
+
+ if(monitor == null) {
monitor = new NullProgressMonitor();
}
-
+
final String groupId = archetype.getGroupId();
final String artifactId = archetype.getArtifactId();
final String version = archetype.getVersion();
-
+
//XXX I'm not fond of that dependencies to MavenPlugin / MavenPluginActivator
IMaven maven = MavenPlugin.getMaven();
ArtifactRepository localRepository = maven.getLocalRepository();
List<ArtifactRepository> repositories;
-
- if (remoteArchetypeRepository == null) {
+
+ if(remoteArchetypeRepository == null) {
repositories = maven.getArtifactRepositories();
} else {
repositories = Collections.singletonList(remoteArchetypeRepository);
}
MavenSession session = maven.createSession(maven.createExecutionRequest(monitor), null);
-
+
MavenSession oldSession = MavenPluginActivator.getDefault().setSession(session);
ArchetypeArtifactManager aaMgr = MavenPluginActivator.getDefault().getArchetypeArtifactManager();
@@ -194,19 +196,10 @@ public class ArchetypeManager {
List<?> properties = null;
try {
- if(aaMgr.isFileSetArchetype(groupId,
- artifactId,
- version,
- null,
- localRepository,
- repositories)) {
- ArchetypeDescriptor descriptor = aaMgr.getFileSetArchetypeDescriptor(groupId,
- artifactId,
- version,
- null,
- localRepository,
- repositories);
-
+ if(aaMgr.isFileSetArchetype(groupId, artifactId, version, null, localRepository, repositories)) {
+ ArchetypeDescriptor descriptor = aaMgr.getFileSetArchetypeDescriptor(groupId, artifactId, version, null,
+ localRepository, repositories);
+
properties = descriptor.getRequiredProperties();
}
} finally {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/AbstractEclipseBuildContext.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/AbstractEclipseBuildContext.java
index 60890777..fd2827a4 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/AbstractEclipseBuildContext.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/AbstractEclipseBuildContext.java
@@ -104,11 +104,11 @@ public abstract class AbstractEclipseBuildContext implements BuildContext {
protected IResource getResource(File file) {
IPath relpath = getRelativePath(file);
- if (relpath == null) {
+ if(relpath == null) {
return null;
}
IResource baseResource = getBaseResource();
- if (baseResource instanceof IContainer) {
+ if(baseResource instanceof IContainer) {
return ((IContainer) baseResource).findMember(relpath);
}
return null;
@@ -173,8 +173,8 @@ public abstract class AbstractEclipseBuildContext implements BuildContext {
public boolean isUptodate(File target, File source) {
IResource targetResource = getResource(target);
IResource sourceResource = getResource(source);
- return targetResource != null && targetResource.isAccessible() && !hasDelta(target)
- && sourceResource != null && sourceResource.isAccessible() && !hasDelta(source)
+ return targetResource != null && targetResource.isAccessible() && !hasDelta(target) && sourceResource != null
+ && sourceResource.isAccessible() && !hasDelta(source)
&& targetResource.getLocalTimeStamp() >= sourceResource.getLocalTimeStamp();
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/BuildProblemInfo.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/BuildProblemInfo.java
index 52300fec..40e989b5 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/BuildProblemInfo.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/BuildProblemInfo.java
@@ -8,12 +8,14 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.internal.builder;
import org.eclipse.m2e.core.internal.markers.MavenProblemInfo;
import org.eclipse.m2e.core.internal.markers.SourceLocation;
import org.eclipse.m2e.core.project.configurator.MojoExecutionKey;
+
class BuildProblemInfo extends MavenProblemInfo {
public BuildProblemInfo(Throwable error, MojoExecutionKey mojoExecutionKey, SourceLocation markerLocation) {
super(
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/ChangedFileOutputStream.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/ChangedFileOutputStream.java
index 2017699a..17562b80 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/ChangedFileOutputStream.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/ChangedFileOutputStream.java
@@ -23,19 +23,19 @@ import java.io.OutputStream;
import org.sonatype.plexus.build.incremental.BuildContext;
+
/**
- * Writes to the file only if content of the file is different.
- *
- * TODO. Current implementation defers actual writing to the output file until
- * invocation of {@link #close()} method. This results in missed/ignored IOExceptions
- * in some cases. First, {@link #flush()} method does not actually flush buffer to the disk.
- * Second, any problems writing to the file will be reported as IOException
- * thrown by {@link #close()}, which are generally ignored.
+ * Writes to the file only if content of the file is different. TODO. Current implementation defers actual writing to
+ * the output file until invocation of {@link #close()} method. This results in missed/ignored IOExceptions in some
+ * cases. First, {@link #flush()} method does not actually flush buffer to the disk. Second, any problems writing to the
+ * file will be reported as IOException thrown by {@link #close()}, which are generally ignored.
*/
public class ChangedFileOutputStream extends OutputStream {
private final File file;
+
private final BuildContext buildContext;
+
private final OutputStream os;
private ByteArrayOutputStream buffer = new ByteArrayOutputStream();
@@ -72,11 +72,11 @@ public class ChangedFileOutputStream extends OutputStream {
boolean needToWrite = false;
// XXX harden
- if (file.exists()) {
+ if(file.exists()) {
BufferedInputStream is = new BufferedInputStream(new FileInputStream(file));
try {
- for (int i = 0; i < bytes.length; i++) {
- if (bytes[i] != is.read()) {
+ for(int i = 0; i < bytes.length; i++ ) {
+ if(bytes[i] != is.read()) {
needToWrite = true;
break;
}
@@ -84,17 +84,17 @@ public class ChangedFileOutputStream extends OutputStream {
} finally {
try {
is.close();
- } catch (IOException e) {
-
+ } catch(IOException e) {
+
}
}
} else {
// file does not exist
- needToWrite = true;
+ needToWrite = true;
}
- if (needToWrite) {
- if (buildContext != null) {
+ if(needToWrite) {
+ if(buildContext != null) {
buildContext.refresh(file);
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/DeltaProvider.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/DeltaProvider.java
index 03423509..47c8f666 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/DeltaProvider.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/DeltaProvider.java
@@ -8,11 +8,13 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.internal.builder;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResourceDelta;
+
interface DeltaProvider {
public IResourceDelta getDelta(IProject project);
-} \ No newline at end of file
+}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/EclipseBuildContext.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/EclipseBuildContext.java
index 51a0871e..25f85177 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/EclipseBuildContext.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/EclipseBuildContext.java
@@ -27,15 +27,16 @@ import org.sonatype.plexus.build.incremental.EmptyScanner;
import org.eclipse.m2e.core.internal.Messages;
+
/**
* EclipseBuildContext
- *
+ *
* @author igor
*/
public class EclipseBuildContext extends AbstractEclipseBuildContext {
protected final IProject project;
-
+
public EclipseBuildContext(IProject project, Map<String, Object> context) {
super(context);
this.project = project;
@@ -60,9 +61,9 @@ public class EclipseBuildContext extends AbstractEclipseBuildContext {
public Scanner newScanner(File basedir) {
IPath relpath = getRelativePath(basedir);
- if (relpath !=null) {
+ if(relpath != null) {
IResource resource = project.findMember(relpath);
- return resource != null? new ResourceScanner(resource): new EmptyScanner(basedir);
+ return resource != null ? new ResourceScanner(resource) : new EmptyScanner(basedir);
}
File projectBasedir = getBaseResource().getFullPath().toFile();
addMessage(projectBasedir, -1, -1, NLS.bind(Messages.buildConextFileAccessOutsideOfProjectBasedir, basedir),
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/EclipseIncrementalBuildContext.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/EclipseIncrementalBuildContext.java
index 5ea17e6d..f40122b1 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/EclipseIncrementalBuildContext.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/EclipseIncrementalBuildContext.java
@@ -26,6 +26,7 @@ import org.codehaus.plexus.util.Scanner;
import org.sonatype.plexus.build.incremental.EmptyScanner;
+
public class EclipseIncrementalBuildContext extends AbstractEclipseBuildContext {
private final IResourceDelta delta;
@@ -46,8 +47,8 @@ public class EclipseIncrementalBuildContext extends AbstractEclipseBuildContext
@SuppressWarnings({"unchecked", "rawtypes"})
public boolean hasDelta(List relPaths) {
- for (String relPath : (List<String>) relPaths) {
- if (hasDelta(relPath)) {
+ for(String relPath : (List<String>) relPaths) {
+ if(hasDelta(relPath)) {
return true;
}
}
@@ -61,7 +62,7 @@ public class EclipseIncrementalBuildContext extends AbstractEclipseBuildContext
public Scanner newDeleteScanner(File basedir) {
IResourceDelta reldelta = getDelta(basedir);
- if (reldelta == null || !isRemove(reldelta)) {
+ if(reldelta == null || !isRemove(reldelta)) {
return new EmptyScanner(basedir);
}
@@ -73,10 +74,10 @@ public class EclipseIncrementalBuildContext extends AbstractEclipseBuildContext
}
public Scanner newScanner(File basedir, boolean ignoreDelta) {
- if (!ignoreDelta) {
+ if(!ignoreDelta) {
IResourceDelta reldelta = getDelta(basedir);
- if (reldelta == null || !isContentChange(reldelta)) {
+ if(reldelta == null || !isContentChange(reldelta)) {
return new EmptyScanner(basedir);
}
@@ -90,7 +91,7 @@ public class EclipseIncrementalBuildContext extends AbstractEclipseBuildContext
private IResourceDelta getDelta(File file) {
IPath relpath = getRelativePath(file);
- if (relpath == null) {
+ if(relpath == null) {
return null;
}
return delta.findMember(relpath);
@@ -98,12 +99,12 @@ public class EclipseIncrementalBuildContext extends AbstractEclipseBuildContext
static boolean isContentChange(IResourceDelta delta) {
int kind = delta.getKind();
- if (IResourceDelta.ADDED == kind) {
+ if(IResourceDelta.ADDED == kind) {
return true;
}
-
- if (IResourceDelta.CHANGED == kind) {
- if (delta.getResource() instanceof IContainer) {
+
+ if(IResourceDelta.CHANGED == kind) {
+ if(delta.getResource() instanceof IContainer) {
return true;
}
@@ -117,19 +118,18 @@ public class EclipseIncrementalBuildContext extends AbstractEclipseBuildContext
static boolean isRemove(IResourceDelta delta) {
int kind = delta.getKind();
-
- if (IResourceDelta.REMOVED == kind) {
+
+ if(IResourceDelta.REMOVED == kind) {
return true;
}
-
- if (IResourceDelta.CHANGED == kind && delta.getResource() instanceof IContainer) {
+
+ if(IResourceDelta.CHANGED == kind && delta.getResource() instanceof IContainer) {
return true;
}
-
+
return false;
}
-
@Override
protected IResource getBaseResource() {
return delta.getResource();
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/InternalBuildParticipant.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/InternalBuildParticipant.java
index b93a5e00..91d7b7f0 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/InternalBuildParticipant.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/InternalBuildParticipant.java
@@ -24,11 +24,15 @@ import org.sonatype.plexus.build.incremental.BuildContext;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
+
public abstract class InternalBuildParticipant {
-
+
private IMavenProjectFacade facade;
+
private DeltaProvider getDeltaCallback;
+
private MavenSession session;
+
private AbstractEclipseBuildContext buildContext;
protected IMavenProjectFacade getMavenProjectFacade() {
@@ -56,7 +60,7 @@ public abstract class InternalBuildParticipant {
}
public abstract Set<IProject> build(int kind, IProgressMonitor monitor) throws Exception;
-
+
@SuppressWarnings("unused")
public void clean(IProgressMonitor monitor) throws CoreException {
// default implementation does nothing
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenNature.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenNature.java
index 6041622b..870e65de 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenNature.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenNature.java
@@ -40,8 +40,7 @@ public class MavenNature implements IProjectNature {
*/
public void deconfigure() throws CoreException {
IProjectDescription description = project.getDescription();
- MavenPlugin.getProjectConfigurationManager()
- .removeMavenBuilder(project, description, null /*monitor*/);
+ MavenPlugin.getProjectConfigurationManager().removeMavenBuilder(project, description, null /*monitor*/);
}
/*
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/ResourceDeltaScanner.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/ResourceDeltaScanner.java
index 95433e53..336de8ef 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/ResourceDeltaScanner.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/ResourceDeltaScanner.java
@@ -24,6 +24,7 @@ import org.eclipse.core.runtime.CoreException;
import org.codehaus.plexus.util.AbstractScanner;
+
public class ResourceDeltaScanner extends AbstractScanner {
protected final IResourceDelta delta;
@@ -33,7 +34,7 @@ public class ResourceDeltaScanner extends AbstractScanner {
protected final List<String> includedFiles = new ArrayList<String>();
protected final boolean deleted;
-
+
public ResourceDeltaScanner(IResourceDelta delta, boolean deleted) {
this.delta = delta;
this.deleted = deleted;
@@ -63,15 +64,15 @@ public class ResourceDeltaScanner extends AbstractScanner {
@SuppressWarnings("synthetic-access")
public boolean visit(IResourceDelta delta) {
String relpath = getRelativePath(delta);
- if (isInteresting(delta) && isIncluded(relpath) && !isExcluded(relpath)) {
+ if(isInteresting(delta) && isIncluded(relpath) && !isExcluded(relpath)) {
IResource resource = delta.getResource();
- if (resource instanceof IContainer) {
+ if(resource instanceof IContainer) {
includedDirectories.add(relpath);
} else {
includedFiles.add(relpath);
}
return true;
- } else if (delta.getResource() instanceof IFolder) {
+ } else if(delta.getResource() instanceof IFolder) {
return couldHoldIncluded(relpath);
}
@@ -82,7 +83,8 @@ public class ResourceDeltaScanner extends AbstractScanner {
}
protected boolean isInteresting(IResourceDelta delta) {
- return deleted? EclipseIncrementalBuildContext.isRemove(delta): EclipseIncrementalBuildContext.isContentChange(delta);
+ return deleted ? EclipseIncrementalBuildContext.isRemove(delta) : EclipseIncrementalBuildContext
+ .isContentChange(delta);
}
protected String getRelativePath(IResourceDelta delta) {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/ResourceScanner.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/ResourceScanner.java
index eff507d3..479735ce 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/ResourceScanner.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/ResourceScanner.java
@@ -23,19 +23,20 @@ import org.eclipse.core.runtime.CoreException;
import org.codehaus.plexus.util.AbstractScanner;
+
/**
* WorkspaceScanner
- *
+ *
* @author igor
*/
public class ResourceScanner extends AbstractScanner {
-
+
protected final IResource resource;
protected final List<String> includedDirectories = new ArrayList<String>();
protected final List<String> includedFiles = new ArrayList<String>();
-
+
public ResourceScanner(IResource resource) {
this.resource = resource;
}
@@ -63,14 +64,14 @@ public class ResourceScanner extends AbstractScanner {
public boolean visit(IResource resource) {
String relpath = getRelativePath(resource);
- if (isIncluded(relpath) && !isExcluded(relpath)) {
- if (resource instanceof IContainer) {
+ if(isIncluded(relpath) && !isExcluded(relpath)) {
+ if(resource instanceof IContainer) {
includedDirectories.add(relpath);
} else {
includedFiles.add(relpath);
}
return true;
- } else if (resource instanceof IFolder) {
+ } else if(resource instanceof IFolder) {
return couldHoldIncluded(relpath);
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/PomFileContentDescriber.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/PomFileContentDescriber.java
index 49c9a868..aaa558cb 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/PomFileContentDescriber.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/PomFileContentDescriber.java
@@ -37,11 +37,12 @@ public final class PomFileContentDescriber extends XMLContentDescriber {
* Determines the validation status for the given contents.
*
* @param contents the contents to be evaluated
- * @return one of the following:<ul>
- * <li><code>VALID</code></li>,
- * <li><code>INVALID</code></li>,
- * <li><code>INDETERMINATE</code></li>
- * </ul>
+ * @return one of the following:
+ * <ul>
+ * <li><code>VALID</code></li>,
+ * <li><code>INVALID</code></li>,
+ * <li><code>INDETERMINATE</code></li>
+ * </ul>
* @throws IOException
*/
private int checkCriteria(InputSource contents) throws IOException {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/PomHandler.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/PomHandler.java
index 3ff2db65..0d5e029a 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/PomHandler.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/PomHandler.java
@@ -133,7 +133,6 @@ public final class PomHandler extends DefaultHandler {
return new InputSource(new StringReader("")); //$NON-NLS-1$
}
-
@Override
public final void startElement(final String uri, final String elementName, final String qualifiedName,
final Attributes attributes) throws SAXException {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/TextContentDescriber.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/TextContentDescriber.java
index bfe4da15..9a6d8acc 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/TextContentDescriber.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/TextContentDescriber.java
@@ -19,15 +19,13 @@ import org.eclipse.core.runtime.QualifiedName;
import org.eclipse.core.runtime.content.IContentDescription;
import org.eclipse.core.runtime.content.ITextContentDescriber;
+
/**
- * A copy of org.eclipse.core.internal.content.TextContentDescriber to avoid internal API use.
- *
- * This class provides internal basis for text-based content describers.
- *
+ * A copy of org.eclipse.core.internal.content.TextContentDescriber to avoid internal API use. This class provides
+ * internal basis for text-based content describers.
* <p>
- * Note: do not add protected/public members to this class if you don't intend to
- * make them public API.
- * </p>
+ * Note: do not add protected/public members to this class if you don't intend to make them public API.
+ * </p>
*
* @see org.eclipse.core.runtime.content.XMLRootElementContentDescriber2
* @since 3.0
@@ -51,10 +49,10 @@ class TextContentDescriber implements ITextContentDescriber {
* @see org.eclipse.core.runtime.content.IContentDescriber#describe(java.io.InputStream, org.eclipse.core.runtime.content.IContentDescription)
*/
public int describe(InputStream contents, IContentDescription description) throws IOException {
- if (description == null || !description.isRequested(IContentDescription.BYTE_ORDER_MARK))
+ if(description == null || !description.isRequested(IContentDescription.BYTE_ORDER_MARK))
return INDETERMINATE;
byte[] bom = getByteOrderMark(contents);
- if (bom != null)
+ if(bom != null)
description.setProperty(IContentDescription.BYTE_ORDER_MARK, bom);
// we want to be pretty loose on detecting the text content type
return INDETERMINATE;
@@ -70,18 +68,18 @@ class TextContentDescriber implements ITextContentDescriber {
byte[] getByteOrderMark(InputStream input) throws IOException {
int first = input.read();
- if (first == 0xEF) {
+ if(first == 0xEF) {
//look for the UTF-8 Byte Order Mark (BOM)
int second = input.read();
int third = input.read();
- if (second == 0xBB && third == 0xBF)
+ if(second == 0xBB && third == 0xBF)
return IContentDescription.BOM_UTF_8;
- } else if (first == 0xFE) {
+ } else if(first == 0xFE) {
//look for the UTF-16 BOM
- if (input.read() == 0xFF)
+ if(input.read() == 0xFF)
return IContentDescription.BOM_UTF_16BE;
- } else if (first == 0xFF) {
- if (input.read() == 0xFE)
+ } else if(first == 0xFF) {
+ if(input.read() == 0xFE)
return IContentDescription.BOM_UTF_16LE;
}
return null;
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/XMLContentDescriber.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/XMLContentDescriber.java
index ed115a0a..3caad11e 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/XMLContentDescriber.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/content/XMLContentDescriber.java
@@ -20,56 +20,57 @@ import org.eclipse.core.runtime.QualifiedName;
import org.eclipse.core.runtime.content.IContentDescription;
import org.eclipse.core.runtime.content.ITextContentDescriber;
+
/**
- * A copy of org.eclipse.core.internal.content.XMLContentDescriber to avoid internal API use.
- *
- * A content interpreter for XML files.
- * This class provides internal basis for XML-based content describers.
+ * A copy of org.eclipse.core.internal.content.XMLContentDescriber to avoid internal API use. A content interpreter for
+ * XML files. This class provides internal basis for XML-based content describers.
* <p>
- * Note: do not add protected/public members to this class if you don't intend to
- * make them public API.
+ * Note: do not add protected/public members to this class if you don't intend to make them public API.
* </p>
- *
+ *
* @see org.eclipse.core.runtime.content.XMLRootElementContentDescriber2
* @see "http://www.w3.org/TR/REC-xml *"
*/
class XMLContentDescriber extends TextContentDescriber implements ITextContentDescriber {
- private static final QualifiedName[] SUPPORTED_OPTIONS = new QualifiedName[] {IContentDescription.CHARSET, IContentDescription.BYTE_ORDER_MARK};
+ private static final QualifiedName[] SUPPORTED_OPTIONS = new QualifiedName[] {IContentDescription.CHARSET,
+ IContentDescription.BYTE_ORDER_MARK};
+
private static final String ENCODING = "encoding="; //$NON-NLS-1$
+
private static final String XML_PREFIX = "<?xml "; //$NON-NLS-1$
public int describe(InputStream input, IContentDescription description) throws IOException {
byte[] bom = getByteOrderMark(input);
String xmlDeclEncoding = "UTF-8"; //$NON-NLS-1$
input.reset();
- if (bom != null) {
- if (bom == IContentDescription.BOM_UTF_16BE)
+ if(bom != null) {
+ if(bom == IContentDescription.BOM_UTF_16BE)
xmlDeclEncoding = "UTF-16BE"; //$NON-NLS-1$
- else if (bom == IContentDescription.BOM_UTF_16LE)
+ else if(bom == IContentDescription.BOM_UTF_16LE)
xmlDeclEncoding = "UTF-16LE"; //$NON-NLS-1$
// skip BOM to make comparison simpler
input.skip(bom.length);
// set the BOM in the description if requested
- if (description != null && description.isRequested(IContentDescription.BYTE_ORDER_MARK))
+ if(description != null && description.isRequested(IContentDescription.BYTE_ORDER_MARK))
description.setProperty(IContentDescription.BYTE_ORDER_MARK, bom);
}
byte[] xmlPrefixBytes = XML_PREFIX.getBytes(xmlDeclEncoding);
byte[] prefix = new byte[xmlPrefixBytes.length];
- if (input.read(prefix) < prefix.length)
+ if(input.read(prefix) < prefix.length)
// there is not enough info to say anything
return INDETERMINATE;
- for (int i = 0; i < prefix.length; i++)
- if (prefix[i] != xmlPrefixBytes[i])
+ for(int i = 0; i < prefix.length; i++ )
+ if(prefix[i] != xmlPrefixBytes[i])
// we don't have a XMLDecl... there is not enough info to say anything
return INDETERMINATE;
- if (description == null)
+ if(description == null)
return VALID;
// describe charset if requested
- if (description.isRequested(IContentDescription.CHARSET)) {
+ if(description.isRequested(IContentDescription.CHARSET)) {
String fullXMLDecl = readFullXMLDecl(input, xmlDeclEncoding);
- if (fullXMLDecl != null) {
+ if(fullXMLDecl != null) {
String charset = getCharset(fullXMLDecl);
- if (charset != null && !"UTF-8".equalsIgnoreCase(charset)) //$NON-NLS-1$
+ if(charset != null && !"UTF-8".equalsIgnoreCase(charset)) //$NON-NLS-1$
// only set property if value is not default (avoid using a non-default content description)
description.setProperty(IContentDescription.CHARSET, getCharset(fullXMLDecl));
}
@@ -82,8 +83,8 @@ class XMLContentDescriber extends TextContentDescriber implements ITextContentDe
int c = 0;
// looks for XMLDecl ending char (?)
int read = 0;
- while (read < xmlDecl.length && (c = input.read()) != -1 && c != '?')
- xmlDecl[read++] = (byte) c;
+ while(read < xmlDecl.length && (c = input.read()) != -1 && c != '?')
+ xmlDecl[read++ ] = (byte) c;
return c == '?' ? new String(xmlDecl, 0, read, unicodeEncoding) : null;
}
@@ -91,33 +92,33 @@ class XMLContentDescriber extends TextContentDescriber implements ITextContentDe
BufferedReader reader = new BufferedReader(input);
String line = reader.readLine();
// end of stream
- if (line == null)
+ if(line == null)
return INDETERMINATE;
// XMLDecl should be the first string (no blanks allowed)
- if (!line.startsWith(XML_PREFIX))
+ if(!line.startsWith(XML_PREFIX))
return INDETERMINATE;
- if (description == null)
+ if(description == null)
return VALID;
// describe charset if requested
- if ((description.isRequested(IContentDescription.CHARSET)))
+ if((description.isRequested(IContentDescription.CHARSET)))
description.setProperty(IContentDescription.CHARSET, getCharset(line));
return VALID;
}
private String getCharset(String firstLine) {
int encodingPos = firstLine.indexOf(ENCODING);
- if (encodingPos == -1)
+ if(encodingPos == -1)
return null;
char quoteChar = '"';
int firstQuote = firstLine.indexOf(quoteChar, encodingPos);
- if (firstQuote == -1) {
+ if(firstQuote == -1) {
quoteChar = '\'';
firstQuote = firstLine.indexOf(quoteChar, encodingPos);
}
- if (firstQuote == -1 || firstLine.length() == firstQuote - 1)
+ if(firstQuote == -1 || firstLine.length() == firstQuote - 1)
return null;
int secondQuote = firstLine.indexOf(quoteChar, firstQuote + 1);
- if (secondQuote == -1)
+ if(secondQuote == -1)
return null;
return firstLine.substring(firstQuote + 1, secondQuote);
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/AbstractTransferListenerAdapter.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/AbstractTransferListenerAdapter.java
index 6daedc2e..e94fdc43 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/AbstractTransferListenerAdapter.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/AbstractTransferListenerAdapter.java
@@ -38,7 +38,8 @@ abstract class AbstractTransferListenerAdapter {
protected long complete = 0;
- private static final String[] units = {Messages.AbstractTransferListenerAdapter_byte, Messages.AbstractTransferListenerAdapter_kb, Messages.AbstractTransferListenerAdapter_mb};
+ private static final String[] units = {Messages.AbstractTransferListenerAdapter_byte,
+ Messages.AbstractTransferListenerAdapter_kb, Messages.AbstractTransferListenerAdapter_mb};
protected AbstractTransferListenerAdapter(MavenImpl maven, IProgressMonitor monitor) {
this.maven = maven;
@@ -60,8 +61,8 @@ abstract class AbstractTransferListenerAdapter {
}
this.complete = 0;
-
- if (artifactUrl != null) {
+
+ if(artifactUrl != null) {
monitor.subTask(artifactUrl);
}
}
@@ -85,7 +86,7 @@ abstract class AbstractTransferListenerAdapter {
if(total != WagonConstants.UNKNOWN_LENGTH) {
sb.append('/');
formatBytes(total, sb);
- if (total > 0) {
+ if(total > 0) {
sb.append(" (");
sb.append(100l * complete / total);
sb.append("%)");
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/ArtifactTransferListenerAdapter.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/ArtifactTransferListenerAdapter.java
index 27e690d8..3fc952e1 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/ArtifactTransferListenerAdapter.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/ArtifactTransferListenerAdapter.java
@@ -18,13 +18,13 @@ import org.sonatype.aether.transfer.TransferCancelledException;
import org.sonatype.aether.transfer.TransferEvent;
import org.sonatype.aether.transfer.TransferListener;
+
/**
* ArtifactTransferListenerAdapter
*
* @author igor
*/
-public class ArtifactTransferListenerAdapter extends AbstractTransferListenerAdapter implements
- TransferListener {
+public class ArtifactTransferListenerAdapter extends AbstractTransferListenerAdapter implements TransferListener {
ArtifactTransferListenerAdapter(MavenImpl maven, IProgressMonitor monitor) {
super(maven, monitor);
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/ContextRepositorySystemSession.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/ContextRepositorySystemSession.java
index 7ac41337..223e1b6a 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/ContextRepositorySystemSession.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/ContextRepositorySystemSession.java
@@ -13,6 +13,7 @@ package org.eclipse.m2e.core.internal.embedder;
import org.sonatype.aether.RepositorySystemSession;
+
public interface ContextRepositorySystemSession extends RepositorySystemSession {
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/DefaultMavenComponentContributor.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/DefaultMavenComponentContributor.java
index 7948a497..36a600f2 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/DefaultMavenComponentContributor.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/DefaultMavenComponentContributor.java
@@ -28,7 +28,8 @@ public class DefaultMavenComponentContributor implements IMavenComponentContribu
binder.bind(MavenMetadataCache.class, EclipseMavenMetadataCache.class, null);
binder.bind(PluginDependenciesResolver.class, EclipsePluginDependenciesResolver.class, null);
binder.bind(BuildContext.class, EclipseBuildContext.class, null);
- binder.bind(ClassRealmManagerDelegate.class, EclipseClassRealmManagerDelegate.class, EclipseClassRealmManagerDelegate.ROLE_HINT);
+ binder.bind(ClassRealmManagerDelegate.class, EclipseClassRealmManagerDelegate.class,
+ EclipseClassRealmManagerDelegate.ROLE_HINT);
binder.bind(RepositoryListener.class, EclipseRepositoryListener.class, EclipseRepositoryListener.ROLE_HINT);
binder.bind(ContextRepositorySystemSession.class, ContextRepositorySystemSessionImpl.class, null);
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/EclipseLogger.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/EclipseLogger.java
index 72d6197f..5e5a1ac6 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/EclipseLogger.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/EclipseLogger.java
@@ -18,6 +18,7 @@ import org.codehaus.plexus.logging.Logger;
import org.eclipse.m2e.core.embedder.IMavenConfiguration;
import org.eclipse.m2e.core.internal.Messages;
+
class EclipseLogger implements Logger {
private static final org.slf4j.Logger log = LoggerFactory.getLogger(EclipseLogger.class);
@@ -26,71 +27,71 @@ class EclipseLogger implements Logger {
public EclipseLogger(IMavenConfiguration mavenConfiguration) {
this.mavenConfiguration = mavenConfiguration;
}
-
- public void debug( String msg ) {
- if (isDebugEnabled()) {
+
+ public void debug(String msg) {
+ if(isDebugEnabled()) {
log.debug(msg);
}
}
- public void debug( String msg, Throwable t) {
- if (isDebugEnabled()) {
+ public void debug(String msg, Throwable t) {
+ if(isDebugEnabled()) {
log.debug(msg + " " + t.getMessage(), t);
}
}
- public void info( String msg ) {
- if (isInfoEnabled()) {
+ public void info(String msg) {
+ if(isInfoEnabled()) {
log.info(msg);
}
}
- public void info( String msg, Throwable t ) {
- if (isInfoEnabled()) {
+ public void info(String msg, Throwable t) {
+ if(isInfoEnabled()) {
log.info(msg + " " + t.getMessage(), t);
}
}
- public void warn( String msg ) {
- if (isWarnEnabled()) {
+ public void warn(String msg) {
+ if(isWarnEnabled()) {
log.warn(msg);
}
}
-
- public void warn( String msg, Throwable t ) {
- if (isWarnEnabled()) {
+
+ public void warn(String msg, Throwable t) {
+ if(isWarnEnabled()) {
log.warn(msg + " " + t.getMessage(), t);
}
}
-
- public void fatalError( String msg ) {
- if (isFatalErrorEnabled()) {
+
+ public void fatalError(String msg) {
+ if(isFatalErrorEnabled()) {
log.error(msg);
}
}
-
- public void fatalError( String msg, Throwable t ) {
- if (isFatalErrorEnabled()) {
+
+ public void fatalError(String msg, Throwable t) {
+ if(isFatalErrorEnabled()) {
log.error(msg + " " + t.getMessage(), t);
}
}
-
- public void error( String msg ) {
- if (isErrorEnabled()) {
+
+ public void error(String msg) {
+ if(isErrorEnabled()) {
log.error(msg);
}
}
-
- public void error( String msg, Throwable t ) {
- if (isErrorEnabled()) {
+
+ public void error(String msg, Throwable t) {
+ if(isErrorEnabled()) {
log.error(msg + " " + t.getMessage(), t);
}
}
-
+
public boolean isDebugEnabled() {
return mavenConfiguration.isDebugOutput();
}
-
+
public boolean isInfoEnabled() {
return true;
}
@@ -107,7 +108,7 @@ class EclipseLogger implements Logger {
return true;
}
- public void setThreshold( int treshold ) {
+ public void setThreshold(int treshold) {
}
public int getThreshold() {
@@ -122,4 +123,3 @@ class EclipseLogger implements Logger {
return Messages.EclipseLogger_name;
}
}
-
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/EclipseRepositoryListener.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/EclipseRepositoryListener.java
index 1b44268a..3cc5c2b9 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/EclipseRepositoryListener.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/EclipseRepositoryListener.java
@@ -58,7 +58,7 @@ public class EclipseRepositoryListener extends AbstractRepositoryListener implem
}
private static String nes(String str) {
- if (str == null || str.trim().length() == 0) {
+ if(str == null || str.trim().length() == 0) {
return null;
}
return str.trim();
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenExternalRuntime.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenExternalRuntime.java
index 0c91e580..3603d7fb 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenExternalRuntime.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenExternalRuntime.java
@@ -35,12 +35,12 @@ import org.eclipse.m2e.core.embedder.MavenRuntime;
import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.core.internal.Messages;
+
/**
* Maven external runtime using ClassWorlds launcher
*
* @author Eugene Kuleshov
* @author Igor Fedorenko
- *
*/
public class MavenExternalRuntime implements MavenRuntime {
private static final Logger log = LoggerFactory.getLogger(MavenExternalRuntime.class);
@@ -48,12 +48,11 @@ public class MavenExternalRuntime implements MavenRuntime {
private static final String PROPERTY_MAVEN_HOME = "maven.home"; //$NON-NLS-1$
private final String location;
-
public MavenExternalRuntime(String location) {
this.location = location;
}
-
+
public boolean isEditable() {
return true;
}
@@ -61,15 +60,15 @@ public class MavenExternalRuntime implements MavenRuntime {
public boolean isAvailable() {
return new File(location, "bin").exists() && getLauncherClasspath() != null; //$NON-NLS-1$
}
-
+
public String getLocation() {
return location;
}
-
+
public String getSettings() {
return location + File.separator + "conf" + File.separator + "settings.xml"; //$NON-NLS-1$ //$NON-NLS-2$
}
-
+
public String getMainTypeName() {
return "org.codehaus.classworlds.Launcher"; //$NON-NLS-1$
}
@@ -78,8 +77,9 @@ public class MavenExternalRuntime implements MavenRuntime {
return new File(location, "bin/m2.conf"); //$NON-NLS-1$
}
- public void createLauncherConfiguration(final IMavenLauncherConfiguration collector, IProgressMonitor monitor) throws CoreException {
-
+ public void createLauncherConfiguration(final IMavenLauncherConfiguration collector, IProgressMonitor monitor)
+ throws CoreException {
+
collector.addRealm(IMavenLauncherConfiguration.LAUNCHER_REALM);
collector.addArchiveEntry(getLauncherClasspath());
@@ -87,6 +87,7 @@ public class MavenExternalRuntime implements MavenRuntime {
public void addImportFrom(String relamName, String importSpec) {
throw new UnsupportedOperationException(Messages.MavenExternalRuntime_exc_unsupported);
}
+
public void addLoadFile(File file) {
try {
collector.addArchiveEntry(file.getAbsolutePath());
@@ -94,6 +95,7 @@ public class MavenExternalRuntime implements MavenRuntime {
throw new ExceptionWrapper(ex);
}
}
+
public void addLoadURL(URL url) {
try {
collector.addArchiveEntry(url.toExternalForm());
@@ -101,9 +103,11 @@ public class MavenExternalRuntime implements MavenRuntime {
throw new ExceptionWrapper(ex);
}
}
+
public void addRealm(String realmName) {
collector.addRealm(realmName);
}
+
public void setAppMain(String mainClassName, String mainRealmName) {
collector.setMainType(mainClassName, mainRealmName);
}
@@ -113,7 +117,7 @@ public class MavenExternalRuntime implements MavenRuntime {
properties.put(PROPERTY_MAVEN_HOME, location);
ConfigurationParser parser = new ConfigurationParser(handler, properties);
-
+
try {
FileInputStream is = new FileInputStream(getLauncherConfigurationFile());
try {
@@ -121,11 +125,12 @@ public class MavenExternalRuntime implements MavenRuntime {
} finally {
is.close();
}
- } catch (Exception e) {
- if (e instanceof ExceptionWrapper && e.getCause() instanceof CoreException) {
+ } catch(Exception e) {
+ if(e instanceof ExceptionWrapper && e.getCause() instanceof CoreException) {
throw (CoreException) e.getCause();
}
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, Messages.MavenExternalRuntime_error_cannot_parse, e));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
+ Messages.MavenExternalRuntime_error_cannot_parse, e));
}
// XXX show error dialog and fail launch
@@ -137,7 +142,7 @@ public class MavenExternalRuntime implements MavenRuntime {
}
return false;
}
-
+
public int hashCode() {
return location.hashCode();
}
@@ -148,6 +153,7 @@ public class MavenExternalRuntime implements MavenRuntime {
private static class ExceptionWrapper extends RuntimeException {
private static final long serialVersionUID = 8815818826909815028L;
+
public ExceptionWrapper(Exception cause) {
super(cause);
}
@@ -157,15 +163,14 @@ public class MavenExternalRuntime implements MavenRuntime {
File mavenHome = new File(location);
DirectoryScanner ds = new DirectoryScanner();
ds.setBasedir(mavenHome);
- ds.setIncludes(new String[] {
- "core/boot/classworlds*.jar", // 2.0.4 //$NON-NLS-1$
+ ds.setIncludes(new String[] {"core/boot/classworlds*.jar", // 2.0.4 //$NON-NLS-1$
"boot/classworlds*.jar", // 2.0.7 //$NON-NLS-1$
"boot/plexus-classworlds*.jar", // 2.1 as of 2008-03-27 //$NON-NLS-1$
});
ds.scan();
String[] includedFiles = ds.getIncludedFiles();
- if (includedFiles.length == 1) {
+ if(includedFiles.length == 1) {
return new File(mavenHome, includedFiles[0]).getAbsolutePath();
}
@@ -173,26 +178,33 @@ public class MavenExternalRuntime implements MavenRuntime {
}
public String getVersion() {
-
+
class VersionHandler implements ConfigurationHandler {
File mavenCore;
+
File uber;
+
public void addImportFrom(String relamName, String importSpec) {
}
+
public void addLoadFile(File file) {
- if (file.getName().contains("maven-core")) { //$NON-NLS-1$
+ if(file.getName().contains("maven-core")) { //$NON-NLS-1$
mavenCore = file;
- } else if (file.getName().endsWith("uber.jar")) { //$NON-NLS-1$
+ } else if(file.getName().endsWith("uber.jar")) { //$NON-NLS-1$
uber = file;
}
}
+
public void addLoadURL(URL url) {
}
+
public void addRealm(String realmName) {
}
+
public void setAppMain(String mainClassName, String mainRealmName) {
}
- };
+ }
+ ;
VersionHandler handler = new VersionHandler();
Properties properties = new Properties();
@@ -209,20 +221,20 @@ public class MavenExternalRuntime implements MavenRuntime {
}
ZipFile zip = null;
- if (handler.mavenCore != null) {
+ if(handler.mavenCore != null) {
zip = new ZipFile(handler.mavenCore);
- } else if (handler.uber != null) {
+ } else if(handler.uber != null) {
zip = new ZipFile(handler.uber);
}
- if (zip != null) {
+ if(zip != null) {
try {
ZipEntry zipEntry = zip.getEntry("META-INF/maven/org.apache.maven/maven-core/pom.properties"); //$NON-NLS-1$
- if (zipEntry != null) {
+ if(zipEntry != null) {
Properties pomProperties = new Properties();
pomProperties.load(zip.getInputStream(zipEntry));
-
+
String version = pomProperties.getProperty("version"); //$NON-NLS-1$
- if (version != null) {
+ if(version != null) {
return version;
}
}
@@ -230,11 +242,11 @@ public class MavenExternalRuntime implements MavenRuntime {
zip.close();
}
}
- } catch (Exception e) {
+ } catch(Exception e) {
// most likely a bad location, but who knows
log.error("Could not parse classwords configuration file", e);
}
return Messages.MavenExternalRuntime_unknown;
}
-} \ No newline at end of file
+}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenImpl.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenImpl.java
index 76f28329..1201dfa6 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenImpl.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenImpl.java
@@ -286,7 +286,7 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
try {
RepositorySystemSession session = ((DefaultMaven) lookup(Maven.class)).newRepositorySession(request);
final String updatePolicy = mavenConfiguration.getGlobalUpdatePolicy();
- if (!request.isUpdateSnapshots() && updatePolicy != null) {
+ if(!request.isUpdateSnapshots() && updatePolicy != null) {
session = new FilterRepositorySystemSession(session) {
public String getUpdatePolicy() {
return updatePolicy;
@@ -328,7 +328,7 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
project.setResolvedArtifacts(null);
project.setArtifacts(artifacts.get(project));
MavenProjectMutableState snapshot = snapshots.get(project);
- if (snapshot != null) {
+ if(snapshot != null) {
snapshot.restore(project);
}
}
@@ -343,20 +343,20 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
lookup(BuildPluginManager.class).getPluginRealm(session, mojoDescriptor.getPluginDescriptor());
return clazz.cast(lookup(MavenPluginManager.class).getConfiguredMojo(Mojo.class, session, mojoExecution));
} catch(PluginContainerException ex) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
- NLS.bind(Messages.MavenImpl_error_mojo, mojoExecution), ex));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, NLS.bind(
+ Messages.MavenImpl_error_mojo, mojoExecution), ex));
} catch(PluginConfigurationException ex) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
- NLS.bind(Messages.MavenImpl_error_mojo, mojoExecution), ex));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, NLS.bind(
+ Messages.MavenImpl_error_mojo, mojoExecution), ex));
} catch(ClassCastException ex) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
- NLS.bind(Messages.MavenImpl_error_mojo, mojoExecution), ex));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, NLS.bind(
+ Messages.MavenImpl_error_mojo, mojoExecution), ex));
} catch(PluginResolutionException ex) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
- NLS.bind(Messages.MavenImpl_error_mojo, mojoExecution), ex));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, NLS.bind(
+ Messages.MavenImpl_error_mojo, mojoExecution), ex));
} catch(PluginManagerException ex) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
- NLS.bind(Messages.MavenImpl_error_mojo, mojoExecution), ex));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, NLS.bind(
+ Messages.MavenImpl_error_mojo, mojoExecution), ex));
}
}
@@ -367,14 +367,16 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
public MavenExecutionPlan calculateExecutionPlan(MavenSession session, MavenProject project, List<String> goals,
boolean setup, IProgressMonitor monitor) throws CoreException {
try {
- return lookup(LifecycleExecutor.class).calculateExecutionPlan(session, setup, goals.toArray(new String[goals.size()]));
+ return lookup(LifecycleExecutor.class).calculateExecutionPlan(session, setup,
+ goals.toArray(new String[goals.size()]));
} catch(Exception ex) {
throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, NLS.bind(
Messages.MavenImpl_error_calc_build_plan, ex.getMessage()), ex));
}
}
-
- public MojoExecution setupMojoExecution(MavenSession session, MavenProject project, MojoExecution execution) throws CoreException {
+
+ public MojoExecution setupMojoExecution(MavenSession session, MavenProject project, MojoExecution execution)
+ throws CoreException {
MojoExecution clone = new MojoExecution(execution.getPlugin(), execution.getGoal(), execution.getExecutionId());
clone.setMojoDescriptor(execution.getMojoDescriptor());
if(execution.getConfiguration() != null) {
@@ -419,8 +421,7 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
boolean reload = force_reload || settings == null;
if(!reload && userSettingsFile != null) {
- reload = userSettingsFile.lastModified() != settings_timestamp
- || userSettingsFile.length() != settings_length;
+ reload = userSettingsFile.lastModified() != settings_timestamp || userSettingsFile.length() != settings_length;
}
if(reload) {
@@ -460,8 +461,8 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
try {
return lookup(SettingsBuilder.class).build(request).getEffectiveSettings();
} catch(SettingsBuildingException ex) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, Messages.MavenImpl_error_read_settings,
- ex));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
+ Messages.MavenImpl_error_read_settings, ex));
}
}
@@ -469,8 +470,8 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
try {
lookup(SettingsWriter.class).write(out, null, settings);
} catch(IOException ex) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, Messages.MavenImpl_error_write_settings,
- ex));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
+ Messages.MavenImpl_error_write_settings, ex));
}
}
@@ -528,7 +529,8 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
try {
return lookup(ModelReader.class).read(in, null);
} catch(IOException e) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, Messages.MavenImpl_error_read_pom, e));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
+ Messages.MavenImpl_error_read_pom, e));
}
}
@@ -541,7 +543,8 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
IOUtil.close(is);
}
} catch(IOException e) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, Messages.MavenImpl_error_read_pom, e));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
+ Messages.MavenImpl_error_read_pom, e));
}
}
@@ -549,7 +552,8 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
try {
lookup(ModelWriter.class).write(out, null, model);
} catch(IOException ex) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, Messages.MavenImpl_error_write_pom, ex));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
+ Messages.MavenImpl_error_write_pom, ex));
}
}
@@ -562,11 +566,11 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
configuration.setRepositorySession(createRepositorySession(request));
return lookup(ProjectBuilder.class).build(pomFile, configuration).getProject();
} catch(ProjectBuildingException ex) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, Messages.MavenImpl_error_read_project,
- ex));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
+ Messages.MavenImpl_error_read_project, ex));
} catch(MavenExecutionRequestPopulationException ex) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, Messages.MavenImpl_error_read_project,
- ex));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
+ Messages.MavenImpl_error_read_project, ex));
}
}
@@ -642,8 +646,8 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
return resolve(artifact, remoteRepositories, monitor);
}
- public Artifact resolve(Artifact artifact, List<ArtifactRepository> remoteRepositories,
- IProgressMonitor monitor) throws CoreException {
+ public Artifact resolve(Artifact artifact, List<ArtifactRepository> remoteRepositories, IProgressMonitor monitor)
+ throws CoreException {
if(remoteRepositories == null) {
try {
remoteRepositories = getArtifactRepositories();
@@ -691,12 +695,12 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
}
}
if(members.isEmpty()) {
- members.add(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, NLS.bind(Messages.MavenImpl_error_missing, artifact), null));
+ members.add(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, NLS.bind(Messages.MavenImpl_error_missing,
+ artifact), null));
}
IStatus[] newMembers = members.toArray(new IStatus[members.size()]);
throw new CoreException(new MultiStatus(IMavenConstants.PLUGIN_ID, -1, newMembers, NLS.bind(
- Messages.MavenImpl_error_resolve, artifact.toString()),
- null));
+ Messages.MavenImpl_error_resolve, artifact.toString()), null));
}
return artifact;
@@ -924,11 +928,11 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
plexus.getContainerRealm(), expressionEvaluator, null);
return type.cast(value);
} catch(ComponentConfigurationException ex) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
- Messages.MavenImpl_error_param, ex));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, Messages.MavenImpl_error_param,
+ ex));
} catch(ClassCastException ex) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
- Messages.MavenImpl_error_param, ex));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, Messages.MavenImpl_error_param,
+ ex));
}
}
@@ -1007,7 +1011,7 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
private void injectSettings(ArrayList<ArtifactRepository> repositories) throws CoreException {
Settings settings = getSettings();
- RepositorySystem repositorySystem = lookup(RepositorySystem.class);
+ RepositorySystem repositorySystem = lookup(RepositorySystem.class);
repositorySystem.injectMirror(repositories, getMirrors());
repositorySystem.injectProxy(repositories, settings.getProxies());
repositorySystem.injectAuthentication(repositories, settings.getServers());
@@ -1033,8 +1037,8 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
ArtifactRepository artifactRepository = lookup(RepositorySystem.class).buildArtifactRepository(repository);
artifactRepositories.add(artifactRepository);
} catch(InvalidRepositoryException ex) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, Messages.MavenImpl_error_read_settings,
- ex));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
+ Messages.MavenImpl_error_read_settings, ex));
}
}
}
@@ -1180,15 +1184,14 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
try {
return getPlexusContainer().lookup(clazz);
} catch(ComponentLookupException ex) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1,
- Messages.MavenImpl_error_lookup, ex));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, Messages.MavenImpl_error_lookup,
+ ex));
}
}
private static DefaultPlexusContainer newPlexusContainer() throws PlexusContainerException {
ContainerConfiguration mavenCoreCC = new DefaultContainerConfiguration().setClassWorld(
- new ClassWorld(MAVEN_CORE_REALM_ID, ClassWorld.class.getClassLoader())).setName(
- "mavenCore"); //$NON-NLS-1$
+ new ClassWorld(MAVEN_CORE_REALM_ID, ClassWorld.class.getClassLoader())).setName("mavenCore"); //$NON-NLS-1$
mavenCoreCC.setAutoWiring(true);
@@ -1209,8 +1212,7 @@ public class MavenImpl implements IMaven, IMavenConfigurationChangeListener {
return classLoader;
}
- public void interpolateModel(MavenProject project, Model model)
- throws CoreException {
+ public void interpolateModel(MavenProject project, Model model) throws CoreException {
ModelBuildingRequest request = new DefaultModelBuildingRequest();
request.setUserProperties(project.getProperties());
ModelProblemCollector problems = new ModelProblemCollector() {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenWorkspaceRuntime.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenWorkspaceRuntime.java
index f6caa23c..85c138c2 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenWorkspaceRuntime.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenWorkspaceRuntime.java
@@ -30,6 +30,7 @@ import org.eclipse.m2e.core.embedder.MavenRuntimeManager;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
import org.eclipse.m2e.core.project.IMavenProjectRegistry;
+
/**
* Maven 3.0-SNAPSHOT runtime loaded from the Eclipse Workspace
*
@@ -38,9 +39,11 @@ import org.eclipse.m2e.core.project.IMavenProjectRegistry;
*/
public class MavenWorkspaceRuntime implements MavenRuntime {
- private static final ArtifactKey MAVEN_DISTRIBUTION = new ArtifactKey("org.apache.maven", "apache-maven", "[3.0,)", null); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ private static final ArtifactKey MAVEN_DISTRIBUTION = new ArtifactKey(
+ "org.apache.maven", "apache-maven", "[3.0,)", null); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- private static final ArtifactKey PLEXUS_CLASSWORLDS = new ArtifactKey("org.codehaus.plexus", "plexus-classworlds", null, null); //$NON-NLS-1$ //$NON-NLS-2$
+ private static final ArtifactKey PLEXUS_CLASSWORLDS = new ArtifactKey(
+ "org.codehaus.plexus", "plexus-classworlds", null, null); //$NON-NLS-1$ //$NON-NLS-2$
private static final String MAVEN_EXECUTOR_CLASS = "org.apache.maven.cli.MavenCli"; //$NON-NLS-1$
@@ -51,11 +54,11 @@ public class MavenWorkspaceRuntime implements MavenRuntime {
public MavenWorkspaceRuntime(IMavenProjectRegistry projectManager) {
this.projectManager = projectManager;
}
-
+
public String getLocation() {
return MavenRuntimeManager.WORKSPACE;
}
-
+
public String getSettings() {
return null;
}
@@ -85,9 +88,10 @@ public class MavenWorkspaceRuntime implements MavenRuntime {
return null;
}
- public void createLauncherConfiguration(IMavenLauncherConfiguration collector, IProgressMonitor monitor) throws CoreException {
+ public void createLauncherConfiguration(IMavenLauncherConfiguration collector, IProgressMonitor monitor)
+ throws CoreException {
IMavenProjectFacade maven = getMavenDistribution();
- if (maven != null) {
+ if(maven != null) {
MavenProject mavenProject = maven.getMavenProject(monitor);
collector.setMainType(MAVEN_EXECUTOR_CLASS, PLEXUS_CLASSWORLD_NAME);
@@ -95,23 +99,24 @@ public class MavenWorkspaceRuntime implements MavenRuntime {
collector.addRealm(PLEXUS_CLASSWORLD_NAME);
Set<Artifact> artifacts = mavenProject.getArtifacts();
-
+
Artifact launcherArtifact = null;
- for (Artifact artifact : artifacts) {
- if (Artifact.SCOPE_TEST.equals(artifact.getScope())) {
+ for(Artifact artifact : artifacts) {
+ if(Artifact.SCOPE_TEST.equals(artifact.getScope())) {
continue;
}
- if (PLEXUS_CLASSWORLDS.getGroupId().equals(artifact.getGroupId()) && PLEXUS_CLASSWORLDS.getArtifactId().equals(artifact.getArtifactId())) {
+ if(PLEXUS_CLASSWORLDS.getGroupId().equals(artifact.getGroupId())
+ && PLEXUS_CLASSWORLDS.getArtifactId().equals(artifact.getArtifactId())) {
launcherArtifact = artifact;
continue;
}
addArtifact(collector, artifact);
}
-
- if (launcherArtifact != null) {
+
+ if(launcherArtifact != null) {
collector.addRealm(IMavenLauncherConfiguration.LAUNCHER_REALM);
addArtifact(collector, launcherArtifact);
}
@@ -121,13 +126,14 @@ public class MavenWorkspaceRuntime implements MavenRuntime {
}
private void addArtifact(IMavenLauncherConfiguration collector, Artifact artifact) throws CoreException {
- IMavenProjectFacade facade = projectManager.getMavenProject(artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion());
+ IMavenProjectFacade facade = projectManager.getMavenProject(artifact.getGroupId(), artifact.getArtifactId(),
+ artifact.getVersion());
- if (facade != null) {
+ if(facade != null) {
collector.addProjectEntry(facade);
} else {
File file = artifact.getFile();
- if (file != null) {
+ if(file != null) {
collector.addArchiveEntry(file.getAbsolutePath());
}
}
@@ -139,11 +145,10 @@ public class MavenWorkspaceRuntime implements MavenRuntime {
public String getVersion() {
IMavenProjectFacade maven = getMavenDistribution();
- if (maven != null) {
+ if(maven != null) {
return maven.getArtifactKey().getVersion();
}
return MAVEN_DISTRIBUTION.getVersion();
}
}
-
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/WagonTransferListenerAdapter.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/WagonTransferListenerAdapter.java
index 43b5bc72..7ca35119 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/WagonTransferListenerAdapter.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/WagonTransferListenerAdapter.java
@@ -18,6 +18,7 @@ import org.apache.maven.wagon.events.TransferEvent;
import org.apache.maven.wagon.events.TransferListener;
import org.apache.maven.wagon.repository.Repository;
+
/**
* @author Eugene Kuleshov
*/
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/IndexListener.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/IndexListener.java
index a31469ef..2c84ee09 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/IndexListener.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/IndexListener.java
@@ -14,20 +14,19 @@ package org.eclipse.m2e.core.internal.index;
import org.eclipse.m2e.core.repository.IRepository;
-
/**
* IndexListener
- *
+ *
* @author Eugene Kuleshov
*/
public interface IndexListener {
-
+
public void indexAdded(IRepository repository);
public void indexRemoved(IRepository repository);
-
+
public void indexChanged(IRepository repository);
-
+
public void indexUpdating(IRepository repository);
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/IndexedArtifactFile.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/IndexedArtifactFile.java
index c0f380e8..52cfc04e 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/IndexedArtifactFile.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/IndexedArtifactFile.java
@@ -22,8 +22,9 @@ import org.apache.maven.model.Dependency;
import org.eclipse.m2e.core.embedder.ArtifactKey;
+
public class IndexedArtifactFile implements IAdaptable {
-
+
public final String repository;
public final String group;
@@ -39,7 +40,7 @@ public class IndexedArtifactFile implements IAdaptable {
public final String type;
public final String classifier;
-
+
public final long size;
public final Date date;
@@ -71,12 +72,12 @@ public class IndexedArtifactFile implements IAdaptable {
}
public ArtifactVersion getArtifactVersion() {
- if (artifactVersion == null) {
+ if(artifactVersion == null) {
artifactVersion = new DefaultArtifactVersion(version);
}
return artifactVersion;
}
-
+
public Dependency getDependency() {
Dependency dependency = new Dependency();
dependency.setArtifactId(artifact);
@@ -89,16 +90,15 @@ public class IndexedArtifactFile implements IAdaptable {
}
public ArtifactKey getArtifactKey() {
- return new ArtifactKey(group, artifact, version, classifier);
+ return new ArtifactKey(group, artifact, version, classifier);
}
-
+
@SuppressWarnings("rawtypes")
public Object getAdapter(Class adapter) {
- if(adapter==ArtifactKey.class) {
+ if(adapter == ArtifactKey.class) {
return getArtifactKey();
}
return null;
}
}
-
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/ArtifactScanningMonitor.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/ArtifactScanningMonitor.java
index 67e26bad..23f1f990 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/ArtifactScanningMonitor.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/ArtifactScanningMonitor.java
@@ -23,6 +23,7 @@ import org.apache.maven.index.ArtifactScanningListener;
import org.apache.maven.index.ScanningResult;
import org.apache.maven.index.context.IndexingContext;
+
class ArtifactScanningMonitor implements ArtifactScanningListener {
private static final Logger log = LoggerFactory.getLogger(ArtifactScanningMonitor.class);
@@ -52,8 +53,7 @@ class ArtifactScanningMonitor implements ArtifactScanningListener {
long current = System.currentTimeMillis();
if((current - timestamp) > THRESHOLD) {
// String id = info.groupId + ":" + info.artifactId + ":" + info.version;
- String id = ac.getPom().getAbsolutePath().substring(
- this.repositoryDir.getAbsolutePath().length());
+ String id = ac.getPom().getAbsolutePath().substring(this.repositoryDir.getAbsolutePath().length());
this.monitor.setTaskName(id);
this.timestamp = current;
}
@@ -63,4 +63,4 @@ class ArtifactScanningMonitor implements ArtifactScanningListener {
String id = ac.getPom().getAbsolutePath().substring(repositoryDir.getAbsolutePath().length());
log.error(id + " " + e.getMessage()); //$NON-NLS-1$
}
-} \ No newline at end of file
+}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/AsyncFetcher.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/AsyncFetcher.java
index 0c949b6f..b9a8ad50 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/AsyncFetcher.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/AsyncFetcher.java
@@ -38,7 +38,6 @@ import com.ning.http.client.simple.SimpleAHCTransferListener;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Platform;
import org.eclipse.osgi.util.NLS;
import org.codehaus.plexus.util.FileUtils;
@@ -120,7 +119,7 @@ public class AsyncFetcher extends AbstractResourceFetcher {
private SimpleAsyncHttpClient createClient(String url) {
SimpleAsyncHttpClient.Builder sahcBuilder = new SimpleAsyncHttpClient.Builder();
-
+
sahcBuilder.setUserAgent(userAgent);
sahcBuilder.setConnectionTimeoutInMs(15 * 1000);
@@ -262,13 +261,13 @@ public class AsyncFetcher extends AbstractResourceFetcher {
}
private class MonitorListener implements SimpleAHCTransferListener {
-
+
private IProgressMonitor monitor;
-
+
public MonitorListener(IProgressMonitor monitor) {
this.monitor = monitor;
}
-
+
private void checkCancelled(String url) {
if(monitor.isCanceled()) {
cancel(url);
@@ -285,12 +284,12 @@ public class AsyncFetcher extends AbstractResourceFetcher {
public void onHeaders(String url, HeaderMap arg1) {
checkCancelled(url);
}
-
+
public void onBytesReceived(String url, long amount, long current, long total) {
checkCancelled(url);
monitor.subTask(NLS.bind(Messages.AsyncFetcher_task_fetching2, url, amount * 100 / total));
}
-
+
public void onBytesSent(String arg0, long arg1, long arg2, long arg3) {
// we only retrieve
}
@@ -298,11 +297,12 @@ public class AsyncFetcher extends AbstractResourceFetcher {
public void onCompleted(String arg0, int arg1, String arg2) {
monitor.subTask(""); //$NON-NLS-1$
}
-
+
}
private final class Streams {
PipedErrorInputStream in;
+
PipedOutputStream out;
public Streams(PipedErrorInputStream pis, PipedOutputStream pos) {
@@ -311,4 +311,4 @@ public class AsyncFetcher extends AbstractResourceFetcher {
}
}
-} \ No newline at end of file
+}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/CompositeIndex.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/CompositeIndex.java
index 93b5fb42..04bd436c 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/CompositeIndex.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/CompositeIndex.java
@@ -90,7 +90,7 @@ public class CompositeIndex implements IIndex {
public Collection<IndexedArtifact> find(Collection<SearchExpression> groupId,
Collection<SearchExpression> artifactId, Collection<SearchExpression> version,
Collection<SearchExpression> packaging) throws CoreException {
-
+
Set<IndexedArtifact> result = new TreeSet<IndexedArtifact>();
for(IIndex index : indexes) {
Collection<IndexedArtifact> findResults = index.find(groupId, artifactId, version, packaging);
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/EquinoxLock.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/EquinoxLock.java
index 06da383c..f5b6f57b 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/EquinoxLock.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/EquinoxLock.java
@@ -15,21 +15,18 @@ import org.eclipse.core.runtime.internal.adaptor.Locker;
import org.apache.maven.index.fs.Lock;
+
@SuppressWarnings("restriction")
-public class EquinoxLock
- implements Lock
-{
+public class EquinoxLock implements Lock {
- private final Locker lock;
+ private final Locker lock;
- public EquinoxLock( Locker lock )
- {
- this.lock = lock;
- }
+ public EquinoxLock(Locker lock) {
+ this.lock = lock;
+ }
- public void release()
- {
- lock.release();
- }
+ public void release() {
+ lock.release();
+ }
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/EquinoxLocker.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/EquinoxLocker.java
index caeb7c0e..02e0af10 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/EquinoxLocker.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/EquinoxLocker.java
@@ -20,22 +20,19 @@ import org.eclipse.osgi.util.NLS;
import org.apache.maven.index.fs.Lock;
import org.apache.maven.index.fs.Locker;
-@SuppressWarnings("restriction")
-public class EquinoxLocker
- implements Locker
-{
- public Lock lock( File directory )
- throws IOException
- {
- org.eclipse.core.runtime.internal.adaptor.Locker lock = BasicLocation.createLocker(new File( directory, LOCK_FILE ), null );
+@SuppressWarnings("restriction")
+public class EquinoxLocker implements Locker {
- if ( lock.lock() )
- {
- return new EquinoxLock( lock );
- }
+ public Lock lock(File directory) throws IOException {
+ org.eclipse.core.runtime.internal.adaptor.Locker lock = BasicLocation.createLocker(new File(directory, LOCK_FILE),
+ null);
- throw new IOException( NLS.bind("Could not acquire lock on directory {0}", directory ));
+ if(lock.lock()) {
+ return new EquinoxLock(lock);
}
+ throw new IOException(NLS.bind("Could not acquire lock on directory {0}", directory));
+ }
+
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexUpdaterJob.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexUpdaterJob.java
index fbde08a3..0cb672a9 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexUpdaterJob.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexUpdaterJob.java
@@ -27,6 +27,7 @@ import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.core.internal.Messages;
import org.eclipse.m2e.core.internal.jobs.IBackgroundProcessingQueue;
+
class IndexUpdaterJob extends Job implements IBackgroundProcessingQueue {
public static class IndexUpdaterRule implements ISchedulingRule {
@@ -38,8 +39,8 @@ class IndexUpdaterJob extends Job implements IBackgroundProcessingQueue {
public boolean isConflicting(ISchedulingRule rule) {
return rule == this;
}
-
- }
+
+ }
public interface IndexCommand {
abstract void run(IProgressMonitor monitor) throws CoreException;
@@ -62,7 +63,7 @@ class IndexUpdaterJob extends Job implements IBackgroundProcessingQueue {
ArrayList<IStatus> problems = new ArrayList<IStatus>();
while(!updateQueue.isEmpty()) {
- if (monitor.isCanceled()) {
+ if(monitor.isCanceled()) {
throw new OperationCanceledException();
}
@@ -76,11 +77,12 @@ class IndexUpdaterJob extends Job implements IBackgroundProcessingQueue {
monitor.done();
- return problems.isEmpty()? Status.OK_STATUS: new MultiStatus(IMavenConstants.PLUGIN_ID, -1, problems.toArray(new IStatus[problems.size()]), null, null);
+ return problems.isEmpty() ? Status.OK_STATUS : new MultiStatus(IMavenConstants.PLUGIN_ID, -1,
+ problems.toArray(new IStatus[problems.size()]), null, null);
}
public boolean isEmpty() {
return updateQueue.isEmpty();
}
-
-} \ No newline at end of file
+
+}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexedArtifactGroup.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexedArtifactGroup.java
index 591b2e1b..bf58d9a7 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexedArtifactGroup.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexedArtifactGroup.java
@@ -17,10 +17,13 @@ import org.eclipse.m2e.core.internal.index.IndexedArtifact;
import org.eclipse.m2e.core.repository.IRepository;
-public class IndexedArtifactGroup implements Comparable<IndexedArtifactGroup>{
+public class IndexedArtifactGroup implements Comparable<IndexedArtifactGroup> {
private final IRepository repository;
+
private final String prefix;
+
private final LinkedHashMap<String, IndexedArtifactGroup> nodes = new LinkedHashMap<String, IndexedArtifactGroup>();
+
private final LinkedHashMap<String, IndexedArtifact> files = new LinkedHashMap<String, IndexedArtifact>();
public IndexedArtifactGroup(IRepository repository, String prefix) {
@@ -39,7 +42,7 @@ public class IndexedArtifactGroup implements Comparable<IndexedArtifactGroup>{
public String getPrefix() {
return prefix;
}
-
+
public IRepository getRepository() {
return this.repository;
}
@@ -48,7 +51,7 @@ public class IndexedArtifactGroup implements Comparable<IndexedArtifactGroup>{
* Compare the groups by prefix
*/
public int compareTo(IndexedArtifactGroup o) {
- if(o == null){
+ if(o == null) {
return -1;
}
return getPrefix().compareToIgnoreCase(o.getPrefix());
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexesExtensionReader.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexesExtensionReader.java
index 903dd003..0f14492d 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexesExtensionReader.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexesExtensionReader.java
@@ -24,9 +24,10 @@ import org.eclipse.m2e.core.internal.repository.RepositoryInfo;
import org.eclipse.m2e.core.internal.repository.RepositoryRegistry;
import org.eclipse.m2e.core.repository.IRepositoryRegistry;
+
/**
* IndexesExtensionReader
- *
+ *
* @author igor
*/
public class IndexesExtensionReader implements IRepositoryDiscoverer {
@@ -66,7 +67,8 @@ public class IndexesExtensionReader implements IRepositoryDiscoverer {
}
}
- private void processIndexElement(RepositoryRegistry registry, IConfigurationElement element, IProgressMonitor monitor) throws CoreException {
+ private void processIndexElement(RepositoryRegistry registry, IConfigurationElement element, IProgressMonitor monitor)
+ throws CoreException {
String indexId = element.getAttribute(ATTR_INDEX_ID);
String repositoryUrl = element.getAttribute(ATTR_REPOSITORY_URL);
boolean isShort = Boolean.valueOf(element.getAttribute(ATTR_IS_SHORT)).booleanValue();
@@ -76,9 +78,10 @@ public class IndexesExtensionReader implements IRepositoryDiscoverer {
RepositoryInfo repository = new RepositoryInfo(indexId, repositoryUrl, IRepositoryRegistry.SCOPE_UNKNOWN, null);
registry.addRepository(repository, monitor);
-
+
// for consistency, always process indexes using our background thread
- indexManager.setIndexDetails(repository, isShort? NexusIndex.DETAILS_MIN: NexusIndex.DETAILS_FULL, null/*async*/);
+ indexManager
+ .setIndexDetails(repository, isShort ? NexusIndex.DETAILS_MIN : NexusIndex.DETAILS_FULL, null/*async*/);
}
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexingTransferListener.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexingTransferListener.java
index fbbaacf6..f7a0c0c1 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexingTransferListener.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/IndexingTransferListener.java
@@ -16,6 +16,7 @@ import java.io.File;
import org.eclipse.m2e.core.embedder.ArtifactKey;
import org.eclipse.m2e.core.embedder.ILocalRepositoryListener;
+
public class IndexingTransferListener implements ILocalRepositoryListener {
private final NexusIndexManager indexManager;
@@ -24,7 +25,8 @@ public class IndexingTransferListener implements ILocalRepositoryListener {
this.indexManager = indexManager;
}
- public void artifactInstalled(File repositoryBasedir, ArtifactKey baseArtifact, ArtifactKey artifact, File artifactFile) {
+ public void artifactInstalled(File repositoryBasedir, ArtifactKey baseArtifact, ArtifactKey artifact,
+ File artifactFile) {
NexusIndex localIndex = indexManager.getLocalIndex();
if(artifactFile.getName().endsWith(".jar")) { //$NON-NLS-1$
localIndex.addArtifact(artifactFile, artifact);
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/NexusIndexManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/NexusIndexManager.java
index a09c6f07..5737d9ae 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/NexusIndexManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/NexusIndexManager.java
@@ -96,15 +96,15 @@ import org.eclipse.m2e.core.internal.index.IndexManager;
import org.eclipse.m2e.core.internal.index.IndexedArtifact;
import org.eclipse.m2e.core.internal.index.IndexedArtifactFile;
import org.eclipse.m2e.core.internal.index.MatchTyped;
+import org.eclipse.m2e.core.internal.index.MatchTyped.MatchType;
import org.eclipse.m2e.core.internal.index.SearchExpression;
import org.eclipse.m2e.core.internal.index.SourcedSearchExpression;
-import org.eclipse.m2e.core.internal.index.MatchTyped.MatchType;
import org.eclipse.m2e.core.internal.index.nexus.IndexUpdaterJob.IndexCommand;
import org.eclipse.m2e.core.internal.repository.IRepositoryIndexer;
import org.eclipse.m2e.core.project.IMavenProjectChangedListener;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
-import org.eclipse.m2e.core.project.MavenProjectChangedEvent;
import org.eclipse.m2e.core.project.IMavenProjectRegistry;
+import org.eclipse.m2e.core.project.MavenProjectChangedEvent;
import org.eclipse.m2e.core.repository.IRepository;
import org.eclipse.m2e.core.repository.IRepositoryRegistry;
@@ -172,8 +172,7 @@ public class NexusIndexManager implements IndexManager, IMavenProjectChangedList
*/
private final Map<String, Object> indexLocks = new WeakHashMap<String, Object>();
- public NexusIndexManager(IMavenProjectRegistry projectManager,
- IRepositoryRegistry repositoryRegistry, File stateDir) {
+ public NexusIndexManager(IMavenProjectRegistry projectManager, IRepositoryRegistry repositoryRegistry, File stateDir) {
this.projectManager = projectManager;
this.repositoryRegistry = repositoryRegistry;
this.baseIndexDir = new File(stateDir, "nexus"); //$NON-NLS-1$
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/jobs/IBackgroundProcessingQueue.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/jobs/IBackgroundProcessingQueue.java
index e27df0df..964a05d3 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/jobs/IBackgroundProcessingQueue.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/jobs/IBackgroundProcessingQueue.java
@@ -16,16 +16,16 @@ import org.eclipse.core.runtime.IStatus;
/**
- * Common interface implemented by all m2e background processing jobs.
- *
+ * Common interface implemented by all m2e background processing jobs.
+ *
* @author igor
*/
public interface IBackgroundProcessingQueue {
public void join() throws InterruptedException;
public boolean isEmpty();
-
+
public IStatus run(IProgressMonitor monitor);
-
+
public boolean cancel();
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/DefaultLifecycleMapping.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/DefaultLifecycleMapping.java
index f5b30460..04c0cb55 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/DefaultLifecycleMapping.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/DefaultLifecycleMapping.java
@@ -8,10 +8,12 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.internal.lifecyclemapping;
import org.eclipse.m2e.core.project.configurator.AbstractCustomizableLifecycleMapping;
+
public class DefaultLifecycleMapping extends AbstractCustomizableLifecycleMapping {
-
+
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/DuplicateMappingException.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/DuplicateMappingException.java
index 5b00a0c3..b4e9ec4a 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/DuplicateMappingException.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/DuplicateMappingException.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.internal.lifecyclemapping;
public class DuplicateMappingException extends RuntimeException {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/LifecycleMappingConfigurationException.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/LifecycleMappingConfigurationException.java
index d80feb23..e3010de9 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/LifecycleMappingConfigurationException.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/LifecycleMappingConfigurationException.java
@@ -13,6 +13,7 @@ package org.eclipse.m2e.core.internal.lifecyclemapping;
import org.eclipse.m2e.core.internal.markers.SourceLocation;
+
public class LifecycleMappingConfigurationException extends RuntimeException {
private static final long serialVersionUID = 713512516951833457L;
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/LifecycleMappingFactory.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/LifecycleMappingFactory.java
index c4c78dde..2b8d4d07 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/LifecycleMappingFactory.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/LifecycleMappingFactory.java
@@ -236,9 +236,9 @@ public class LifecycleMappingFactory {
return;
}
-
+
List<MojoExecution> mojoExecutions = projectFacade.getMojoExecutions(monitor);
-
+
List<MappingMetadataSource> metadataSources;
try {
metadataSources = getProjectMetadataSources(templateRequest, mavenProject, getBundleMetadataSources(),
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/MissingConfiguratorProblemInfo.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/MissingConfiguratorProblemInfo.java
index 7663f12c..b5e58e48 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/MissingConfiguratorProblemInfo.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/MissingConfiguratorProblemInfo.java
@@ -17,8 +17,8 @@ import org.eclipse.osgi.util.NLS;
import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.core.internal.Messages;
-import org.eclipse.m2e.core.internal.markers.SourceLocation;
import org.eclipse.m2e.core.internal.markers.MavenProblemInfo;
+import org.eclipse.m2e.core.internal.markers.SourceLocation;
public class MissingConfiguratorProblemInfo extends MavenProblemInfo {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/MissingLifecycleExtensionPoint.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/MissingLifecycleExtensionPoint.java
index 845beea6..a0a1d959 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/MissingLifecycleExtensionPoint.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/MissingLifecycleExtensionPoint.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.internal.lifecyclemapping;
import org.eclipse.core.resources.IMarker;
@@ -16,8 +17,9 @@ import org.eclipse.osgi.util.NLS;
import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.core.internal.Messages;
-import org.eclipse.m2e.core.internal.markers.SourceLocation;
import org.eclipse.m2e.core.internal.markers.MavenProblemInfo;
+import org.eclipse.m2e.core.internal.markers.SourceLocation;
+
public class MissingLifecycleExtensionPoint extends MavenProblemInfo {
private final String lifecycleMappingId;
@@ -37,4 +39,4 @@ public class MissingLifecycleExtensionPoint extends MavenProblemInfo {
marker.setAttribute(IMavenConstants.MARKER_ATTR_LIFECYCLE_PHASE, getLifecycleId());
marker.setAttribute(IMavenConstants.MARKER_ATTR_EDITOR_HINT, IMavenConstants.EDITOR_HINT_UNKNOWN_LIFECYCLE_ID);
}
-} \ No newline at end of file
+}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/IMavenDiscoveryProposal.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/IMavenDiscoveryProposal.java
index 602a9cd1..ba11eadb 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/IMavenDiscoveryProposal.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/IMavenDiscoveryProposal.java
@@ -8,10 +8,9 @@
package org.eclipse.m2e.core.internal.lifecyclemapping.discovery;
-
/**
* IMavenDiscoveryProposal
- *
+ *
* @author igor
*/
public interface IMavenDiscoveryProposal {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/LifecycleMappingConfiguration.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/LifecycleMappingConfiguration.java
index ae7fc95f..1c49b346 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/LifecycleMappingConfiguration.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/LifecycleMappingConfiguration.java
@@ -81,7 +81,6 @@ public class LifecycleMappingConfiguration {
*/
private Set<MavenProjectInfo> selectedProjects;
-
private Map<MavenProjectInfo, Throwable> errors = new HashMap<MavenProjectInfo, Throwable>();
private LifecycleMappingConfiguration() {
@@ -120,12 +119,12 @@ public class LifecycleMappingConfiguration {
}
public Map<ILifecycleMappingRequirement, List<IMavenDiscoveryProposal>> getAllProposals() {
- if (allproposals==null) {
+ if(allproposals == null) {
return Collections.emptyMap();
}
return allproposals;
}
-
+
public void addSelectedProposal(IMavenDiscoveryProposal proposal) {
selectedProposals.add(proposal);
}
@@ -258,7 +257,7 @@ public class LifecycleMappingConfiguration {
public static LifecycleMappingConfiguration calculate(Collection<MavenProjectInfo> projects,
ProjectImportConfiguration importConfiguration, IProgressMonitor monitor) {
monitor.beginTask("Analysing project execution plan", projects.size());
-
+
LifecycleMappingConfiguration result = new LifecycleMappingConfiguration();
List<MavenProjectInfo> nonErrorProjects = new ArrayList<MavenProjectInfo>();
@@ -270,29 +269,29 @@ public class LifecycleMappingConfiguration {
}
MavenProject mavenProject = null;
try {
- SubMonitor subMmonitor = SubMonitor.convert(monitor, NLS.bind("Analysing {0}",projectInfo.getLabel()), 1);
+ SubMonitor subMmonitor = SubMonitor.convert(monitor, NLS.bind("Analysing {0}", projectInfo.getLabel()), 1);
MavenExecutionRequest request = maven.createExecutionRequest(subMmonitor);
-
+
request.setPom(projectInfo.getPomFile());
request.addActiveProfiles(importConfiguration.getResolverConfiguration().getActiveProfileList());
request.addInactiveProfiles(importConfiguration.getResolverConfiguration().getInactiveProfileList());
-
+
// jdk-based profile activation
Properties systemProperties = new Properties();
EnvironmentUtils.addEnvVars(systemProperties);
systemProperties.putAll(System.getProperties());
request.setSystemProperties(systemProperties);
-
+
request.setLocalRepository(maven.getLocalRepository());
-
+
MavenExecutionResult executionResult = maven.readProject(request, subMmonitor);
-
+
mavenProject = executionResult.getProject();
-
+
if(monitor.isCanceled()) {
throw new OperationCanceledException();
}
-
+
if(mavenProject != null) {
if("pom".equals(projectInfo.getModel().getPackaging())) {
// m2e uses a noop lifecycle mapping for packaging=pom
@@ -305,9 +304,9 @@ public class LifecycleMappingConfiguration {
nonErrorProjects.add(projectInfo);
continue;
}
-
+
MavenSession session = maven.createSession(request, mavenProject);
-
+
List<MojoExecution> mojoExecutions = new ArrayList<MojoExecution>();
MavenExecutionPlan executionPlan = maven.calculateExecutionPlan(session, mavenProject,
Arrays.asList(ProjectRegistryManager.LIFECYCLE_CLEAN), false, subMmonitor);
@@ -318,9 +317,9 @@ public class LifecycleMappingConfiguration {
executionPlan = maven.calculateExecutionPlan(session, mavenProject,
Arrays.asList(ProjectRegistryManager.LIFECYCLE_SITE), false, subMmonitor);
mojoExecutions.addAll(executionPlan.getMojoExecutions());
-
+
LifecycleMappingResult lifecycleResult = new LifecycleMappingResult();
-
+
List<MappingMetadataSource> metadataSources;
try {
metadataSources = LifecycleMappingFactory.getProjectMetadataSources(request, mavenProject,
@@ -331,26 +330,26 @@ public class LifecycleMappingConfiguration {
log.error(e.getMessage(), e);
continue;
}
-
+
LifecycleMappingFactory.calculateEffectiveLifecycleMappingMetadata(lifecycleResult, request, metadataSources,
mavenProject, mojoExecutions, false);
LifecycleMappingFactory.instantiateLifecycleMapping(lifecycleResult, mavenProject,
lifecycleResult.getLifecycleMappingId());
LifecycleMappingFactory.instantiateProjectConfigurators(mavenProject, lifecycleResult,
lifecycleResult.getMojoExecutionMapping());
-
+
PackagingTypeMappingConfiguration pkgConfiguration = new PackagingTypeMappingConfiguration(
mavenProject.getPackaging(),
isProjectSource(lifecycleResult.getLifecycleMappingMetadata()) ? lifecycleResult.getLifecycleMappingId()
: null);
ProjectLifecycleMappingConfiguration configuration = new ProjectLifecycleMappingConfiguration(
projectInfo.getLabel(), mavenProject, mojoExecutions, pkgConfiguration);
-
+
if(lifecycleResult.getLifecycleMapping() != null) {
result.addInstalledProvider(configuration.getPackagingTypeMappingConfiguration()
.getLifecycleMappingRequirement());
}
-
+
for(Map.Entry<MojoExecutionKey, List<IPluginExecutionMetadata>> entry : lifecycleResult
.getMojoExecutionMapping().entrySet()) {
MojoExecutionKey key = entry.getKey();
@@ -360,7 +359,7 @@ public class LifecycleMappingConfiguration {
primaryMapping = mapppings.get(0);
}
MojoExecutionMappingConfiguration executionConfiguration = new MojoExecutionMappingConfiguration(key,
- isProjectSource(primaryMapping)? primaryMapping: null);
+ isProjectSource(primaryMapping) ? primaryMapping : null);
configuration.addMojoExecution(executionConfiguration);
if(primaryMapping != null) {
switch(primaryMapping.getAction()) {
@@ -387,46 +386,46 @@ public class LifecycleMappingConfiguration {
//XXX mkleint: what shall happen now? we don't have a valid MavenProject instance to play with,
// currently we skip such project silently, is that ok?
}
-
- } catch (OperationCanceledException ex) {
+
+ } catch(OperationCanceledException ex) {
throw ex;
- } catch (Throwable th) {
+ } catch(Throwable th) {
result.addError(projectInfo, th);
} finally {
- if (mavenProject != null) {
- ((MavenImpl)maven).releaseExtensionsRealm(mavenProject);
+ if(mavenProject != null) {
+ ((MavenImpl) maven).releaseExtensionsRealm(mavenProject);
}
}
}
result.setSelectedProjects(nonErrorProjects);
-
+
return result;
}
private static boolean isProjectSource(IPluginExecutionMetadata primaryMapping) {
- if (primaryMapping == null) {
+ if(primaryMapping == null) {
return false;
}
return isProjectSource(((PluginExecutionMetadata) primaryMapping).getSource());
}
private static boolean isProjectSource(LifecycleMappingMetadata mappingMetadata) {
- if (mappingMetadata==null) {
+ if(mappingMetadata == null) {
return false;
}
return isProjectSource(mappingMetadata.getSource());
}
private static boolean isProjectSource(LifecycleMappingMetadataSource metadataSource) {
- if (metadataSource == null) {
+ if(metadataSource == null) {
return false;
}
Object source = metadataSource.getSource();
- if (source instanceof MavenProject) {
+ if(source instanceof MavenProject) {
return true;
}
- if (source instanceof Artifact) {
+ if(source instanceof Artifact) {
return true;
}
return false;
@@ -450,11 +449,11 @@ public class LifecycleMappingConfiguration {
public void setSelectedProjects(Collection<MavenProjectInfo> projects) {
this.selectedProjects = new HashSet<MavenProjectInfo>(projects);
}
-
+
public void addError(MavenProjectInfo info, Throwable th) {
errors.put(info, th);
}
-
+
public Map<MavenProjectInfo, Throwable> getErrors() {
return errors;
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/MojoExecutionMappingConfiguration.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/MojoExecutionMappingConfiguration.java
index a7a4e890..55c9cff9 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/MojoExecutionMappingConfiguration.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/MojoExecutionMappingConfiguration.java
@@ -102,7 +102,8 @@ public class MojoExecutionMappingConfiguration implements ILifecycleMappingEleme
if(mapping == null) {
requirement = new MojoExecutionMappingRequirement(execution);
} else if(mapping.getAction() == PluginExecutionAction.configurator) {
- requirement = new ProjectConfiguratorMappingRequirement(execution, LifecycleMappingFactory.getProjectConfiguratorId(mapping));
+ requirement = new ProjectConfiguratorMappingRequirement(execution,
+ LifecycleMappingFactory.getProjectConfiguratorId(mapping));
} else {
requirement = null; // this execution is fully mapped with <execute/>, <ignore/> or <error/> action
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/PackagingTypeMappingConfiguration.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/PackagingTypeMappingConfiguration.java
index 2fe25232..4677fefe 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/PackagingTypeMappingConfiguration.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/lifecyclemapping/discovery/PackagingTypeMappingConfiguration.java
@@ -48,7 +48,7 @@ public class PackagingTypeMappingConfiguration implements ILifecycleMappingEleme
public static class LifecycleStrategyMappingRequirement implements ILifecycleMappingRequirement {
private final String packaging;
-
+
private final String lifecycleMappingId;
public LifecycleStrategyMappingRequirement(String packaging, String lifecycleMappingId) {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/ArtifactNotFoundProblemInfo.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/ArtifactNotFoundProblemInfo.java
index c1b611e2..130d79ce 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/ArtifactNotFoundProblemInfo.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/ArtifactNotFoundProblemInfo.java
@@ -8,12 +8,14 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.internal.markers;
import org.eclipse.osgi.util.NLS;
import org.sonatype.aether.artifact.Artifact;
+
public class ArtifactNotFoundProblemInfo extends MavenProblemInfo {
private final Artifact artifact;
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IEditorMarkerService.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IEditorMarkerService.java
index bbeadb0f..37330e6c 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IEditorMarkerService.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IEditorMarkerService.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.internal.markers;
import org.eclipse.core.resources.IFile;
@@ -17,17 +18,17 @@ import org.apache.maven.project.MavenProject;
/**
* IEditorMarkerService
- *
+ *
* @author mkleint
*/
public interface IEditorMarkerService {
/**
* adds m2e's own editor markers to the pom file in question
+ *
* @param markerManager
* @param pom
* @param mavenProject
* @param type
*/
- void addEditorHintMarkers(IMavenMarkerManager markerManager, IFile pom, MavenProject mavenProject,
- String type);
+ void addEditorHintMarkers(IMavenMarkerManager markerManager, IFile pom, MavenProject mavenProject, String type);
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IMarkerLocationService.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IMarkerLocationService.java
index 82cd590b..fd6a0d3d 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IMarkerLocationService.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IMarkerLocationService.java
@@ -8,21 +8,24 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.internal.markers;
import org.eclipse.core.resources.IMarker;
+
/**
* IMarkerLocationService
- *
+ *
* @author mkleint
*/
public interface IMarkerLocationService {
/**
- * sets the offset attribute on the marker if the marker is recognized and offset found
+ * sets the offset attribute on the marker if the marker is recognized and offset found
+ *
* @param marker
*/
void findLocationForMarker(IMarker marker);
-
+
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IMavenMarkerManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IMavenMarkerManager.java
index 303d363d..51baec02 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IMavenMarkerManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IMavenMarkerManager.java
@@ -60,8 +60,7 @@ public interface IMavenMarkerManager {
/**
* Delete all Maven markers that have the specified type and attribute from an IResource
*/
- public void deleteMarkers(IResource resource, String type, String attrName, String attrValue)
- throws CoreException;
+ public void deleteMarkers(IResource resource, String type, String attrName, String attrValue) throws CoreException;
/**
* Transform an exception into an error marker on an IResource
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/MarkerUtils.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/MarkerUtils.java
index 082eac35..967597a7 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/MarkerUtils.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/MarkerUtils.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.internal.markers;
import org.osgi.framework.BundleContext;
@@ -22,9 +23,10 @@ import org.apache.maven.project.MavenProject;
import org.eclipse.m2e.core.internal.MavenPluginActivator;
+
/**
* MarkerUtils
- *
+ *
* @author mkleint
*/
public class MarkerUtils {
@@ -46,22 +48,22 @@ public class MarkerUtils {
}
}
}
-
+
public static void addEditorHintMarkers(IMavenMarkerManager markerManager, IFile pom, MavenProject mavenProject,
String type) {
BundleContext context = MavenPluginActivator.getDefault().getBundleContext();
ServiceReference ref = context.getServiceReference(IEditorMarkerService.class.getName());
- if (ref == null) {
+ if(ref == null) {
log.warn("Could not find OSGI service for " + IEditorMarkerService.class.getName());
return;
}
- IEditorMarkerService service = (IEditorMarkerService)context.getService(ref);
- if (service != null) {
+ IEditorMarkerService service = (IEditorMarkerService) context.getService(ref);
+ if(service != null) {
try {
service.addEditorHintMarkers(markerManager, pom, mavenProject, type);
} finally {
context.ungetService(ref);
}
}
- }
+ }
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/MavenMarkerManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/MavenMarkerManager.java
index cf88e09e..ff6beed2 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/MavenMarkerManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/MavenMarkerManager.java
@@ -44,12 +44,12 @@ public class MavenMarkerManager implements IMavenMarkerManager {
private static Logger log = LoggerFactory.getLogger(MavenMarkerManager.class);
- private final IMavenConfiguration mavenConfiguration;
+ private final IMavenConfiguration mavenConfiguration;
public MavenMarkerManager(IMavenConfiguration mavenConfiguration) {
this.mavenConfiguration = mavenConfiguration;
}
-
+
public void addMarkers(IResource pomResource, String type, MavenExecutionResult result) {
SourceLocation defaultSourceLocation = new SourceLocation(1, 0, 0);
List<MavenProblemInfo> allProblems = new ArrayList<MavenProblemInfo>();
@@ -76,7 +76,7 @@ public class MavenMarkerManager implements IMavenMarkerManager {
addErrorMarkers(pomResource, type, allProblems);
}
-
+
/* (non-Javadoc)
* @see org.eclipse.m2e.core.project.IMavenMarkerManager#addMarker(org.eclipse.core.resources.IResource, java.lang.String, int, int)
*/
@@ -84,14 +84,15 @@ public class MavenMarkerManager implements IMavenMarkerManager {
return addMarker(resource, type, message, lineNumber, severity, false /*isTransient*/);
}
- private IMarker addMarker(IResource resource, String type, String message, int lineNumber, int severity, boolean isTransient) {
+ private IMarker addMarker(IResource resource, String type, String message, int lineNumber, int severity,
+ boolean isTransient) {
IMarker marker = null;
try {
if(resource.isAccessible()) {
if(lineNumber == -1) {
lineNumber = 1;
}
-
+
//mkleint: this strongly smells like some sort of workaround for a problem with bad marker cleanup.
//adding is adding and as such shall always be performed.
marker = findMarker(resource, type, message, lineNumber, severity, isTransient);
@@ -99,11 +100,11 @@ public class MavenMarkerManager implements IMavenMarkerManager {
// This marker already exists
return marker;
}
- marker= resource.createMarker(type);
+ marker = resource.createMarker(type);
marker.setAttribute(IMarker.MESSAGE, message);
marker.setAttribute(IMarker.SEVERITY, severity);
marker.setAttribute(IMarker.TRANSIENT, isTransient);
-
+
marker.setAttribute(IMarker.LINE_NUMBER, lineNumber);
log.debug("Created marker '{}' on resource '{}'.", message, resource.getFullPath());
}
@@ -182,7 +183,6 @@ public class MavenMarkerManager implements IMavenMarkerManager {
return cause == null ? lastCause : cause;
}
-
private List<MavenProblemInfo> toMavenProblemInfos(IResource pomResource, SourceLocation location,
List<? extends Throwable> exceptions) {
List<MavenProblemInfo> result = new ArrayList<MavenProblemInfo>();
@@ -227,13 +227,12 @@ public class MavenMarkerManager implements IMavenMarkerManager {
}
public void deleteMarkers(IResource resource, boolean includeSubtypes, String type) throws CoreException {
- if (resource != null && resource.exists()) {
+ if(resource != null && resource.exists()) {
resource.deleteMarkers(type, includeSubtypes, IResource.DEPTH_INFINITE);
}
}
- public void deleteMarkers(IResource resource, String type, String attrName, String attrValue)
- throws CoreException {
+ public void deleteMarkers(IResource resource, String type, String attrName, String attrValue) throws CoreException {
if(resource == null || !resource.exists()) {
return;
}
@@ -260,7 +259,7 @@ public class MavenMarkerManager implements IMavenMarkerManager {
}
}
}
-
+
knownProblems.add(new ArtifactNotFoundProblemInfo(artifact, mavenConfiguration.isOffline(), location));
}
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/SourceLocation.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/SourceLocation.java
index b40f4207..eb4101dc 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/SourceLocation.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/SourceLocation.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.internal.markers;
public class SourceLocation {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/SourceLocationHelper.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/SourceLocationHelper.java
index 2ecd6ed1..5d9135df 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/SourceLocationHelper.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/SourceLocationHelper.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.internal.markers;
import java.io.File;
@@ -190,8 +191,7 @@ public class SourceLocationHelper {
// Plugin/execution is specified in some parent pom
SourceLocation causeLocation = new SourceLocation(inputLocation.getSource().getLocation(), inputLocation
- .getSource().getModelId(), inputLocation.getLineNumber(), inputLocation.getColumnNumber()
- - DEPENDENCY.length()
+ .getSource().getModelId(), inputLocation.getLineNumber(), inputLocation.getColumnNumber() - DEPENDENCY.length()
- COLUMN_START_OFFSET, inputLocation.getColumnNumber() - COLUMN_END_OFFSET);
inputLocation = mavenProject.getModel().getParent().getLocation(SELF);
return new SourceLocation(inputLocation.getLineNumber(), inputLocation.getColumnNumber() - PARENT.length()
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/preferences/MavenPreferenceConstants.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/preferences/MavenPreferenceConstants.java
index 51fd1c0e..607a1d34 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/preferences/MavenPreferenceConstants.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/preferences/MavenPreferenceConstants.java
@@ -12,20 +12,19 @@
package org.eclipse.m2e.core.internal.preferences;
-
/**
- * Maven preferences constants
+ * Maven preferences constants
*/
public interface MavenPreferenceConstants {
-
+
static final String PREFIX = "eclipse.m2."; //$NON-NLS-1$
/** String */
// public static final String P_LOCAL_REPOSITORY_DIR = PREFIX+"localRepositoryDirectory";
-
+
/** true or false */
// public static final String P_CHECK_LATEST_PLUGIN_VERSION = PREFIX+"checkLatestPluginVersion";
-
+
/** String ??? */
// public static final String P_GLOBAL_CHECKSUM_POLICY = PREFIX+"globalChecksumPolicy";
@@ -37,7 +36,7 @@ public interface MavenPreferenceConstants {
/** boolean */
// public static final String P_UPDATE_SNAPSHOTS = PREFIX+"updateSnapshots";
-
+
/** boolean */
public static final String P_DEBUG_OUTPUT = PREFIX + "debugOutput"; //$NON-NLS-1$
@@ -76,13 +75,13 @@ public interface MavenPreferenceConstants {
/** boolean */
public static final String P_HIDE_FOLDERS_OF_NESTED_PROJECTS = PREFIX + "hideFoldersOfNestedProjects"; //$NON-NLS-1$
-
- public static final String P_SHOW_CONSOLE_ON_ERR = PREFIX+"showConsoleOnErr"; //$NON-NLS-1$
-
- public static final String P_SHOW_CONSOLE_ON_OUTPUT = PREFIX+"showConsoleOnOutput"; //$NON-NLS-1$
-
+
+ public static final String P_SHOW_CONSOLE_ON_ERR = PREFIX + "showConsoleOnErr"; //$NON-NLS-1$
+
+ public static final String P_SHOW_CONSOLE_ON_OUTPUT = PREFIX + "showConsoleOnOutput"; //$NON-NLS-1$
+
/** boolean */
- public static final String P_FULL_INDEX= PREFIX+"fullIndex"; //$NON-NLS-1$
+ public static final String P_FULL_INDEX = PREFIX + "fullIndex"; //$NON-NLS-1$
/** boolean **/
public static final String P_WARN_INCOMPLETE_MAPPING = PREFIX + "warn_incomplete_mapping"; //$NON-NLS-1$
@@ -91,15 +90,17 @@ public interface MavenPreferenceConstants {
public static final String P_DEFAULT_POM_EDITOR_PAGE = "eclipse.m2.defaultPomEditorPage"; //$NON-NLS-1$
/** boolean **/
- public static final String P_DISABLE_GROUPID_DUP_OF_PARENT_WARNING = PREFIX + ".disableGroupIdDuplicateOfParentWarning"; //$NON-NLS-1$
+ public static final String P_DISABLE_GROUPID_DUP_OF_PARENT_WARNING = PREFIX
+ + ".disableGroupIdDuplicateOfParentWarning"; //$NON-NLS-1$
/** boolean **/
- public static final String P_DISABLE_VERSION_DUP_OF_PARENT_WARNING = PREFIX + ".disableVersionDuplicateOfParentWarning"; //$NON-NLS-1$
+ public static final String P_DISABLE_VERSION_DUP_OF_PARENT_WARNING = PREFIX
+ + ".disableVersionDuplicateOfParentWarning"; //$NON-NLS-1$
/** string **/
public static final String P_LIFECYCLE_MAPPINGS = PREFIX + "lifecycleMappings"; //$NON-NLS-1$
-
+
/** string **/
public static final String P_WORKSPACE_MAPPINGS_LOCATION = PREFIX + "WorkspacelifecycleMappingsLocation"; //$NON-NLS-1$
-
+
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/DependencyResolutionContext.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/DependencyResolutionContext.java
index e73ebfa2..31ab0978 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/DependencyResolutionContext.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/DependencyResolutionContext.java
@@ -21,6 +21,7 @@ import org.apache.maven.execution.MavenExecutionRequest;
import org.eclipse.m2e.core.project.MavenUpdateRequest;
+
/**
* @author igor
*/
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/EclipseMavenMetadataCache.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/EclipseMavenMetadataCache.java
index 292a9137..c46dacf7 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/EclipseMavenMetadataCache.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/EclipseMavenMetadataCache.java
@@ -38,7 +38,7 @@ public class EclipseMavenMetadataCache extends DefaultMavenMetadataCache impleme
ArtifactKey gav = new ArtifactKey(artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), null);
- if ("pom".equals(artifact.getType()) ) { //$NON-NLS-1$
+ if("pom".equals(artifact.getType())) { //$NON-NLS-1$
// new project pom, remove any existing project entries
removeProject(gav);
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/IManagedCache.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/IManagedCache.java
index 6eb2d41c..25a4def4 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/IManagedCache.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/IManagedCache.java
@@ -15,9 +15,10 @@ import org.eclipse.core.resources.IFile;
import org.eclipse.m2e.core.embedder.ArtifactKey;
+
/**
* IManagedCache
- *
+ *
* @author igor
*/
public interface IManagedCache {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/MavenProjectImportResult.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/MavenProjectImportResult.java
index 68d6a628..49105adb 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/MavenProjectImportResult.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/MavenProjectImportResult.java
@@ -16,9 +16,11 @@ import org.eclipse.core.resources.IProject;
import org.eclipse.m2e.core.project.IMavenProjectImportResult;
import org.eclipse.m2e.core.project.MavenProjectInfo;
+
public class MavenProjectImportResult implements IMavenProjectImportResult {
private final IProject project;
+
private final MavenProjectInfo projectInfo;
public MavenProjectImportResult(MavenProjectInfo projectInfo, IProject project) {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/ProjectConfigurationManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/ProjectConfigurationManager.java
index 93335190..4eedba9e 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/ProjectConfigurationManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/ProjectConfigurationManager.java
@@ -94,12 +94,10 @@ import org.eclipse.m2e.core.project.configurator.AbstractProjectConfigurator;
import org.eclipse.m2e.core.project.configurator.ILifecycleMapping;
import org.eclipse.m2e.core.project.configurator.ProjectConfigurationRequest;
+
/**
- * import Maven projects
- * update project configuration from Maven
- * enable Maven nature
- * create new project
- *
+ * import Maven projects update project configuration from Maven enable Maven nature create new project
+ *
* @author igor
*/
public class ProjectConfigurationManager implements IProjectConfigurationManager, IMavenProjectChangedListener,
@@ -117,7 +115,8 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
final IMavenConfiguration mavenConfiguration;
public ProjectConfigurationManager(IMaven maven, ProjectRegistryManager projectManager,
- MavenModelManager mavenModelManager, IMavenMarkerManager mavenMarkerManager, IMavenConfiguration mavenConfiguration) {
+ MavenModelManager mavenModelManager, IMavenMarkerManager mavenMarkerManager,
+ IMavenConfiguration mavenConfiguration) {
this.projectManager = projectManager;
this.mavenModelManager = mavenModelManager;
this.mavenMarkerManager = mavenMarkerManager;
@@ -125,16 +124,16 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
this.mavenConfiguration = mavenConfiguration;
}
- public List<IMavenProjectImportResult> importProjects(Collection<MavenProjectInfo> projectInfos, ProjectImportConfiguration configuration, IProgressMonitor monitor) throws CoreException {
+ public List<IMavenProjectImportResult> importProjects(Collection<MavenProjectInfo> projectInfos,
+ ProjectImportConfiguration configuration, IProgressMonitor monitor) throws CoreException {
long t1 = System.currentTimeMillis();
-
+
SubMonitor progress = SubMonitor.convert(monitor, Messages.ProjectConfigurationManager_task_importing, 100);
ArrayList<IMavenProjectImportResult> result = new ArrayList<IMavenProjectImportResult>();
ArrayList<IProject> projects = new ArrayList<IProject>();
- SubMonitor subProgress =
- SubMonitor.convert( progress.newChild( 10 ), projectInfos.size() * 100 );
+ SubMonitor subProgress = SubMonitor.convert(progress.newChild(10), projectInfos.size() * 100);
// first, create all projects with basic configuration
for(MavenProjectInfo projectInfo : projectInfos) {
@@ -146,7 +145,7 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
result.add(new MavenProjectImportResult(projectInfo, project));
- if (project != null) {
+ if(project != null) {
projects.add(project);
}
}
@@ -164,11 +163,11 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
private void setHidden(IResource resource) {
try {
resource.setHidden(true);
- } catch (Exception ex) {
+ } catch(Exception ex) {
log.error("Failed to hide resource; " + resource.getLocation().toOSString(), ex);
}
}
-
+
private void hideNestedProjectsFromParents(List<IProject> projects) {
if(!MavenPlugin.getMavenConfiguration().isHideFoldersOfNestedProjects()) {
@@ -194,13 +193,12 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
}
}
}
-
- private void configureNewMavenProject(List<IProject> projects, IProgressMonitor monitor)
- throws CoreException {
+
+ private void configureNewMavenProject(List<IProject> projects, IProgressMonitor monitor) throws CoreException {
SubMonitor progress = SubMonitor.convert(monitor, Messages.ProjectConfigurationManager_task_configuring, 100);
//SubProgressMonitor sub = new SubProgressMonitor(monitor, projects.size()+1);
-
+
// first, resolve maven dependencies for all projects
MavenUpdateRequest updateRequest = new MavenUpdateRequest(mavenConfiguration.isOffline(), false);
for(IProject project : projects) {
@@ -217,9 +215,9 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
for(IProject project : projects) {
if(progress.isCanceled()) {
throw new OperationCanceledException();
- }
+ }
IMavenProjectFacade facade = projectManager.create(project, subProgress.newChild(100));
- if (facade != null) {
+ if(facade != null) {
facades.add(facade);
}
}
@@ -242,19 +240,22 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
}
private MavenSession createMavenSession(IMavenProjectFacade facade, IProgressMonitor monitor) throws CoreException {
- MavenExecutionRequest request = projectManager.createExecutionRequest(facade.getPom(), facade.getResolverConfiguration(), monitor);
+ MavenExecutionRequest request = projectManager.createExecutionRequest(facade.getPom(),
+ facade.getResolverConfiguration(), monitor);
return maven.createSession(request, facade.getMavenProject(monitor));
}
public void sortProjects(List<IMavenProjectFacade> facades, IProgressMonitor monitor) throws CoreException {
- HashMap<MavenProject, IMavenProjectFacade> mavenProjectToFacadeMap = new HashMap<MavenProject, IMavenProjectFacade>(facades.size());
- for(IMavenProjectFacade facade:facades) {
- mavenProjectToFacadeMap.put(facade.getMavenProject(monitor), facade);
- }
- facades.clear();
- for(MavenProject mavenProject: maven.getSortedProjects(new ArrayList<MavenProject>(mavenProjectToFacadeMap.keySet()))) {
- facades.add(mavenProjectToFacadeMap.get(mavenProject));
- }
+ HashMap<MavenProject, IMavenProjectFacade> mavenProjectToFacadeMap = new HashMap<MavenProject, IMavenProjectFacade>(
+ facades.size());
+ for(IMavenProjectFacade facade : facades) {
+ mavenProjectToFacadeMap.put(facade.getMavenProject(monitor), facade);
+ }
+ facades.clear();
+ for(MavenProject mavenProject : maven.getSortedProjects(new ArrayList<MavenProject>(mavenProjectToFacadeMap
+ .keySet()))) {
+ facades.add(mavenProjectToFacadeMap.get(mavenProject));
+ }
}
/**
@@ -288,9 +289,7 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
/**
* Returns project name to update status map
*
- * @since 1.1
- *
- * TODO promote to API
+ * @since 1.1 TODO promote to API
*/
public Map<String, IStatus> updateProjectConfiguration(MavenUpdateRequest request, boolean updateConfiguration,
boolean cleanProjects, IProgressMonitor monitor) {
@@ -317,7 +316,7 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
IProject project = pom.getProject();
monitor.subTask(project.getName());
-
+
try {
SubProgressMonitor submonitor = new SubProgressMonitor(monitor, 1, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL);
projectManager.refresh(new MavenUpdateRequest(project, request.isOffline(), request.isForceDependencyUpdate()),
@@ -390,8 +389,8 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
return updateStatus;
}
- private void updateProjectConfiguration(ProjectConfigurationRequest request,
- IProgressMonitor monitor) throws CoreException {
+ private void updateProjectConfiguration(ProjectConfigurationRequest request, IProgressMonitor monitor)
+ throws CoreException {
IProject project = request.getProject();
long start = System.currentTimeMillis();
IMavenProjectFacade mavenProjectFacade = request.getMavenProjectFacade();
@@ -405,7 +404,7 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
String sourceEncoding = mavenProperties.getProperty("project.build.sourceEncoding");
log.debug("Setting encoding for project {}: {}", project.getName(), sourceEncoding); //$NON-NLS-1$
project.setDefaultCharset(sourceEncoding, monitor);
-
+
ILifecycleMapping lifecycleMapping = getLifecycleMapping(mavenProjectFacade);
if(lifecycleMapping != null) {
@@ -441,7 +440,7 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
}
private void addMavenNature(IProject project, IProgressMonitor monitor) throws CoreException {
- if (!project.hasNature(IMavenConstants.NATURE_ID)) {
+ if(!project.hasNature(IMavenConstants.NATURE_ID)) {
IProjectDescription description = project.getDescription();
String[] prevNatures = description.getNatureIds();
String[] newNatures = new String[prevNatures.length + 1];
@@ -456,7 +455,7 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
monitor.subTask(Messages.ProjectConfigurationManager_task_disable_nature);
IMavenProjectFacade facade = projectManager.create(project, monitor);
- if(facade!=null) {
+ if(facade != null) {
ILifecycleMapping lifecycleMapping = getLifecycleMapping(facade);
if(lifecycleMapping != null) {
ProjectConfigurationRequest request = new ProjectConfigurationRequest(facade, facade.getMavenProject(monitor),
@@ -581,13 +580,13 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
project.create(description, monitor);
project.open(monitor);
monitor.worked(1);
-
+
hideNestedProjectsFromParents(Collections.singletonList(project));
monitor.worked(1);
monitor.subTask(Messages.ProjectConfigurationManager_task_creating_pom);
- IFile pomFile = project.getFile(IMavenConstants.POM_FILE_NAME);
+ IFile pomFile = project.getFile(IMavenConstants.POM_FILE_NAME);
mavenModelManager.createMavenModel(pomFile, model);
monitor.worked(1);
@@ -628,54 +627,67 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
/**
* Creates project structure using Archetype and then imports created project(s)
*
- * @deprecated use {@link #createArchetypeProjects(IPath, Archetype, String, String,
- * String, String, Properties, ProjectImportConfiguration, IProgressMonitor)}
+ * @deprecated use
+ * {@link #createArchetypeProjects(IPath, Archetype, String, String, String, String, Properties, ProjectImportConfiguration, IProgressMonitor)}
*/
@Deprecated
public void createArchetypeProject(IProject project, IPath location, Archetype archetype, String groupId,
String artifactId, String version, String javaPackage, Properties properties,
ProjectImportConfiguration configuration, IProgressMonitor monitor) throws CoreException {
- createArchetypeProjects(location, archetype, groupId, artifactId, version, javaPackage, properties, configuration, monitor);
+ createArchetypeProjects(location, archetype, groupId, artifactId, version, javaPackage, properties, configuration,
+ monitor);
}
-
+
/**
* Creates project structure using Archetype and then imports created project(s)
*
* @return an unmodifiable list of created projects.
* @since 1.1
*/
- public List<IProject> createArchetypeProjects(IPath location, Archetype archetype, String groupId,
- String artifactId, String version, String javaPackage, Properties properties,
- ProjectImportConfiguration configuration, IProgressMonitor monitor) throws CoreException {
+ public List<IProject> createArchetypeProjects(IPath location, Archetype archetype, String groupId, String artifactId,
+ String version, String javaPackage, Properties properties, ProjectImportConfiguration configuration,
+ IProgressMonitor monitor) throws CoreException {
monitor.beginTask(NLS.bind(Messages.ProjectConfigurationManager_task_creating_project1, artifactId), 2);
IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
-
- monitor.subTask(NLS.bind(Messages.ProjectConfigurationManager_task_executing_archetype, archetype.getGroupId(), archetype.getArtifactId()));
+
+ monitor.subTask(NLS.bind(Messages.ProjectConfigurationManager_task_executing_archetype, archetype.getGroupId(),
+ archetype.getArtifactId()));
if(location == null) {
// if the project should be created in the workspace, figure out the path
location = workspaceRoot.getLocation();
}
List<IProject> createdProjects = new ArrayList<IProject>();
-
+
try {
-
+
Artifact artifact = resolveArchetype(archetype, monitor);
-
- ArchetypeGenerationRequest request = new ArchetypeGenerationRequest() //
- .setTransferListener(maven.createTransferListener(monitor)) //
- .setArchetypeGroupId(artifact.getGroupId()) //
- .setArchetypeArtifactId(artifact.getArtifactId()) //
- .setArchetypeVersion(artifact.getVersion()) //
- .setArchetypeRepository(archetype.getRepository()) //
- .setGroupId(groupId) //
- .setArtifactId(artifactId) //
- .setVersion(version) //
- .setPackage(javaPackage) // the model does not have a package field
- .setLocalRepository(maven.getLocalRepository()) //
- .setRemoteArtifactRepositories(maven.getArtifactRepositories(true))
- .setProperties(properties).setOutputDirectory(location.toPortableString());
+
+ ArchetypeGenerationRequest request = new ArchetypeGenerationRequest()
+ //
+ .setTransferListener(maven.createTransferListener(monitor))
+ //
+ .setArchetypeGroupId(artifact.getGroupId())
+ //
+ .setArchetypeArtifactId(artifact.getArtifactId())
+ //
+ .setArchetypeVersion(artifact.getVersion())
+ //
+ .setArchetypeRepository(archetype.getRepository())
+ //
+ .setGroupId(groupId)
+ //
+ .setArtifactId(artifactId)
+ //
+ .setVersion(version)
+ //
+ .setPackage(javaPackage)
+ // the model does not have a package field
+ .setLocalRepository(maven.getLocalRepository())
+ //
+ .setRemoteArtifactRepositories(maven.getArtifactRepositories(true)).setProperties(properties)
+ .setOutputDirectory(location.toPortableString());
MavenSession session = maven.createSession(maven.createExecutionRequest(monitor), null);
@@ -702,32 +714,33 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
LocalProjectScanner scanner = new LocalProjectScanner(workspaceRoot.getLocation().toFile(), //
projectFolder, true, mavenModelManager);
scanner.run(monitor);
-
+
Set<MavenProjectInfo> projectSet = collectProjects(scanner.getProjects());
-
+
List<IMavenProjectImportResult> importResults = importProjects(projectSet, configuration, monitor);
- for (IMavenProjectImportResult r : importResults) {
+ for(IMavenProjectImportResult r : importResults) {
IProject p = r.getProject();
- if (p != null && p.exists()) {
+ if(p != null && p.exists()) {
createdProjects.add(p);
}
}
-
+
monitor.worked(1);
- } catch (CoreException e) {
+ } catch(CoreException e) {
throw e;
- } catch (InterruptedException e) {
+ } catch(InterruptedException e) {
throw new CoreException(Status.CANCEL_STATUS);
- } catch (Exception ex) {
- throw new CoreException(new Status(IStatus.ERROR, "org.eclipse.m2e", Messages.ProjectConfigurationManager_error_failed, ex)); //$NON-NLS-1$
+ } catch(Exception ex) {
+ throw new CoreException(new Status(IStatus.ERROR,
+ "org.eclipse.m2e", Messages.ProjectConfigurationManager_error_failed, ex)); //$NON-NLS-1$
}
-
+
return Collections.unmodifiableList(createdProjects);
}
/**
- * Apparently, Archetype#generateProjectFromArchetype 2.0-alpha-4 does not attempt to resolve archetype
- * from configured remote repositories. To compensate, we populate local repo with archetype pom/jar.
+ * Apparently, Archetype#generateProjectFromArchetype 2.0-alpha-4 does not attempt to resolve archetype from
+ * configured remote repositories. To compensate, we populate local repo with archetype pom/jar.
*/
private Artifact resolveArchetype(Archetype a, IProgressMonitor monitor) throws CoreException {
ArrayList<ArtifactRepository> repos = new ArrayList<ArtifactRepository>();
@@ -737,32 +750,34 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
String artifactRemoteRepository = a.getRepository();
try {
-
- if (StringUtils.isBlank(artifactRemoteRepository)){
-
+
+ if(StringUtils.isBlank(artifactRemoteRepository)) {
+
IMavenConfiguration mavenConfiguration = MavenPlugin.getMavenConfiguration();
- if (!mavenConfiguration.isOffline()){
+ if(!mavenConfiguration.isOffline()) {
//Try to find the repository from remote catalog if needed
final ArchetypeManager archetypeManager = MavenPluginActivator.getDefault().getArchetypeManager();
RemoteCatalogFactory factory = archetypeManager.findParentCatalogFactory(a, RemoteCatalogFactory.class);
- if (factory != null) {
- //Grab the computed remote repository url
- artifactRemoteRepository = factory.getRepositoryUrl();
- a.setRepository(artifactRemoteRepository);//Hopefully will prevent further lookups for the same archetype
+ if(factory != null) {
+ //Grab the computed remote repository url
+ artifactRemoteRepository = factory.getRepositoryUrl();
+ a.setRepository(artifactRemoteRepository);//Hopefully will prevent further lookups for the same archetype
}
}
}
-
- if (StringUtils.isNotBlank(artifactRemoteRepository)) {
- ArtifactRepository archetypeRepository = maven.createArtifactRepository(a.getArtifactId()+"-repo", a.getRepository().trim()); //$NON-NLS-1$
- repos.add(0,archetypeRepository);//If the archetype doesn't exist locally, this will be the first remote repo to be searched.
+
+ if(StringUtils.isNotBlank(artifactRemoteRepository)) {
+ ArtifactRepository archetypeRepository = maven.createArtifactRepository(
+ a.getArtifactId() + "-repo", a.getRepository().trim()); //$NON-NLS-1$
+ repos.add(0, archetypeRepository);//If the archetype doesn't exist locally, this will be the first remote repo to be searched.
}
-
- maven.resolve(a.getGroupId(), a.getArtifactId(),a.getVersion(), "pom", null, repos, monitor); //$NON-NLS-1$
- return maven.resolve(a.getGroupId(), a.getArtifactId(),a.getVersion(), "jar", null, repos, monitor); //$NON-NLS-1$
- } catch (CoreException e) {
+
+ maven.resolve(a.getGroupId(), a.getArtifactId(), a.getVersion(), "pom", null, repos, monitor); //$NON-NLS-1$
+ return maven.resolve(a.getGroupId(), a.getArtifactId(), a.getVersion(), "jar", null, repos, monitor); //$NON-NLS-1$
+ } catch(CoreException e) {
StringBuilder sb = new StringBuilder();
- sb.append(Messages.ProjectConfigurationManager_error_resolve).append(a.getGroupId()).append(':').append(a.getArtifactId()).append(':').append(a.getVersion());
+ sb.append(Messages.ProjectConfigurationManager_error_resolve).append(a.getGroupId()).append(':')
+ .append(a.getArtifactId()).append(':').append(a.getVersion());
sb.append(Messages.ProjectConfigurationManager_error_resolve2);
throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, sb.toString(), e));
}
@@ -792,11 +807,12 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
return ResourcesPlugin.getWorkspace().getRuleFactory().buildRule();
}
- private IProject create(MavenProjectInfo projectInfo, ProjectImportConfiguration configuration, IProgressMonitor monitor) throws CoreException {
+ private IProject create(MavenProjectInfo projectInfo, ProjectImportConfiguration configuration,
+ IProgressMonitor monitor) throws CoreException {
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IWorkspaceRoot root = workspace.getRoot();
-
- File pomFile = projectInfo.getPomFile();
+
+ File pomFile = projectInfo.getPomFile();
Model model = projectInfo.getModel();
if(model == null) {
model = maven.readModel(pomFile);
@@ -808,14 +824,15 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
File projectDir = pomFile.getParentFile();
String projectParent = projectDir.getParentFile().getAbsolutePath();
- if (projectInfo.getBasedirRename() == MavenProjectInfo.RENAME_REQUIRED) {
+ if(projectInfo.getBasedirRename() == MavenProjectInfo.RENAME_REQUIRED) {
File newProject = new File(projectDir.getParent(), projectName);
if(!projectDir.equals(newProject)) {
boolean renamed = projectDir.renameTo(newProject);
if(!renamed) {
StringBuilder msg = new StringBuilder();
- msg.append(NLS.bind(Messages.ProjectConfigurationManager_error_rename, projectDir.getAbsolutePath())).append('.');
- if (newProject.exists()) {
+ msg.append(NLS.bind(Messages.ProjectConfigurationManager_error_rename, projectDir.getAbsolutePath())).append(
+ '.');
+ if(newProject.exists()) {
msg.append(NLS.bind(Messages.ProjectConfigurationManager_error_targetDir, newProject.getAbsolutePath()));
}
throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, msg.toString(), null));
@@ -903,14 +920,14 @@ public class ProjectConfigurationManager implements IProjectConfigurationManager
mavenMarkerManager.deleteMarkers(oldFacade.getPom(), IMavenConstants.MARKER_CONFIGURATION_ID);
}
}
- } catch (CoreException e) {
+ } catch(CoreException e) {
log.error(e.getMessage(), e);
}
}
}
public ILifecycleMapping getLifecycleMapping(IMavenProjectFacade projectFacade) throws CoreException {
- if (projectFacade==null) {
+ if(projectFacade == null) {
return null;
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/conversion/ProjectConversionManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/conversion/ProjectConversionManager.java
index 80b08c8c..f6321a39 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/conversion/ProjectConversionManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/conversion/ProjectConversionManager.java
@@ -12,7 +12,6 @@
package org.eclipse.m2e.core.internal.project.conversion;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
@@ -62,25 +61,26 @@ public class ProjectConversionManager implements IProjectConversionManager {
for(IExtension extension : archetypesExtensions) {
IConfigurationElement[] elements = extension.getConfigurationElements();
for(IConfigurationElement element : elements) {
- if ("projectConversionParticipant".equals(element.getName())) {
+ if("projectConversionParticipant".equals(element.getName())) {
try {
if(project.hasNature(element.getAttribute("nature"))) {
- AbstractProjectConversionParticipant projectConversionParticipant = (AbstractProjectConversionParticipant) element.createExecutableExtension("class");
+ AbstractProjectConversionParticipant projectConversionParticipant = (AbstractProjectConversionParticipant) element
+ .createExecutableExtension("class");
participants.add(projectConversionParticipant);
}
} catch(CoreException ex) {
log.debug("Can not load IProjectConversionParticipant", ex);
}
- } else if ("conversionParticipantConfiguration".equals(element.getName())) {
+ } else if("conversionParticipantConfiguration".equals(element.getName())) {
setRestrictedPackagings(restrictedPackagings, element);
}
}
}
-
- for (AbstractProjectConversionParticipant cp : participants) {
+
+ for(AbstractProjectConversionParticipant cp : participants) {
Set<String> newPackagings = restrictedPackagings.get(cp.getId());
- if (newPackagings != null) {
- for (String p : newPackagings) {
+ if(newPackagings != null) {
+ for(String p : newPackagings) {
cp.addRestrictedPackaging(p);
}
}
@@ -93,27 +93,27 @@ public class ProjectConversionManager implements IProjectConversionManager {
IConfigurationElement element) {
String pid = element.getAttribute("conversionParticipantId");
String packagesAsString = element.getAttribute("compatiblePackagings");
- if (pid != null && packagesAsString != null) {
+ if(pid != null && packagesAsString != null) {
try {
String[] packagingsArray = packagesAsString.split(",");
Set<String> packagings = new HashSet<String>(packagingsArray.length);
- for (String packaging : packagingsArray) {
+ for(String packaging : packagingsArray) {
String p = packaging.trim();
- if (p.length() > 0) {
+ if(p.length() > 0) {
packagings.add(p);
}
}
-
+
Set<String> allPackages = restrictedPackagings.get(pid);
- if (allPackages == null) {
+ if(allPackages == null) {
allPackages = new HashSet<String>();
restrictedPackagings.put(pid, allPackages);
}
allPackages.addAll(packagings);
-
- } catch (Exception e) {
- log.debug("Cannot parse restricted packagings ",e);
+
+ } catch(Exception e) {
+ log.debug("Cannot parse restricted packagings ", e);
}
}
}
@@ -135,12 +135,13 @@ public class ProjectConversionManager implements IProjectConversionManager {
return getConversionParticipants(project, null);
}
- public List<AbstractProjectConversionParticipant> getConversionParticipants(IProject project, String packaging) throws CoreException {
+ public List<AbstractProjectConversionParticipant> getConversionParticipants(IProject project, String packaging)
+ throws CoreException {
List<AbstractProjectConversionParticipant> allParticipants = lookupConversionParticipants(project);
List<AbstractProjectConversionParticipant> participants = new ArrayList<AbstractProjectConversionParticipant>();
if(allParticipants != null) {
for(AbstractProjectConversionParticipant participant : allParticipants) {
- if (packaging != null && !participant.isPackagingCompatible(packaging)){
+ if(packaging != null && !participant.isPackagingCompatible(packaging)) {
continue;
}
if(participant.accept(project)) {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/AbstractMavenDependencyResolver.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/AbstractMavenDependencyResolver.java
index 819fd46a..7f40c6ce 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/AbstractMavenDependencyResolver.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/AbstractMavenDependencyResolver.java
@@ -32,6 +32,7 @@ import org.eclipse.m2e.core.project.IMavenProjectFacade;
public abstract class AbstractMavenDependencyResolver {
private ProjectRegistryManager manager;
+
private MutableProjectRegistry contextRegistry;
protected IMaven getMaven() {
@@ -46,7 +47,9 @@ public abstract class AbstractMavenDependencyResolver {
return manager;
}
- public abstract void resolveProjectDependencies(IMavenProjectFacade facade, MavenExecutionRequest mavenRequest, Set<Capability> capabilities, Set<RequiredCapability> requirements, IProgressMonitor monitor) throws CoreException;
+ public abstract void resolveProjectDependencies(IMavenProjectFacade facade, MavenExecutionRequest mavenRequest,
+ Set<Capability> capabilities, Set<RequiredCapability> requirements, IProgressMonitor monitor)
+ throws CoreException;
void setContextProjectRegistry(MutableProjectRegistry contextRegistry) {
this.contextRegistry = contextRegistry;
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/EclipseWorkspaceArtifactRepository.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/EclipseWorkspaceArtifactRepository.java
index d810432e..8d09e624 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/EclipseWorkspaceArtifactRepository.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/EclipseWorkspaceArtifactRepository.java
@@ -45,8 +45,9 @@ public final class EclipseWorkspaceArtifactRepository extends LocalArtifactRepos
this.workspaceRepository = new WorkspaceRepository("ide", getClass()); //$NON-NLS-1$
}
- protected File resolveAsEclipseProject(String groupId, String artifactId, String baseVersion, String classifier, String extension) {
- if (isDisabled()) {
+ protected File resolveAsEclipseProject(String groupId, String artifactId, String baseVersion, String classifier,
+ String extension) {
+ if(isDisabled()) {
return null;
}
@@ -71,7 +72,7 @@ public final class EclipseWorkspaceArtifactRepository extends LocalArtifactRepos
if(context.resolverConfiguration.shouldResolveWorkspaceProjects()) {
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IPath file = pom.getLocation();
- if (!"pom".equals(extension)) { //$NON-NLS-1$
+ if(!"pom".equals(extension)) { //$NON-NLS-1$
MavenProjectFacade facade = context.state.getProjectFacade(pom);
if(facade.getOutputLocation() != null) {
IFolder outputLocation = root.getFolder(facade.getOutputLocation());
@@ -109,9 +110,9 @@ public final class EclipseWorkspaceArtifactRepository extends LocalArtifactRepos
}
public static void setDisabled(boolean disable) {
- disabled.set(disable? Boolean.TRUE: null);
+ disabled.set(disable ? Boolean.TRUE : null);
}
-
+
public static boolean isDisabled() {
return Boolean.TRUE.equals(disabled.get());
}
@@ -136,7 +137,7 @@ public final class EclipseWorkspaceArtifactRepository extends LocalArtifactRepos
private List<String> findVersions(String groupId, String artifactId) {
ArrayList<String> versions = new ArrayList<String>();
- if (isDisabled()) {
+ if(isDisabled()) {
return versions;
}
@@ -144,9 +145,9 @@ public final class EclipseWorkspaceArtifactRepository extends LocalArtifactRepos
return versions;
}
- for (MavenProjectFacade facade : context.state.getProjects()) {
+ for(MavenProjectFacade facade : context.state.getProjects()) {
ArtifactKey artifactKey = facade.getArtifactKey();
- if (groupId.equals(artifactKey.getGroupId()) && artifactId.equals(artifactKey.getArtifactId())) {
+ if(groupId.equals(artifactKey.getGroupId()) && artifactId.equals(artifactKey.getArtifactId())) {
versions.add(artifactKey.getVersion());
}
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ILifecycleMapping2.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ILifecycleMapping2.java
index 2b3d1960..c49147fa 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ILifecycleMapping2.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ILifecycleMapping2.java
@@ -15,9 +15,10 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.m2e.core.project.configurator.ILifecycleMapping;
+
/**
* ILifecycleMapping2
- *
+ *
* @author igor
*/
public interface ILifecycleMapping2 extends ILifecycleMapping {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/IProjectRegistry.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/IProjectRegistry.java
index dc4c605d..c13fc6c6 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/IProjectRegistry.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/IProjectRegistry.java
@@ -18,7 +18,7 @@ import org.eclipse.m2e.core.embedder.ArtifactKey;
/**
* Registry of all known workspace maven projects.
- *
+ *
* @author igor
*/
public interface IProjectRegistry {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/MavenProjectFacade.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/MavenProjectFacade.java
index 3cbf5583..fe958205 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/MavenProjectFacade.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/MavenProjectFacade.java
@@ -50,6 +50,7 @@ import org.eclipse.m2e.core.project.MavenUpdateRequest;
import org.eclipse.m2e.core.project.ResolverConfiguration;
import org.eclipse.m2e.core.project.configurator.MojoExecutionKey;
+
public class MavenProjectFacade implements IMavenProjectFacade, Serializable {
private static final long serialVersionUID = -3648172776786224087L;
@@ -81,20 +82,32 @@ public class MavenProjectFacade implements IMavenProjectFacade, Serializable {
// cached values from mavenProject
private final ArtifactKey artifactKey;
+
private final List<String> modules;
+
private final String packaging;
+
private final IPath[] resourceLocations;
+
private final IPath[] testResourceLocations;
+
private final IPath[] compileSourceLocations;
+
private final IPath[] testCompileSourceLocations;
+
private final IPath outputLocation;
+
private final IPath testOutputLocation;
+
private final Set<ArtifactRepositoryRef> artifactRepositories;
+
private final Set<ArtifactRepositoryRef> pluginArtifactRepositories;
+
private Set<ArtifactRef> artifacts; // dependencies are resolved after facade instance is created
-
+
// lifecycle mapping
private String lifecycleMappingId;
+
private Map<MojoExecutionKey, List<IPluginExecutionMetadata>> mojoExecutionMapping;
public MavenProjectFacade(ProjectRegistryManager manager, IFile pom, MavenProject mavenProject,
@@ -114,8 +127,10 @@ public class MavenProjectFacade implements IMavenProjectFacade, Serializable {
this.resourceLocations = MavenProjectUtils.getResourceLocations(getProject(), mavenProject.getResources());
this.testResourceLocations = MavenProjectUtils.getResourceLocations(getProject(), mavenProject.getTestResources());
- this.compileSourceLocations = MavenProjectUtils.getSourceLocations(getProject(), mavenProject.getCompileSourceRoots());
- this.testCompileSourceLocations = MavenProjectUtils.getSourceLocations(getProject(),mavenProject.getTestCompileSourceRoots());
+ this.compileSourceLocations = MavenProjectUtils.getSourceLocations(getProject(),
+ mavenProject.getCompileSourceRoots());
+ this.testCompileSourceLocations = MavenProjectUtils.getSourceLocations(getProject(),
+ mavenProject.getTestCompileSourceRoots());
IPath fullPath = getProject().getFullPath();
@@ -203,7 +218,7 @@ public class MavenProjectFacade implements IMavenProjectFacade, Serializable {
* Lazy load and cache MavenProject instance
*/
public synchronized MavenProject getMavenProject(IProgressMonitor monitor) throws CoreException {
- if (mavenProject == null) {
+ if(mavenProject == null) {
//this used to just pass in 'true' for 'offline'. when the local repo was removed or
//corrupted, though, the project wouldn't load correctly
IMavenConfiguration mavenConfiguration = MavenPlugin.getMavenConfiguration();
@@ -211,10 +226,10 @@ public class MavenProjectFacade implements IMavenProjectFacade, Serializable {
MavenExecutionResult result = manager.readProjectWithDependencies(pom, resolverConfiguration, //
new MavenUpdateRequest(isOffline, false /* updateSnapshots */), monitor);
mavenProject = result.getProject();
- if (mavenProject == null) {
+ if(mavenProject == null) {
MultiStatus status = new MultiStatus(IMavenConstants.PLUGIN_ID, 0, Messages.MavenProjectFacade_error, null);
List<Throwable> exceptions = result.getExceptions();
- for (Throwable e : exceptions) {
+ for(Throwable e : exceptions) {
status.add(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, 0, e.getMessage(), e));
}
throw new CoreException(status);
@@ -250,7 +265,7 @@ public class MavenProjectFacade implements IMavenProjectFacade, Serializable {
public List<String> getMavenProjectModules() {
return modules;
}
-
+
public Set<ArtifactRef> getMavenProjectArtifacts() {
return artifacts;
}
@@ -264,16 +279,16 @@ public class MavenProjectFacade implements IMavenProjectFacade, Serializable {
}
/**
- * @return true if maven project needs to be re-read from disk
+ * @return true if maven project needs to be re-read from disk
*/
public boolean isStale() {
IProject project = getProject();
int i = 0;
for(IPath path : ProjectRegistryManager.METADATA_PATH) {
- if (timestamp[i] != getModificationStamp(project.getFile(path))) {
+ if(timestamp[i] != getModificationStamp(project.getFile(path))) {
return true;
}
- i++;
+ i++ ;
}
return false;
}
@@ -282,8 +297,8 @@ public class MavenProjectFacade implements IMavenProjectFacade, Serializable {
IProject project = getProject();
int i = 0;
for(IPath path : ProjectRegistryManager.METADATA_PATH) {
- timestamp[i] = getModificationStamp(project.getFile(path));
- i++;
+ timestamp[i] = getModificationStamp(project.getFile(path));
+ i++ ;
}
timestamp[timestamp.length - 1] = getModificationStamp(pom);
}
@@ -309,10 +324,10 @@ public class MavenProjectFacade implements IMavenProjectFacade, Serializable {
}
public synchronized void setSessionProperty(String key, Object value) {
- if (sessionProperties == null) {
+ if(sessionProperties == null) {
sessionProperties = new HashMap<String, Object>();
}
- if (value != null) {
+ if(value != null) {
sessionProperties.put(key, value);
} else {
sessionProperties.remove(key);
@@ -320,7 +335,7 @@ public class MavenProjectFacade implements IMavenProjectFacade, Serializable {
}
public synchronized Object getSessionProperty(String key) {
- return sessionProperties != null? sessionProperties.get(key): null;
+ return sessionProperties != null ? sessionProperties.get(key) : null;
}
public Set<ArtifactRepositoryRef> getArtifactRepositoryRefs() {
@@ -370,8 +385,8 @@ public class MavenProjectFacade implements IMavenProjectFacade, Serializable {
}
}
- public synchronized List<MojoExecution> getMojoExecutions(String groupId, String artifactId, IProgressMonitor monitor,
- String... goals) throws CoreException {
+ public synchronized List<MojoExecution> getMojoExecutions(String groupId, String artifactId,
+ IProgressMonitor monitor, String... goals) throws CoreException {
List<MojoExecution> result = new ArrayList<MojoExecution>();
List<MojoExecution> _executions = getMojoExecutions(monitor);
if(_executions != null) {
@@ -440,7 +455,7 @@ public class MavenProjectFacade implements IMavenProjectFacade, Serializable {
}
return mojoExecutions;
}
-
+
public List<MojoExecution> getExecutionPlan(String lifecycle, IProgressMonitor monitor) throws CoreException {
Map<String, List<MojoExecution>> executionPlans = getExecutionPlans(monitor);
return executionPlans != null ? executionPlans.get(lifecycle) : null;
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java
index 11956797..e8f60680 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryManager.java
@@ -85,26 +85,31 @@ import org.eclipse.m2e.core.project.ResolverConfiguration;
import org.eclipse.m2e.core.project.configurator.ILifecycleMapping;
import org.eclipse.m2e.core.project.configurator.MojoExecutionKey;
+
/**
- * This class keeps track of all maven projects present in the workspace and
- * provides mapping between Maven and the workspace.
+ * This class keeps track of all maven projects present in the workspace and provides mapping between Maven and the
+ * workspace.
*/
public class ProjectRegistryManager {
static final Logger log = LoggerFactory.getLogger(ProjectRegistryManager.class);
static final String ARTIFACT_TYPE_POM = "pom"; //$NON-NLS-1$
+
static final String ARTIFACT_TYPE_JAR = "jar"; //$NON-NLS-1$
+
public static final String ARTIFACT_TYPE_JAVA_SOURCE = "java-source"; //$NON-NLS-1$
+
public static final String ARTIFACT_TYPE_JAVADOC = "javadoc"; //$NON-NLS-1$
public static final String LIFECYCLE_DEFAULT = "deploy";
+
public static final String LIFECYCLE_CLEAN = "clean";
+
public static final String LIFECYCLE_SITE = "site";
/**
- * Path of project metadata files, relative to the project. These
- * files are used to determine if project dependencies need to be
- * updated.
+ * Path of project metadata files, relative to the project. These files are used to determine if project dependencies
+ * need to be updated.
*/
public static final List<? extends IPath> METADATA_PATH = Arrays.asList( //
new Path("pom.xml"), // //$NON-NLS-1$
@@ -134,23 +139,19 @@ public class ProjectRegistryManager {
ProjectRegistry state = readState && stateReader != null ? stateReader.readWorkspaceState(this) : null;
this.projectRegistry = (state != null && state.isValid()) ? state : new ProjectRegistry();
}
-
+
/**
- * Creates or returns cached MavenProjectFacade for the given project.
- *
- * This method will not block if called from IMavenProjectChangedListener#mavenProjectChanged
+ * Creates or returns cached MavenProjectFacade for the given project. This method will not block if called from
+ * IMavenProjectChangedListener#mavenProjectChanged
*/
public MavenProjectFacade create(IProject project, IProgressMonitor monitor) {
return create(getPom(project), false, monitor);
}
/**
- * Returns MavenProjectFacade corresponding to the pom.
- *
- * This method first looks in the project cache, then attempts to load
- * the pom if the pom is not found in the cache. In the latter case,
- * workspace resolution is assumed to be enabled for the pom but the pom
- * will not be added to the cache.
+ * Returns MavenProjectFacade corresponding to the pom. This method first looks in the project cache, then attempts to
+ * load the pom if the pom is not found in the cache. In the latter case, workspace resolution is assumed to be
+ * enabled for the pom but the pom will not be added to the cache.
*/
public MavenProjectFacade create(IFile pom, boolean load, IProgressMonitor monitor) {
if(pom == null) {
@@ -166,14 +167,13 @@ public class ProjectRegistryManager {
IMavenConfiguration mavenConfiguration = MavenPlugin.getMavenConfiguration();
boolean isOffline = mavenConfiguration.isOffline();
MavenExecutionResult executionResult = readProjectWithDependencies(projectRegistry, pom, configuration, //
- new MavenUpdateRequest(isOffline, false /* updateSnapshots */),
- monitor);
+ new MavenUpdateRequest(isOffline, false /* updateSnapshots */), monitor);
MavenProject mavenProject = executionResult.getProject();
if(mavenProject != null) {
projectFacade = new MavenProjectFacade(this, pom, mavenProject, null, configuration);
} else {
List<Throwable> exceptions = executionResult.getExceptions();
- if (exceptions != null) {
+ if(exceptions != null) {
for(Throwable ex : exceptions) {
String msg = "Failed to read Maven project: " + ex.getMessage();
log.error(msg, ex);
@@ -185,7 +185,7 @@ public class ProjectRegistryManager {
}
IFile getPom(IProject project) {
- if (project == null || !project.isAccessible()) {
+ if(project == null || !project.isAccessible()) {
// XXX sensible handling
return null;
}
@@ -193,27 +193,25 @@ public class ProjectRegistryManager {
}
/**
- * Removes specified poms from the cache.
- * Adds dependent poms to pomSet but does not directly refresh dependent poms.
+ * Removes specified poms from the cache. Adds dependent poms to pomSet but does not directly refresh dependent poms.
* Recursively removes all nested modules if appropriate.
*
* @return a {@link Set} of {@link IFile} affected poms
*/
public Set<IFile> remove(MutableProjectRegistry state, Set<IFile> poms, boolean force) {
Set<IFile> pomSet = new LinkedHashSet<IFile>();
- for (Iterator<IFile> it = poms.iterator(); it.hasNext(); ) {
+ for(Iterator<IFile> it = poms.iterator(); it.hasNext();) {
IFile pom = it.next();
MavenProjectFacade facade = state.getProjectFacade(pom);
- if (force || facade == null || facade.isStale()) {
+ if(force || facade == null || facade.isStale()) {
pomSet.addAll(remove(state, pom));
}
}
return pomSet;
}
-
+
/**
- * Removes the pom from the cache.
- * Adds dependent poms to pomSet but does not directly refresh dependent poms.
+ * Removes the pom from the cache. Adds dependent poms to pomSet but does not directly refresh dependent poms.
* Recursively removes all nested modules if appropriate.
*
* @return a {@link Set} of {@link IFile} affected poms
@@ -224,7 +222,7 @@ public class ProjectRegistryManager {
flushCaches(pom, facade);
- if (mavenProject == null) {
+ if(mavenProject == null) {
state.removeProject(pom, null);
return Collections.emptySet();
}
@@ -238,15 +236,15 @@ public class ProjectRegistryManager {
pomSet.addAll(refreshWorkspaceModules(state, pom, mavenProject));
pomSet.remove(pom);
-
+
return pomSet;
}
private void flushCaches(IFile pom, MavenProjectFacade facade) {
ArtifactKey key = null;
MavenProject project = null;
-
- if (facade != null) {
+
+ if(facade != null) {
key = facade.getArtifactKey();
project = facade.getMavenProject();
}
@@ -258,14 +256,14 @@ public class ProjectRegistryManager {
} catch(CoreException ex) {
// can't really happen
}
- if (project != null) {
+ if(project != null) {
((MavenImpl) getMaven()).releaseExtensionsRealm(project);
}
}
/**
- * This method acquires workspace root's lock and sends project change events.
- * It is meant for synchronous registry updates.
+ * This method acquires workspace root's lock and sends project change events. It is meant for synchronous registry
+ * updates.
*/
public void refresh(MavenUpdateRequest request, IProgressMonitor monitor) throws CoreException {
SubMonitor progress = SubMonitor.convert(monitor, Messages.ProjectRegistryManager_task_refreshing, 100);
@@ -277,7 +275,7 @@ public class ProjectRegistryManager {
MutableProjectRegistry newState = newMutableProjectRegistry();
try {
refresh(newState, request, progress.newChild(95));
-
+
applyMutableProjectRegistry(newState, progress.newChild(5));
} finally {
newState.close();
@@ -316,7 +314,7 @@ public class ProjectRegistryManager {
refresh.addAll(newState.getDependents(MavenCapability.createMavenParent(baseArtifact), true));
refresh.addAll(newState.getDependents(MavenCapability.createMavenArtifact(baseArtifact), true));
}
- if (!refresh.isEmpty()) {
+ if(!refresh.isEmpty()) {
log.debug("Automatic refresh. artifact={}/{}. projects={}", new Object[] {baseArtifact, artifact, refresh});
context.forcePomFiles(refresh);
}
@@ -423,7 +421,7 @@ public class ProjectRegistryManager {
// because workspace contents is fully known at this point, each project needs to be resolved at most once
continue;
}
-
+
MavenProjectFacade newFacade = null;
if(pom.isAccessible() && pom.getProject().hasNature(IMavenConstants.NATURE_ID)) {
newFacade = newState.getProjectFacade(pom);
@@ -572,9 +570,13 @@ public class ProjectRegistryManager {
}
Set<T> result = new HashSet<T>();
Set<T> t;
-
- t = new HashSet<T>(a); t.removeAll(b); result.addAll(t);
- t = new HashSet<T>(b); t.removeAll(a); result.addAll(t);
+
+ t = new HashSet<T>(a);
+ t.removeAll(b);
+ result.addAll(t);
+ t = new HashSet<T>(b);
+ t.removeAll(a);
+ result.addAll(t);
return result;
}
@@ -598,17 +600,18 @@ public class ProjectRegistryManager {
while(oldIter.hasNext()) {
T oldRequirement = oldIter.next();
T requirement = iter.next();
- if (!oldRequirement.equals(requirement)) {
+ if(!oldRequirement.equals(requirement)) {
return true;
}
}
return false;
}
- private AbstractMavenDependencyResolver getMavenDependencyResolver(MavenProjectFacade newFacade, IProgressMonitor monitor) throws CoreException {
+ private AbstractMavenDependencyResolver getMavenDependencyResolver(MavenProjectFacade newFacade,
+ IProgressMonitor monitor) throws CoreException {
ILifecycleMapping lifecycleMapping = LifecycleMappingFactory.getLifecycleMapping(newFacade);
- if (lifecycleMapping instanceof ILifecycleMapping2) {
+ if(lifecycleMapping instanceof ILifecycleMapping2) {
AbstractMavenDependencyResolver resolver = ((ILifecycleMapping2) lifecycleMapping).getDependencyResolver(monitor);
resolver.setManager(this);
return resolver;
@@ -636,15 +639,15 @@ public class ProjectRegistryManager {
MavenProject mavenProject = null;
MavenExecutionResult mavenResult = null;
- if (pom.isAccessible()) {
- MavenExecutionRequest mavenRequest = getConfiguredExecutionRequest(context, state, pom, resolverConfiguration);
- mavenResult = getMaven().readProject(mavenRequest, monitor);
- mavenProject = mavenResult.getProject();
+ if(pom.isAccessible()) {
+ MavenExecutionRequest mavenRequest = getConfiguredExecutionRequest(context, state, pom, resolverConfiguration);
+ mavenResult = getMaven().readProject(mavenRequest, monitor);
+ mavenProject = mavenResult.getProject();
}
MarkerUtils.addEditorHintMarkers(markerManager, pom, mavenProject, IMavenConstants.MARKER_POM_LOADING_ID);
markerManager.addMarkers(pom, IMavenConstants.MARKER_POM_LOADING_ID, mavenResult);
- if (mavenProject == null) {
+ if(mavenProject == null) {
return null;
}
@@ -695,7 +698,7 @@ public class ProjectRegistryManager {
}
private Set<IFile> refreshWorkspaceModules(MutableProjectRegistry state, IFile pom, ArtifactKey mavenProject) {
- if (mavenProject == null) {
+ if(mavenProject == null) {
return Collections.emptySet();
}
@@ -703,7 +706,7 @@ public class ProjectRegistryManager {
}
public void addMavenProjectChangedListener(IMavenProjectChangedListener listener) {
- synchronized (projectChangeListeners) {
+ synchronized(projectChangeListeners) {
projectChangeListeners.add(listener);
}
}
@@ -712,7 +715,7 @@ public class ProjectRegistryManager {
if(listener == null) {
return;
}
- synchronized (projectChangeListeners) {
+ synchronized(projectChangeListeners) {
projectChangeListeners.remove(listener);
}
}
@@ -740,8 +743,8 @@ public class ProjectRegistryManager {
return readProjectWithDependencies(projectRegistry, pomFile, resolverConfiguration, updateRequest, monitor);
}
- private MavenExecutionResult readProjectWithDependencies(IProjectRegistry state, IFile pomFile, ResolverConfiguration resolverConfiguration,
- MavenUpdateRequest updateRequest, IProgressMonitor monitor) {
+ private MavenExecutionResult readProjectWithDependencies(IProjectRegistry state, IFile pomFile,
+ ResolverConfiguration resolverConfiguration, MavenUpdateRequest updateRequest, IProgressMonitor monitor) {
try {
MavenExecutionRequest request = createExecutionRequest(state, pomFile, resolverConfiguration, monitor);
@@ -782,11 +785,13 @@ public class ProjectRegistryManager {
}
}
- public MavenExecutionRequest createExecutionRequest(IFile pom, ResolverConfiguration resolverConfiguration, IProgressMonitor monitor) throws CoreException {
+ public MavenExecutionRequest createExecutionRequest(IFile pom, ResolverConfiguration resolverConfiguration,
+ IProgressMonitor monitor) throws CoreException {
return createExecutionRequest(projectRegistry, pom, resolverConfiguration, monitor);
}
- private MavenExecutionRequest createExecutionRequest(IProjectRegistry state, IFile pom, ResolverConfiguration resolverConfiguration, IProgressMonitor monitor) throws CoreException {
+ private MavenExecutionRequest createExecutionRequest(IProjectRegistry state, IFile pom,
+ ResolverConfiguration resolverConfiguration, IProgressMonitor monitor) throws CoreException {
MavenExecutionRequest request = getMaven().createExecutionRequest(monitor);
return configureExecutionRequest(request, state, pom, resolverConfiguration);
@@ -795,7 +800,7 @@ public class ProjectRegistryManager {
private MavenExecutionRequest configureExecutionRequest(MavenExecutionRequest request, IProjectRegistry state,
IFile pom, ResolverConfiguration resolverConfiguration) throws CoreException {
request.setPom(pom.getLocation().toFile());
-
+
request.addActiveProfiles(resolverConfiguration.getActiveProfileList());
request.addInactiveProfiles(resolverConfiguration.getInactiveProfileList());
// temporary solution for https://issues.sonatype.org/browse/MNGECLIPSE-1607
@@ -837,21 +842,19 @@ public class ProjectRegistryManager {
}
/**
- * Applies mutable project registry to the primary project registry and
- * and corresponding MavenProjectChangedEvent's to all registered
- * IMavenProjectChangedListener's.
- *
- * This method must be called from a thread holding workspace root's lock.
+ * Applies mutable project registry to the primary project registry and and corresponding MavenProjectChangedEvent's
+ * to all registered IMavenProjectChangedListener's. This method must be called from a thread holding workspace root's
+ * lock.
*
- * @throws StaleMutableProjectRegistryException if primary project registry
- * was modified after mutable registry has been created
+ * @throws StaleMutableProjectRegistryException if primary project registry was modified after mutable registry has
+ * been created
*/
void applyMutableProjectRegistry(MutableProjectRegistry newState, IProgressMonitor monitor) {
List<MavenProjectChangedEvent> events = projectRegistry.apply(newState);
//stateReader.writeWorkspaceState(projectRegistry);
notifyProjectChangeListeners(events, monitor);
}
-
+
public void writeWorkspaceState() {
if(stateReader != null && projectRegistry != null) {
stateReader.writeWorkspaceState(projectRegistry);
@@ -870,8 +873,8 @@ public class ProjectRegistryManager {
return maven.setupMojoExecution(session, projectFacade.getMavenProject(), mojoExecution);
}
- public Map<String, List<MojoExecution>> calculateExecutionPlans(MavenProjectFacade projectFacade, IProgressMonitor monitor)
- throws CoreException {
+ public Map<String, List<MojoExecution>> calculateExecutionPlans(MavenProjectFacade projectFacade,
+ IProgressMonitor monitor) throws CoreException {
boolean offline = MavenPlugin.getMavenConfiguration().isOffline();
MavenUpdateRequest request = new MavenUpdateRequest(offline, false /*updateSnapshots*/);
MavenExecutionRequest executionRequest = createExecutionRequest(projectFacade.getPom(),
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java
index 43e660c3..492bdcba 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java
@@ -41,18 +41,20 @@ import org.eclipse.m2e.core.internal.jobs.IBackgroundProcessingQueue;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
import org.eclipse.m2e.core.project.MavenUpdateRequest;
-public class ProjectRegistryRefreshJob extends Job implements IResourceChangeListener, IPreferenceChangeListener, IBackgroundProcessingQueue {
+
+public class ProjectRegistryRefreshJob extends Job implements IResourceChangeListener, IPreferenceChangeListener,
+ IBackgroundProcessingQueue {
private static final Logger log = LoggerFactory.getLogger(ProjectRegistryRefreshJob.class);
private static final long SCHEDULE_DELAY = 1000L;
private static final int DELTA_FLAGS = IResourceDelta.CONTENT | IResourceDelta.MOVED_FROM | IResourceDelta.MOVED_TO
- | IResourceDelta.COPIED_FROM | IResourceDelta.REPLACED;
-
+ | IResourceDelta.COPIED_FROM | IResourceDelta.REPLACED;
+
private final Set<MavenUpdateRequest> queue = new LinkedHashSet<MavenUpdateRequest>();
private final ProjectRegistryManager manager;
-
+
private final IMavenConfiguration mavenConfiguration;
public ProjectRegistryRefreshJob(ProjectRegistryManager manager, IMavenConfiguration mavenConfiguration) {
@@ -67,7 +69,7 @@ public class ProjectRegistryRefreshJob extends Job implements IResourceChangeLis
}
// Job
-
+
public IStatus run(IProgressMonitor monitor) {
monitor.beginTask(Messages.ProjectRegistryRefreshJob_task_refreshing, IProgressMonitor.UNKNOWN);
ArrayList<MavenUpdateRequest> requests;
@@ -79,13 +81,13 @@ public class ProjectRegistryRefreshJob extends Job implements IResourceChangeLis
try {
MutableProjectRegistry newState = manager.newMutableProjectRegistry();
try {
- for (MavenUpdateRequest request : requests) {
+ for(MavenUpdateRequest request : requests) {
if(monitor.isCanceled()) {
throw new OperationCanceledException();
}
manager.refresh(newState, request, monitor);
}
-
+
ISchedulingRule rule = ResourcesPlugin.getWorkspace().getRoot();
getJobManager().beginRule(rule, monitor);
try {
@@ -100,7 +102,7 @@ public class ProjectRegistryRefreshJob extends Job implements IResourceChangeLis
log.error(ex.getMessage(), ex);
} catch(OperationCanceledException ex) {
log.info("{} was canceled", getClass().getName());
- } catch (StaleMutableProjectRegistryException e) {
+ } catch(StaleMutableProjectRegistryException e) {
synchronized(this.queue) {
// must preserve order of requests here
requests.addAll(this.queue);
@@ -120,9 +122,9 @@ public class ProjectRegistryRefreshJob extends Job implements IResourceChangeLis
}
// IResourceChangeListener
-
+
public void resourceChanged(IResourceChangeEvent event) {
- boolean offline = mavenConfiguration.isOffline();
+ boolean offline = mavenConfiguration.isOffline();
boolean forceDependencyUpdate = false;
int type = event.getType();
@@ -132,13 +134,13 @@ public class ProjectRegistryRefreshJob extends Job implements IResourceChangeLis
} else {
// if (IResourceChangeEvent.POST_CHANGE == type)
IWorkspace workspace = ResourcesPlugin.getWorkspace();
- boolean autobuilding = workspace != null && workspace.isAutoBuilding();
+ boolean autobuilding = workspace != null && workspace.isAutoBuilding();
// MavenBuilder will synchronously read/refresh workspace Maven project state.
// To avoid double-work and/or locking between MavenBuilder and background registry refresh job, we skip project
// refresh when workspace is autobuilding.
// We still refresh opened projects because workspace does not run build after project open event.
-
+
IResourceDelta delta = event.getDelta(); // workspace delta
IResourceDelta[] projectDeltas = delta.getAffectedChildren();
Set<IProject> refreshProjects = new LinkedHashSet<IProject>();
@@ -188,10 +190,10 @@ public class ProjectRegistryRefreshJob extends Job implements IResourceChangeLis
}
public void preferenceChange(PreferenceChangeEvent event) {
- boolean offline = mavenConfiguration.isOffline();
+ boolean offline = mavenConfiguration.isOffline();
boolean updateSnapshots = false;
- if (event.getSource() instanceof IProject) {
+ if(event.getSource() instanceof IProject) {
queue(new MavenUpdateRequest((IProject) event.getSource(), offline, updateSnapshots));
}
}
@@ -203,8 +205,7 @@ public class ProjectRegistryRefreshJob extends Job implements IResourceChangeLis
}
protected boolean isInterestingDelta(IResourceDelta delta) {
- return delta.getKind() == IResourceDelta.REMOVED
- || delta.getKind() == IResourceDelta.ADDED
+ return delta.getKind() == IResourceDelta.REMOVED || delta.getKind() == IResourceDelta.ADDED
|| (delta.getKind() == IResourceDelta.CHANGED && ((delta.getFlags() & DELTA_FLAGS) != 0));
}
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/StaleMutableProjectRegistryException.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/StaleMutableProjectRegistryException.java
index 43f8ecd9..d0dc2997 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/StaleMutableProjectRegistryException.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/StaleMutableProjectRegistryException.java
@@ -13,7 +13,7 @@ package org.eclipse.m2e.core.internal.project.registry;
/**
* StaleMutableProjectRegistryException
- *
+ *
* @author igor
*/
public class StaleMutableProjectRegistryException extends IllegalStateException {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/IRepositoryDiscoverer.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/IRepositoryDiscoverer.java
index 4dfbb56d..e4b6c82e 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/IRepositoryDiscoverer.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/IRepositoryDiscoverer.java
@@ -14,13 +14,14 @@ package org.eclipse.m2e.core.internal.repository;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
+
/**
* IRepositoryDiscoverer
- *
+ *
* @author igor
*/
public interface IRepositoryDiscoverer {
-
+
/**
* Called during updateRegistry operation.
*/
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/IRepositoryIndexer.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/IRepositoryIndexer.java
index 1573b657..2eaab8b7 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/IRepositoryIndexer.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/IRepositoryIndexer.java
@@ -16,9 +16,10 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.m2e.core.repository.IRepository;
+
/**
* IRepositoryIndexer
- *
+ *
* @author igor
*/
public interface IRepositoryIndexer {
@@ -31,16 +32,14 @@ public interface IRepositoryIndexer {
public void initialize(IProgressMonitor monitor) throws CoreException;
/**
- * Called by repository registry when new repository is added.
- *
- * This method is called from a background thread which does not keep any workspace locks.
+ * Called by repository registry when new repository is added. This method is called from a background thread which
+ * does not keep any workspace locks.
*/
public void repositoryAdded(IRepository repository, IProgressMonitor monitor) throws CoreException;
/**
- * Called by repository registry when a repository is removed.
- *
- * This method is called from a background thread which does not keep any workspace locks.
+ * Called by repository registry when a repository is removed. This method is called from a background thread which
+ * does not keep any workspace locks.
*/
public void repositoryRemoved(IRepository repository, IProgressMonitor monitor) throws CoreException;
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/RepositoryInfo.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/RepositoryInfo.java
index a84aac55..3ff0049a 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/RepositoryInfo.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/RepositoryInfo.java
@@ -25,18 +25,25 @@ import org.apache.maven.wagon.authentication.AuthenticationInfo;
import org.eclipse.m2e.core.repository.IRepository;
import org.eclipse.m2e.core.repository.IRepositoryRegistry;
+
public class RepositoryInfo implements IRepository {
private final String id;
+
private final String repositoryUrl;
+
private final File basedir;
+
private final int scope;
+
private final AuthenticationInfo authInfo;
private String uid;
private String mirrorId;
+
private String mirrorOf;
+
private Set<IPath> projects = new HashSet<IPath>();
public RepositoryInfo(String id, String repositoryUrl, int scope, AuthenticationInfo authInfo) {
@@ -84,7 +91,7 @@ public class RepositoryInfo implements IRepository {
}
public void addProject(IPath project) {
- if (isScope(IRepositoryRegistry.SCOPE_PROJECT)) {
+ if(isScope(IRepositoryRegistry.SCOPE_PROJECT)) {
projects.add(project);
}
}
@@ -94,8 +101,8 @@ public class RepositoryInfo implements IRepository {
}
public String getUid() {
- if (uid == null) {
- uid = getUid(id, repositoryUrl, authInfo != null? authInfo.getUserName(): null);
+ if(uid == null) {
+ uid = getUid(id, repositoryUrl, authInfo != null ? authInfo.getUserName() : null);
}
return uid;
@@ -103,11 +110,11 @@ public class RepositoryInfo implements IRepository {
public static String getUid(String id, String repositoryUrl, String username) {
StringBuilder sb = new StringBuilder();
- if (id != null) {
+ if(id != null) {
sb.append(id);
}
sb.append('|').append(repositoryUrl);
- if (username != null) {
+ if(username != null) {
sb.append('|').append(username);
}
String uid;
@@ -127,11 +134,11 @@ public class RepositoryInfo implements IRepository {
} catch(NoSuchAlgorithmException ex) {
//this shouldn't happen with MD5
uid = sb.toString();
- uid = uid.replace(':', '_').replace('/', '_').replace('|','_');
+ uid = uid.replace(':', '_').replace('/', '_').replace('|', '_');
}
return uid;
}
-
+
public String getProtocol() {
return getProtocol(repositoryUrl);
}
@@ -147,7 +154,7 @@ public class RepositoryInfo implements IRepository {
}
public static File getBasedir(String repositoryUrl) {
- if (getProtocol(repositoryUrl).equalsIgnoreCase("file")) { //$NON-NLS-1$
+ if(getProtocol(repositoryUrl).equalsIgnoreCase("file")) { //$NON-NLS-1$
// dirty trick!
MavenArtifactRepository trick = new MavenArtifactRepository();
trick.setUrl(repositoryUrl);
@@ -163,10 +170,10 @@ public class RepositoryInfo implements IRepository {
public boolean isScope(int scope) {
return (this.scope & scope) != 0;
}
-
+
public String toString() {
StringBuilder sb = new StringBuilder();
- if (id != null) {
+ if(id != null) {
sb.append(id).append('|');
}
sb.append(repositoryUrl);
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/RepositoryRegistry.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/RepositoryRegistry.java
index 40722b59..8020b376 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/RepositoryRegistry.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/RepositoryRegistry.java
@@ -37,8 +37,8 @@ import org.eclipse.m2e.core.embedder.IMaven;
import org.eclipse.m2e.core.embedder.ISettingsChangeListener;
import org.eclipse.m2e.core.project.IMavenProjectChangedListener;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
-import org.eclipse.m2e.core.project.MavenProjectChangedEvent;
import org.eclipse.m2e.core.project.IMavenProjectRegistry;
+import org.eclipse.m2e.core.project.MavenProjectChangedEvent;
import org.eclipse.m2e.core.repository.IRepository;
import org.eclipse.m2e.core.repository.IRepositoryRegistry;
@@ -77,19 +77,20 @@ public class RepositoryRegistry implements IRepositoryRegistry, IMavenProjectCha
private ArrayList<IRepositoryDiscoverer> discoverers = new ArrayList<IRepositoryDiscoverer>();
private final RepositoryRegistryUpdateJob job = new RepositoryRegistryUpdateJob(this);
-
+
public RepositoryRegistry(IMaven maven, IMavenProjectRegistry projectManager) {
this.maven = maven;
this.projectManager = projectManager;
- this.workspaceRepository = new RepositoryInfo(null/*id*/, "workspace://"/*url*/, null/*basedir*/, SCOPE_WORKSPACE, null/*auth*/); //$NON-NLS-1$
+ this.workspaceRepository = new RepositoryInfo(null/*id*/,
+ "workspace://"/*url*/, null/*basedir*/, SCOPE_WORKSPACE, null/*auth*/); //$NON-NLS-1$
}
private RepositoryInfo newLocalRepositoryInfo() {
File localBasedir = new File(maven.getLocalRepositoryPath());
try {
localBasedir = localBasedir.getCanonicalFile();
- } catch (IOException e) {
+ } catch(IOException e) {
// will never happen
localBasedir = localBasedir.getAbsoluteFile();
}
@@ -121,7 +122,7 @@ public class RepositoryRegistry implements IRepositoryRegistry, IMavenProjectCha
for(MavenProjectChangedEvent event : events) {
IMavenProjectFacade oldFacade = event.getOldMavenProject();
- if (oldFacade != null) {
+ if(oldFacade != null) {
removeProjectRepositories(oldFacade, monitor);
}
IMavenProjectFacade facade = event.getMavenProject();
@@ -135,12 +136,13 @@ public class RepositoryRegistry implements IRepositoryRegistry, IMavenProjectCha
}
}
- private void addProjectRepositories(Settings settings, IMavenProjectFacade facade, IProgressMonitor monitor) throws CoreException {
+ private void addProjectRepositories(Settings settings, IMavenProjectFacade facade, IProgressMonitor monitor)
+ throws CoreException {
ArrayList<ArtifactRepositoryRef> repositories = getProjectRepositories(facade);
- for (ArtifactRepositoryRef repo : repositories) {
+ for(ArtifactRepositoryRef repo : repositories) {
RepositoryInfo repository = getRepository(repo);
- if (repository != null) {
+ if(repository != null) {
repository.addProject(facade.getPom().getFullPath());
continue;
}
@@ -153,13 +155,13 @@ public class RepositoryRegistry implements IRepositoryRegistry, IMavenProjectCha
}
public void addRepository(RepositoryInfo repository, IProgressMonitor monitor) {
- if (!repositories.containsKey(repository.getUid())) {
+ if(!repositories.containsKey(repository.getUid())) {
repositories.put(repository.getUid(), repository);
-
- for (IRepositoryIndexer indexer : indexers) {
+
+ for(IRepositoryIndexer indexer : indexers) {
try {
indexer.repositoryAdded(repository, monitor);
- } catch (CoreException e) {
+ } catch(CoreException e) {
log.error(e.getMessage(), e);
}
}
@@ -169,11 +171,11 @@ public class RepositoryRegistry implements IRepositoryRegistry, IMavenProjectCha
private void removeProjectRepositories(IMavenProjectFacade facade, IProgressMonitor monitor) {
ArrayList<ArtifactRepositoryRef> repositories = getProjectRepositories(facade);
- for (ArtifactRepositoryRef repo : repositories) {
+ for(ArtifactRepositoryRef repo : repositories) {
RepositoryInfo repository = getRepository(repo);
- if (repository != null && repository.isScope(SCOPE_PROJECT)) {
+ if(repository != null && repository.isScope(SCOPE_PROJECT)) {
repository.removeProject(facade.getPom().getFullPath());
- if (repository.getProjects().isEmpty()) {
+ if(repository.getProjects().isEmpty()) {
removeRepository(repository, monitor);
}
}
@@ -183,10 +185,10 @@ public class RepositoryRegistry implements IRepositoryRegistry, IMavenProjectCha
private void removeRepository(RepositoryInfo repository, IProgressMonitor monitor) {
repositories.remove(repository.getUid());
- for (IRepositoryIndexer indexer : indexers) {
+ for(IRepositoryIndexer indexer : indexers) {
try {
indexer.repositoryRemoved(repository, monitor);
- } catch (CoreException e) {
+ } catch(CoreException e) {
log.error(e.getMessage(), e);
}
}
@@ -199,14 +201,13 @@ public class RepositoryRegistry implements IRepositoryRegistry, IMavenProjectCha
return repositories;
}
-
public AuthenticationInfo getAuthenticationInfo(Settings settings, String id) throws CoreException {
- if (settings == null) {
+ if(settings == null) {
return null;
}
Server server = settings.getServer(id);
- if (server == null || server.getUsername() == null) {
+ if(server == null || server.getUsername() == null) {
return null;
}
@@ -223,7 +224,7 @@ public class RepositoryRegistry implements IRepositoryRegistry, IMavenProjectCha
List<Mirror> mirrors = maven.getMirrors();
// initialize indexers
- for (IRepositoryIndexer indexer : indexers) {
+ for(IRepositoryIndexer indexer : indexers) {
indexer.initialize(monitor);
}
@@ -256,32 +257,32 @@ public class RepositoryRegistry implements IRepositoryRegistry, IMavenProjectCha
Mirror mirror = maven.getMirror(repo);
AuthenticationInfo auth = getAuthenticationInfo(settings, repo.getId());
RepositoryInfo repository = new RepositoryInfo(repo.getId(), repo.getUrl(), SCOPE_SETTINGS, auth);
- if (mirror != null) {
+ if(mirror != null) {
repository.setMirrorId(mirror.getId());
}
addRepository(repository, monitor);
}
// project-specific repositories
- for (IMavenProjectFacade facade : projectManager.getProjects()) {
+ for(IMavenProjectFacade facade : projectManager.getProjects()) {
addProjectRepositories(settings, facade, monitor);
}
// custom repositories
- for (IRepositoryDiscoverer discoverer : discoverers) {
+ for(IRepositoryDiscoverer discoverer : discoverers) {
discoverer.addRepositories(this, monitor);
}
oldRepositories.keySet().removeAll(repositories.keySet());
- for (RepositoryInfo repository : oldRepositories.values()) {
+ for(RepositoryInfo repository : oldRepositories.values()) {
removeRepository(repository, monitor);
}
}
public List<IRepository> getRepositories(int scope) {
ArrayList<IRepository> result = new ArrayList<IRepository>();
- for (RepositoryInfo repository : repositories.values()) {
- if (repository.isScope(scope)) {
+ for(RepositoryInfo repository : repositories.values()) {
+ if(repository.isScope(scope)) {
result.add(repository);
}
}
@@ -318,7 +319,7 @@ public class RepositoryRegistry implements IRepositoryRegistry, IMavenProjectCha
return localRepository;
}
-
+
public void settingsChanged(Settings settings) {
updateRegistry();
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/RepositoryRegistryUpdateJob.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/RepositoryRegistryUpdateJob.java
index 15b22fb8..0d5a61c4 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/RepositoryRegistryUpdateJob.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/repository/RepositoryRegistryUpdateJob.java
@@ -22,13 +22,14 @@ import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.m2e.core.internal.Messages;
import org.eclipse.m2e.core.internal.jobs.IBackgroundProcessingQueue;
+
/**
* RepositoryRegistryUpdateJob
- *
+ *
* @author igor
*/
public class RepositoryRegistryUpdateJob extends Job implements IBackgroundProcessingQueue {
-
+
private final RepositoryRegistry registry;
private final ArrayList<Object> queue = new ArrayList<Object>();
@@ -49,7 +50,7 @@ public class RepositoryRegistryUpdateJob extends Job implements IBackgroundProce
}
return Status.OK_STATUS;
}
-
+
public boolean isEmpty() {
synchronized(queue) {
return queue.isEmpty();
@@ -61,5 +62,5 @@ public class RepositoryRegistryUpdateJob extends Job implements IBackgroundProce
queue.add(new Object());
schedule(1000L);
}
- }
+ }
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/lifecyclemapping/model/IPluginExecutionMetadata.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/lifecyclemapping/model/IPluginExecutionMetadata.java
index e7f11180..a50865ed 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/lifecyclemapping/model/IPluginExecutionMetadata.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/lifecyclemapping/model/IPluginExecutionMetadata.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.lifecyclemapping.model;
/**
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/lifecyclemapping/model/PluginExecutionAction.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/lifecyclemapping/model/PluginExecutionAction.java
index 3485a8c6..34607e3a 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/lifecyclemapping/model/PluginExecutionAction.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/lifecyclemapping/model/PluginExecutionAction.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.lifecyclemapping.model;
public enum PluginExecutionAction {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/AbstractProjectScanner.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/AbstractProjectScanner.java
index c996a869..3aa1323e 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/AbstractProjectScanner.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/AbstractProjectScanner.java
@@ -19,14 +19,15 @@ import org.eclipse.core.runtime.IProgressMonitor;
/**
* Project Scanner
- *
+ *
* @author Eugene Kuleshov
*/
public abstract class AbstractProjectScanner<T extends MavenProjectInfo> {
private final List<T> projects = new ArrayList<T>();
+
private final List<Throwable> errors = new ArrayList<Throwable>();
-
+
/**
* Returns <code>List</code> of {@link MavenProjectInfo}
*/
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectChangedListener.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectChangedListener.java
index f37ec18d..8820e036 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectChangedListener.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectChangedListener.java
@@ -13,6 +13,7 @@ package org.eclipse.m2e.core.project;
import org.eclipse.core.runtime.IProgressMonitor;
+
public interface IMavenProjectChangedListener {
/**
* This method is called while holding workspace lock.
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectFacade.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectFacade.java
index 9589f59d..790b0567 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectFacade.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectFacade.java
@@ -31,11 +31,11 @@ import org.eclipse.m2e.core.embedder.ArtifactRepositoryRef;
import org.eclipse.m2e.core.lifecyclemapping.model.IPluginExecutionMetadata;
import org.eclipse.m2e.core.project.configurator.MojoExecutionKey;
+
/**
* IMavenProjectFacade
*
* @noimplement This interface is not intended to be implemented by clients.
- *
* @author Igor Fedorenko
*/
public interface IMavenProjectFacade {
@@ -109,25 +109,22 @@ public interface IMavenProjectFacade {
ResolverConfiguration getResolverConfiguration();
/**
- * @return true if maven project needs to be re-read from disk
+ * @return true if maven project needs to be re-read from disk
*/
boolean isStale();
ArtifactKey getArtifactKey();
/**
- * Associates the value with the key in session (i.e. transient) context.
- * Intended as a mechanism to cache state derived from MavenProject.
- * Session properties are cleared when MavenProject is re-read from disk.
+ * Associates the value with the key in session (i.e. transient) context. Intended as a mechanism to cache state
+ * derived from MavenProject. Session properties are cleared when MavenProject is re-read from disk.
*
* @see #getSessionProperty(String)
*/
public void setSessionProperty(String key, Object value);
/**
- * @return the value associated with the key in session context or null
- * if the key is not associated with any value.
- *
+ * @return the value associated with the key in session context or null if the key is not associated with any value.
* @see #setSessionProperty(String, Object)
*/
public Object getSessionProperty(String key);
@@ -144,8 +141,8 @@ public interface IMavenProjectFacade {
throws CoreException;
/**
- * Returns list of fully setup MojoExecution instances bound to project build lifecycle that matche provided
- * groupId, artifactId and (vararg) goals. Returns empty list if no such mojo executions.
+ * Returns list of fully setup MojoExecution instances bound to project build lifecycle that matche provided groupId,
+ * artifactId and (vararg) goals. Returns empty list if no such mojo executions.
*/
public List<MojoExecution> getMojoExecutions(String groupId, String artifactId, IProgressMonitor monitor,
String... goals) throws CoreException;
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectImportResult.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectImportResult.java
index 218e5a4d..88bec55a 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectImportResult.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectImportResult.java
@@ -13,9 +13,10 @@ package org.eclipse.m2e.core.project;
import org.eclipse.core.resources.IProject;
+
/**
* Holds IProject that was created during project import
- *
+ *
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IMavenProjectImportResult {
@@ -26,7 +27,7 @@ public interface IMavenProjectImportResult {
MavenProjectInfo getMavenProjectInfo();
/**
- * @return IProject imported project or <code>null</code> if the project could not be imported.
+ * @return IProject imported project or <code>null</code> if the project could not be imported.
*/
IProject getProject();
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IProjectConfigurationManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IProjectConfigurationManager.java
index 2d864eb4..420e0da7 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IProjectConfigurationManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IProjectConfigurationManager.java
@@ -40,8 +40,8 @@ public interface IProjectConfigurationManager {
ProjectImportConfiguration configuration, IProgressMonitor monitor) throws CoreException;
/**
- * @deprecated use {@link #createArchetypeProjects(IPath, Archetype, String,
- * String, String, String, Properties, ProjectImportConfiguration, IProgressMonitor)}
+ * @deprecated use
+ * {@link #createArchetypeProjects(IPath, Archetype, String, String, String, String, Properties, ProjectImportConfiguration, IProgressMonitor)}
*/
@Deprecated
void createArchetypeProject(IProject project, IPath location, Archetype archetype, //
@@ -50,6 +50,7 @@ public interface IProjectConfigurationManager {
/**
* Creates project structure using Archetype and then imports the created project(s)
+ *
* @return an unmodifiable list of created projects.
* @since 1.1
*/
@@ -64,14 +65,11 @@ public interface IProjectConfigurationManager {
void disableMavenNature(IProject project, IProgressMonitor monitor) throws CoreException;
- void updateProjectConfiguration(IProject project, IProgressMonitor monitor)
- throws CoreException;
+ void updateProjectConfiguration(IProject project, IProgressMonitor monitor) throws CoreException;
- void updateProjectConfiguration(MavenUpdateRequest request, IProgressMonitor monitor)
- throws CoreException;
-
- ILifecycleMapping getLifecycleMapping(IMavenProjectFacade projectFacade)
- throws CoreException;
+ void updateProjectConfiguration(MavenUpdateRequest request, IProgressMonitor monitor) throws CoreException;
+
+ ILifecycleMapping getLifecycleMapping(IMavenProjectFacade projectFacade) throws CoreException;
/**
* Adds the maven builder to the specified project.
@@ -98,5 +96,5 @@ public interface IProjectConfigurationManager {
* PROVISIONAL
*/
public boolean setResolverConfiguration(IProject project, ResolverConfiguration configuration);
-
+
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java
index d5a8ea83..f17f6470 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java
@@ -24,6 +24,7 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.SubMonitor;
import org.eclipse.core.runtime.SubProgressMonitor;
+
import org.apache.maven.model.Model;
import org.apache.maven.model.Profile;
@@ -37,10 +38,13 @@ import org.eclipse.m2e.core.internal.Messages;
*/
public class LocalProjectScanner extends AbstractProjectScanner<MavenProjectInfo> {
private final File workspaceRoot;
+
private final List<String> folders;
+
private final boolean basedirRemameRequired;
private Set<File> scannedFolders = new HashSet<File>();
+
private final MavenModelManager modelManager;
public LocalProjectScanner(File workspaceRoot, String folder, boolean needsRename, MavenModelManager modelManager) {
@@ -57,7 +61,7 @@ public class LocalProjectScanner extends AbstractProjectScanner<MavenProjectInfo
public void run(IProgressMonitor monitor) throws InterruptedException {
SubMonitor subMonitor = SubMonitor.convert(monitor, Messages.LocalProjectScanner_task_scanning, 1);
-
+
subMonitor.beginTask(Messages.LocalProjectScanner_task_scanning, IProgressMonitor.UNKNOWN);
try {
for(String folderName : folders) {
@@ -86,7 +90,7 @@ public class LocalProjectScanner extends AbstractProjectScanner<MavenProjectInfo
return;
}
try {
- if (scannedFolders.contains(baseDir.getCanonicalFile())) {
+ if(scannedFolders.contains(baseDir.getCanonicalFile())) {
return;
}
} catch(IOException ex1) {
@@ -117,17 +121,17 @@ public class LocalProjectScanner extends AbstractProjectScanner<MavenProjectInfo
private MavenProjectInfo readMavenProjectInfo(File baseDir, String modulePath, MavenProjectInfo parentInfo) {
try {
baseDir = baseDir.getCanonicalFile();
-
+
File pomFile = new File(baseDir, IMavenConstants.POM_FILE_NAME);
if(!pomFile.exists()) {
return null;
}
- if (!scannedFolders.add(baseDir)) {
+ if(!scannedFolders.add(baseDir)) {
return null; // we already know this project
//mkleint: well, if the project is first scanned standalone and later scanned via parent reference, the parent ref gets thrown away??
}
-
+
Model model = modelManager.readMavenModel(pomFile);
String pomName = modulePath + "/" + IMavenConstants.POM_FILE_NAME; //$NON-NLS-1$
@@ -140,7 +144,7 @@ public class LocalProjectScanner extends AbstractProjectScanner<MavenProjectInfo
Map<String, Set<String>> modules = new LinkedHashMap<String, Set<String>>();
for(String module : model.getModules()) {
- if (module.endsWith("/pom.xml")) {
+ if(module.endsWith("/pom.xml")) {
module = module.substring(0, module.length() - "/pom.xml".length());
}
modules.put(module, new HashSet<String>());
@@ -148,7 +152,7 @@ public class LocalProjectScanner extends AbstractProjectScanner<MavenProjectInfo
for(Profile profile : model.getProfiles()) {
for(String module : profile.getModules()) {
- if (module.endsWith("/pom.xml")) {
+ if(module.endsWith("/pom.xml")) {
module = module.substring(0, module.length() - "/pom.xml".length());
}
Set<String> profiles = modules.get(module);
@@ -193,7 +197,7 @@ public class LocalProjectScanner extends AbstractProjectScanner<MavenProjectInfo
private int getBasedirRename(MavenProjectInfo mavenProjectInfo) throws IOException {
- if (basedirRemameRequired) {
+ if(basedirRemameRequired) {
return MavenProjectInfo.RENAME_REQUIRED;
}
return MavenProjectInfo.RENAME_NO;
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectChangedEvent.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectChangedEvent.java
index 56a3d6e8..9e5645d9 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectChangedEvent.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectChangedEvent.java
@@ -13,10 +13,11 @@ package org.eclipse.m2e.core.project;
import org.eclipse.core.resources.IFile;
+
public class MavenProjectChangedEvent {
private final IFile source;
-
+
private final int kind;
private final int flags;
@@ -35,7 +36,8 @@ public class MavenProjectChangedEvent {
private final IMavenProjectFacade mavenProject;
- public MavenProjectChangedEvent(IFile source, int kind, int flags, IMavenProjectFacade oldMavenProject, IMavenProjectFacade mavenProject) {
+ public MavenProjectChangedEvent(IFile source, int kind, int flags, IMavenProjectFacade oldMavenProject,
+ IMavenProjectFacade mavenProject) {
this.source = source;
this.kind = kind;
this.flags = flags;
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectInfo.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectInfo.java
index 85b62efc..03747e46 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectInfo.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectInfo.java
@@ -38,7 +38,7 @@ public class MavenProjectInfo {
public static final int RENAME_NO = 0;
/**
- * Project basedir MUST be ranamed to match workspace project name.
+ * Project basedir MUST be ranamed to match workspace project name.
*/
public static final int RENAME_REQUIRED = 2;
@@ -69,7 +69,7 @@ public class MavenProjectInfo {
public void setPomFile(File pomFile) {
File oldDir = this.pomFile.getParentFile();
File newDir = pomFile.getParentFile();
-
+
for(MavenProjectInfo projectInfo : projects.values()) {
File childPom = projectInfo.getPomFile();
if(isSubDir(oldDir, childPom.getParentFile())) {
@@ -78,15 +78,15 @@ public class MavenProjectInfo {
projectInfo.setPomFile(new File(newDir, path));
}
}
-
+
this.pomFile = pomFile;
}
/** @deprecated use set/get BasedirRename */
public void setNeedsRename(boolean needsRename) {
- setBasedirRename(needsRename? RENAME_REQUIRED: RENAME_NO);
+ setBasedirRename(needsRename ? RENAME_REQUIRED : RENAME_NO);
}
-
+
/** @deprecated use set/get BasedirRenamePolicy */
public boolean isNeedsRename() {
return getBasedirRename() == RENAME_REQUIRED;
@@ -110,11 +110,11 @@ public class MavenProjectInfo {
if(parentDir.equals(subDir)) {
return true;
}
-
- if(subDir.getParentFile()!=null) {
+
+ if(subDir.getParentFile() != null) {
return isSubDir(parentDir, subDir.getParentFile());
}
-
+
return false;
}
@@ -131,7 +131,7 @@ public class MavenProjectInfo {
throw new RuntimeException(ex);
}
MavenProjectInfo i = projects.get(key);
- if(i==null) {
+ if(i == null) {
projects.put(key, info);
} else {
log.error("Project info " + this + " already has a child project info with key '" + key + "'"); //$NON-NLS-3$
@@ -140,45 +140,45 @@ public class MavenProjectInfo {
}
}
}
-
+
public void addProfile(String profileId) {
- if(profileId!=null) {
+ if(profileId != null) {
this.profiles.add(profileId);
}
}
-
+
public void addProfiles(Collection<String> profiles) {
this.profiles.addAll(profiles);
}
-
+
public String getLabel() {
return this.label;
}
-
+
public File getPomFile() {
return this.pomFile;
}
-
+
public Model getModel() {
return this.model;
}
-
+
public void setModel(Model model) {
this.model = model;
}
-
+
public Collection<MavenProjectInfo> getProjects() {
return this.projects.values();
}
-
+
public MavenProjectInfo getParent() {
return this.parent;
}
-
+
public Set<String> getProfiles() {
return this.profiles;
}
-
+
public boolean equals(Object obj) {
if(obj instanceof MavenProjectInfo) {
MavenProjectInfo info = (MavenProjectInfo) obj;
@@ -189,9 +189,9 @@ public class MavenProjectInfo {
}
return false;
}
-
+
public int hashCode() {
- return pomFile==null ? 0 : pomFile.hashCode();
+ return pomFile == null ? 0 : pomFile.hashCode();
}
public String toString() {
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectUtils.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectUtils.java
index cbcf60e6..11e62082 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectUtils.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectUtils.java
@@ -22,9 +22,10 @@ import org.eclipse.core.runtime.Path;
import org.apache.maven.model.Resource;
+
/**
* Collection of helper methods to map between MavenProject and IResource.
- *
+ *
* @author igor
*/
public class MavenProjectUtils {
@@ -75,7 +76,7 @@ public class MavenProjectUtils {
* exist or is not a member of this project.
*/
public static IPath getFullPath(IProject project, File file) {
- if (project == null || file == null) {
+ if(project == null || file == null) {
return null;
}
@@ -83,13 +84,13 @@ public class MavenProjectUtils {
if(projectPath == null) {
return null;
}
-
+
IPath filePath = new Path(file.getAbsolutePath());
- if (!projectPath.isPrefixOf(filePath)) {
+ if(!projectPath.isPrefixOf(filePath)) {
return null;
}
IResource resource = project.findMember(filePath.removeFirstSegments(projectPath.segmentCount()));
- if (resource == null) {
+ if(resource == null) {
return null;
}
return resource.getFullPath();
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ProjectImportConfiguration.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ProjectImportConfiguration.java
index 760a7005..9deaf7a8 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ProjectImportConfiguration.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ProjectImportConfiguration.java
@@ -68,7 +68,7 @@ public class ProjectImportConfiguration {
return projectNameTemplate;
}
- /**
+ /**
* Calculates the project name for the given model.
*
* @deprecated This method does not take into account MavenProjectInfo.basedirRename
@@ -90,13 +90,13 @@ public class ProjectImportConfiguration {
}
// XXX needs MavenProjectManager update to resolve groupId and version
- return projectNameTemplate.replaceAll(GROUP_ID, groupId).replaceAll(ARTIFACT_ID, artifactId).replaceAll(VERSION,
- version == null ? "" : version); //$NON-NLS-1$
+ return projectNameTemplate.replaceAll(GROUP_ID, groupId).replaceAll(ARTIFACT_ID, artifactId)
+ .replaceAll(VERSION, version == null ? "" : version); //$NON-NLS-1$
}
/**
- * @deprecated This method does not take into account MavenProjectInfo.basedirRename.
- * Use IMavenProjectImportResult#getProject instead
+ * @deprecated This method does not take into account MavenProjectInfo.basedirRename. Use
+ * IMavenProjectImportResult#getProject instead
*/
public IProject getProject(IWorkspaceRoot root, Model model) {
return root.getProject(getProjectName(model));
@@ -106,7 +106,7 @@ public class ProjectImportConfiguration {
* @deprecated business logic does not belong to a value object
*/
public IStatus validateProjectName(Model model) {
- String projectName = getProjectName(model);
+ String projectName = getProjectName(model);
IWorkspace workspace = ResourcesPlugin.getWorkspace();
// check if the project name is valid
@@ -120,7 +120,7 @@ public class ProjectImportConfiguration {
return new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, 0,
NLS.bind(Messages.importProjectExists, projectName), null); //$NON-NLS-1$
}
-
+
return Status.OK_STATUS;
}
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ResolverConfiguration.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ResolverConfiguration.java
index c16083d6..9c4c5fa2 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ResolverConfiguration.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/ResolverConfiguration.java
@@ -15,12 +15,11 @@ import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
+
/**
- * Resolver configuration holder.
+ * Resolver configuration holder. TODO need a better name, this configures all aspects of maven project in eclipse, not
+ * just dependency resolution.
*
- * TODO need a better name, this configures all aspects of maven project in eclipse,
- * not just dependency resolution.
- *
* @author Eugene Kuleshov
*/
public class ResolverConfiguration implements Serializable {
@@ -36,8 +35,7 @@ public class ResolverConfiguration implements Serializable {
return this.resolveWorkspaceProjects;
}
-
- /**
+ /**
* @deprecated use {@link #getSelectedProfiles()} instead.
*/
@Deprecated
@@ -60,7 +58,7 @@ public class ResolverConfiguration implements Serializable {
public void setResolveWorkspaceProjects(boolean resolveWorkspaceProjects) {
this.resolveWorkspaceProjects = resolveWorkspaceProjects;
}
-
+
/**
* @deprecated use {@link #setSelectedProfiles(String)} instead.
*/
@@ -74,16 +72,16 @@ public class ResolverConfiguration implements Serializable {
}
private static List<String> parseProfiles(String profilesAsText, boolean status) {
- List<String> profiles;
- if (profilesAsText != null && profilesAsText.trim().length() > 0) {
- String[] profilesArray = profilesAsText.split("[,\\s\\|]");
+ List<String> profiles;
+ if(profilesAsText != null && profilesAsText.trim().length() > 0) {
+ String[] profilesArray = profilesAsText.split("[,\\s\\|]");
profiles = new ArrayList<String>(profilesArray.length);
- for (String profile : profilesArray) {
- boolean isActive = !profile.startsWith("!");
- if (status == isActive) {
- profile = (isActive)? profile : profile.substring(1);
- profiles.add(profile);
- }
+ for(String profile : profilesArray) {
+ boolean isActive = !profile.startsWith("!");
+ if(status == isActive) {
+ profile = (isActive) ? profile : profile.substring(1);
+ profiles.add(profile);
+ }
}
} else {
profiles = new ArrayList<String>(0);
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/AbstractProjectConfigurator.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/AbstractProjectConfigurator.java
index fae85a91..6df82df2 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/AbstractProjectConfigurator.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/AbstractProjectConfigurator.java
@@ -48,8 +48,8 @@ import org.eclipse.m2e.core.lifecyclemapping.model.IPluginExecutionMetadata;
import org.eclipse.m2e.core.lifecyclemapping.model.PluginExecutionAction;
import org.eclipse.m2e.core.project.IMavenProjectChangedListener;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
-import org.eclipse.m2e.core.project.MavenProjectChangedEvent;
import org.eclipse.m2e.core.project.IMavenProjectRegistry;
+import org.eclipse.m2e.core.project.MavenProjectChangedEvent;
/**
@@ -161,7 +161,8 @@ public abstract class AbstractProjectConfigurator implements IExecutableExtensio
* @since 1.3
*/
// TODO move to a helper
- public static void addNature(IProject project, String natureId, int updateFlags, IProgressMonitor monitor) throws CoreException {
+ public static void addNature(IProject project, String natureId, int updateFlags, IProgressMonitor monitor)
+ throws CoreException {
if(!project.hasNature(natureId)) {
IProjectDescription description = project.getDescription();
String[] prevNatures = description.getNatureIds();
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/ILifecycleMappingConfiguration.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/ILifecycleMappingConfiguration.java
index e6d75699..964846d7 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/ILifecycleMappingConfiguration.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/ILifecycleMappingConfiguration.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.project.configurator;
import java.util.List;
@@ -17,11 +18,11 @@ import org.codehaus.plexus.util.xml.Xpp3Dom;
import org.eclipse.m2e.core.lifecyclemapping.model.IPluginExecutionMetadata;
+
/**
* ILifecycleMappingConfiguration
- *
- * @author igor
*
+ * @author igor
* @noextend
* @noimplement
*/
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/conversion/AbstractProjectConversionParticipant.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/conversion/AbstractProjectConversionParticipant.java
index 5562d13e..a8bf246f 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/conversion/AbstractProjectConversionParticipant.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/conversion/AbstractProjectConversionParticipant.java
@@ -8,6 +8,7 @@
* Contributors:
* Red Hat, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.core.project.conversion;
import java.util.Collections;
@@ -22,9 +23,10 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.apache.maven.model.Model;
+
/**
- * Used to convert existing Eclipse project configuration to the corresponding Maven Model.
- *
+ * Used to convert existing Eclipse project configuration to the corresponding Maven Model.
+ *
* @author Fred Bricon
* @since 1.1
*/
@@ -36,16 +38,16 @@ public abstract class AbstractProjectConversionParticipant implements IExecutabl
protected Set<String> restrictedPackagings;
- private String name;
-
- private String id;
-
+ private String name;
+
+ private String id;
+
public String getName() {
return name;
}
public String getId() {
- if (id == null) {
+ if(id == null) {
id = getClass().getName();
}
return id;
@@ -60,52 +62,52 @@ public abstract class AbstractProjectConversionParticipant implements IExecutabl
* Checks if this participant can change the Maven Model from this Eclipse project configuration
*/
public abstract boolean accept(IProject project) throws CoreException;
-
+
/**
* Converts existing Eclipse project configuration to Maven model
*/
public abstract void convert(IProject project, Model model, IProgressMonitor monitor) throws CoreException;
-
-
+
public String toString() {
- return (name == null)?getId():name;
+ return (name == null) ? getId() : name;
}
/**
* Returns all the Maven packagings this conversion participant is restricted to.
*
* @return an unmodifiable {@link Set} copy of Maven packagings, can be <code>null</code>.
- * @since 1.3
+ * @since 1.3
*/
public Set<String> getRestrictedPackagings() {
- return restrictedPackagings == null? null : Collections.unmodifiableSet(restrictedPackagings);
+ return restrictedPackagings == null ? null : Collections.unmodifiableSet(restrictedPackagings);
}
/**
* Checks if this conversion participant allows the given Maven packaging to be converted :<br/>
- * If there are no packaging restrictions or the packaging restrictions contain this packaging,
- * then it's considered compatible.
+ * If there are no packaging restrictions or the packaging restrictions contain this packaging, then it's considered
+ * compatible.
*
* @param packaging the Maven packaging to check
* @return <code>true</code> if the packaging is compatible with this conversion participant.
*/
public boolean isPackagingCompatible(String packaging) {
boolean isCompatible = restrictedPackagings == null || restrictedPackagings.isEmpty() //no restrictions
- || restrictedPackagings.contains(packaging);
+ || restrictedPackagings.contains(packaging);
return isCompatible;
}
/**
* Adds a Maven packaging to the set of restricted, compatible packagings for this converter.
+ *
* @param packaging the compatible Maven packaging to add
*/
public void addRestrictedPackaging(String packaging) {
- if (packaging != null) {
- if (restrictedPackagings == null) {
+ if(packaging != null) {
+ if(restrictedPackagings == null) {
restrictedPackagings = new HashSet<String>();
}
restrictedPackagings.add(packaging);
}
}
-
+
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/conversion/IProjectConversionManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/conversion/IProjectConversionManager.java
index d4b39f20..7665e8c5 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/conversion/IProjectConversionManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/conversion/IProjectConversionManager.java
@@ -34,8 +34,7 @@ public interface IProjectConversionManager {
void convert(IProject project, Model model, IProgressMonitor monitor) throws CoreException;
/**
- * Returns an unmodifiable list of all {@link AbstractProjectConversionParticipant}s applying
- * to the given project.
+ * Returns an unmodifiable list of all {@link AbstractProjectConversionParticipant}s applying to the given project.
* Packaging restrictions on {@link AbstractProjectConversionParticipant}s will be ignored.
*
* @deprecated since 1.3 Use {@link #getConversionParticipants(IProject, String)} instead.
@@ -44,10 +43,11 @@ public interface IProjectConversionManager {
List<AbstractProjectConversionParticipant> getConversionParticipants(IProject project) throws CoreException;
/**
- * Returns an unmodifiable list of all {@link AbstractProjectConversionParticipant}s applying
- * to the given project and packaging.
+ * Returns an unmodifiable list of all {@link AbstractProjectConversionParticipant}s applying to the given project and
+ * packaging.
*
* @since 1.3
*/
- List<AbstractProjectConversionParticipant> getConversionParticipants(IProject project, String packaging) throws CoreException;
+ List<AbstractProjectConversionParticipant> getConversionParticipants(IProject project, String packaging)
+ throws CoreException;
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/repository/IRepository.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/repository/IRepository.java
index 285cc99e..2064940c 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/repository/IRepository.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/repository/IRepository.java
@@ -15,9 +15,10 @@ import java.io.File;
import org.apache.maven.wagon.authentication.AuthenticationInfo;
+
/**
* Repository tracked by repository registry.
- *
+ *
* @author igor
*/
public interface IRepository {
@@ -42,45 +43,36 @@ public interface IRepository {
public AuthenticationInfo getAuthenticationInfo();
/**
- * Repository URL
+ * Repository URL
*/
public String getUrl();
/**
- * For local repositories, returns basedir of repository contents.
- *
- * Returns null for remote repositories;
+ * For local repositories, returns basedir of repository contents. Returns null for remote repositories;
*/
public File getBasedir();
/**
- * Repository id element as defined in settings.xml or pom.xml file.
- *
- * Note that repository id is a reference to server element in settings.xml file,
- * it does not uniquely identify a repository.
+ * Repository id element as defined in settings.xml or pom.xml file. Note that repository id is a reference to server
+ * element in settings.xml file, it does not uniquely identify a repository.
*/
public String getId();
/**
- * Unique repository id. Generated based on combination of repository url and userId.
- * Can be used to store repository-related information on local filesystem.
+ * Unique repository id. Generated based on combination of repository url and userId. Can be used to store
+ * repository-related information on local filesystem.
*/
public String getUid();
/**
- * Indicates that repository id matches mirrorOf clause of a mirror. In other
- * words, all repository requests will be redirected to a mirror.
- *
- * If null, repository is accessed directly.
- *
- * TODO decide return value format.
+ * Indicates that repository id matches mirrorOf clause of a mirror. In other words, all repository requests will be
+ * redirected to a mirror. If null, repository is accessed directly. TODO decide return value format.
*/
public String getMirrorId();
/**
- * For repository mirrors, returns value of mirrorOf element as defined in settings.xml.
- *
- * Returns null for other repositories.
+ * For repository mirrors, returns value of mirrorOf element as defined in settings.xml. Returns null for other
+ * repositories.
*/
public String getMirrorOf();
@@ -92,7 +84,7 @@ public interface IRepository {
public boolean isScope(int scope);
/**
- * Human readable repository identifier
+ * Human readable repository identifier
*/
public String toString();
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/repository/IRepositoryRegistry.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/repository/IRepositoryRegistry.java
index 5e676adf..ccffae8e 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/repository/IRepositoryRegistry.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/repository/IRepositoryRegistry.java
@@ -15,19 +15,15 @@ import java.util.List;
import org.eclipse.m2e.core.embedder.ArtifactRepositoryRef;
+
/**
- * Registry of repositories accessible by m2e.
- *
- * The registry automatically tracks the following repositories
- *
+ * Registry of repositories accessible by m2e. The registry automatically tracks the following repositories
* <dl>
* <li>Maven local repository
* <li>Workspace repository
* <li>Mirrors defined in settings.xml
- * <li>Repositories and pluginRepositories defined in active profiles in
- * settings.xml
- * <li>Repositories and pluginRepositories defined in pom.xml files of
- * workspace Maven projects.
+ * <li>Repositories and pluginRepositories defined in active profiles in settings.xml
+ * <li>Repositories and pluginRepositories defined in pom.xml files of workspace Maven projects.
* </dl>
*
* @author igor
@@ -59,7 +55,6 @@ public interface IRepositoryRegistry {
*/
public static final int SCOPE_PROJECT = 1 << 4;
-
public List<IRepository> getRepositories(int scope);
public IRepository getWorkspaceRepository();
diff --git a/org.eclipse.m2e.discovery/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.discovery/.settings/org.eclipse.jdt.core.prefs
index 8e233dea..80d9c54b 100644
--- a/org.eclipse.m2e.discovery/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.m2e.discovery/.settings/org.eclipse.jdt.core.prefs
@@ -1,4 +1,3 @@
-#Sat Jul 30 19:01:59 MSD 2011
eclipse.preferences.version=1
org.eclipse.jdt.core.builder.cleanOutputFolder=clean
org.eclipse.jdt.core.builder.duplicateResourceTask=warning
@@ -70,7 +69,7 @@ org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
org.eclipse.jdt.core.compiler.problem.nullReference=warning
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
@@ -127,12 +126,14 @@ org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=2
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
org.eclipse.jdt.core.formatter.blank_lines_before_field=1
@@ -262,12 +263,14 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invoca
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
@@ -291,6 +294,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
@@ -346,6 +350,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
@@ -355,6 +360,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=inser
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
@@ -381,6 +387,7 @@ org.eclipse.jdt.core.formatter.tabulation.size=2
org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
org.eclipse.jdt.core.incompatibleJDKLevel=ignore
org.eclipse.jdt.core.incompleteClasspath=error
diff --git a/org.eclipse.m2e.discovery/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.m2e.discovery/.settings/org.eclipse.jdt.ui.prefs
index db1351d7..595d9975 100644
--- a/org.eclipse.m2e.discovery/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.m2e.discovery/.settings/org.eclipse.jdt.ui.prefs
@@ -1,4 +1,66 @@
eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=_m2 plugin
formatter_settings_version=12
+org.eclipse.jdt.ui.exception.name=ex
+org.eclipse.jdt.ui.gettersetter.use.is=true
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=java;javax;org;org.w3c;org.xml;org.apache;com;junit;org.eclipse;org.codehaus;org.apache.lucene;org.apache.maven;org.sonatype;org.eclipse.m2e;
org.eclipse.jdt.ui.javadoc=true
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2008 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *******************************************************************************/&\#13;\n</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nMavenLogger.log(${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+org.eclipse.jdt.ui.keywordthis=true
+org.eclipse.jdt.ui.ondemandthreshold=99
+org.eclipse.jdt.ui.overrideannotation=false
+org.eclipse.jdt.ui.staticondemandthreshold=99
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/DiscoveryActivator.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/DiscoveryActivator.java
index f9a0bb40..5b472222 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/DiscoveryActivator.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/DiscoveryActivator.java
@@ -8,11 +8,13 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.internal.discovery;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+
public class DiscoveryActivator extends AbstractUIPlugin {
@@ -36,4 +38,4 @@ public class DiscoveryActivator extends AbstractUIPlugin {
public static DiscoveryActivator getDefault() {
return plugin;
}
-} \ No newline at end of file
+}
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/InstallCatalogItemMappingLabelProvider.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/InstallCatalogItemMappingLabelProvider.java
index 62c82698..93b19ead 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/InstallCatalogItemMappingLabelProvider.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/InstallCatalogItemMappingLabelProvider.java
@@ -9,10 +9,12 @@
package org.eclipse.m2e.internal.discovery;
import org.eclipse.core.runtime.IAdapterFactory;
+
import org.eclipse.m2e.core.internal.lifecyclemapping.discovery.ILifecycleMappingRequirement;
import org.eclipse.m2e.core.internal.lifecyclemapping.discovery.LifecycleMappingConfiguration;
import org.eclipse.m2e.core.ui.internal.lifecyclemapping.ILifecycleMappingLabelProvider;
+
//TODO : can probably be removed..
@SuppressWarnings({"restriction", "unchecked", "rawtypes"})
public class InstallCatalogItemMappingLabelProvider implements IAdapterFactory {
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/InstallCatalogItemMavenDiscoveryProposal.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/InstallCatalogItemMavenDiscoveryProposal.java
index 6bea7107..fea74465 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/InstallCatalogItemMavenDiscoveryProposal.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/InstallCatalogItemMavenDiscoveryProposal.java
@@ -9,6 +9,7 @@
package org.eclipse.m2e.internal.discovery;
import org.eclipse.equinox.internal.p2.discovery.model.CatalogItem;
+
import org.eclipse.m2e.core.internal.lifecyclemapping.discovery.IMavenDiscoveryProposal;
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscovery.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscovery.java
index bee80939..e5773c51 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscovery.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscovery.java
@@ -22,27 +22,30 @@ import java.util.Collection;
import java.util.Collections;
import java.util.List;
-import org.codehaus.plexus.util.IOUtil;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-import org.codehaus.plexus.util.xml.Xpp3DomBuilder;
-import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.equinox.internal.p2.discovery.Catalog;
import org.eclipse.equinox.internal.p2.discovery.DiscoveryCore;
import org.eclipse.equinox.internal.p2.discovery.model.CatalogItem;
import org.eclipse.equinox.internal.p2.discovery.model.Tag;
import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.internal.Workbench;
+
+import org.codehaus.plexus.util.IOUtil;
+import org.codehaus.plexus.util.xml.Xpp3Dom;
+import org.codehaus.plexus.util.xml.Xpp3DomBuilder;
+import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
+
import org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory;
import org.eclipse.m2e.core.internal.lifecyclemapping.model.LifecycleMappingMetadataSource;
import org.eclipse.m2e.core.project.configurator.MojoExecutionKey;
import org.eclipse.m2e.internal.discovery.strategy.M2ERemoteBundleDiscoveryStrategy;
import org.eclipse.m2e.internal.discovery.wizards.MavenCatalogConfiguration;
import org.eclipse.m2e.internal.discovery.wizards.MavenDiscoveryWizard;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.internal.Workbench;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
@SuppressWarnings("restriction")
@@ -60,9 +63,9 @@ public class MavenDiscovery {
private static final Tag MAVEN_TAG = new Tag("maven", Messages.MavenDiscovery_Wizard_MavenTag); //$NON-NLS-1$
public static final String DEFAULT_URL = "http://download.eclipse.org/technology/m2e/discovery/directory-1.1.xml"; //$NON-NLS-1$
-
- public static final String PATH = System.getProperty("m2e.discovery.url", DEFAULT_URL); //$NON-NLS-1$
-
+
+ public static final String PATH = System.getProperty("m2e.discovery.url", DEFAULT_URL); //$NON-NLS-1$
+
public static final String LIFECYCLE_PATH = "lifecycle/"; //$NON-NLS-1$
public static final String LIFECYCLE_EXT = ".xml"; //$NON-NLS-1$
@@ -139,7 +142,7 @@ public class MavenDiscovery {
}
// To ensure we can delete the temporary file we need to prevent caching, see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4386865
URLConnection conn = url.openConnection();
- if (conn instanceof JarURLConnection) {
+ if(conn instanceof JarURLConnection) {
((JarURLConnection) conn).setDefaultUseCaches(false);
}
InputStream is = conn.getInputStream();
@@ -197,7 +200,7 @@ public class MavenDiscovery {
configurators.add(id);
}
}
- } else if (LifecycleMappingFactory.EXTENSION_LIFECYCLE_MAPPINGS.equals(extensionPoint)) {
+ } else if(LifecycleMappingFactory.EXTENSION_LIFECYCLE_MAPPINGS.equals(extensionPoint)) {
Xpp3Dom[] lifecycleMappingsDom = extension.getChildren("lifecycleMapping"); //$NON-NLS-1$
for(Xpp3Dom lifecycleMapping : lifecycleMappingsDom) {
String id = lifecycleMapping.getAttribute("id"); //$NON-NLS-1$
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryIcons.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryIcons.java
index ad5f7ccb..1b5b0a7b 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryIcons.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryIcons.java
@@ -27,7 +27,7 @@ public class MavenDiscoveryIcons {
private static ImageRegistry imageRegistry;
public static final ImageDescriptor WIZARD_BANNER = create("banner.gif"); //$NON-NLS-1$
-
+
public static final ImageDescriptor QUICK_FIX_ICON = create("insp_sbook.gif"); //$NON-NLS-1$
private static ImageDescriptor create(String string) {
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryLauncher.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryLauncher.java
index 5f896513..9ce6d682 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryLauncher.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryLauncher.java
@@ -8,11 +8,13 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.internal.discovery;
-import org.eclipse.m2e.core.ui.internal.IMavenDiscovery;
import org.eclipse.swt.widgets.Shell;
+import org.eclipse.m2e.core.ui.internal.IMavenDiscovery;
+
@SuppressWarnings("restriction")
public class MavenDiscoveryLauncher implements IMavenDiscovery {
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryService.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryService.java
index 153eb80a..88406358 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryService.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryService.java
@@ -20,9 +20,12 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
-import org.apache.maven.execution.MavenExecutionRequest;
-import org.apache.maven.plugin.MojoExecution;
-import org.apache.maven.project.MavenProject;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.ServiceFactory;
+import org.osgi.framework.ServiceRegistration;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
@@ -41,6 +44,13 @@ import org.eclipse.equinox.p2.ui.ProvisioningUI;
import org.eclipse.jface.operation.IRunnableContext;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.window.Window;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.ui.statushandlers.StatusManager;
+
+import org.apache.maven.execution.MavenExecutionRequest;
+import org.apache.maven.plugin.MojoExecution;
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.embedder.IMaven;
import org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory;
@@ -60,13 +70,6 @@ import org.eclipse.m2e.core.project.configurator.MojoExecutionKey;
import org.eclipse.m2e.core.ui.internal.wizards.IMavenDiscoveryUI;
import org.eclipse.m2e.internal.discovery.operation.MavenDiscoveryInstallOperation;
import org.eclipse.m2e.internal.discovery.wizards.MavenDiscoveryUi;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.ui.statushandlers.StatusManager;
-import org.osgi.framework.Bundle;
-import org.osgi.framework.ServiceFactory;
-import org.osgi.framework.ServiceRegistration;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
@SuppressWarnings({"restriction", "rawtypes"})
@@ -208,7 +211,7 @@ public class MavenDiscoveryService implements IMavenDiscoveryUI, IMavenDiscovery
if(entry.getValue() != null) {
for(IPluginExecutionMetadata executionMapping : entry.getValue()) {
log.debug("mapping proposal {} => {}", entry.getKey().toString(), executionMapping.getAction().toString()); //$NON-NLS-1$
- IMavenDiscoveryProposal proposal = getProposal(((PluginExecutionMetadata)executionMapping).getSource());
+ IMavenDiscoveryProposal proposal = getProposal(((PluginExecutionMetadata) executionMapping).getSource());
if(proposal != null) {
// assumes installation of mapping proposal installs all required project configurators
put(proposals, new MojoExecutionMappingConfiguration.MojoExecutionMappingRequirement(entry.getKey()),
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/Messages.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/Messages.java
index cc8e8216..28421d3d 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/Messages.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/Messages.java
@@ -72,6 +72,7 @@ public class Messages extends NLS {
public static String DiscoveryPreferencePage_catalogUrl;
public static String DiscoveryPreferencePage_openCatalog;
+
public static String DiscoveryPreferencePage_link_text;
static {
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/handlers/MavenDiscoveryHandler.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/handlers/MavenDiscoveryHandler.java
index bb488d30..6699490d 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/handlers/MavenDiscoveryHandler.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/handlers/MavenDiscoveryHandler.java
@@ -14,9 +14,10 @@ package org.eclipse.m2e.internal.discovery.handlers;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.m2e.internal.discovery.MavenDiscovery;
import org.eclipse.ui.handlers.HandlerUtil;
+import org.eclipse.m2e.internal.discovery.MavenDiscovery;
+
public class MavenDiscoveryHandler extends AbstractHandler {
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java
index 53bf6e8b..3e5972d3 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java
@@ -20,19 +20,21 @@ import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.IMarkerResolution;
+import org.eclipse.ui.views.markers.WorkbenchMarkerResolution;
+
import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.core.project.configurator.MojoExecutionKey;
import org.eclipse.m2e.internal.discovery.MavenDiscovery;
import org.eclipse.m2e.internal.discovery.MavenDiscoveryIcons;
import org.eclipse.m2e.internal.discovery.Messages;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.IMarkerResolution;
-import org.eclipse.ui.views.markers.WorkbenchMarkerResolution;
+
//IMPORANT: if you decide to rename the class please correct code in PomQuickAssistProcessor as well..
public class DiscoveryWizardProposal extends WorkbenchMarkerResolution {
-
+
public DiscoveryWizardProposal() {
}
@@ -40,23 +42,24 @@ public class DiscoveryWizardProposal extends WorkbenchMarkerResolution {
public void run(IMarker marker) {
//by default we want save people some time by resolving discovery issues in one project/file in one shot..
try {
- IMarker[] fileMarkers = marker.getResource().findMarkers(IMavenConstants.MARKER_LIFECYCLEMAPPING_ID,
- true, IResource.DEPTH_INFINITE);
+ IMarker[] fileMarkers = marker.getResource().findMarkers(IMavenConstants.MARKER_LIFECYCLEMAPPING_ID, true,
+ IResource.DEPTH_INFINITE);
run(fileMarkers, new NullProgressMonitor());
return;
} catch(CoreException e) {
//doesn't matter, as a fallback run the one marker variant only
}
-
+
String type = marker.getAttribute(IMavenConstants.MARKER_ATTR_EDITOR_HINT, null);
if(IMavenConstants.EDITOR_HINT_NOT_COVERED_MOJO_EXECUTION.equals(type)) {
- MavenDiscovery
- .launchWizard(Collections.EMPTY_LIST, Collections.singleton(getMojoExecution(marker)), Collections.EMPTY_LIST, Collections.EMPTY_LIST);
+ MavenDiscovery.launchWizard(Collections.EMPTY_LIST, Collections.singleton(getMojoExecution(marker)),
+ Collections.EMPTY_LIST, Collections.EMPTY_LIST);
} else if(IMavenConstants.EDITOR_HINT_UNKNOWN_LIFECYCLE_ID.equals(type)) {
MavenDiscovery.launchWizard(Collections.EMPTY_LIST, Collections.EMPTY_LIST,
Collections.singleton(getLifecycleId(marker)), Collections.EMPTY_LIST);
} else if(IMavenConstants.EDITOR_HINT_MISSING_CONFIGURATOR.equals(type)) {
- MavenDiscovery.launchWizard(Collections.EMPTY_LIST, Collections.EMPTY_LIST, Collections.EMPTY_LIST, Collections.singleton(getConfiguratorId(marker)));
+ MavenDiscovery.launchWizard(Collections.EMPTY_LIST, Collections.EMPTY_LIST, Collections.EMPTY_LIST,
+ Collections.singleton(getConfiguratorId(marker)));
}
}
@@ -116,8 +119,9 @@ public class DiscoveryWizardProposal extends WorkbenchMarkerResolution {
if(MavenDiscoveryMarkerResolutionGenerator.canResolve(marker)) {
//a way to filter out the markers with the current proposal
try {
- IMarkerResolution[] cached = (IMarkerResolution[]) marker.getResource().getSessionProperty(MavenDiscoveryMarkerResolutionGenerator.QUALIFIED);
- if (cached == null || cached[0] != this) {
+ IMarkerResolution[] cached = (IMarkerResolution[]) marker.getResource().getSessionProperty(
+ MavenDiscoveryMarkerResolutionGenerator.QUALIFIED);
+ if(cached == null || cached[0] != this) {
handled.add(marker);
}
} catch(CoreException e) {
@@ -131,4 +135,4 @@ public class DiscoveryWizardProposal extends WorkbenchMarkerResolution {
public String getLabel() {
return Messages.DiscoveryWizardProposal_Label;
}
-} \ No newline at end of file
+}
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/MavenDiscoveryMarkerResolutionGenerator.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/MavenDiscoveryMarkerResolutionGenerator.java
index d38650ae..703f6782 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/MavenDiscoveryMarkerResolutionGenerator.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/MavenDiscoveryMarkerResolutionGenerator.java
@@ -14,16 +14,17 @@ package org.eclipse.m2e.internal.discovery.markers;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.QualifiedName;
-import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.ui.IMarkerResolution;
import org.eclipse.ui.IMarkerResolutionGenerator;
import org.eclipse.ui.IMarkerResolutionGenerator2;
+import org.eclipse.m2e.core.internal.IMavenConstants;
+
public class MavenDiscoveryMarkerResolutionGenerator implements IMarkerResolutionGenerator, IMarkerResolutionGenerator2 {
static QualifiedName QUALIFIED = new QualifiedName("org.eclipse.m2e.discovery", "discoveryResolution"); //$NON-NLS-1$ //$NON-NLS-2$
-
+
public boolean hasResolutions(IMarker marker) {
return canResolve(marker);
}
@@ -34,7 +35,7 @@ public class MavenDiscoveryMarkerResolutionGenerator implements IMarkerResolutio
//for each file have just one instance of the discover proposal array.
//important for 335299
IMarkerResolution[] cached = (IMarkerResolution[]) marker.getResource().getSessionProperty(QUALIFIED);
- if (cached == null) {
+ if(cached == null) {
cached = new IMarkerResolution[] {new DiscoveryWizardProposal()};
marker.getResource().setSessionProperty(QUALIFIED, cached);
}
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/operation/MavenDiscoveryInstallOperation.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/operation/MavenDiscoveryInstallOperation.java
index b48cb4c1..1b10fc7b 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/operation/MavenDiscoveryInstallOperation.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/operation/MavenDiscoveryInstallOperation.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.internal.discovery.operation;
import java.lang.reflect.InvocationTargetException;
@@ -40,10 +41,11 @@ import org.eclipse.equinox.p2.repository.metadata.IMetadataRepository;
import org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager;
import org.eclipse.equinox.p2.ui.ProvisioningUI;
import org.eclipse.jface.operation.IRunnableWithProgress;
+import org.eclipse.osgi.util.NLS;
+
import org.eclipse.m2e.internal.discovery.DiscoveryActivator;
import org.eclipse.m2e.internal.discovery.MavenDiscovery;
import org.eclipse.m2e.internal.discovery.Messages;
-import org.eclipse.osgi.util.NLS;
/*
@@ -71,14 +73,13 @@ public class MavenDiscoveryInstallOperation implements IRunnableWithProgress {
private boolean shouldResolve;
public MavenDiscoveryInstallOperation(Collection<CatalogItem> installableConnectors,
- IRunnableWithProgress postInstallHook,
- boolean restart) {
+ IRunnableWithProgress postInstallHook, boolean restart) {
this(installableConnectors, postInstallHook, restart, true, null);
}
public MavenDiscoveryInstallOperation(Collection<CatalogItem> installableConnectors,
- IRunnableWithProgress postInstallHook,
- boolean restart, boolean shouldResolve, Collection<String> projectsToConfigure) {
+ IRunnableWithProgress postInstallHook, boolean restart, boolean shouldResolve,
+ Collection<String> projectsToConfigure) {
this.installableConnectors = installableConnectors;
this.postInstallHook = postInstallHook;
this.restart = restart;
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/operation/RestartInstallOperation.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/operation/RestartInstallOperation.java
index 91b336e5..bf256367 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/operation/RestartInstallOperation.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/operation/RestartInstallOperation.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.internal.discovery.operation;
import java.lang.reflect.InvocationTargetException;
@@ -22,6 +23,7 @@ import org.eclipse.equinox.p2.operations.ProfileModificationJob;
import org.eclipse.equinox.p2.operations.ProvisioningJob;
import org.eclipse.equinox.p2.operations.ProvisioningSession;
import org.eclipse.jface.operation.IRunnableWithProgress;
+
import org.eclipse.m2e.core.ui.internal.wizards.AbstractCreateMavenProjectsOperation;
import org.eclipse.m2e.internal.discovery.startup.UpdateConfigurationStartup;
@@ -112,7 +114,7 @@ public class RestartInstallOperation extends InstallOperation {
// install
IStatus status = job.run(monitor);
- if (status.isOK() && postInstallHook != null) {
+ if(status.isOK() && postInstallHook != null) {
try {
postInstallHook.run(monitor);
} catch(InvocationTargetException e) {
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/preferences/DiscoveryPreferencePage.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/preferences/DiscoveryPreferencePage.java
index bc853938..e4cb064e 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/preferences/DiscoveryPreferencePage.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/preferences/DiscoveryPreferencePage.java
@@ -12,8 +12,6 @@
package org.eclipse.m2e.internal.discovery.preferences;
import org.eclipse.jface.preference.PreferencePage;
-import org.eclipse.m2e.internal.discovery.MavenDiscovery;
-import org.eclipse.m2e.internal.discovery.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
@@ -27,6 +25,9 @@ import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
+import org.eclipse.m2e.internal.discovery.MavenDiscovery;
+import org.eclipse.m2e.internal.discovery.Messages;
+
public class DiscoveryPreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/startup/UpdateConfigurationStartup.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/startup/UpdateConfigurationStartup.java
index c7b2bcc6..8b49f391 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/startup/UpdateConfigurationStartup.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/startup/UpdateConfigurationStartup.java
@@ -24,16 +24,17 @@ import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.MultiStatus;
import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.m2e.core.internal.IMavenConstants;
-import org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob;
-import org.eclipse.m2e.internal.discovery.DiscoveryActivator;
-import org.eclipse.m2e.internal.discovery.Messages;
import org.eclipse.ui.IStartup;
import org.eclipse.ui.internal.IPreferenceConstants;
import org.eclipse.ui.internal.Workbench;
import org.eclipse.ui.internal.util.PrefUtil;
import org.eclipse.ui.statushandlers.StatusManager;
+import org.eclipse.m2e.core.internal.IMavenConstants;
+import org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob;
+import org.eclipse.m2e.internal.discovery.DiscoveryActivator;
+import org.eclipse.m2e.internal.discovery.Messages;
+
@SuppressWarnings("restriction")
public class UpdateConfigurationStartup implements IStartup {
@@ -211,4 +212,4 @@ public class UpdateConfigurationStartup implements IStartup {
public static void clearSavedProjects() {
DiscoveryActivator.getDefault().getPreferenceStore().putValue(PROJECT_PREF, ""); //$NON-NLS-1$
}
-} \ No newline at end of file
+}
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/strategy/M2EConnectorDiscoveryExtensionReader.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/strategy/M2EConnectorDiscoveryExtensionReader.java
index ef6fd259..2a6003e3 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/strategy/M2EConnectorDiscoveryExtensionReader.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/strategy/M2EConnectorDiscoveryExtensionReader.java
@@ -9,6 +9,7 @@
* Tasktop Technologies - initial API and implementation
* Sonatype, Inc. - support for versioned IUs
*******************************************************************************/
+
package org.eclipse.m2e.internal.discovery.strategy;
import java.util.HashMap;
@@ -24,6 +25,7 @@ import org.eclipse.equinox.internal.p2.discovery.model.Icon;
import org.eclipse.equinox.internal.p2.discovery.model.Overview;
import org.eclipse.equinox.internal.p2.discovery.model.Tag;
import org.eclipse.equinox.internal.p2.discovery.model.ValidationException;
+
import org.eclipse.m2e.internal.discovery.Messages;
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/strategy/M2ERemoteBundleDiscoveryStrategy.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/strategy/M2ERemoteBundleDiscoveryStrategy.java
index d801d7d2..84b12955 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/strategy/M2ERemoteBundleDiscoveryStrategy.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/strategy/M2ERemoteBundleDiscoveryStrategy.java
@@ -9,6 +9,7 @@
* Tasktop Technologies - initial API and implementation
* Sonatype, Inc. - modified to support versioned IUs
*******************************************************************************/
+
package org.eclipse.m2e.internal.discovery.strategy;
import org.eclipse.core.runtime.IConfigurationElement;
@@ -25,9 +26,11 @@ import org.eclipse.equinox.internal.p2.discovery.model.CatalogCategory;
import org.eclipse.equinox.internal.p2.discovery.model.CatalogItem;
import org.eclipse.equinox.internal.p2.discovery.model.Certification;
import org.eclipse.equinox.internal.p2.discovery.model.ValidationException;
-import org.eclipse.m2e.internal.discovery.Messages;
import org.eclipse.osgi.util.NLS;
+import org.eclipse.m2e.internal.discovery.Messages;
+
+
@SuppressWarnings("restriction")
public class M2ERemoteBundleDiscoveryStrategy extends RemoteBundleDiscoveryStrategy {
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenCatalogConfiguration.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenCatalogConfiguration.java
index e0232ce3..29040cbc 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenCatalogConfiguration.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenCatalogConfiguration.java
@@ -16,6 +16,7 @@ import java.util.HashSet;
import java.util.Set;
import org.eclipse.equinox.internal.p2.ui.discovery.wizards.CatalogConfiguration;
+
import org.eclipse.m2e.core.project.configurator.MojoExecutionKey;
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenCatalogPage.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenCatalogPage.java
index 71520de1..f6d4b933 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenCatalogPage.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenCatalogPage.java
@@ -14,9 +14,10 @@ package org.eclipse.m2e.internal.discovery.wizards;
import org.eclipse.equinox.internal.p2.discovery.Catalog;
import org.eclipse.equinox.internal.p2.ui.discovery.wizards.CatalogPage;
import org.eclipse.equinox.internal.p2.ui.discovery.wizards.CatalogViewer;
-import org.eclipse.m2e.internal.discovery.Messages;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.m2e.internal.discovery.Messages;
+
@SuppressWarnings("restriction")
public class MavenCatalogPage extends CatalogPage {
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenCatalogViewer.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenCatalogViewer.java
index 6a96f8ba..054ef62b 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenCatalogViewer.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenCatalogViewer.java
@@ -15,6 +15,9 @@ import java.lang.reflect.InvocationTargetException;
import java.util.Collection;
import java.util.Set;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
@@ -29,6 +32,8 @@ import org.eclipse.jface.operation.IRunnableContext;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.window.IShellProvider;
import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.ui.statushandlers.StatusManager;
+
import org.eclipse.m2e.core.internal.lifecyclemapping.model.LifecycleMappingMetadata;
import org.eclipse.m2e.core.internal.lifecyclemapping.model.LifecycleMappingMetadataSource;
import org.eclipse.m2e.core.internal.lifecyclemapping.model.PluginExecutionMetadata;
@@ -36,9 +41,6 @@ import org.eclipse.m2e.core.project.configurator.MojoExecutionKey;
import org.eclipse.m2e.internal.discovery.DiscoveryActivator;
import org.eclipse.m2e.internal.discovery.MavenDiscovery;
import org.eclipse.m2e.internal.discovery.Messages;
-import org.eclipse.ui.statushandlers.StatusManager;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
@SuppressWarnings("restriction")
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryInstallWizard.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryInstallWizard.java
index 1c9f5c04..108f386a 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryInstallWizard.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryInstallWizard.java
@@ -24,6 +24,7 @@ import org.eclipse.equinox.p2.ui.AcceptLicensesWizardPage;
import org.eclipse.equinox.p2.ui.LoadMetadataRepositoryJob;
import org.eclipse.equinox.p2.ui.ProvisioningUI;
import org.eclipse.jface.wizard.IWizardPage;
+
import org.eclipse.m2e.internal.discovery.operation.RestartInstallOperation;
@@ -61,7 +62,7 @@ public class MavenDiscoveryInstallWizard extends PreselectedIUInstallWizard {
public void setResolutionResultsPage(ResolutionResultsWizardPage page) {
resolutionPage = page;
}
-
+
@Override
protected void initializeResolutionModelElements(Object[] selectedElements) {
super.initializeResolutionModelElements(selectedElements);
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryUi.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryUi.java
index 1912bcdd..96411213 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryUi.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryUi.java
@@ -9,6 +9,7 @@
* Tasktop Technologies - initial API and implementation
* Sonatype, Inc. - Modified to use local installation operation
*******************************************************************************/
+
package org.eclipse.m2e.internal.discovery.wizards;
import java.lang.reflect.InvocationTargetException;
@@ -26,13 +27,14 @@ import org.eclipse.equinox.p2.ui.ProvisioningUI;
import org.eclipse.jface.operation.IRunnableContext;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.m2e.internal.discovery.DiscoveryActivator;
-import org.eclipse.m2e.internal.discovery.operation.MavenDiscoveryInstallOperation;
-import org.eclipse.m2e.internal.discovery.operation.RestartInstallOperation;
import org.eclipse.osgi.util.NLS;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.statushandlers.StatusManager;
+import org.eclipse.m2e.internal.discovery.DiscoveryActivator;
+import org.eclipse.m2e.internal.discovery.operation.MavenDiscoveryInstallOperation;
+import org.eclipse.m2e.internal.discovery.operation.RestartInstallOperation;
+
/*
* This is used to replace the typical discovery install operation with our own which allows us to change
@@ -44,11 +46,11 @@ import org.eclipse.ui.statushandlers.StatusManager;
public abstract class MavenDiscoveryUi {
private MavenDiscoveryUi() {
- // don't allow clients to instantiate
- }
+ // don't allow clients to instantiate
+ }
/**
- * Installs specified
+ * Installs specified
*
* @param descriptors is the list of catalog items to install
* @param postInstallHook additional operation to perform after installation has completed and before restart, can be
@@ -58,23 +60,23 @@ public abstract class MavenDiscoveryUi {
*/
public static boolean install(List<CatalogItem> descriptors, IRunnableWithProgress postInstallHook,
IRunnableContext context) throws CoreException {
- try {
+ try {
MavenDiscoveryInstallOperation runner = new MavenDiscoveryInstallOperation(descriptors, postInstallHook, true);
- context.run(true, true, runner);
+ context.run(true, true, runner);
openInstallWizard(runner.getOperation(), true);
- } catch (InvocationTargetException e) {
- if (e.getCause() instanceof CoreException)
- throw (CoreException) e.getCause();
+ } catch(InvocationTargetException e) {
+ if(e.getCause() instanceof CoreException)
+ throw (CoreException) e.getCause();
IStatus status = new Status(IStatus.ERROR, DiscoveryActivator.PLUGIN_ID, NLS.bind(
Messages.ConnectorDiscoveryWizard_installProblems, new Object[] {e.getCause().getMessage()}), e.getCause());
- StatusManager.getManager().handle(status, StatusManager.SHOW | StatusManager.BLOCK | StatusManager.LOG);
- return false;
- } catch (InterruptedException e) {
- // canceled
- return false;
- }
- return true;
- }
+ StatusManager.getManager().handle(status, StatusManager.SHOW | StatusManager.BLOCK | StatusManager.LOG);
+ return false;
+ } catch(InterruptedException e) {
+ // canceled
+ return false;
+ }
+ return true;
+ }
public static int openInstallWizard(RestartInstallOperation operation, boolean blockOnOpen) {
MavenDiscoveryInstallWizard wizard = new MavenDiscoveryInstallWizard(ProvisioningUI.getDefaultUI(), operation,
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryWizard.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryWizard.java
index 3793e826..4018a555 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryWizard.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/wizards/MavenDiscoveryWizard.java
@@ -15,9 +15,10 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.equinox.internal.p2.discovery.Catalog;
import org.eclipse.equinox.internal.p2.ui.discovery.wizards.CatalogPage;
import org.eclipse.equinox.internal.p2.ui.discovery.wizards.DiscoveryWizard;
+import org.eclipse.ui.statushandlers.StatusManager;
+
import org.eclipse.m2e.internal.discovery.MavenDiscoveryIcons;
import org.eclipse.m2e.internal.discovery.Messages;
-import org.eclipse.ui.statushandlers.StatusManager;
@SuppressWarnings("restriction")
diff --git a/org.eclipse.m2e.editor.xml/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.editor.xml/.settings/org.eclipse.jdt.core.prefs
index 3bbcdfcf..80d9c54b 100644
--- a/org.eclipse.m2e.editor.xml/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.m2e.editor.xml/.settings/org.eclipse.jdt.core.prefs
@@ -1,5 +1,22 @@
-#Sat Jul 30 19:02:00 MSD 2011
eclipse.preferences.version=1
+org.eclipse.jdt.core.builder.cleanOutputFolder=clean
+org.eclipse.jdt.core.builder.duplicateResourceTask=warning
+org.eclipse.jdt.core.builder.invalidClasspath=abort
+org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder=ignore
+org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch
+org.eclipse.jdt.core.circularClasspath=error
+org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
+org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
+org.eclipse.jdt.core.codeComplete.argumentPrefixes=
+org.eclipse.jdt.core.codeComplete.argumentSuffixes=
+org.eclipse.jdt.core.codeComplete.fieldPrefixes=
+org.eclipse.jdt.core.codeComplete.fieldSuffixes=
+org.eclipse.jdt.core.codeComplete.localPrefixes=
+org.eclipse.jdt.core.codeComplete.localSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
@@ -7,11 +24,94 @@ org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.doc.comment.support=enabled
+org.eclipse.jdt.core.compiler.maxProblemPerUnit=100
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
+org.eclipse.jdt.core.compiler.problem.deadCode=warning
+org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
+org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
+org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
+org.eclipse.jdt.core.compiler.problem.nullReference=warning
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning
+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
+org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=enabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled
+org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH
+org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
@@ -22,15 +122,18 @@ org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=2
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
org.eclipse.jdt.core.formatter.blank_lines_before_field=1
@@ -66,10 +169,16 @@ org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert
org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=2
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
@@ -87,6 +196,7 @@ org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert
org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
@@ -153,12 +263,14 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invoca
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
@@ -182,6 +294,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
@@ -237,6 +350,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
@@ -246,6 +360,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=inser
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
@@ -255,6 +370,8 @@ org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
@@ -267,5 +384,10 @@ org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
org.eclipse.jdt.core.formatter.tabulation.char=space
org.eclipse.jdt.core.formatter.tabulation.size=2
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
+org.eclipse.jdt.core.incompatibleJDKLevel=ignore
+org.eclipse.jdt.core.incompleteClasspath=error
diff --git a/org.eclipse.m2e.editor.xml/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.m2e.editor.xml/.settings/org.eclipse.jdt.ui.prefs
index 83d1ff6e..595d9975 100644
--- a/org.eclipse.m2e.editor.xml/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.m2e.editor.xml/.settings/org.eclipse.jdt.ui.prefs
@@ -1,9 +1,66 @@
eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_m2 plugin
-formatter_settings_version=11
+formatter_settings_version=12
+org.eclipse.jdt.ui.exception.name=ex
+org.eclipse.jdt.ui.gettersetter.use.is=true
org.eclipse.jdt.ui.ignorelowercasenames=true
-org.eclipse.jdt.ui.importorder=java;javax;org;com;org.osgi;org.eclipse;org.eclipse.m2e;
-org.eclipse.jdt.ui.javadoc=false
+org.eclipse.jdt.ui.importorder=java;javax;org;org.w3c;org.xml;org.apache;com;junit;org.eclipse;org.codehaus;org.apache.lucene;org.apache.maven;org.sonatype;org.eclipse.m2e;
+org.eclipse.jdt.ui.javadoc=true
+org.eclipse.jdt.ui.keywordthis=true
org.eclipse.jdt.ui.ondemandthreshold=99
+org.eclipse.jdt.ui.overrideannotation=false
org.eclipse.jdt.ui.staticondemandthreshold=99
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************\n * Copyright (c) 2010 Sonatype, Inc.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http\://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors\:\n * Sonatype, Inc. - initial API and implementation\n *******************************************************************************/</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertArtifactProposal.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertArtifactProposal.java
index 3587ff0d..2f96292e 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertArtifactProposal.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertArtifactProposal.java
@@ -11,13 +11,36 @@
package org.eclipse.m2e.editor.xml;
-import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.*;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.ARTIFACT_ID;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.BUILD;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.CLASSIFIER;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.DEPENDENCIES;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.DEPENDENCY;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.DEPENDENCY_MANAGEMENT;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.GROUP_ID;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.PARENT;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.PLUGIN;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.PLUGINS;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.PLUGIN_MANAGEMENT;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.PROFILE;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.RELATIVE_PATH;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.SCOPE;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.TYPE;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.VERSION;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.createElement;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.elementAtOffset;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.findChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.format;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.getChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.insertAt;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.performOnDOMDocument;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.setText;
import java.io.IOException;
-import org.apache.maven.project.MavenProject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -37,6 +60,8 @@ import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Point;
import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.core.internal.index.IIndex;
import org.eclipse.m2e.core.internal.index.IndexedArtifactFile;
import org.eclipse.m2e.core.ui.internal.dialogs.MavenRepositorySearchDialog;
@@ -45,13 +70,19 @@ import org.eclipse.m2e.core.ui.internal.editing.PomEdits.OperationTuple;
import org.eclipse.m2e.editor.xml.internal.Messages;
import org.eclipse.m2e.editor.xml.internal.XmlUtils;
-public class InsertArtifactProposal implements ICompletionProposal, ICompletionProposalExtension4, ICompletionProposalExtension5 {
+
+public class InsertArtifactProposal implements ICompletionProposal, ICompletionProposalExtension4,
+ ICompletionProposalExtension5 {
private static final Logger log = LoggerFactory.getLogger(InsertArtifactProposal.class);
private ISourceViewer sourceViewer;
+
private Region region;
+
private int generatedLength = 0;
+
private int generatedOffset;
+
private Configuration config;
public InsertArtifactProposal(ISourceViewer sourceViewer, Region region, Configuration config) {
@@ -66,28 +97,28 @@ public class InsertArtifactProposal implements ICompletionProposal, ICompletionP
MavenProject prj = XmlUtils.extractMavenProject(sourceViewer);
IProject eclPrj = XmlUtils.extractProject(sourceViewer);
MavenRepositorySearchDialog dialog = null;
- if (config.getType() == SearchType.PLUGIN) {
+ if(config.getType() == SearchType.PLUGIN) {
String path = XmlUtils.pathUp(config.getCurrentNode(), 2);
- boolean inPM = path.contains("pluginManagement"); //$NON-NLS-1$
- dialog = MavenRepositorySearchDialog.createSearchPluginDialog(sourceViewer.getTextWidget().getShell(),
- config.getType().getWindowTitle(), prj, eclPrj, inPM);
+ boolean inPM = path.contains("pluginManagement"); //$NON-NLS-1$
+ dialog = MavenRepositorySearchDialog.createSearchPluginDialog(sourceViewer.getTextWidget().getShell(), config
+ .getType().getWindowTitle(), prj, eclPrj, inPM);
}
- if (config.getType() == SearchType.PARENT) {
- dialog = MavenRepositorySearchDialog.createSearchParentDialog(sourceViewer.getTextWidget().getShell(),
- config.getType().getWindowTitle(), prj, eclPrj);
+ if(config.getType() == SearchType.PARENT) {
+ dialog = MavenRepositorySearchDialog.createSearchParentDialog(sourceViewer.getTextWidget().getShell(), config
+ .getType().getWindowTitle(), prj, eclPrj);
}
- if (config.getType() == SearchType.DEPENDENCY) {
+ if(config.getType() == SearchType.DEPENDENCY) {
//only populate the lists when in dependency search..
// and when in dependency management or plugin section use the different set than elsewhere to get different visual effect.
String path = XmlUtils.pathUp(config.getCurrentNode(), 2);
boolean inDM = path.contains(DEPENDENCY_MANAGEMENT);
- dialog = MavenRepositorySearchDialog.createSearchDependencyDialog(sourceViewer.getTextWidget().getShell(),
- config.getType().getWindowTitle(), prj, eclPrj, inDM);
+ dialog = MavenRepositorySearchDialog.createSearchDependencyDialog(sourceViewer.getTextWidget().getShell(), config
+ .getType().getWindowTitle(), prj, eclPrj, inDM);
}
- if (dialog == null) {
+ if(dialog == null) {
throw new IllegalStateException("Wrong search type: " + config.getType());
}
- if (config.getInitiaSearchString() != null) {
+ if(config.getInitiaSearchString() != null) {
dialog.setQuery(config.getInitiaSearchString());
}
final MavenRepositorySearchDialog fDialog = dialog;
@@ -95,24 +126,25 @@ public class InsertArtifactProposal implements ICompletionProposal, ICompletionP
final IndexedArtifactFile af = (IndexedArtifactFile) dialog.getFirstResult();
int offset = region.getOffset();
if(af != null) {
- if (config.getType() == SearchType.PARENT) {
+ if(config.getType() == SearchType.PARENT) {
try {
- final int fOffset = offset;
- performOnDOMDocument(new OperationTuple(document, new Operation() {
- public void process(Document doc) {
- Element parent = insertAt(doc.createElement(PARENT), fOffset);
- setText(getChild(parent, GROUP_ID), af.group);
- setText(getChild(parent, ARTIFACT_ID), af.artifact);
- setText(getChild(parent, VERSION), af.version);
- String relativePath = PomContentAssistProcessor.findRelativePath(sourceViewer, af.group, af.artifact, af.version);
- if (relativePath != null) {
- setText(getChild(parent, RELATIVE_PATH), relativePath);
- }
- format(parent);
- generatedOffset = ((IndexedRegion)parent).getStartOffset();
- generatedLength = ((IndexedRegion)parent).getEndOffset() - generatedOffset;
+ final int fOffset = offset;
+ performOnDOMDocument(new OperationTuple(document, new Operation() {
+ public void process(Document doc) {
+ Element parent = insertAt(doc.createElement(PARENT), fOffset);
+ setText(getChild(parent, GROUP_ID), af.group);
+ setText(getChild(parent, ARTIFACT_ID), af.artifact);
+ setText(getChild(parent, VERSION), af.version);
+ String relativePath = PomContentAssistProcessor.findRelativePath(sourceViewer, af.group, af.artifact,
+ af.version);
+ if(relativePath != null) {
+ setText(getChild(parent, RELATIVE_PATH), relativePath);
}
- }));
+ format(parent);
+ generatedOffset = ((IndexedRegion) parent).getStartOffset();
+ generatedLength = ((IndexedRegion) parent).getEndOffset() - generatedOffset;
+ }
+ }));
} catch(IOException e) {
log.error("Failed inserting parent element", e); //$NON-NLS-1$
} catch(CoreException e) {
@@ -121,14 +153,14 @@ public class InsertArtifactProposal implements ICompletionProposal, ICompletionP
}
// plugin type
-
+
if(config.getType() == SearchType.PLUGIN) {
try {
final int fOffset = offset;
performOnDOMDocument(new OperationTuple(document, new Operation() {
public void process(Document doc) {
Element currentNode = elementAtOffset(doc, fOffset);
- if (currentNode == null) {
+ if(currentNode == null) {
return;
}
String currentName = currentNode.getNodeName();
@@ -153,17 +185,17 @@ public class InsertArtifactProposal implements ICompletionProposal, ICompletionP
if(PLUGINS.equals(currentName)) {
plugin = insertAt(doc.createElement(PLUGIN), fOffset);
}
- if (toFormat == null) {
+ if(toFormat == null) {
toFormat = plugin;
}
setText(getChild(plugin, GROUP_ID), af.group);
setText(getChild(plugin, ARTIFACT_ID), af.artifact);
- if (af.version != null) {
+ if(af.version != null) {
setText(getChild(plugin, VERSION), af.version);
}
format(toFormat);
- generatedOffset = ((IndexedRegion)toFormat).getStartOffset();
- generatedLength = ((IndexedRegion)toFormat).getEndOffset() - generatedOffset;
+ generatedOffset = ((IndexedRegion) toFormat).getStartOffset();
+ generatedLength = ((IndexedRegion) toFormat).getEndOffset() - generatedOffset;
}
}));
} catch(IOException e) {
@@ -172,65 +204,64 @@ public class InsertArtifactProposal implements ICompletionProposal, ICompletionP
log.error("Failed inserting plugin element", e); //$NON-NLS-1$
}
}
- // dependency type
-
- if (config.getType() == SearchType.DEPENDENCY) {
- try {
- final int fOffset = offset;
- performOnDOMDocument(new OperationTuple(document, new Operation() {
- public void process(Document doc) {
- Element currentNode = elementAtOffset(doc, fOffset);
- if (currentNode == null) {
- return;
- }
- String currentName = currentNode.getNodeName();
- Element dependency = null;
- Element toFormat = null;
- if("project".equals(currentName) || DEPENDENCY_MANAGEMENT.equals(currentName) || PROFILE.equals(currentName)) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- Element deps = findChild(currentNode, DEPENDENCIES);
- if(deps == null) {
- deps = insertAt(doc.createElement(DEPENDENCIES), fOffset);
- toFormat = deps;
- }
- dependency = doc.createElement(DEPENDENCY);
- deps.appendChild(dependency);
- }
- if(DEPENDENCIES.equals(currentName)) {
- dependency = insertAt(doc.createElement(DEPENDENCY), fOffset);
- }
- if (toFormat == null) {
- toFormat = dependency;
- }
- setText(getChild(dependency, GROUP_ID), af.group);
- setText(getChild(dependency, ARTIFACT_ID), af.artifact);
- if (af.version != null) {
- setText(getChild(dependency, VERSION), af.version);
- }
- if (fDialog.getSelectedScope() != null && !"compile".equals(fDialog.getSelectedScope())) {
- setText(getChild(dependency, SCOPE), fDialog.getSelectedScope());
- }
- if (af.type != null && !"jar".equals(af.type)
- && !"null".equals(af.type)) { // guard against MNGECLIPSE-622 //$NON-NLS-1$)
- setText(getChild(dependency, TYPE), af.type);
- }
- if (af.classifier != null) {
- setText(getChild(dependency, CLASSIFIER), af.classifier);
+ // dependency type
+
+ if(config.getType() == SearchType.DEPENDENCY) {
+ try {
+ final int fOffset = offset;
+ performOnDOMDocument(new OperationTuple(document, new Operation() {
+ public void process(Document doc) {
+ Element currentNode = elementAtOffset(doc, fOffset);
+ if(currentNode == null) {
+ return;
+ }
+ String currentName = currentNode.getNodeName();
+ Element dependency = null;
+ Element toFormat = null;
+ if("project".equals(currentName) || DEPENDENCY_MANAGEMENT.equals(currentName) || PROFILE.equals(currentName)) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ Element deps = findChild(currentNode, DEPENDENCIES);
+ if(deps == null) {
+ deps = insertAt(doc.createElement(DEPENDENCIES), fOffset);
+ toFormat = deps;
}
- format(toFormat);
- generatedOffset = ((IndexedRegion)toFormat).getStartOffset();
- generatedLength = ((IndexedRegion)toFormat).getEndOffset() - generatedOffset;
+ dependency = doc.createElement(DEPENDENCY);
+ deps.appendChild(dependency);
+ }
+ if(DEPENDENCIES.equals(currentName)) {
+ dependency = insertAt(doc.createElement(DEPENDENCY), fOffset);
+ }
+ if(toFormat == null) {
+ toFormat = dependency;
+ }
+ setText(getChild(dependency, GROUP_ID), af.group);
+ setText(getChild(dependency, ARTIFACT_ID), af.artifact);
+ if(af.version != null) {
+ setText(getChild(dependency, VERSION), af.version);
}
- }));
- } catch(IOException e) {
- log.error("Failed inserting dependency element", e); //$NON-NLS-1$
- } catch(CoreException e) {
- log.error("Failed inserting dependency element", e); //$NON-NLS-1$
- }
+ if(fDialog.getSelectedScope() != null && !"compile".equals(fDialog.getSelectedScope())) {
+ setText(getChild(dependency, SCOPE), fDialog.getSelectedScope());
+ }
+ if(af.type != null && !"jar".equals(af.type) && !"null".equals(af.type)) { // guard against MNGECLIPSE-622 //$NON-NLS-1$)
+ setText(getChild(dependency, TYPE), af.type);
+ }
+ if(af.classifier != null) {
+ setText(getChild(dependency, CLASSIFIER), af.classifier);
+ }
+ format(toFormat);
+ generatedOffset = ((IndexedRegion) toFormat).getStartOffset();
+ generatedLength = ((IndexedRegion) toFormat).getEndOffset() - generatedOffset;
+ }
+ }));
+ } catch(IOException e) {
+ log.error("Failed inserting dependency element", e); //$NON-NLS-1$
+ } catch(CoreException e) {
+ log.error("Failed inserting dependency element", e); //$NON-NLS-1$
+ }
}
}
}
}
-
+
public Point getSelection(IDocument document) {
return new Point(generatedOffset, generatedLength);
}
@@ -240,7 +271,7 @@ public class InsertArtifactProposal implements ICompletionProposal, ICompletionP
}
public String getDisplayString() {
- return config.getType().getDisplayName();
+ return config.getType().getDisplayName();
}
public Image getImage() {
@@ -259,23 +290,33 @@ public class InsertArtifactProposal implements ICompletionProposal, ICompletionP
public Object getAdditionalProposalInfo(IProgressMonitor monitor) {
return config.getType().getAdditionalInfo();
}
-
+
/**
* supported search types
+ *
* @author mkleint
- *
*/
public static enum SearchType {
-
- PARENT(IIndex.SEARCH_PARENTS, Messages.InsertArtifactProposal_searchDialog_title, Messages.InsertArtifactProposal_display_name, MvnImages.IMG_OPEN_POM, Messages.InsertArtifactProposal_additionals),
- PLUGIN(IIndex.SEARCH_PLUGIN, Messages.InsertArtifactProposal_insert_plugin_title, Messages.InsertArtifactProposal_insert_plugin_display_name, MvnImages.IMG_OPEN_POM, Messages.InsertArtifactProposal_insert_plugin_description),
- DEPENDENCY(IIndex.SEARCH_ARTIFACT, Messages.InsertArtifactProposal_insert_dep_title, Messages.InsertArtifactProposal_insert_dep_display_name, MvnImages.IMG_OPEN_POM, Messages.InsertArtifactProposal_insert_dep_desc);
-
+
+ PARENT(IIndex.SEARCH_PARENTS, Messages.InsertArtifactProposal_searchDialog_title,
+ Messages.InsertArtifactProposal_display_name, MvnImages.IMG_OPEN_POM,
+ Messages.InsertArtifactProposal_additionals), PLUGIN(IIndex.SEARCH_PLUGIN,
+ Messages.InsertArtifactProposal_insert_plugin_title,
+ Messages.InsertArtifactProposal_insert_plugin_display_name, MvnImages.IMG_OPEN_POM,
+ Messages.InsertArtifactProposal_insert_plugin_description), DEPENDENCY(IIndex.SEARCH_ARTIFACT,
+ Messages.InsertArtifactProposal_insert_dep_title, Messages.InsertArtifactProposal_insert_dep_display_name,
+ MvnImages.IMG_OPEN_POM, Messages.InsertArtifactProposal_insert_dep_desc);
+
private final String type;
+
private final String windowTitle;
+
private final String displayName;
+
private final Image image;
+
private final String additionalInfo;
+
private SearchType(String type, String windowTitle, String dn, Image img, String addInfo) {
this.type = type;
this.windowTitle = windowTitle;
@@ -283,7 +324,7 @@ public class InsertArtifactProposal implements ICompletionProposal, ICompletionP
this.image = img;
this.additionalInfo = addInfo;
}
-
+
String getIIndexType() {
return type;
}
@@ -303,24 +344,28 @@ public class InsertArtifactProposal implements ICompletionProposal, ICompletionP
public String getAdditionalInfo() {
return additionalInfo;
}
-
+
}
-
+
public static class Configuration {
private final SearchType type;
+
private String initiaSearchString;
+
private Node node;
-
+
public Configuration(SearchType type) {
this.type = type;
}
-
+
public void setInitiaSearchString(String initiaSearchString) {
this.initiaSearchString = initiaSearchString;
}
+
public String getInitiaSearchString() {
return initiaSearchString;
}
+
public SearchType getType() {
return type;
}
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertExpressionProposal.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertExpressionProposal.java
index 276548e3..973c6837 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertExpressionProposal.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertExpressionProposal.java
@@ -11,10 +11,6 @@
package org.eclipse.m2e.editor.xml;
-import org.apache.maven.model.InputLocation;
-import org.apache.maven.model.InputSource;
-import org.apache.maven.model.Model;
-import org.apache.maven.project.MavenProject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -29,18 +25,28 @@ import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Point;
+import org.apache.maven.model.InputLocation;
+import org.apache.maven.model.InputSource;
+import org.apache.maven.model.Model;
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.editor.xml.internal.Messages;
+
+
/**
* insertion proposal for ${ expressions
+ *
* @author mkleint
- *
*/
public class InsertExpressionProposal implements ICompletionProposal, ICompletionProposalExtension5 {
private static final Logger log = LoggerFactory.getLogger(InsertExpressionProposal.class);
private MavenProject project;
+
private String key;
+
private Region region;
+
private int len = 0;
public InsertExpressionProposal(Region region, String key, MavenProject mvnproject) {
@@ -51,22 +57,22 @@ public class InsertExpressionProposal implements ICompletionProposal, ICompletio
}
public Object getAdditionalProposalInfo(IProgressMonitor monitor) {
- if (project == null) {
+ if(project == null) {
return null;
}
String value = PomTemplateContext.simpleInterpolate(project, "${" + key + "}"); //$NON-NLS-1$ //$NON-NLS-2$
MavenProject mavprj = project;
String loc = null;
- if (mavprj != null) {
+ if(mavprj != null) {
Model mdl = mavprj.getModel();
- if (mdl.getProperties() != null && mdl.getProperties().containsKey(key)) {
- if (mdl.getLocation("properties") != null) {
+ if(mdl.getProperties() != null && mdl.getProperties().containsKey(key)) {
+ if(mdl.getLocation("properties") != null) {
InputLocation location = mdl.getLocation("properties").getLocation(key); //$NON-NLS-1$
- if (location != null) {
+ if(location != null) {
//MNGECLIPSE-2539 apparently you can have an InputLocation with null input source.
// check!
InputSource source = location.getSource();
- if (source != null) {
+ if(source != null) {
loc = source.getModelId();
}
}
@@ -75,10 +81,10 @@ public class InsertExpressionProposal implements ICompletionProposal, ICompletio
}
StringBuffer buff = new StringBuffer();
buff.append("<html>"); //$NON-NLS-1$
- if (value != null) {
+ if(value != null) {
buff.append(NLS.bind(Messages.InsertExpressionProposal_hint1, value));
}
- if (loc != null) {
+ if(loc != null) {
buff.append(NLS.bind(Messages.InsertExpressionProposal_hint2, loc));
}
buff.append("</html>"); //$NON-NLS-1$
@@ -92,7 +98,7 @@ public class InsertExpressionProposal implements ICompletionProposal, ICompletio
document.replace(offset, region.getLength(), replace);
len = replace.length();
} catch(BadLocationException e) {
- log.error("Cannot apply proposal", e);
+ log.error("Cannot apply proposal", e);
}
}
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/MvnImages.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/MvnImages.java
index f8f495f6..48913fbb 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/MvnImages.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/MvnImages.java
@@ -19,6 +19,7 @@ import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.plugin.AbstractUIPlugin;
+
/**
* @author Eugene Kuleshov
*/
@@ -26,35 +27,35 @@ public class MvnImages {
private static final Logger log = LoggerFactory.getLogger(MvnImages.class);
// object images
-
- public static final Image IMG_JAR = createImage("jar_obj.gif"); //$NON-NLS-1$
- public static final Image IMG_JARS = createImage("jars_obj.gif"); //$NON-NLS-1$
+ public static final Image IMG_JAR = createImage("jar_obj.gif"); //$NON-NLS-1$
+
+ public static final Image IMG_JARS = createImage("jars_obj.gif"); //$NON-NLS-1$
- public static final Image IMG_REPOSITORY = createImage("repository_obj.gif"); //$NON-NLS-1$
-
- public static final Image IMG_PLUGIN = createImage("plugin_obj.gif"); //$NON-NLS-1$
+ public static final Image IMG_REPOSITORY = createImage("repository_obj.gif"); //$NON-NLS-1$
- public static final Image IMG_PLUGINS = createImage("plugins_obj.gif"); //$NON-NLS-1$
+ public static final Image IMG_PLUGIN = createImage("plugin_obj.gif"); //$NON-NLS-1$
+
+ public static final Image IMG_PLUGINS = createImage("plugins_obj.gif"); //$NON-NLS-1$
public static final Image IMG_EXECUTION = createImage("execution_obj.gif"); //$NON-NLS-1$
-
- public static final Image IMG_GOAL = createImage("goal_obj.gif"); //$NON-NLS-1$
- public static final Image IMG_FILTER = createImage("filter_obj.gif"); //$NON-NLS-1$
+ public static final Image IMG_GOAL = createImage("goal_obj.gif"); //$NON-NLS-1$
+
+ public static final Image IMG_FILTER = createImage("filter_obj.gif"); //$NON-NLS-1$
public static final Image IMG_RESOURCE = createImage("resource_obj.gif"); //$NON-NLS-1$
-
- public static final Image IMG_RESOURCES = createImage("resources_obj.gif"); //$NON-NLS-1$
- public static final Image IMG_INCLUDE = createImage("include_obj.gif"); //$NON-NLS-1$
-
- public static final Image IMG_EXCLUDE = createImage("exclude_obj.gif"); //$NON-NLS-1$
-
+ public static final Image IMG_RESOURCES = createImage("resources_obj.gif"); //$NON-NLS-1$
+
+ public static final Image IMG_INCLUDE = createImage("include_obj.gif"); //$NON-NLS-1$
+
+ public static final Image IMG_EXCLUDE = createImage("exclude_obj.gif"); //$NON-NLS-1$
+
public static final Image IMG_PERSON = createImage("person_obj.gif"); //$NON-NLS-1$
-
+
public static final Image IMG_ROLE = createImage("role_obj.gif"); //$NON-NLS-1$
-
+
public static final Image IMG_PROPERTY = createImage("property_obj.gif"); //$NON-NLS-1$
public static final Image IMG_PROPERTIES = createImage("properties_obj.gif"); //$NON-NLS-1$
@@ -70,24 +71,24 @@ public class MvnImages {
public static final Image IMG_LICENSE = createImage("license.png"); //$NON-NLS-1$
public static final Image IMG_BUILD = createImage("build_obj.gif"); //$NON-NLS-1$
-
+
public static final Image IMG_ELEMENT = createImage("element_obj.gif"); //$NON-NLS-1$
-
+
public static final Image IMG_USER_TEMPLATE = createImage("template_obj.gif"); //$NON-NLS-1$
public static final Image IMG_OPEN_POM = createImage("open_pom.gif"); //$NON-NLS-1$
-
+
public static final Image IMG_CLOSE = createImage("close.gif"); //$NON-NLS-1$
-
+
private static ImageDescriptor create(String key) {
try {
ImageDescriptor imageDescriptor = createDescriptor(key);
ImageRegistry imageRegistry = getImageRegistry();
- if(imageRegistry!=null) {
+ if(imageRegistry != null) {
imageRegistry.put(key, imageDescriptor);
}
return imageDescriptor;
- } catch (Exception ex) {
+ } catch(Exception ex) {
log.error(key, ex);
return null;
}
@@ -96,16 +97,16 @@ public class MvnImages {
private static Image createImage(String key) {
create(key);
ImageRegistry imageRegistry = getImageRegistry();
- return imageRegistry==null ? null : imageRegistry.get(key);
+ return imageRegistry == null ? null : imageRegistry.get(key);
}
private static ImageRegistry getImageRegistry() {
MvnIndexPlugin plugin = MvnIndexPlugin.getDefault();
- return plugin==null ? null : plugin.getImageRegistry();
+ return plugin == null ? null : plugin.getImageRegistry();
}
private static ImageDescriptor createDescriptor(String image) {
return AbstractUIPlugin.imageDescriptorFromPlugin(MvnIndexPlugin.PLUGIN_ID, "icons/" + image); //$NON-NLS-1$
}
-
+
}
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/MvnIndexPlugin.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/MvnIndexPlugin.java
index eb66cbfe..707f188b 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/MvnIndexPlugin.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/MvnIndexPlugin.java
@@ -13,11 +13,10 @@ package org.eclipse.m2e.editor.xml;
import java.io.IOException;
+import org.osgi.framework.BundleContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.osgi.framework.BundleContext;
-
import org.eclipse.jface.text.templates.ContextTypeRegistry;
import org.eclipse.jface.text.templates.persistence.TemplateStore;
import org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry;
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomContentAssistProcessor.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomContentAssistProcessor.java
index b6dd1d53..dc97394c 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomContentAssistProcessor.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomContentAssistProcessor.java
@@ -20,7 +20,6 @@ import java.util.Properties;
import java.util.Set;
import java.util.TreeSet;
-import org.apache.maven.project.MavenProject;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.Text;
@@ -54,11 +53,14 @@ import org.eclipse.wst.sse.core.utils.StringUtils;
import org.eclipse.wst.xml.ui.internal.contentassist.ContentAssistRequest;
import org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor;
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
import org.eclipse.m2e.editor.xml.internal.Messages;
import org.eclipse.m2e.editor.xml.internal.XmlUtils;
+
/**
* @author Lukas Krecan
* @author Eugene Kuleshov
@@ -67,44 +69,42 @@ import org.eclipse.m2e.editor.xml.internal.XmlUtils;
public class PomContentAssistProcessor extends XMLContentAssistProcessor {
private static final ProposalComparator PROPOSAL_COMPARATOR = new ProposalComparator();
-
+
private ISourceViewer sourceViewer;
public PomContentAssistProcessor(ISourceViewer sourceViewer) {
this.sourceViewer = sourceViewer;
}
- //broken
-
+ //broken
+
protected void addTagNameProposals(ContentAssistRequest contentAssistRequest, int childPosition) {
String currentNodeName = getCurrentNode(contentAssistRequest).getNodeName();
PomTemplateContext context = PomTemplateContext.fromNodeName(currentNodeName);
- if(PomTemplateContext.CONFIGURATION == context)
- {
+ if(PomTemplateContext.CONFIGURATION == context) {
//this is sort of hack that makes sure the config proposals appear even
// when you type <prefix
// the downside is that additional typing hides the proposals popup
// there has to be a better way though. the xml element completions seems to be coping with it fine..
contentAssistRequest.setReplacementBeginPosition(contentAssistRequest.getReplacementBeginPosition() - 1);
contentAssistRequest.setReplacementLength(contentAssistRequest.getReplacementLength() + 1);
- addProposals(contentAssistRequest, context, getCurrentNode(contentAssistRequest), contentAssistRequest.getMatchString());
+ addProposals(contentAssistRequest, context, getCurrentNode(contentAssistRequest),
+ contentAssistRequest.getMatchString());
}
- if(PomTemplateContext.UNKNOWN == context)
- {
+ if(PomTemplateContext.UNKNOWN == context) {
context = PomTemplateContext.fromNodeName(getCurrentNode(contentAssistRequest).getParentNode().getNodeName());
- if(PomTemplateContext.CONFIGURATION == context)
- {
- addProposals(contentAssistRequest, context, getCurrentNode(contentAssistRequest).getParentNode(), contentAssistRequest.getMatchString());
+ if(PomTemplateContext.CONFIGURATION == context) {
+ addProposals(contentAssistRequest, context, getCurrentNode(contentAssistRequest).getParentNode(),
+ contentAssistRequest.getMatchString());
}
}
super.addTagNameProposals(contentAssistRequest, childPosition);
}
-
-
+
@Override
protected void addTagInsertionProposals(ContentAssistRequest contentAssistRequest, int childPosition) {
String currentNodeName = getCurrentNode(contentAssistRequest).getNodeName();
-
+
addProposals(contentAssistRequest, PomTemplateContext.fromNodeName(currentNodeName));
super.addTagInsertionProposals(contentAssistRequest, childPosition);
}
@@ -126,15 +126,17 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
}
String prefix = extractPrefix(sourceViewer, offset);
-
+
addExpressionProposal(request, context, getCurrentNode(request), prefix);
-
+
addGenerateProposals(request, context, getCurrentNode(request), prefix);
-
+
addProposals(request, context, getCurrentNode(request), prefix);
}
+
/**
- * this is a proposal method for adding expressions when ${ is typed..
+ * this is a proposal method for adding expressions when ${ is typed..
+ *
* @param request
* @param context
* @param currentNode
@@ -143,93 +145,87 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
private void addExpressionProposal(ContentAssistRequest request, PomTemplateContext context, Node currentNode,
String prefix) {
int exprStart = prefix.lastIndexOf("${"); //$NON-NLS-1$
- if (exprStart != -1) {
+ if(exprStart != -1) {
//the regular prefix is separated by whitespace and <> brackets only, we need to cut the last portion
String realExpressionPrefix = prefix.substring(exprStart);
- if (realExpressionPrefix.contains("}")) { //$NON-NLS-1$
+ if(realExpressionPrefix.contains("}")) { //$NON-NLS-1$
//the expression is not opened..
return;
}
- if (expressionproposalContexts.contains(context)) {
+ if(expressionproposalContexts.contains(context)) {
//add all effective pom expressions
MavenProject prj = XmlUtils.extractMavenProject(sourceViewer);
- Region region = new Region(request.getReplacementBeginPosition() - realExpressionPrefix.length(), realExpressionPrefix.length());
+ Region region = new Region(request.getReplacementBeginPosition() - realExpressionPrefix.length(),
+ realExpressionPrefix.length());
Set<String> collect = new TreeSet<String>();
- if (prj != null) {
- Properties props = prj.getProperties();
- if (props != null) {
- for (Object key : props.keySet()) {
- String keyString = key.toString();
- if (("${" + keyString).startsWith(realExpressionPrefix)) { //$NON-NLS-1$
- collect.add(keyString);
- }
- }
- }
- }
-
- //add a few hardwired values as well
- if ("${basedir}".startsWith(realExpressionPrefix)) { //$NON-NLS-1$
- collect.add("basedir"); //$NON-NLS-1$
- }
- if ("${project.version}".startsWith(realExpressionPrefix)) { //$NON-NLS-1$
- collect.add("project.version"); //$NON-NLS-1$
- }
- if ("${project.groupId}".startsWith(realExpressionPrefix)) { //$NON-NLS-1$
- collect.add("project.groupId"); //$NON-NLS-1$
- }
- if ("${project.artifactId}".startsWith(realExpressionPrefix)) { //$NON-NLS-1$
- collect.add("project.artifactId"); //$NON-NLS-1$
- }
- if ("${project.build.directory}".startsWith(realExpressionPrefix)) { //$NON-NLS-1$
- collect.add("project.build.directory"); //$NON-NLS-1$
- }
- for (String key : collect) {
- ICompletionProposal proposal = new InsertExpressionProposal(region, key, prj);
- if(request.shouldSeparate()) {
- request.addMacro(proposal);
- } else {
- request.addProposal(proposal);
+ if(prj != null) {
+ Properties props = prj.getProperties();
+ if(props != null) {
+ for(Object key : props.keySet()) {
+ String keyString = key.toString();
+ if(("${" + keyString).startsWith(realExpressionPrefix)) { //$NON-NLS-1$
+ collect.add(keyString);
}
}
}
}
+
+ //add a few hardwired values as well
+ if("${basedir}".startsWith(realExpressionPrefix)) { //$NON-NLS-1$
+ collect.add("basedir"); //$NON-NLS-1$
+ }
+ if("${project.version}".startsWith(realExpressionPrefix)) { //$NON-NLS-1$
+ collect.add("project.version"); //$NON-NLS-1$
+ }
+ if("${project.groupId}".startsWith(realExpressionPrefix)) { //$NON-NLS-1$
+ collect.add("project.groupId"); //$NON-NLS-1$
+ }
+ if("${project.artifactId}".startsWith(realExpressionPrefix)) { //$NON-NLS-1$
+ collect.add("project.artifactId"); //$NON-NLS-1$
+ }
+ if("${project.build.directory}".startsWith(realExpressionPrefix)) { //$NON-NLS-1$
+ collect.add("project.build.directory"); //$NON-NLS-1$
+ }
+ for(String key : collect) {
+ ICompletionProposal proposal = new InsertExpressionProposal(region, key, prj);
+ if(request.shouldSeparate()) {
+ request.addMacro(proposal);
+ } else {
+ request.addProposal(proposal);
+ }
+ }
+ }
+ }
}
-
+
private static List<PomTemplateContext> expressionproposalContexts = Arrays.asList(new PomTemplateContext[] {
- PomTemplateContext.ARTIFACT_ID,
- PomTemplateContext.CLASSIFIER,
+ PomTemplateContext.ARTIFACT_ID, PomTemplateContext.CLASSIFIER,
// PomTemplateContext.CONFIGURATION,
- PomTemplateContext.GOAL,
- PomTemplateContext.GROUP_ID,
- PomTemplateContext.MODULE,
- PomTemplateContext.PACKAGING,
- PomTemplateContext.PHASE,
- PomTemplateContext.PROPERTIES, //??
- PomTemplateContext.SCOPE,
- PomTemplateContext.SYSTEM_PATH,
- PomTemplateContext.TYPE,
+ PomTemplateContext.GOAL, PomTemplateContext.GROUP_ID, PomTemplateContext.MODULE, PomTemplateContext.PACKAGING,
+ PomTemplateContext.PHASE, PomTemplateContext.PROPERTIES, //??
+ PomTemplateContext.SCOPE, PomTemplateContext.SYSTEM_PATH, PomTemplateContext.TYPE,
// PomTemplateContext.VERSION, version is intentionally not included as we have specialized handling there..
- PomTemplateContext.UNKNOWN //this one is both important and troubling.. but having a context for everything is weird.
- });
+ PomTemplateContext.UNKNOWN //this one is both important and troubling.. but having a context for everything is weird.
+ });
private void addGenerateProposals(ContentAssistRequest request, PomTemplateContext context, Node node, String prefix) {
- if (prefix.trim().length() != 0) {
+ if(prefix.trim().length() != 0) {
//only provide these generate proposals when there is no prefix.
return;
}
- if (context == PomTemplateContext.PARENT && node.getNodeName().equals("parent")) { //$NON-NLS-1$
- Element parent = (Element)node;
+ if(context == PomTemplateContext.PARENT && node.getNodeName().equals("parent")) { //$NON-NLS-1$
+ Element parent = (Element) node;
Element relPath = XmlUtils.findChild(parent, "relativePath"); //$NON-NLS-1$
- if (relPath == null) {
+ if(relPath == null) {
//only show when no relpath already defined..
String relative = findRelativePath(sourceViewer, parent);
- if (relative != null) {
+ if(relative != null) {
Region region = new Region(request.getReplacementBeginPosition(), 0);
- ICompletionProposal proposal = new CompletionProposal("<relativePath>" + relative + "</relativePath>", //$NON-NLS-1$ //$NON-NLS-2$
+ ICompletionProposal proposal = new CompletionProposal("<relativePath>" + relative + "</relativePath>", //$NON-NLS-1$ //$NON-NLS-2$
region.getOffset(), region.getLength(), 0, //
PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_ADD), //
NLS.bind(Messages.PomContentAssistProcessor_insert_relPath_title, relative), null, null);
- if (request.shouldSeparate()) {
+ if(request.shouldSeparate()) {
request.addMacro(proposal);
} else {
request.addProposal(proposal);
@@ -237,25 +233,24 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
}
}
}
- if (context == PomTemplateContext.RELATIVE_PATH) {
+ if(context == PomTemplateContext.RELATIVE_PATH) {
//completion in the text portion of relative path
Element parent = (Element) node.getParentNode();
- if (parent != null && "parent".equals(parent.getNodeName())) { //$NON-NLS-1$
+ if(parent != null && "parent".equals(parent.getNodeName())) { //$NON-NLS-1$
String relative = findRelativePath(sourceViewer, parent);
- String textContent = XmlUtils.getTextValue(node);
- if (relative != null && !relative.equals(textContent)) {
+ String textContent = XmlUtils.getTextValue(node);
+ if(relative != null && !relative.equals(textContent)) {
Region region = new Region(request.getReplacementBeginPosition() - prefix.length(), prefix.length());
- if (request.getNode() instanceof IndexedRegion && request.getNode() instanceof Text) {
+ if(request.getNode() instanceof IndexedRegion && request.getNode() instanceof Text) {
//for <relativePath>|</relativePath> the current node is the element node and not the text node
//only replace the text node content..
- IndexedRegion index = (IndexedRegion)request.getNode();
+ IndexedRegion index = (IndexedRegion) request.getNode();
region = new Region(index.getStartOffset(), index.getEndOffset() - index.getStartOffset());
}
- ICompletionProposal proposal = new CompletionProposal(relative,
- region.getOffset(), region.getLength(), 0,
- PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_ADD),
- NLS.bind(Messages.PomContentAssistProcessor_set_relPath_title, relative), null, null);
- if (request.shouldSeparate()) {
+ ICompletionProposal proposal = new CompletionProposal(relative, region.getOffset(), region.getLength(), 0,
+ PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_ADD), NLS.bind(
+ Messages.PomContentAssistProcessor_set_relPath_title, relative), null, null);
+ if(request.shouldSeparate()) {
request.addMacro(proposal);
} else {
request.addProposal(proposal);
@@ -263,29 +258,31 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
}
}
}
- if (context == PomTemplateContext.DEPENDENCIES || context == PomTemplateContext.PROFILE
+ if(context == PomTemplateContext.DEPENDENCIES || context == PomTemplateContext.PROFILE
|| context == PomTemplateContext.DEPENDENCY_MANAGEMENT || context == PomTemplateContext.PROJECT) {
//now add the proposal for dependency inclusion
Region region = new Region(request.getReplacementBeginPosition(), 0);
- InsertArtifactProposal.Configuration config = new InsertArtifactProposal.Configuration(InsertArtifactProposal.SearchType.DEPENDENCY);
+ InsertArtifactProposal.Configuration config = new InsertArtifactProposal.Configuration(
+ InsertArtifactProposal.SearchType.DEPENDENCY);
config.setCurrentNode(node);
-
- ICompletionProposal proposal = new InsertArtifactProposal(sourceViewer, region, config);
+
+ ICompletionProposal proposal = new InsertArtifactProposal(sourceViewer, region, config);
if(request.shouldSeparate()) {
request.addMacro(proposal);
} else {
request.addProposal(proposal);
}
}
-
- if (context == PomTemplateContext.PLUGINS || context == PomTemplateContext.BUILD
+
+ if(context == PomTemplateContext.PLUGINS || context == PomTemplateContext.BUILD
|| context == PomTemplateContext.PLUGIN_MANAGEMENT || context == PomTemplateContext.PROJECT) {
//now add the proposal for plugin inclusion
Region region = new Region(request.getReplacementBeginPosition(), 0);
- InsertArtifactProposal.Configuration config = new InsertArtifactProposal.Configuration(InsertArtifactProposal.SearchType.PLUGIN);
+ InsertArtifactProposal.Configuration config = new InsertArtifactProposal.Configuration(
+ InsertArtifactProposal.SearchType.PLUGIN);
config.setCurrentNode(node);
-
- ICompletionProposal proposal = new InsertArtifactProposal(sourceViewer, region, config);
+
+ ICompletionProposal proposal = new InsertArtifactProposal(sourceViewer, region, config);
if(request.shouldSeparate()) {
request.addMacro(proposal);
} else {
@@ -294,28 +291,29 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
}
//comes after dependency and plugin.. the dep and plugin ones are guessed to be more likely hits..
- if (context == PomTemplateContext.PROJECT) {
+ if(context == PomTemplateContext.PROJECT) {
//check if we have a parent defined..
Node project = node;
- if (project != null && project instanceof Element) {
- Element parent = XmlUtils.findChild((Element)project, "parent"); //$NON-NLS-1$
- if (parent == null) {
+ if(project != null && project instanceof Element) {
+ Element parent = XmlUtils.findChild((Element) project, "parent"); //$NON-NLS-1$
+ if(parent == null) {
//now add the proposal for parent inclusion
Region region = new Region(request.getReplacementBeginPosition(), 0);
- Element groupId = XmlUtils.findChild((Element)project, "groupId"); //$NON-NLS-1$
+ Element groupId = XmlUtils.findChild((Element) project, "groupId"); //$NON-NLS-1$
String groupString = null;
- if (groupId != null) {
+ if(groupId != null) {
groupString = XmlUtils.getTextValue(groupId);
}
- InsertArtifactProposal.Configuration config = new InsertArtifactProposal.Configuration(InsertArtifactProposal.SearchType.PARENT);
+ InsertArtifactProposal.Configuration config = new InsertArtifactProposal.Configuration(
+ InsertArtifactProposal.SearchType.PARENT);
config.setInitiaSearchString(groupString);
- ICompletionProposal proposal = new InsertArtifactProposal(sourceViewer, region, config);
+ ICompletionProposal proposal = new InsertArtifactProposal(sourceViewer, region, config);
if(request.shouldSeparate()) {
request.addMacro(proposal);
} else {
request.addProposal(proposal);
}
- }
+ }
}
}
if((context == PomTemplateContext.PROJECT && XmlUtils.findChild((Element) node, "licenses") == null)
@@ -332,21 +330,21 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
String version = XmlUtils.getTextValue(XmlUtils.findChild(parent, "version")); //$NON-NLS-1$
return findRelativePath(viewer, groupId, artifactId, version);
}
-
+
public static String findRelativePath(ISourceViewer viewer, String groupId, String artifactId, String version) {
- if (groupId != null && artifactId != null && version != null) {
+ if(groupId != null && artifactId != null && version != null) {
IMavenProjectFacade facade = MavenPlugin.getMavenProjectRegistry().getMavenProject(groupId, artifactId, version);
- if (facade != null) {
+ if(facade != null) {
//now add the proposal for relativePath
IFile parentPomFile = facade.getPom();
IPath path = parentPomFile.getLocation();
//TODO we might not need the IPRoject instance at all..
IProject prj = XmlUtils.extractProject(viewer);
- if (prj != null && path != null) {
+ if(prj != null && path != null) {
IPath path2 = prj.getLocation();
IPath relative = path.makeRelativeTo(path2);
- if (relative != path) {
- return relative.toString();
+ if(relative != path) {
+ return relative.toString();
}
}
}
@@ -354,8 +352,6 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
return null;
}
-
-
private void addProposals(ContentAssistRequest request, PomTemplateContext context, Node currentNode, String prefix) {
if(request != null) {
MavenProject prj = XmlUtils.extractMavenProject(sourceViewer);
@@ -373,7 +369,8 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
}
}
- private ICompletionProposal[] getTemplateProposals(MavenProject project, IProject eclipseprj, ITextViewer viewer, int offset, String contextTypeId, Node currentNode, String prefix) {
+ private ICompletionProposal[] getTemplateProposals(MavenProject project, IProject eclipseprj, ITextViewer viewer,
+ int offset, String contextTypeId, Node currentNode, String prefix) {
ITextSelection selection = (ITextSelection) viewer.getSelectionProvider().getSelection();
// adjust offset to end of normalized selection
@@ -382,7 +379,7 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
}
// String prefix = extractPrefix(viewer, offset);
- Region region = new Region(offset - prefix.length(), prefix.length());
+ Region region = new Region(offset - prefix.length(), prefix.length());
TemplateContext context = createContext(viewer, region, contextTypeId);
if(context == null) {
return new ICompletionProposal[0];
@@ -392,7 +389,7 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
context.setVariable("selection", selection.getText()); //$NON-NLS-1$
PomTemplateContext templateContext = PomTemplateContext.fromId(contextTypeId);
-
+
// add the user defined templates - separate them from the rest of the templates
// so that we know what they are and can assign proper icon to them.
Image image = MvnImages.IMG_USER_TEMPLATE;
@@ -402,29 +399,28 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
Template[] templates = store.getTemplates(contextTypeId);
for(Template template : templates) {
TemplateProposal proposal = createProposalForTemplate(prefix, region, context, image, template, true);
- if (proposal != null) {
+ if(proposal != null) {
matches.add(proposal);
}
}
- }
- if (templateContext == PomTemplateContext.CONFIGURATION) {
+ }
+ if(templateContext == PomTemplateContext.CONFIGURATION) {
image = MvnImages.IMG_PARAMETER;
} else {
//other suggestions from the templatecontext are to be text inside the element, not actual
//elements..
image = null;
}
-
+
Template[] templates = templateContext.getTemplates(project, eclipseprj, currentNode, prefix);
for(Template template : templates) {
TemplateProposal proposal = createProposalForTemplate(prefix, region, context, image, template, false);
- if (proposal != null) {
+ if(proposal != null) {
matches.add(proposal);
}
}
-
-
- if (templateContext!=PomTemplateContext.VERSION) {
+
+ if(templateContext != PomTemplateContext.VERSION) {
// versions are already sorted with o.a.m.artifact.versioning.ComparableVersion
Collections.sort(matches, PROPOSAL_COMPARATOR);
}
@@ -433,12 +429,12 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
}
- private TemplateProposal createProposalForTemplate(String prefix, Region region, TemplateContext context, Image image,
- final Template template, boolean isUserTemplate) {
+ private TemplateProposal createProposalForTemplate(String prefix, Region region, TemplateContext context,
+ Image image, final Template template, boolean isUserTemplate) {
try {
context.getContextType().validate(template.getPattern());
if(template.matches(prefix, context.getContextType().getId())) {
- if (isUserTemplate) {
+ if(isUserTemplate) {
//for templates defined by users, preserve the default behaviour..
return new TemplateProposal(template, context, region, image, getRelevance(template, prefix)) {
public String getAdditionalProposalInfo() {
@@ -450,7 +446,7 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
public String getAdditionalProposalInfo() {
return getTemplate().getDescription();
}
-
+
public String getDisplayString() {
return template.getName();
}
@@ -460,14 +456,14 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
} catch(TemplateException e) {
// ignore
}
-
+
return null;
}
protected TemplateContext createContext(ITextViewer viewer, IRegion region, String contextTypeId) {
- TemplateContextType contextType= getContextType(viewer, region, contextTypeId);
- if (contextType != null) {
- IDocument document= viewer.getDocument();
+ TemplateContextType contextType = getContextType(viewer, region, contextTypeId);
+ if(contextType != null) {
+ IDocument document = viewer.getDocument();
return new DocumentTemplateContext(contextType, document, region.getOffset(), region.getLength());
}
return null;
@@ -475,11 +471,11 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
//TODO we should have different relevance for user defined templates and generated proposals..
protected int getRelevance(Template template, String prefix) {
- if (template.getName().startsWith(prefix))
+ if(template.getName().startsWith(prefix))
return 90;
return 0;
}
-
+
protected TemplateContextType getContextType(ITextViewer viewer, IRegion region, String contextTypeId) {
ContextTypeRegistry registry = MvnIndexPlugin.getDefault().getTemplateContextRegistry();
if(registry != null) {
@@ -487,7 +483,7 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
}
return null;
}
-
+
public static final String extractPrefix(ITextViewer viewer, int offset) {
int i = offset;
IDocument document = viewer.getDocument();
@@ -509,7 +505,6 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
}
}
-
static final class ProposalComparator implements Comparator<TemplateProposal> {
public int compare(TemplateProposal o1, TemplateProposal o2) {
int res = o2.getRelevance() - o1.getRelevance();
@@ -519,5 +514,5 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
return res;
}
}
-
+
}
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomContentOutlineConfiguration.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomContentOutlineConfiguration.java
index 9f5c270c..0f71dd72 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomContentOutlineConfiguration.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomContentOutlineConfiguration.java
@@ -39,7 +39,7 @@ public class PomContentOutlineConfiguration extends XMLContentOutlineConfigurati
* POM label provider
*/
private final class PomLabelProvider implements ILabelProvider {
-
+
private static final String TARGET_PATH = "targetPath"; //$NON-NLS-1$
private static final String DIRECTORY = "directory"; //$NON-NLS-1$
@@ -129,222 +129,222 @@ public class PomContentOutlineConfiguration extends XMLContentOutlineConfigurati
private static final String NAMESPACE_POM = "http://maven.apache.org/POM/4.0.0"; //$NON-NLS-1$
private static final int MAX_LABEL_LENGTH = 120;
-
+
private final ILabelProvider labelProvider;
-
+
private PomLabelProvider(ILabelProvider labelProvider) {
this.labelProvider = labelProvider;
}
-
+
public Image getImage(Object element) {
Node node = (Node) element;
String namespace = node.getNamespaceURI();
String nodeName = node.getNodeName();
-
- if(node.getNodeType()==Node.COMMENT_NODE) {
+
+ if(node.getNodeType() == Node.COMMENT_NODE) {
return labelProvider.getImage(element);
}
-
+
if(NAMESPACE_POM.equals(namespace)) {
if(PARENT.equals(nodeName)) {
return MvnImages.IMG_JAR;
-
+
} else if(DEPENDENCIES.equals(nodeName) //
|| EXCLUSIONS.equals(nodeName) //
|| EXTENSIONS.equals(nodeName) //
|| MODULES.equals(nodeName)) {
return MvnImages.IMG_JARS;
-
+
} else if(DEPENDENCY.equals(nodeName) //
|| EXCLUSION.equals(nodeName) //
|| EXTENSION.equals(nodeName) //
|| MODULE.equals(nodeName)) {
// TODO show folder if module is in the workspace
return MvnImages.IMG_JAR;
-
+
} else if(REPOSITORY.equals(nodeName) || PLUGIN_REPOSITORY.equals(nodeName)
|| SNAPSHOT_REPOSITORY.equals(nodeName) || SITE.equals(nodeName)) {
return MvnImages.IMG_REPOSITORY;
-
+
} else if(PROFILES.equals(nodeName)) {
return MvnImages.IMG_PROFILES;
-
+
} else if(PROFILE.equals(nodeName)) {
return MvnImages.IMG_PROFILE;
-
+
} else if(DEVELOPER.equals(nodeName) || CONTRIBUTOR.equals(nodeName)) {
return MvnImages.IMG_PERSON;
-
+
} else if(PLUGINS.equals(nodeName)) {
return MvnImages.IMG_PLUGINS;
-
+
} else if(PLUGIN.equals(nodeName)) {
return MvnImages.IMG_PLUGIN;
-
+
} else if(EXECUTION.equals(nodeName)) {
return MvnImages.IMG_EXECUTION;
-
+
} else if(GOAL.equals(nodeName)) {
return MvnImages.IMG_GOAL;
-
+
} else if(RESOURCES.equals(nodeName) //
|| TEST_RESOURCES.equals(nodeName)) {
return MvnImages.IMG_RESOURCES;
-
+
} else if(RESOURCE.equals(nodeName) //
|| TEST_RESOURCE.equals(nodeName)) {
return MvnImages.IMG_RESOURCE;
-
+
} else if(FILTER.equals(nodeName)) {
return MvnImages.IMG_FILTER;
-
+
} else if(INCLUDE.equals(nodeName)) {
return MvnImages.IMG_INCLUDE;
-
+
} else if(EXCLUDE.equals(nodeName)) {
return MvnImages.IMG_EXCLUDE;
-
+
} else if(BUILD.equals(nodeName)) {
return MvnImages.IMG_BUILD;
-
+
} else if(REPORTING.equals(nodeName)) {
return MvnImages.IMG_REPORT;
-
+
} else if(PROPERTIES.equals(nodeName)) {
return MvnImages.IMG_PROPERTIES;
-
+
} else if(PROPERTIES.equals(node.getParentNode().getNodeName())) {
return MvnImages.IMG_PROPERTY;
- // } else if("mailingList".equals(nodeName)) {
- // return MvnImages.IMG_MAIL;
-
+ // } else if("mailingList".equals(nodeName)) {
+ // return MvnImages.IMG_MAIL;
+
}
-
+
return MvnImages.IMG_ELEMENT;
}
-
+
return labelProvider.getImage(element);
}
-
+
public String getText(Object element) {
String text = labelProvider.getText(element);
-
+
Node node = (Node) element;
String namespace = node.getNamespaceURI();
String nodeName = node.getNodeName();
-
- if(node.getNodeType()==Node.COMMENT_NODE) {
+
+ if(node.getNodeType() == Node.COMMENT_NODE) {
return cleanText(node);
}
-
+
if(NAMESPACE_POM.equals(namespace)) {
if(PARENT.equals(nodeName)) {
return getLabel(text, node, GROUP_ID, ARTIFACT_ID, VERSION);
-
+
} else if(DEPENDENCY.equals(nodeName)) {
return getLabel(text, node, GROUP_ID, ARTIFACT_ID, VERSION, CLASSIFIER, TYPE, SCOPE);
-
+
} else if(EXCLUSION.equals(nodeName)) {
return getLabel(text, node, GROUP_ID, ARTIFACT_ID);
-
+
} else if(EXTENSION.equals(nodeName)) {
return getLabel(text, node, GROUP_ID, ARTIFACT_ID, VERSION);
-
+
} else if(REPOSITORY.equals(nodeName) || PLUGIN_REPOSITORY.equals(nodeName)
|| SNAPSHOT_REPOSITORY.equals(nodeName) || SITE.equals(nodeName) || PROFILE.equals(nodeName)
|| EXECUTION.equals(nodeName)) {
return getLabel(text, node, ID);
-
+
} else if("mailingList".equals(nodeName)) { //$NON-NLS-1$
return getLabel(text, node, NAME);
-
+
} else if(DEVELOPER.equals(nodeName)) {
return getLabel(text, node, ID, NAME, EMAIL);
-
+
} else if(CONTRIBUTOR.equals(nodeName)) {
return getLabel(text, node, NAME, EMAIL);
-
+
} else if(PLUGIN.equals(nodeName)) {
return getLabel(text, node, GROUP_ID, ARTIFACT_ID, VERSION);
-
+
} else if(RESOURCE.equals(nodeName) || TEST_RESOURCE.equals(nodeName)) {
return getLabel(text, node, DIRECTORY, TARGET_PATH);
-
+
} else if(REPORT_SET.equals(nodeName)) {
return getLabel(text, node, ID);
-
+
} else if(EXECUTION.equals(nodeName)) {
return getLabel(text, node, ID);
-
+
}
-
+
NodeList childNodes = node.getChildNodes();
- if(childNodes.getLength()==1) {
+ if(childNodes.getLength() == 1) {
Node item = childNodes.item(0);
short nodeType = item.getNodeType();
- if(nodeType==Node.TEXT_NODE || nodeType==Node.COMMENT_NODE) {
+ if(nodeType == Node.TEXT_NODE || nodeType == Node.COMMENT_NODE) {
String nodeText = item.getNodeValue();
- if(nodeText.length()>0) {
+ if(nodeText.length() > 0) {
return text + " " + cleanText(item); //$NON-NLS-1$
}
}
}
}
-
+
return text;
}
-
+
public boolean isLabelProperty(Object element, String name) {
return labelProvider.isLabelProperty(element, name);
}
-
+
public void addListener(ILabelProviderListener listener) {
labelProvider.addListener(listener);
}
-
+
public void removeListener(ILabelProviderListener listener) {
labelProvider.removeListener(listener);
}
-
+
public void dispose() {
labelProvider.dispose();
}
-
+
private String getLabel(String text, Node node, String... names) {
StringBuilder sb = new StringBuilder(text).append(" "); //$NON-NLS-1$
String sep = ""; //$NON-NLS-1$
for(String name : names) {
String value = getValue(node, name);
- if(value!=null) {
+ if(value != null) {
sb.append(sep).append(value);
sep = " : "; //$NON-NLS-1$
}
}
-
+
return sb.toString();
}
-
+
private String getValue(Node node, String name) {
- String val = XmlUtils.getTextValue(XmlUtils.findChild((Element)node, name));
- if (val != null && val.trim().length() == 0) {
+ String val = XmlUtils.getTextValue(XmlUtils.findChild((Element) node, name));
+ if(val != null && val.trim().length() == 0) {
//keep the previous contract of the getValue method.
val = null;
}
return val;
}
-
+
private String cleanText(Node node) {
String value = node.getNodeValue();
- if (value==null) {
+ if(value == null) {
return ""; //$NON-NLS-1$
}
-
+
value = value.replaceAll("\\s", " ").replaceAll("(\\s){2,}", " ").trim(); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
- if (value.length() > MAX_LABEL_LENGTH) {
+ if(value.length() > MAX_LABEL_LENGTH) {
value = value.substring(0, 120) + Dialog.ELLIPSIS;
}
-
+
return value;
}
}
@@ -357,4 +357,3 @@ public class PomContentOutlineConfiguration extends XMLContentOutlineConfigurati
return super.createMenuContributions(viewer);
}
}
-
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomHyperlinkDetector.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomHyperlinkDetector.java
index 81231f73..94d1acc2 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomHyperlinkDetector.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomHyperlinkDetector.java
@@ -30,16 +30,9 @@ import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
-import org.apache.maven.model.Build;
-import org.apache.maven.model.Dependency;
-import org.apache.maven.model.DependencyManagement;
-import org.apache.maven.model.InputLocation;
-import org.apache.maven.model.Model;
-import org.apache.maven.model.Plugin;
-import org.apache.maven.model.PluginManagement;
-import org.apache.maven.project.MavenProject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
@@ -83,6 +76,15 @@ import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
import org.eclipse.wst.sse.ui.StructuredTextEditor;
+import org.apache.maven.model.Build;
+import org.apache.maven.model.Dependency;
+import org.apache.maven.model.DependencyManagement;
+import org.apache.maven.model.InputLocation;
+import org.apache.maven.model.Model;
+import org.apache.maven.model.Plugin;
+import org.apache.maven.model.PluginManagement;
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.core.ui.internal.actions.OpenPomAction;
import org.eclipse.m2e.core.ui.internal.actions.OpenPomAction.MavenPathStorageEditorInput;
@@ -98,11 +100,12 @@ import org.eclipse.m2e.editor.xml.internal.XmlUtils;
public class PomHyperlinkDetector implements IHyperlinkDetector {
private static final Logger log = LoggerFactory.getLogger(PomHyperlinkDetector.class);
- public IHyperlink[] detectHyperlinks(final ITextViewer textViewer, final IRegion region, boolean canShowMultipleHyperlinks) {
+ public IHyperlink[] detectHyperlinks(final ITextViewer textViewer, final IRegion region,
+ boolean canShowMultipleHyperlinks) {
if(region == null || textViewer == null) {
return null;
}
-
+
IDocument document = textViewer.getDocument();
if(document == null) {
return null;
@@ -122,107 +125,107 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
}
final List<IHyperlink> hyperlinks = new ArrayList<IHyperlink>();
final int offset = region.getOffset();
-
+
XmlUtils.performOnCurrentElement(document, offset, new NodeOperation<Node>() {
public void process(Node node, IStructuredDocument structured) {
- if (textViewer instanceof ISourceViewer) {
- IHyperlink[] links = openExternalMarkerDefinition((ISourceViewer)textViewer, offset);
- if (links.length > 0) {
+ if(textViewer instanceof ISourceViewer) {
+ IHyperlink[] links = openExternalMarkerDefinition((ISourceViewer) textViewer, offset);
+ if(links.length > 0) {
hyperlinks.addAll(Arrays.asList(links));
}
}
//check if we have a property expression at cursor
IHyperlink link = openPropertyDefinition(node, textViewer, offset);
- if (link != null) {
+ if(link != null) {
hyperlinks.add(link);
}
//now check if the dependency/plugin has a version element or not, if not, try searching for it in DM/PM of effective pom
link = openDPManagement(node, textViewer, offset);
- if (link != null) {
+ if(link != null) {
hyperlinks.add(link);
}
//check if <module> text is selected.
link = openModule(node, textViewer, offset);
- if (link != null) {
+ if(link != null) {
hyperlinks.add(link);
}
link = openPOMbyID(node, textViewer, offset);
- if (link != null) {
+ if(link != null) {
hyperlinks.add(link);
}
}
});
-
- if (hyperlinks.size() > 0) {
+
+ if(hyperlinks.size() > 0) {
return hyperlinks.toArray(new IHyperlink[0]);
}
return null;
}
static ManagedArtifactRegion findManagedArtifactRegion(Node current, ITextViewer textViewer, int offset) {
- while (current != null && !( current instanceof Element)) {
- current = current.getParentNode();
+ while(current != null && !(current instanceof Element)) {
+ current = current.getParentNode();
}
- if (current != null) {
+ if(current != null) {
Node artNode = null;
Node groupNode = null;
- if (ARTIFACT_ID.equals(current.getNodeName())) { //$NON-NLS-1$
+ if(ARTIFACT_ID.equals(current.getNodeName())) { //$NON-NLS-1$
artNode = current;
}
- if (GROUP_ID.equals(current.getNodeName())) { //$NON-NLS-1$
+ if(GROUP_ID.equals(current.getNodeName())) { //$NON-NLS-1$
groupNode = current;
}
//only on artifactid and groupid elements..
- if (artNode == null && groupNode == null) {
+ if(artNode == null && groupNode == null) {
return null;
}
Node root = current.getParentNode();
boolean isDependency = false;
boolean isPlugin = false;
- if (root != null) {
+ if(root != null) {
String name = root.getNodeName();
- if (DEPENDENCY.equals(name)) { //$NON-NLS-1$
+ if(DEPENDENCY.equals(name)) { //$NON-NLS-1$
isDependency = true;
}
- if (PLUGIN.equals(name)) { //$NON-NLS-1$
+ if(PLUGIN.equals(name)) { //$NON-NLS-1$
isPlugin = true;
}
} else {
return null;
}
- if (!isDependency && !isPlugin) {
+ if(!isDependency && !isPlugin) {
//some kind of other identifier
return null;
}
//now see if version is missing
NodeList childs = root.getChildNodes();
- for (int i = 0; i < childs.getLength(); i++) {
+ for(int i = 0; i < childs.getLength(); i++ ) {
Node child = childs.item(i);
- if (child instanceof Element) {
+ if(child instanceof Element) {
Element el = (Element) child;
- if (VERSION.equals(el.getNodeName())) { //$NON-NLS-1$
+ if(VERSION.equals(el.getNodeName())) { //$NON-NLS-1$
return null;
}
- if (artNode == null && ARTIFACT_ID.equals(el.getNodeName())) { //$NON-NLS-1$
+ if(artNode == null && ARTIFACT_ID.equals(el.getNodeName())) { //$NON-NLS-1$
artNode = el;
}
- if (groupNode == null && GROUP_ID.equals(el.getNodeName())) { //$NON-NLS-1$
+ if(groupNode == null && GROUP_ID.equals(el.getNodeName())) { //$NON-NLS-1$
groupNode = el;
}
}
}
- if (groupNode != null && artNode != null) {
+ if(groupNode != null && artNode != null) {
assert groupNode instanceof IndexedRegion;
assert artNode instanceof IndexedRegion;
-
- IndexedRegion groupReg = (IndexedRegion)groupNode;
- IndexedRegion artReg = (IndexedRegion)artNode;
+
+ IndexedRegion groupReg = (IndexedRegion) groupNode;
+ IndexedRegion artReg = (IndexedRegion) artNode;
int startOffset = Math.min(groupReg.getStartOffset(), artReg.getStartOffset());
int length = Math.max(groupReg.getEndOffset(), artReg.getEndOffset()) - startOffset;
String groupId = XmlUtils.getTextValue(groupNode);
String artifactId = XmlUtils.getTextValue(artNode);
final MavenProject prj = XmlUtils.extractMavenProject(textViewer);
- if (prj != null) {
+ if(prj != null) {
//now we can create the region I guess,
return new ManagedArtifactRegion(startOffset, length, groupId, artifactId, isDependency, isPlugin, prj);
}
@@ -230,7 +233,7 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
}
return null;
}
-
+
public static IHyperlink createHyperlink(final ManagedArtifactRegion region) {
return new IHyperlink() {
public IRegion getHyperlinkRegion() {
@@ -246,101 +249,100 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
}
public void open() {
- //see if we can find the plugin in plugin management of resolved project.
+ //see if we can find the plugin in plugin management of resolved project.
MavenProject mavprj = region.project;
- if (mavprj != null) {
+ if(mavprj != null) {
InputLocation openLocation = findLocationForManagedArtifact(region, mavprj);
- if (openLocation != null) {
+ if(openLocation != null) {
File file = XmlUtils.fileForInputLocation(openLocation, mavprj);
- if (file != null) {
+ if(file != null) {
IFileStore fileStore = EFS.getLocalFileSystem().getStore(file.toURI());
- openXmlEditor(fileStore, openLocation.getLineNumber(), openLocation.getColumnNumber(), openLocation.getSource().getModelId());
+ openXmlEditor(fileStore, openLocation.getLineNumber(), openLocation.getColumnNumber(), openLocation
+ .getSource().getModelId());
}
}
}
}
};
-
+
}
-
- private IHyperlink openDPManagement(Node current, ITextViewer textViewer, int offset) {
- final ManagedArtifactRegion region = findManagedArtifactRegion(current, textViewer, offset);
- if (region != null) {
- return createHyperlink(region);
- }
+
+ private IHyperlink openDPManagement(Node current, ITextViewer textViewer, int offset) {
+ final ManagedArtifactRegion region = findManagedArtifactRegion(current, textViewer, offset);
+ if(region != null) {
+ return createHyperlink(region);
+ }
return null;
}
-
-
-
+
static InputLocation findLocationForManagedArtifact(final ManagedArtifactRegion region, MavenProject mavprj) {
- Model mdl = mavprj.getModel();
- InputLocation openLocation = null;
- if (region.isDependency) {
- DependencyManagement dm = mdl.getDependencyManagement();
- if (dm != null) {
- List<Dependency> list = dm.getDependencies();
- String id = region.groupId + ":" + region.artifactId + ":"; //$NON-NLS-1$ //$NON-NLS-2$
- if (list != null) {
- for (Dependency dep : list) {
- if (dep.getManagementKey().startsWith(id)) {
- InputLocation location = dep.getLocation(ARTIFACT_ID); //$NON-NLS-1$
- //when would this be null?
- if (location != null) {
- openLocation = location;
- break;
- }
- }
- }
- }
- }
- }
- if (region.isPlugin) {
- Build build = mdl.getBuild();
- if (build != null) {
- PluginManagement pm = build.getPluginManagement();
- if (pm != null) {
- List<Plugin> list = pm.getPlugins();
- String id = Plugin.constructKey(region.groupId, region.artifactId);
- if (list != null) {
- for (Plugin plg : list) {
- if (id.equals(plg.getKey())) {
- InputLocation location = plg.getLocation(ARTIFACT_ID); //$NON-NLS-1$
- //when would this be null?
- if (location != null) {
- openLocation = location;
- break;
- }
- }
- }
- }
- }
- }
- }
- return openLocation;
- }
+ Model mdl = mavprj.getModel();
+ InputLocation openLocation = null;
+ if(region.isDependency) {
+ DependencyManagement dm = mdl.getDependencyManagement();
+ if(dm != null) {
+ List<Dependency> list = dm.getDependencies();
+ String id = region.groupId + ":" + region.artifactId + ":"; //$NON-NLS-1$ //$NON-NLS-2$
+ if(list != null) {
+ for(Dependency dep : list) {
+ if(dep.getManagementKey().startsWith(id)) {
+ InputLocation location = dep.getLocation(ARTIFACT_ID); //$NON-NLS-1$
+ //when would this be null?
+ if(location != null) {
+ openLocation = location;
+ break;
+ }
+ }
+ }
+ }
+ }
+ }
+ if(region.isPlugin) {
+ Build build = mdl.getBuild();
+ if(build != null) {
+ PluginManagement pm = build.getPluginManagement();
+ if(pm != null) {
+ List<Plugin> list = pm.getPlugins();
+ String id = Plugin.constructKey(region.groupId, region.artifactId);
+ if(list != null) {
+ for(Plugin plg : list) {
+ if(id.equals(plg.getKey())) {
+ InputLocation location = plg.getLocation(ARTIFACT_ID); //$NON-NLS-1$
+ //when would this be null?
+ if(location != null) {
+ openLocation = location;
+ break;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ return openLocation;
+ }
static ExpressionRegion findExpressionRegion(Node current, ITextViewer viewer, int offset) {
- if (current != null && current instanceof Text) {
- Text node = (Text)current;
+ if(current != null && current instanceof Text) {
+ Text node = (Text) current;
String value = node.getNodeValue();
- if (value != null) {
+ if(value != null) {
assert node instanceof IndexedRegion;
- IndexedRegion reg = (IndexedRegion)node;
+ IndexedRegion reg = (IndexedRegion) node;
int index = offset - reg.getStartOffset();
- String before = value.substring(0, Math.min (index + 1, value.length()));
- String after = value.substring(Math.min (index + 1, value.length()));
+ String before = value.substring(0, Math.min(index + 1, value.length()));
+ String after = value.substring(Math.min(index + 1, value.length()));
int start = before.lastIndexOf("${"); //$NON-NLS-1$
- if (before.lastIndexOf("}") > start) {//$NON-NLS-1$
+ if(before.lastIndexOf("}") > start) {//$NON-NLS-1$
//we might be in between two expressions..
start = -1;
}
int end = after.indexOf("}"); //$NON-NLS-1$
- if (after.indexOf("${") != -1 && after.indexOf("${") < end) {//$NON-NLS-1$
+ if(after.indexOf("${") != -1 && after.indexOf("${") < end) {//$NON-NLS-1$
//we might be in between two expressions..
end = -1;
}
- if (start > -1 && end > -1) {
+ if(start > -1 && end > -1) {
final int startOffset = reg.getStartOffset() + start;
final String expr = before.substring(start) + after.substring(0, end + 1);
final int length = expr.length();
@@ -350,7 +352,7 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
// return null; //ignore these, not in properties section.
// }
MavenProject prj = XmlUtils.extractMavenProject(viewer);
- if (prj != null) {
+ if(prj != null) {
return new ExpressionRegion(startOffset, length, prop, prj);
}
}
@@ -358,7 +360,7 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
}
return null;
}
-
+
public static IHyperlink createHyperlink(final ExpressionRegion region) {
return new IHyperlink() {
public IRegion getHyperlinkRegion() {
@@ -380,7 +382,7 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
//TODO get rid of InputLocation here and use the dom tree to find the property
Model mdl = mavprj.getModel();
InputLocation location = null;
- if (mdl.getProperties().containsKey(region.property)) {
+ if(mdl.getProperties().containsKey(region.property)) {
location = mdl.getLocation(PROPERTIES).getLocation(region.property);
} else if(region.property != null && region.property.startsWith("project.")) {//$NON-NLS-1$
if("project.version".equals(region.property)) {
@@ -408,36 +410,36 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
}
return region.project != null && region.project.getModel().getProperties().containsKey(region.property);
}
-
+
//only create the hyperlink when the origin location for jumping is present.
//in some cases (managed version comes from imported dependencies) we don't have the location and have nowhere to jump)
public static boolean canCreateHyperLink(final ManagedArtifactRegion region) {
- return region.project != null && PomHyperlinkDetector.findLocationForManagedArtifact(region, region.project) != null;
- }
-
-
+ return region.project != null
+ && PomHyperlinkDetector.findLocationForManagedArtifact(region, region.project) != null;
+ }
+
static IHyperlink[] openExternalMarkerDefinition(ISourceViewer sourceViewer, int offset) {
List<IHyperlink> toRet = new ArrayList<IHyperlink>();
MarkerRegion[] regions = findMarkerRegions(sourceViewer, offset);
- for (MarkerRegion reg : regions) {
- if (reg.isDefinedInParent()) {
+ for(MarkerRegion reg : regions) {
+ if(reg.isDefinedInParent()) {
toRet.add(createHyperlink(reg));
}
}
return toRet.toArray(new IHyperlink[0]);
}
-
+
static MarkerRegion[] findMarkerRegions(ISourceViewer sourceViewer, int offset) {
List<MarkerRegion> toRet = new ArrayList<MarkerRegion>();
IAnnotationModel model = sourceViewer.getAnnotationModel();
- if (model != null) { //eg. in tests
+ if(model != null) { //eg. in tests
@SuppressWarnings("unchecked")
Iterator<Annotation> it = model.getAnnotationIterator();
- while (it.hasNext()) {
+ while(it.hasNext()) {
Annotation ann = it.next();
- if (ann instanceof MarkerAnnotation) {
+ if(ann instanceof MarkerAnnotation) {
Position pos = sourceViewer.getAnnotationModel().getPosition(ann);
- if (pos.includes(offset)) {
+ if(pos.includes(offset)) {
toRet.add(new MarkerRegion(pos.getOffset(), pos.getLength(), (MarkerAnnotation) ann));
}
}
@@ -445,7 +447,7 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
}
return toRet.toArray(new MarkerRegion[0]);
}
-
+
public static IHyperlink createHyperlink(final MarkerRegion mark) {
return new IHyperlink() {
@@ -462,9 +464,9 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
}
public void open() {
- IMarker marker = mark.getAnnotation().getMarker();
+ IMarker marker = mark.getAnnotation().getMarker();
String loc = marker.getAttribute(IMavenConstants.MARKER_CAUSE_RESOURCE_PATH, null);
- if (loc != null) {
+ if(loc != null) {
IFileStore fileStore = EFS.getLocalFileSystem().getStore(new Path(loc));
int row = marker.getAttribute(IMavenConstants.MARKER_CAUSE_LINE_NUMBER, 0);
int column = marker.getAttribute(IMavenConstants.MARKER_CAUSE_COLUMN_START, 0);
@@ -476,8 +478,8 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
}
}
};
- }
-
+ }
+
private IHyperlink openPropertyDefinition(Node current, ITextViewer viewer, int offset) {
final ExpressionRegion region = findExpressionRegion(current, viewer, offset);
if(region != null && canCreateHyperLink(region)) {
@@ -487,20 +489,20 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
}
private IHyperlink openModule(Node current, ITextViewer textViewer, int offset) {
- while (current != null && !( current instanceof Element)) {
- current = current.getParentNode();
+ while(current != null && !(current instanceof Element)) {
+ current = current.getParentNode();
}
- if (current == null) {
+ if(current == null) {
return null;
}
String pathUp = XmlUtils.pathUp(current, 2);
- if (! "modules/module".equals(pathUp)) { //$NON-NLS-1$
+ if(!"modules/module".equals(pathUp)) { //$NON-NLS-1$
//just in case we are in some random plugin configuration snippet..
return null;
}
-
+
ITextFileBuffer buf = FileBuffers.getTextFileBufferManager().getTextFileBuffer(textViewer.getDocument());
- if (buf == null) {
+ if(buf == null) {
//for repository based poms..
return null;
}
@@ -521,7 +523,7 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
modulePom = modulePom.getChild("pom.xml");//$NON-NLS-1$
}
final IFileStore fileStore = modulePom;
- if (!fileStore.fetchInfo().exists()) {
+ if(!fileStore.fetchInfo().exists()) {
return null;
}
assert current instanceof IndexedRegion;
@@ -545,98 +547,94 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
}
};
}
-
-
private IHyperlink openPOMbyID(Node current, final ITextViewer viewer, int offset) {
- while (current != null && !( current instanceof Element)) {
- current = current.getParentNode();
+ while(current != null && !(current instanceof Element)) {
+ current = current.getParentNode();
}
- if (current == null) {
+ if(current == null) {
return null;
}
current = current.getParentNode();
- if (current == null || !(current instanceof Element)) {
+ if(current == null || !(current instanceof Element)) {
return null;
}
Element parent = (Element) current;
String parentName = parent.getNodeName();
- if (DEPENDENCY.equals(parentName) || PARENT.equals(parentName)
- || PLUGIN.equals(parentName) || "reportPlugin".equals(parentName)
- || EXTENSION.equals(parentName)) {
- final Node groupId = XmlUtils.findChild(parent, GROUP_ID);
- final Node artifactId = XmlUtils.findChild(parent, ARTIFACT_ID);
- final Node version = XmlUtils.findChild(parent, VERSION);
+ if(DEPENDENCY.equals(parentName) || PARENT.equals(parentName) || PLUGIN.equals(parentName)
+ || "reportPlugin".equals(parentName) || EXTENSION.equals(parentName)) {
+ final Node groupId = XmlUtils.findChild(parent, GROUP_ID);
+ final Node artifactId = XmlUtils.findChild(parent, ARTIFACT_ID);
+ final Node version = XmlUtils.findChild(parent, VERSION);
final MavenProject prj = XmlUtils.extractMavenProject(viewer);
-
-
- IHyperlink pomHyperlink = new IHyperlink() {
- public IRegion getHyperlinkRegion() {
- //the goal here is to have the groupid/artifactid/version combo underscored by the link.
- //that will prevent underscoring big portions (like plugin config) underscored and
- // will also handle cases like dependencies within plugins.
- int max = groupId != null ? ((IndexedRegion)groupId).getEndOffset() : Integer.MIN_VALUE;
- int min = groupId != null ? ((IndexedRegion)groupId).getStartOffset() : Integer.MAX_VALUE;
- max = Math.max(max, artifactId != null ? ((IndexedRegion)artifactId).getEndOffset() : Integer.MIN_VALUE);
- min = Math.min(min, artifactId != null ? ((IndexedRegion)artifactId).getStartOffset() : Integer.MAX_VALUE);
- max = Math.max(max, version != null ? ((IndexedRegion)version).getEndOffset() : Integer.MIN_VALUE);
- min = Math.min(min, version != null ? ((IndexedRegion)version).getStartOffset() : Integer.MAX_VALUE);
- return new Region(min, max - min);
- }
- public String getHyperlinkText() {
- return NLS.bind(Messages.PomHyperlinkDetector_hyperlink_pattern, XmlUtils.getTextValue(groupId), XmlUtils.getTextValue(artifactId));
- }
+ IHyperlink pomHyperlink = new IHyperlink() {
+ public IRegion getHyperlinkRegion() {
+ //the goal here is to have the groupid/artifactid/version combo underscored by the link.
+ //that will prevent underscoring big portions (like plugin config) underscored and
+ // will also handle cases like dependencies within plugins.
+ int max = groupId != null ? ((IndexedRegion) groupId).getEndOffset() : Integer.MIN_VALUE;
+ int min = groupId != null ? ((IndexedRegion) groupId).getStartOffset() : Integer.MAX_VALUE;
+ max = Math.max(max, artifactId != null ? ((IndexedRegion) artifactId).getEndOffset() : Integer.MIN_VALUE);
+ min = Math.min(min, artifactId != null ? ((IndexedRegion) artifactId).getStartOffset() : Integer.MAX_VALUE);
+ max = Math.max(max, version != null ? ((IndexedRegion) version).getEndOffset() : Integer.MIN_VALUE);
+ min = Math.min(min, version != null ? ((IndexedRegion) version).getStartOffset() : Integer.MAX_VALUE);
+ return new Region(min, max - min);
+ }
- public String getTypeLabel() {
- return "pom"; //$NON-NLS-1$
- }
+ public String getHyperlinkText() {
+ return NLS.bind(Messages.PomHyperlinkDetector_hyperlink_pattern, XmlUtils.getTextValue(groupId),
+ XmlUtils.getTextValue(artifactId));
+ }
- public void open() {
- new Job(Messages.PomHyperlinkDetector_job_name) {
- protected IStatus run(IProgressMonitor monitor) {
- // TODO resolve groupId if groupId==null
- String gridString = groupId == null ? "org.apache.maven.plugins" : XmlUtils.getTextValue(groupId); //$NON-NLS-1$
- String artidString = artifactId == null ? null : XmlUtils.getTextValue(artifactId);
- String versionString = version == null ? null : XmlUtils.getTextValue(version);
- if (prj != null && gridString != null && artidString != null && (versionString == null || versionString.contains("${"))) { //$NON-NLS-1$
- try {
- //TODO how do we decide here if the hyperlink is a dependency or a plugin
- // hyperlink??
- versionString = PomTemplateContext.extractVersion(prj, null, versionString, gridString, artidString, PomTemplateContext.EXTRACT_STRATEGY_DEPENDENCY);
-
- } catch(CoreException e) {
- versionString = null;
+ public String getTypeLabel() {
+ return "pom"; //$NON-NLS-1$
+ }
+
+ public void open() {
+ new Job(Messages.PomHyperlinkDetector_job_name) {
+ protected IStatus run(IProgressMonitor monitor) {
+ // TODO resolve groupId if groupId==null
+ String gridString = groupId == null ? "org.apache.maven.plugins" : XmlUtils.getTextValue(groupId); //$NON-NLS-1$
+ String artidString = artifactId == null ? null : XmlUtils.getTextValue(artifactId);
+ String versionString = version == null ? null : XmlUtils.getTextValue(version);
+ if(prj != null && gridString != null && artidString != null
+ && (versionString == null || versionString.contains("${"))) { //$NON-NLS-1$
+ try {
+ //TODO how do we decide here if the hyperlink is a dependency or a plugin
+ // hyperlink??
+ versionString = PomTemplateContext.extractVersion(prj, null, versionString, gridString, artidString,
+ PomTemplateContext.EXTRACT_STRATEGY_DEPENDENCY);
+
+ } catch(CoreException e) {
+ versionString = null;
+ }
}
- }
- if (versionString == null) {
- return Status.OK_STATUS;
- }
- OpenPomAction.openEditor(gridString,
- artidString,
- versionString, monitor);
+ if(versionString == null) {
+ return Status.OK_STATUS;
+ }
+ OpenPomAction.openEditor(gridString, artidString, versionString, monitor);
// TODO: it's preferable to open the xml page, but this code will blink and open overview first and later switch. looks bad
// Display.getDefault().syncExec(new Runnable() {
// public void run() {
// selectEditorPage(page);
// }
// });
- return Status.OK_STATUS;
- }
- }.schedule();
- }
+ return Status.OK_STATUS;
+ }
+ }.schedule();
+ }
- };
- return pomHyperlink;
+ };
+ return pomHyperlink;
}
return null;
}
-
private void openXmlEditor(final IFileStore fileStore) {
openXmlEditor(fileStore, -1, -1, fileStore.getName());
}
-
+
private static void openXmlEditor(final IFileStore fileStore, int line, int column, String name) {
assert fileStore != null;
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
@@ -649,7 +647,7 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
reveal(selectEditorPage(part), line, column);
} else {
//we need special EditorInput for stuff from repository
- name = name + ".pom"; //$NON-NLS-1$
+ name = name + ".pom"; //$NON-NLS-1$
File file = new File(fileStore.toURI());
try {
IEditorInput input = new MavenPathStorageEditorInput(name, name, file.getAbsolutePath(),
@@ -658,7 +656,7 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
reveal(selectEditorPage(part), line, column);
} catch(IOException e) {
log.error("failed opening editor", e);
- }
+ }
}
} catch(PartInitException e) {
MessageDialog.openInformation(
@@ -670,27 +668,27 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
}
}
}
-
+
private static StructuredTextEditor selectEditorPage(IEditorPart part) {
- if (part == null) {
+ if(part == null) {
return null;
}
- if (part instanceof FormEditor) {
+ if(part instanceof FormEditor) {
FormEditor ed = (FormEditor) part;
ed.setActivePage(null); //null means source, always or just in the case of MavenPomEditor?
- if (ed.getActiveEditor() instanceof StructuredTextEditor) {
+ if(ed.getActiveEditor() instanceof StructuredTextEditor) {
return (StructuredTextEditor) ed.getActiveEditor();
- }
+ }
}
return null;
}
-
+
private static void reveal(StructuredTextEditor structured, int line, int column) {
- if (structured == null || line < 0 || column < 0) {
+ if(structured == null || line < 0 || column < 0) {
return;
}
IDocument doc = structured.getTextViewer().getDocument();
- if (doc instanceof IStructuredDocument) {
+ if(doc instanceof IStructuredDocument) {
IStructuredDocument document = (IStructuredDocument) doc;
try {
int offset = document.getLineOffset(line - 1);
@@ -700,9 +698,10 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
}
}
}
-
+
/**
* duplicate of OpenPomAction method
+ *
* @param is
* @return
* @throws IOException
@@ -728,14 +727,15 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
}
}
}
-
-
public static class ExpressionRegion implements IRegion {
final String property;
+
private int length;
+
private int offset;
+
final MavenProject project;
public ExpressionRegion(int startOffset, int length, String prop, MavenProject project) {
@@ -754,18 +754,25 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
return offset;
}
}
-
+
public static class ManagedArtifactRegion implements IRegion {
private int length;
+
private int offset;
+
final MavenProject project;
+
final String groupId;
+
final String artifactId;
+
final boolean isPlugin;
+
final boolean isDependency;
- public ManagedArtifactRegion(int startOffset, int length, String groupId, String artifactId, boolean isDependency, boolean isPlugin, MavenProject project) {
+ public ManagedArtifactRegion(int startOffset, int length, String groupId, String artifactId, boolean isDependency,
+ boolean isPlugin, MavenProject project) {
this.offset = startOffset;
this.length = length;
this.project = project;
@@ -783,44 +790,43 @@ public class PomHyperlinkDetector implements IHyperlinkDetector {
public int getOffset() {
return offset;
}
- }
+ }
public static class MarkerRegion implements IRegion {
-
+
private final MarkerAnnotation ann;
+
final int offset;
+
final int length;
-
+
public MarkerRegion(int offset, int length, MarkerAnnotation applicable) {
this.offset = offset;
this.length = length;
this.ann = applicable;
}
-
+
public int getLength() {
return length;
}
-
+
public int getOffset() {
return offset;
}
-
+
public MarkerAnnotation getAnnotation() {
return ann;
}
-
+
public boolean isDefinedInParent() {
IMarker mark = ann.getMarker();
String isElsewhere = mark.getAttribute(IMavenConstants.MARKER_CAUSE_RESOURCE_PATH, null);
- if (isElsewhere != null) {
+ if(isElsewhere != null) {
return true;
}
return false;
}
-
- }
+ }
-
-
}
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomModelHandler.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomModelHandler.java
index cd68f514..bdcea27b 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomModelHandler.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomModelHandler.java
@@ -35,7 +35,6 @@ import org.eclipse.wst.xml.core.internal.ssemodelquery.ModelQueryAdapter;
import org.eclipse.wst.xml.core.internal.ssemodelquery.ModelQueryAdapterImpl;
-
@SuppressWarnings("restriction")
public class PomModelHandler extends ModelHandlerForXML {
@@ -76,8 +75,8 @@ public class PomModelHandler extends ModelHandlerForXML {
protected INodeAdapter createAdapter(INodeNotifier target) {
if(modelQueryAdapterImpl == null) {
ModelQueryAdapter mqa = (ModelQueryAdapter) super.createAdapter(target);
- modelQueryAdapterImpl = new ModelQueryAdapterImpl(mqa.getCMDocumentCache(), new PomModelQueryImpl(mqa
- .getCMDocumentCache(), mqa.getIdResolver()), mqa.getIdResolver());
+ modelQueryAdapterImpl = new ModelQueryAdapterImpl(mqa.getCMDocumentCache(), new PomModelQueryImpl(
+ mqa.getCMDocumentCache(), mqa.getIdResolver()), mqa.getIdResolver());
}
return modelQueryAdapterImpl;
}
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomQuickAssistProcessor.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomQuickAssistProcessor.java
index 495edcba..09a5e021 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomQuickAssistProcessor.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomQuickAssistProcessor.java
@@ -18,6 +18,7 @@ import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.Text;
@@ -64,17 +65,21 @@ import org.eclipse.m2e.editor.xml.internal.XmlUtils;
import org.eclipse.m2e.editor.xml.internal.lifecycle.LifecycleMappingProposal;
import org.eclipse.m2e.editor.xml.internal.lifecycle.WorkspaceLifecycleMappingProposal;
+
public class PomQuickAssistProcessor implements IQuickAssistProcessor {
private static final Logger log = LoggerFactory.getLogger(PomQuickAssistProcessor.class);
private static final String GROUP_ID_NODE = "groupId"; //$NON-NLS-1$
+
private static final String ARTIFACT_ID_NODE = "artifactId"; //$NON-NLS-1$
+
private static final String VERSION_NODE = "version"; //$NON-NLS-1$
public static final String PROJECT_NODE = "project"; //$NON-NLS-1$
- public static final String XSI_VALUE = " xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"+ //$NON-NLS-1$
- "xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\""; //$NON-NLS-1$
-
+
+ public static final String XSI_VALUE = " xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" + //$NON-NLS-1$
+ "xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\""; //$NON-NLS-1$
+
public boolean canAssist(IQuickAssistInvocationContext arg0) {
return true;
}
@@ -89,7 +94,7 @@ public class PomQuickAssistProcessor implements IQuickAssistProcessor {
}
return false;
}
-
+
public ICompletionProposal[] computeQuickAssistProposals(IQuickAssistInvocationContext context) {
List<ICompletionProposal> proposals = new ArrayList<ICompletionProposal>();
Iterator<Annotation> annotationIterator = context.getSourceViewer().getAnnotationModel().getAnnotationIterator();
@@ -118,7 +123,7 @@ public class PomQuickAssistProcessor implements IQuickAssistProcessor {
proposals.add(new IgnoreWarningProposal(context, mark, IMavenConstants.MARKER_IGNORE_MANAGED));
} else if(hint.equals(IMavenConstants.EDITOR_HINT_MISSING_SCHEMA)) {
proposals.add(new SchemaCompletionProposal(context, mark));
- } else if (hint.equals(IMavenConstants.EDITOR_HINT_NOT_COVERED_MOJO_EXECUTION)) {
+ } else if(hint.equals(IMavenConstants.EDITOR_HINT_NOT_COVERED_MOJO_EXECUTION)) {
extractedFromMarkers(proposals, mark); //having this first sort of helps for 335490
proposals.add(new LifecycleMappingProposal(context, mark, PluginExecutionAction.ignore));
proposals.add(new WorkspaceLifecycleMappingProposal(mark.getMarker(), PluginExecutionAction.ignore));
@@ -131,7 +136,8 @@ public class PomQuickAssistProcessor implements IQuickAssistProcessor {
}
}
} catch(Exception e) {
- MvnIndexPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, MvnIndexPlugin.PLUGIN_ID, "Exception in pom quick assist.", e));
+ MvnIndexPlugin.getDefault().getLog()
+ .log(new Status(IStatus.ERROR, MvnIndexPlugin.PLUGIN_ID, "Exception in pom quick assist.", e));
}
}
}
@@ -148,20 +154,20 @@ public class PomQuickAssistProcessor implements IQuickAssistProcessor {
//TODO we might consider moving all proposals to this scheme eventually.. need
// to remember not wrapping instances of ICompletionProposal and correctly set the context (but how do you set context
// to something not created by you?? possible memory leak.
- if (IDE.getMarkerHelpRegistry().hasResolutions(mark.getMarker())) {
+ if(IDE.getMarkerHelpRegistry().hasResolutions(mark.getMarker())) {
IMarkerResolution[] resolutions = IDE.getMarkerHelpRegistry().getResolutions(mark.getMarker());
- for (IMarkerResolution res : resolutions) {
+ for(IMarkerResolution res : resolutions) {
//sort of weak condition, but can't think of anything else that would filter our explicitly declared ones..
- if (!res.getClass().getName().contains("org.eclipse.m2e.editor.xml")) {
- MarkerResolutionProposal prop = new MarkerResolutionProposal(res, mark.getMarker());
- //335299 for discoveryWizardProposal have only one item returned per invokation.
- if (res.getClass().getName().contains("DiscoveryWizardProposal")) {
- if (!proposals.contains(prop)) {
- proposals.add(prop);
- }
- } else {
+ if(!res.getClass().getName().contains("org.eclipse.m2e.editor.xml")) {
+ MarkerResolutionProposal prop = new MarkerResolutionProposal(res, mark.getMarker());
+ //335299 for discoveryWizardProposal have only one item returned per invokation.
+ if(res.getClass().getName().contains("DiscoveryWizardProposal")) {
+ if(!proposals.contains(prop)) {
proposals.add(prop);
}
+ } else {
+ proposals.add(prop);
+ }
}
}
}
@@ -170,10 +176,10 @@ public class PomQuickAssistProcessor implements IQuickAssistProcessor {
public String getErrorMessage() {
return null;
}
-
+
static String previewForRemovedElement(IDocument doc, Element removed) {
- if (removed != null && removed instanceof IndexedRegion) {
- IndexedRegion reg = (IndexedRegion)removed;
+ if(removed != null && removed instanceof IndexedRegion) {
+ IndexedRegion reg = (IndexedRegion) removed;
try {
int line = doc.getLineOfOffset(reg.getStartOffset());
int startLine = doc.getLineOffset(line);
@@ -182,9 +188,9 @@ public class PomQuickAssistProcessor implements IQuickAssistProcessor {
// String currentLine = doc.get(startLine, doc.getLineLength(line));
int nextLine = Math.min(line + 2, doc.getNumberOfLines() - 1);
int next2End = doc.getLineOffset(nextLine) + doc.getLineLength(nextLine);
- int next2Start = startLine + doc.getLineLength( line ) + 1;
+ int next2Start = startLine + doc.getLineLength(line) + 1;
String nextString = StringUtils.convertToHTMLContent(doc.get(next2Start, next2End - next2Start));
- return "<html>...<br>" + prevString + /**"<del>" + currentLine + "</del>" +*/ nextString + "...<html>"; //$NON-NLS-1$ //$NON-NLS-2$
+ return "<html>...<br>" + prevString + /** "<del>" + currentLine + "</del>" + */nextString + "...<html>"; //$NON-NLS-1$ //$NON-NLS-2$
} catch(BadLocationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
@@ -193,183 +199,190 @@ public class PomQuickAssistProcessor implements IQuickAssistProcessor {
return null;
}
-class SchemaCompletionProposal implements ICompletionProposal, ICompletionProposalExtension5 {
+ class SchemaCompletionProposal implements ICompletionProposal, ICompletionProposalExtension5 {
- IQuickAssistInvocationContext context;
- private MarkerAnnotation annotation;
- public SchemaCompletionProposal(IQuickAssistInvocationContext context, MarkerAnnotation mark){
- this.context = context;
- annotation = mark;
- }
-
- public void apply(IDocument doc) {
- IDOMModel domModel = null;
- try {
- domModel = (IDOMModel) StructuredModelManager.getModelManager().getExistingModelForRead(doc);
- Element root = domModel.getDocument().getDocumentElement();
-
- //now check parent version and groupid against the current project's ones..
- if (root.getNodeName().equals(PomQuickAssistProcessor.PROJECT_NODE)) { //$NON-NLS-1$
- if (root instanceof IndexedRegion) {
- IndexedRegion off = (IndexedRegion) root;
-
- int offset = off.getStartOffset() + PomQuickAssistProcessor.PROJECT_NODE.length() + 1;
- if (offset <= 0) {
- return;
- }
- InsertEdit edit = new InsertEdit(offset, PomQuickAssistProcessor.XSI_VALUE);
- try {
- edit.apply(doc);
- annotation.getMarker().delete();
- Display.getDefault().asyncExec(new Runnable() {
- public void run() {
- IEditorPart activeEditor = MvnIndexPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow()
- .getActivePage().getActiveEditor();
- MvnIndexPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage()
- .saveEditor(activeEditor, false);
- }
- });
- } catch(Exception e) {
- log.error("Unable to insert schema info", e); //$NON-NLS-1$
+ IQuickAssistInvocationContext context;
+
+ private MarkerAnnotation annotation;
+
+ public SchemaCompletionProposal(IQuickAssistInvocationContext context, MarkerAnnotation mark) {
+ this.context = context;
+ annotation = mark;
+ }
+
+ public void apply(IDocument doc) {
+ IDOMModel domModel = null;
+ try {
+ domModel = (IDOMModel) StructuredModelManager.getModelManager().getExistingModelForRead(doc);
+ Element root = domModel.getDocument().getDocumentElement();
+
+ //now check parent version and groupid against the current project's ones..
+ if(root.getNodeName().equals(PomQuickAssistProcessor.PROJECT_NODE)) { //$NON-NLS-1$
+ if(root instanceof IndexedRegion) {
+ IndexedRegion off = (IndexedRegion) root;
+
+ int offset = off.getStartOffset() + PomQuickAssistProcessor.PROJECT_NODE.length() + 1;
+ if(offset <= 0) {
+ return;
+ }
+ InsertEdit edit = new InsertEdit(offset, PomQuickAssistProcessor.XSI_VALUE);
+ try {
+ edit.apply(doc);
+ annotation.getMarker().delete();
+ Display.getDefault().asyncExec(new Runnable() {
+ public void run() {
+ IEditorPart activeEditor = MvnIndexPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow()
+ .getActivePage().getActiveEditor();
+ MvnIndexPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage()
+ .saveEditor(activeEditor, false);
+ }
+ });
+ } catch(Exception e) {
+ log.error("Unable to insert schema info", e); //$NON-NLS-1$
+ }
}
}
- }
- } finally {
- if (domModel != null) {
- domModel.releaseFromRead();
+ } finally {
+ if(domModel != null) {
+ domModel.releaseFromRead();
+ }
}
}
- }
- public String getAdditionalProposalInfo() {
- //NOT TO BE REALLY IMPLEMENTED, we have the other method
- return null;
- }
+ public String getAdditionalProposalInfo() {
+ //NOT TO BE REALLY IMPLEMENTED, we have the other method
+ return null;
+ }
- public IContextInformation getContextInformation() {
- return null;
- }
+ public IContextInformation getContextInformation() {
+ return null;
+ }
- public String getDisplayString() {
- return Messages.PomQuickAssistProcessor_name;
- }
+ public String getDisplayString() {
+ return Messages.PomQuickAssistProcessor_name;
+ }
- public Image getImage() {
+ public Image getImage() {
return PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_ADD);
- }
+ }
- public Point getSelection(IDocument arg0) {
- return null;
- }
+ public Point getSelection(IDocument arg0) {
+ return null;
+ }
+
+ public Object getAdditionalProposalInfo(IProgressMonitor monitor) {
+ return "<html>...<br>&lt;project <b>" + PomQuickAssistProcessor.XSI_VALUE + "</b>&gt;<br>...</html>"; //$NON-NLS-1$ //$NON-NLS-2$
+ }
- public Object getAdditionalProposalInfo(IProgressMonitor monitor) {
- return "<html>...<br>&lt;project <b>" + PomQuickAssistProcessor.XSI_VALUE + "</b>&gt;<br>...</html>"; //$NON-NLS-1$ //$NON-NLS-2$
}
-
-}
+ static class IdPartRemovalProposal implements ICompletionProposal, ICompletionProposalExtension5, IMarkerResolution,
+ IMarkerResolution2 {
-static class IdPartRemovalProposal implements ICompletionProposal, ICompletionProposalExtension5, IMarkerResolution, IMarkerResolution2 {
+ private IQuickAssistInvocationContext context;
- private IQuickAssistInvocationContext context;
- private final boolean isVersion;
- private final IMarker marker;
- public IdPartRemovalProposal(IQuickAssistInvocationContext context, boolean version, MarkerAnnotation mark) {
- this.context = context;
- isVersion = version;
- marker = mark.getMarker();
- }
-
- public IdPartRemovalProposal(IMarker marker, boolean version) {
- this.marker = marker;
- isVersion = version;
- }
-
- public void apply(final IDocument doc) {
- XmlUtils.performOnRootElement(doc, new NodeOperation<Element>() {
- public void process(Element node, IStructuredDocument structured) {
- processFix(doc, node, isVersion, marker);
- }
- });
- }
+ private final boolean isVersion;
- private void processFix(IDocument doc, Element root, boolean isversion, IMarker marker) {
- //now check parent version and groupid against the current project's ones..
- if (root.getNodeName().equals(PomQuickAssistProcessor.PROJECT_NODE)) { //$NON-NLS-1$
- Element value = XmlUtils.findChild(root, isversion ? VERSION_NODE : GROUP_ID_NODE); //$NON-NLS-1$ //$NON-NLS-2$
- if (value != null && value instanceof IndexedRegion) {
- IndexedRegion off = (IndexedRegion) value;
+ private final IMarker marker;
- int offset = off.getStartOffset();
- if (offset <= 0) {
- return;
- }
- Node prev = value.getNextSibling();
- if (prev instanceof Text) {
- //check the content as well??
- off = ((IndexedRegion) prev);
+ public IdPartRemovalProposal(IQuickAssistInvocationContext context, boolean version, MarkerAnnotation mark) {
+ this.context = context;
+ isVersion = version;
+ marker = mark.getMarker();
+ }
+
+ public IdPartRemovalProposal(IMarker marker, boolean version) {
+ this.marker = marker;
+ isVersion = version;
+ }
+
+ public void apply(final IDocument doc) {
+ XmlUtils.performOnRootElement(doc, new NodeOperation<Element>() {
+ public void process(Element node, IStructuredDocument structured) {
+ processFix(doc, node, isVersion, marker);
}
- DeleteEdit edit = new DeleteEdit(offset, off.getEndOffset() - offset);
- try {
- edit.apply(doc);
- marker.delete();
- } catch(Exception e) {
- log.error("Unable to remove the element", e); //$NON-NLS-1$
+ });
+ }
+
+ private void processFix(IDocument doc, Element root, boolean isversion, IMarker marker) {
+ //now check parent version and groupid against the current project's ones..
+ if(root.getNodeName().equals(PomQuickAssistProcessor.PROJECT_NODE)) { //$NON-NLS-1$
+ Element value = XmlUtils.findChild(root, isversion ? VERSION_NODE : GROUP_ID_NODE); //$NON-NLS-1$ //$NON-NLS-2$
+ if(value != null && value instanceof IndexedRegion) {
+ IndexedRegion off = (IndexedRegion) value;
+
+ int offset = off.getStartOffset();
+ if(offset <= 0) {
+ return;
+ }
+ Node prev = value.getNextSibling();
+ if(prev instanceof Text) {
+ //check the content as well??
+ off = ((IndexedRegion) prev);
+ }
+ DeleteEdit edit = new DeleteEdit(offset, off.getEndOffset() - offset);
+ try {
+ edit.apply(doc);
+ marker.delete();
+ } catch(Exception e) {
+ log.error("Unable to remove the element", e); //$NON-NLS-1$
+ }
}
}
}
- }
- public String getAdditionalProposalInfo() {
- return null;
- }
+ public String getAdditionalProposalInfo() {
+ return null;
+ }
- public IContextInformation getContextInformation() {
- return null;
- }
+ public IContextInformation getContextInformation() {
+ return null;
+ }
- public String getDisplayString() {
- return isVersion ? Messages.PomQuickAssistProcessor_title_version : Messages.PomQuickAssistProcessor_title_groupId;
- }
+ public String getDisplayString() {
+ return isVersion ? Messages.PomQuickAssistProcessor_title_version
+ : Messages.PomQuickAssistProcessor_title_groupId;
+ }
- public Image getImage() {
+ public Image getImage() {
return PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_DELETE);
- }
-
- public Point getSelection(IDocument arg0) {
- return null;
- }
+ }
- public Object getAdditionalProposalInfo(IProgressMonitor monitor) {
- if (context == null) {
- //no context in markerresolution, just to be sure..
- return Messages.PomQuickAssistProcessor_remove_hint;
+ public Point getSelection(IDocument arg0) {
+ return null;
}
- final IDocument doc = context.getSourceViewer().getDocument();
- //oh, how do I miss scala here..
- final String[] toRet = new String[1];
- XmlUtils.performOnRootElement(doc, new NodeOperation<Element>() {
- public void process(Element root, IStructuredDocument structured) {
- //now check parent version and groupid against the current project's ones..
- if (root.getNodeName().equals(PomQuickAssistProcessor.PROJECT_NODE)) { //$NON-NLS-1$
- Element value = XmlUtils.findChild(root, isVersion ? VERSION_NODE : GROUP_ID_NODE); //$NON-NLS-1$ //$NON-NLS-2$
- toRet[0] = previewForRemovedElement(doc, value);
+
+ public Object getAdditionalProposalInfo(IProgressMonitor monitor) {
+ if(context == null) {
+ //no context in markerresolution, just to be sure..
+ return Messages.PomQuickAssistProcessor_remove_hint;
+ }
+ final IDocument doc = context.getSourceViewer().getDocument();
+ //oh, how do I miss scala here..
+ final String[] toRet = new String[1];
+ XmlUtils.performOnRootElement(doc, new NodeOperation<Element>() {
+ public void process(Element root, IStructuredDocument structured) {
+ //now check parent version and groupid against the current project's ones..
+ if(root.getNodeName().equals(PomQuickAssistProcessor.PROJECT_NODE)) { //$NON-NLS-1$
+ Element value = XmlUtils.findChild(root, isVersion ? VERSION_NODE : GROUP_ID_NODE); //$NON-NLS-1$ //$NON-NLS-2$
+ toRet[0] = previewForRemovedElement(doc, value);
+ }
+ }
+ });
+ if(toRet[0] != null) {
+ return toRet[0];
}
- }});
- if (toRet[0] != null) {
- return toRet[0];
+
+ return Messages.PomQuickAssistProcessor_remove_hint;
}
-
- return Messages.PomQuickAssistProcessor_remove_hint;
- }
- public String getLabel() {
- return getDisplayString();
- }
+ public String getLabel() {
+ return getDisplayString();
+ }
- public void run(final IMarker marker) {
+ public void run(final IMarker marker) {
try {
- XmlUtils.performOnRootElement((IFile)marker.getResource(), new NodeOperation<Element>() {
+ XmlUtils.performOnRootElement((IFile) marker.getResource(), new NodeOperation<Element>() {
public void process(Element node, IStructuredDocument structured) {
processFix(structured, node, isVersion, marker);
}
@@ -381,164 +394,167 @@ static class IdPartRemovalProposal implements ICompletionProposal, ICompletionPr
}
}
- public String getDescription() {
- // TODO Auto-generated method stub
- return (String) getAdditionalProposalInfo(new NullProgressMonitor());
+ public String getDescription() {
+ // TODO Auto-generated method stub
+ return (String) getAdditionalProposalInfo(new NullProgressMonitor());
+ }
}
-}
-static class ManagedVersionRemovalProposal implements ICompletionProposal, ICompletionProposalExtension5, IMarkerResolution, IMarkerResolution2 {
+ static class ManagedVersionRemovalProposal implements ICompletionProposal, ICompletionProposalExtension5,
+ IMarkerResolution, IMarkerResolution2 {
- private IQuickAssistInvocationContext context;
- private final boolean isDependency;
- private final IMarker marker;
- public ManagedVersionRemovalProposal(IQuickAssistInvocationContext context, boolean dependency, MarkerAnnotation mark) {
- this.context = context;
- isDependency = dependency;
- marker = mark.getMarker();
- }
-
- public ManagedVersionRemovalProposal(IMarker marker, boolean dependency) {
- this.marker = marker;
- isDependency = dependency;
- }
-
+ private IQuickAssistInvocationContext context;
-
- public void apply(final IDocument doc) {
- XmlUtils.performOnRootElement(doc, new NodeOperation<Element>() {
- public void process(Element node, IStructuredDocument structured) {
- processFix(doc, node, isDependency, marker);
- }
- });
- }
+ private final boolean isDependency;
- private void processFix(IDocument doc, Element root, boolean isdep, IMarker marker) {
- if (root.getNodeName().equals(PomQuickAssistProcessor.PROJECT_NODE)) {
- Element artifact = findArtifactElement(root, isdep, marker);
- if (artifact == null) {
- //TODO report somehow?
- log.error("Unable to find the marked element"); //$NON-NLS-1$
- return;
- }
- Element value = XmlUtils.findChild(artifact, VERSION_NODE); //$NON-NLS-1$ //$NON-NLS-2$
- if (value != null && value instanceof IndexedRegion) {
- IndexedRegion off = (IndexedRegion) value;
+ private final IMarker marker;
- int offset = off.getStartOffset();
- if (offset <= 0) {
- return;
+ public ManagedVersionRemovalProposal(IQuickAssistInvocationContext context, boolean dependency,
+ MarkerAnnotation mark) {
+ this.context = context;
+ isDependency = dependency;
+ marker = mark.getMarker();
+ }
+
+ public ManagedVersionRemovalProposal(IMarker marker, boolean dependency) {
+ this.marker = marker;
+ isDependency = dependency;
+ }
+
+ public void apply(final IDocument doc) {
+ XmlUtils.performOnRootElement(doc, new NodeOperation<Element>() {
+ public void process(Element node, IStructuredDocument structured) {
+ processFix(doc, node, isDependency, marker);
}
- Node prev = value.getNextSibling();
- if (prev instanceof Text) {
- //check the content as well??
- off = ((IndexedRegion) prev);
+ });
+ }
+
+ private void processFix(IDocument doc, Element root, boolean isdep, IMarker marker) {
+ if(root.getNodeName().equals(PomQuickAssistProcessor.PROJECT_NODE)) {
+ Element artifact = findArtifactElement(root, isdep, marker);
+ if(artifact == null) {
+ //TODO report somehow?
+ log.error("Unable to find the marked element"); //$NON-NLS-1$
+ return;
}
- DeleteEdit edit = new DeleteEdit(offset, off.getEndOffset() - offset);
- try {
- edit.apply(doc);
- marker.delete();
- } catch(Exception e) {
- log.error("Unable to remove the element", e); //$NON-NLS-1$
+ Element value = XmlUtils.findChild(artifact, VERSION_NODE); //$NON-NLS-1$ //$NON-NLS-2$
+ if(value != null && value instanceof IndexedRegion) {
+ IndexedRegion off = (IndexedRegion) value;
+
+ int offset = off.getStartOffset();
+ if(offset <= 0) {
+ return;
+ }
+ Node prev = value.getNextSibling();
+ if(prev instanceof Text) {
+ //check the content as well??
+ off = ((IndexedRegion) prev);
+ }
+ DeleteEdit edit = new DeleteEdit(offset, off.getEndOffset() - offset);
+ try {
+ edit.apply(doc);
+ marker.delete();
+ } catch(Exception e) {
+ log.error("Unable to remove the element", e); //$NON-NLS-1$
+ }
}
}
}
- }
- private Element findArtifactElement(Element root, boolean isdep, IMarker marker) {
- if (root == null) {
- return null;
- }
- String groupId = marker.getAttribute("groupId", null);
- String artifactId = marker.getAttribute("artifactId", null);
- assert groupId != null;
- assert artifactId != null;
-
- String profile = marker.getAttribute("profile", null);
- Element artifactParent = root;
- if (profile != null) {
- Element profileRoot = XmlUtils.findChild(root, "profiles");
- if (profileRoot != null) {
- for (Element prf : XmlUtils.findChilds(profileRoot, "profile")) {
- if (profile.equals(XmlUtils.getTextValue(XmlUtils.findChild(prf, "id")))) {
- artifactParent = prf;
- break;
+ private Element findArtifactElement(Element root, boolean isdep, IMarker marker) {
+ if(root == null) {
+ return null;
+ }
+ String groupId = marker.getAttribute("groupId", null);
+ String artifactId = marker.getAttribute("artifactId", null);
+ assert groupId != null;
+ assert artifactId != null;
+
+ String profile = marker.getAttribute("profile", null);
+ Element artifactParent = root;
+ if(profile != null) {
+ Element profileRoot = XmlUtils.findChild(root, "profiles");
+ if(profileRoot != null) {
+ for(Element prf : XmlUtils.findChilds(profileRoot, "profile")) {
+ if(profile.equals(XmlUtils.getTextValue(XmlUtils.findChild(prf, "id")))) {
+ artifactParent = prf;
+ break;
+ }
}
}
}
+ if(!isdep) {
+ //we have plugins now, need to go one level down to build
+ artifactParent = XmlUtils.findChild(artifactParent, "build");
+ }
+ if(artifactParent == null) {
+ return null;
+ }
+ Element list = XmlUtils.findChild(artifactParent, isdep ? "dependencies" : "plugins");
+ if(list == null) {
+ return null;
+ }
+ Element artifact = null;
+ for(Element art : XmlUtils.findChilds(list, isdep ? "dependency" : "plugin")) {
+ String grpString = XmlUtils.getTextValue(XmlUtils.findChild(art, GROUP_ID_NODE));
+ String artString = XmlUtils.getTextValue(XmlUtils.findChild(art, ARTIFACT_ID_NODE));
+ if(groupId.equals(grpString) && artifactId.equals(artString)) {
+ artifact = art;
+ break;
+ }
+ }
+ return artifact;
}
- if (!isdep) {
- //we have plugins now, need to go one level down to build
- artifactParent = XmlUtils.findChild(artifactParent, "build");
- }
- if (artifactParent == null) {
+
+ public String getAdditionalProposalInfo() {
return null;
}
- Element list = XmlUtils.findChild(artifactParent, isdep ? "dependencies" : "plugins");
- if (list == null) {
+
+ public IContextInformation getContextInformation() {
return null;
}
- Element artifact = null;
- for (Element art : XmlUtils.findChilds(list, isdep ? "dependency" : "plugin")) {
- String grpString = XmlUtils.getTextValue(XmlUtils.findChild(art, GROUP_ID_NODE));
- String artString = XmlUtils.getTextValue(XmlUtils.findChild(art, ARTIFACT_ID_NODE));
- if (groupId.equals(grpString) && artifactId.equals(artString)) {
- artifact = art;
- break;
- }
- }
- return artifact;
- }
-
- public String getAdditionalProposalInfo() {
- return null;
- }
- public IContextInformation getContextInformation() {
- return null;
- }
-
- public String getDisplayString() {
- return Messages.PomQuickAssistProcessor_title_version;
- }
+ public String getDisplayString() {
+ return Messages.PomQuickAssistProcessor_title_version;
+ }
- public Image getImage() {
+ public Image getImage() {
return PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_DELETE);
- }
-
- public Point getSelection(IDocument arg0) {
- return null;
- }
+ }
- public Object getAdditionalProposalInfo(IProgressMonitor monitor) {
- if (context == null) {
- //no context in markerresolution, just to be sure..
- return Messages.PomQuickAssistProcessor_remove_hint;
+ public Point getSelection(IDocument arg0) {
+ return null;
}
- final IDocument doc = context.getSourceViewer().getDocument();
- final String[] toRet = new String[1];
- XmlUtils.performOnRootElement(doc, new NodeOperation<Element>() {
- public void process(Element node, IStructuredDocument structured) {
- Element artifact = findArtifactElement(node, isDependency, marker);
- if (artifact != null) {
- Element value = XmlUtils.findChild(artifact, VERSION_NODE);
- toRet[0] = previewForRemovedElement(doc, value);
+
+ public Object getAdditionalProposalInfo(IProgressMonitor monitor) {
+ if(context == null) {
+ //no context in markerresolution, just to be sure..
+ return Messages.PomQuickAssistProcessor_remove_hint;
+ }
+ final IDocument doc = context.getSourceViewer().getDocument();
+ final String[] toRet = new String[1];
+ XmlUtils.performOnRootElement(doc, new NodeOperation<Element>() {
+ public void process(Element node, IStructuredDocument structured) {
+ Element artifact = findArtifactElement(node, isDependency, marker);
+ if(artifact != null) {
+ Element value = XmlUtils.findChild(artifact, VERSION_NODE);
+ toRet[0] = previewForRemovedElement(doc, value);
+ }
}
+ });
+ if(toRet[0] != null) {
+ return toRet[0];
}
- });
- if (toRet[0] != null) {
- return toRet[0];
+ return Messages.PomQuickAssistProcessor_remove_hint;
}
- return Messages.PomQuickAssistProcessor_remove_hint;
- }
- public String getLabel() {
- return getDisplayString();
- }
+ public String getLabel() {
+ return getDisplayString();
+ }
- public void run(final IMarker marker) {
+ public void run(final IMarker marker) {
try {
- XmlUtils.performOnRootElement((IFile)marker.getResource(), new NodeOperation<Element>() {
+ XmlUtils.performOnRootElement((IFile) marker.getResource(), new NodeOperation<Element>() {
public void process(Element node, IStructuredDocument structured) {
processFix(structured, node, isDependency, marker);
}
@@ -548,43 +564,47 @@ static class ManagedVersionRemovalProposal implements ICompletionProposal, IComp
} catch(CoreException e) {
log.error("Error processing marker", e);
}
- }
+ }
- public String getDescription() {
- return (String) getAdditionalProposalInfo(new NullProgressMonitor());
+ public String getDescription() {
+ return (String) getAdditionalProposalInfo(new NullProgressMonitor());
+ }
}
-}
-static class IgnoreWarningProposal implements ICompletionProposal, ICompletionProposalExtension5, IMarkerResolution, IMarkerResolution2 {
+ static class IgnoreWarningProposal implements ICompletionProposal, ICompletionProposalExtension5, IMarkerResolution,
+ IMarkerResolution2 {
- private IQuickAssistInvocationContext context;
- private final IMarker marker;
- private final String markupText;
- public IgnoreWarningProposal(IQuickAssistInvocationContext context, MarkerAnnotation mark, String markupText) {
- this.context = context;
- marker = mark.getMarker();
- this.markupText = markupText;
- }
-
- public IgnoreWarningProposal(IMarker marker, String markupText) {
- this.marker = marker;
- this.markupText = markupText;
- }
-
- public void apply(IDocument doc) {
- XmlUtils.performOnRootElement(doc, new NodeOperation<Element>() {
- public void process(Element node, IStructuredDocument structured) {
- processFix(structured, marker);
- }
- });
- }
+ private IQuickAssistInvocationContext context;
- private void processFix(IStructuredDocument doc, IMarker marker) {
+ private final IMarker marker;
+
+ private final String markupText;
+
+ public IgnoreWarningProposal(IQuickAssistInvocationContext context, MarkerAnnotation mark, String markupText) {
+ this.context = context;
+ marker = mark.getMarker();
+ this.markupText = markupText;
+ }
+
+ public IgnoreWarningProposal(IMarker marker, String markupText) {
+ this.marker = marker;
+ this.markupText = markupText;
+ }
+
+ public void apply(IDocument doc) {
+ XmlUtils.performOnRootElement(doc, new NodeOperation<Element>() {
+ public void process(Element node, IStructuredDocument structured) {
+ processFix(structured, marker);
+ }
+ });
+ }
+
+ private void processFix(IStructuredDocument doc, IMarker marker) {
IDOMModel domModel = null;
try {
domModel = (IDOMModel) StructuredModelManager.getModelManager().getExistingModelForRead(doc);
int line;
- if (context != null) {
+ if(context != null) {
line = doc.getLineOfOffset(context.getOffset());
} else {
line = marker.getAttribute(IMarker.LINE_NUMBER, -1);
@@ -596,13 +616,13 @@ static class IgnoreWarningProposal implements ICompletionProposal, ICompletionPr
int lineend = linestart + doc.getLineLength(line);
int start = linestart;
IndexedRegion reg = domModel.getIndexedRegion(start);
- while (reg != null && !(reg instanceof Element) && start < lineend) {
+ while(reg != null && !(reg instanceof Element) && start < lineend) {
reg = domModel.getIndexedRegion(reg.getEndOffset() + 1);
- if (reg != null) {
+ if(reg != null) {
start = reg.getStartOffset();
}
}
- if (reg != null && reg instanceof Element) {
+ if(reg != null && reg instanceof Element) {
InsertEdit edit = new InsertEdit(reg.getEndOffset(), "<!--" + markupText + "-->");
try {
edit.apply(doc);
@@ -616,109 +636,110 @@ static class IgnoreWarningProposal implements ICompletionProposal, ICompletionPr
e1.printStackTrace();
}
} finally {
- if (domModel != null) {
+ if(domModel != null) {
domModel.releaseFromRead();
}
- }
- }
-
- public String getAdditionalProposalInfo() {
- return null;
- }
+ }
+ }
- public IContextInformation getContextInformation() {
- return null;
- }
+ public String getAdditionalProposalInfo() {
+ return null;
+ }
- public String getDisplayString() {
- return "Ignore this warning";
- }
+ public IContextInformation getContextInformation() {
+ return null;
+ }
- public Image getImage() {
- return MvnImages.IMG_CLOSE;
- }
+ public String getDisplayString() {
+ return "Ignore this warning";
+ }
- public Point getSelection(IDocument arg0) {
- return null;
- }
+ public Image getImage() {
+ return MvnImages.IMG_CLOSE;
+ }
- public Object getAdditionalProposalInfo(IProgressMonitor monitor) {
- if (context == null) {
- //no context in markerresolution, just to be sure..
- return "Adds comment markup next to the affected element. No longer shows the warning afterwards";
+ public Point getSelection(IDocument arg0) {
+ return null;
}
- IDOMModel domModel = null;
- try {
- IDocument doc = context.getSourceViewer().getDocument();
- domModel = (IDOMModel) StructuredModelManager.getModelManager().getExistingModelForRead(doc);
+
+ public Object getAdditionalProposalInfo(IProgressMonitor monitor) {
+ if(context == null) {
+ //no context in markerresolution, just to be sure..
+ return "Adds comment markup next to the affected element. No longer shows the warning afterwards";
+ }
+ IDOMModel domModel = null;
try {
- //the offset of context is important here, not the offset of the marker!!!
- //line/offset of marker only gets updated hen file gets saved.
- //we need the proper handling also for unsaved documents..
- int line = doc.getLineOfOffset(context.getOffset());
- int linestart = doc.getLineOffset(line);
- int lineend = linestart + doc.getLineLength(line);
- int start = linestart;
- IndexedRegion reg = domModel.getIndexedRegion(start);
- while (reg != null && !(reg instanceof Element) && start < lineend) {
- reg = domModel.getIndexedRegion(reg.getEndOffset() + 1);
- if (reg != null) {
- start = reg.getStartOffset();
+ IDocument doc = context.getSourceViewer().getDocument();
+ domModel = (IDOMModel) StructuredModelManager.getModelManager().getExistingModelForRead(doc);
+ try {
+ //the offset of context is important here, not the offset of the marker!!!
+ //line/offset of marker only gets updated hen file gets saved.
+ //we need the proper handling also for unsaved documents..
+ int line = doc.getLineOfOffset(context.getOffset());
+ int linestart = doc.getLineOffset(line);
+ int lineend = linestart + doc.getLineLength(line);
+ int start = linestart;
+ IndexedRegion reg = domModel.getIndexedRegion(start);
+ while(reg != null && !(reg instanceof Element) && start < lineend) {
+ reg = domModel.getIndexedRegion(reg.getEndOffset() + 1);
+ if(reg != null) {
+ start = reg.getStartOffset();
+ }
}
- }
- if (reg != null && reg instanceof Element) { //just a simple guard against moved marker
- try {
- String currentLine = StringUtils.convertToHTMLContent(doc.get(reg.getStartOffset(), reg.getEndOffset() - reg.getStartOffset()));
- String insert = StringUtils.convertToHTMLContent("<!--" + markupText + "-->");
- return "<html>...<br>" + currentLine + "<b>" + insert + "</b><br>...<html>"; //$NON-NLS-1$ //$NON-NLS-2$
- } catch(BadLocationException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ if(reg != null && reg instanceof Element) { //just a simple guard against moved marker
+ try {
+ String currentLine = StringUtils.convertToHTMLContent(doc.get(reg.getStartOffset(), reg.getEndOffset()
+ - reg.getStartOffset()));
+ String insert = StringUtils.convertToHTMLContent("<!--" + markupText + "-->");
+ return "<html>...<br>" + currentLine + "<b>" + insert + "</b><br>...<html>"; //$NON-NLS-1$ //$NON-NLS-2$
+ } catch(BadLocationException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
}
+ } catch(BadLocationException e1) {
+ log.error("Error while computing completion proposal", e1);
+ }
+ } finally {
+ if(domModel != null) {
+ domModel.releaseFromRead();
}
- } catch(BadLocationException e1) {
- log.error("Error while computing completion proposal", e1);
- }
- } finally {
- if (domModel != null) {
- domModel.releaseFromRead();
}
- }
- return "Adds comment markup next to the affected element. No longer shows the warning afterwards";
- }
+ return "Adds comment markup next to the affected element. No longer shows the warning afterwards";
+ }
- public String getLabel() {
- return getDisplayString();
- }
+ public String getLabel() {
+ return getDisplayString();
+ }
- public void run(final IMarker marker) {
- try {
- XmlUtils.performOnRootElement((IFile)marker.getResource(), new NodeOperation<Element>() {
- public void process(Element node, IStructuredDocument structured) {
- processFix(structured, marker);
- }
- });
- } catch(IOException e) {
- log.error("Error processing marker", e);
- } catch(CoreException e) {
- log.error("Error processing marker", e);
- }
- }
+ public void run(final IMarker marker) {
+ try {
+ XmlUtils.performOnRootElement((IFile) marker.getResource(), new NodeOperation<Element>() {
+ public void process(Element node, IStructuredDocument structured) {
+ processFix(structured, marker);
+ }
+ });
+ } catch(IOException e) {
+ log.error("Error processing marker", e);
+ } catch(CoreException e) {
+ log.error("Error processing marker", e);
+ }
+ }
- public String getDescription() {
- return (String) getAdditionalProposalInfo(new NullProgressMonitor());
- }
-}
+ public String getDescription() {
+ return (String) getAdditionalProposalInfo(new NullProgressMonitor());
+ }
+ }
/**
- * a wrapper around IMarkerResolution that acts as ICompletionProposal
- * for 335299 introduced equals() and hashcode() methods that are based on the MarkerResolution passed in.
+ * a wrapper around IMarkerResolution that acts as ICompletionProposal for 335299 introduced equals() and hashcode()
+ * methods that are based on the MarkerResolution passed in.
+ *
* @author mkleint
*/
public class MarkerResolutionProposal implements ICompletionProposal {
- /**
- *
+ /**
* for 335299 introduced equals() and hashcode() methods that are based on the MarkerResolution passed in.
*/
@Override
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomStructuredTextViewConfiguration.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomStructuredTextViewConfiguration.java
index 3b3ae8cc..fea585ae 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomStructuredTextViewConfiguration.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomStructuredTextViewConfiguration.java
@@ -20,6 +20,7 @@ import org.eclipse.wst.sse.core.text.IStructuredPartitions;
import org.eclipse.wst.xml.core.text.IXMLPartitions;
import org.eclipse.wst.xml.ui.StructuredTextViewerConfigurationXML;
+
/**
* @author Lukas Krecan
*/
@@ -32,7 +33,7 @@ public class PomStructuredTextViewConfiguration extends StructuredTextViewerConf
}
return super.getContentAssistProcessors(sourceViewer, partitionType);
}
-
+
@Override
public ITextHover getTextHover(ISourceViewer sourceViewer, String contentType, int stateMask) {
// return super.getTextHover(sourceViewer, contentType, stateMask);
@@ -42,14 +43,14 @@ public class PomStructuredTextViewConfiguration extends StructuredTextViewerConf
@Override
public IHyperlinkDetector[] getHyperlinkDetectors(ISourceViewer sourceViewer) {
IHyperlinkDetector[] detectors = super.getHyperlinkDetectors(sourceViewer);
- if(detectors==null) {
+ if(detectors == null) {
detectors = new IHyperlinkDetector[0];
}
IHyperlinkDetector[] pomDetectors = new IHyperlinkDetector[detectors.length + 1];
pomDetectors[0] = new PomHyperlinkDetector();
System.arraycopy(detectors, 0, pomDetectors, 1, detectors.length);
-
+
return pomDetectors;
}
@@ -63,4 +64,3 @@ public class PomStructuredTextViewConfiguration extends StructuredTextViewerConf
}
}
-
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomTemplateContext.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomTemplateContext.java
index cdc07b62..060ad8a6 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomTemplateContext.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomTemplateContext.java
@@ -21,21 +21,9 @@ import java.util.HashSet;
import java.util.List;
import java.util.Properties;
-import org.apache.maven.model.Dependency;
-import org.apache.maven.model.DependencyManagement;
-import org.apache.maven.model.Plugin;
-import org.apache.maven.model.PluginManagement;
-import org.apache.maven.plugin.descriptor.MojoDescriptor;
-import org.apache.maven.plugin.descriptor.Parameter;
-import org.apache.maven.plugin.descriptor.PluginDescriptor;
-import org.apache.maven.project.MavenProject;
-import org.codehaus.plexus.interpolation.InterpolationException;
-import org.codehaus.plexus.interpolation.PrefixedObjectValueSource;
-import org.codehaus.plexus.interpolation.PropertiesBasedValueSource;
-import org.codehaus.plexus.interpolation.RegexBasedInterpolator;
-import org.codehaus.plexus.util.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
@@ -45,6 +33,21 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.text.templates.Template;
import org.eclipse.osgi.util.NLS;
+import org.codehaus.plexus.interpolation.InterpolationException;
+import org.codehaus.plexus.interpolation.PrefixedObjectValueSource;
+import org.codehaus.plexus.interpolation.PropertiesBasedValueSource;
+import org.codehaus.plexus.interpolation.RegexBasedInterpolator;
+import org.codehaus.plexus.util.StringUtils;
+
+import org.apache.maven.model.Dependency;
+import org.apache.maven.model.DependencyManagement;
+import org.apache.maven.model.Plugin;
+import org.apache.maven.model.PluginManagement;
+import org.apache.maven.plugin.descriptor.MojoDescriptor;
+import org.apache.maven.plugin.descriptor.Parameter;
+import org.apache.maven.plugin.descriptor.PluginDescriptor;
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
import org.eclipse.m2e.core.ui.internal.search.util.ArtifactInfo;
import org.eclipse.m2e.core.ui.internal.search.util.Packaging;
@@ -60,62 +63,64 @@ import org.eclipse.m2e.editor.xml.internal.XmlUtils;
* @author Eugene Kuleshov
*/
public enum PomTemplateContext {
-
+
UNKNOWN("unknown"), // //$NON-NLS-1$
-
+
DOCUMENT("#document"), // //$NON-NLS-1$
-
+
PROJECT("project"), // //$NON-NLS-1$
-
+
BUILD("build"), // //$NON-NLS-1$
-
+
PARENT("parent"), // //$NON-NLS-1$
-
+
RELATIVE_PATH("relativePath"), // //$NON-NLS-1$
-
+
MODULES("modules"), // //$NON-NLS-1$
PROPERTIES("properties"), // //$NON-NLS-1$
-
+
DEPENDENCIES("dependencies"), // //$NON-NLS-1$
DEPENDENCY_MANAGEMENT("dependencyManagement"), // //$NON-NLS-1$
-
+
EXCLUSIONS("exclusions"), // //$NON-NLS-1$
-
+
PLUGINS("plugins"), // //$NON-NLS-1$
PLUGIN("plugin"), // //$NON-NLS-1$
-
+
PLUGIN_MANAGEMENT("pluginManagement"), // //$NON-NLS-1$
-
+
EXECUTIONS("executions"), // //$NON-NLS-1$
-
+
PROFILES("profiles"), // //$NON-NLS-1$
-
+
PROFILE("profile"), // //$NON-NLS-1$
-
+
REPOSITORIES("repositories"), // //$NON-NLS-1$
CONFIGURATION("configuration") { //$NON-NLS-1$
@Override
- protected void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node, String prefix) throws CoreException {
+ protected void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node,
+ String prefix) throws CoreException {
if("execution".equals(node.getParentNode().getNodeName()) //$NON-NLS-1$
|| "reportSet".equals(node.getParentNode().getNodeName())) { //$NON-NLS-1$
node = node.getParentNode().getParentNode();
}
String groupId = getGroupId(node);
- if(groupId==null) {
- groupId = "org.apache.maven.plugins"; // TODO support other default groups //$NON-NLS-1$
+ if(groupId == null) {
+ groupId = "org.apache.maven.plugins"; // TODO support other default groups //$NON-NLS-1$
}
String artifactId = getArtifactId(node);
- String version = extractVersion(project, eclipseprj, getVersion(node), groupId, artifactId, EXTRACT_STRATEGY_PLUGIN | EXTRACT_STRATEGY_SEARCH);
- if (version == null) {
+ String version = extractVersion(project, eclipseprj, getVersion(node), groupId, artifactId,
+ EXTRACT_STRATEGY_PLUGIN | EXTRACT_STRATEGY_SEARCH);
+ if(version == null) {
return;
}
PluginDescriptor descriptor = PomTemplateContextUtil.INSTANCE.getPluginDescriptor(groupId, artifactId, version);
- if(descriptor!=null) {
+ if(descriptor != null) {
List<MojoDescriptor> mojos = descriptor.getMojos();
HashSet<String> params = new HashSet<String>();
for(MojoDescriptor mojo : mojos) {
@@ -126,22 +131,22 @@ public enum PomTemplateContext {
String name = parameter.getName();
if(!params.contains(name) && name.startsWith(prefix)) {
params.add(name);
-
+
String text = NLS.bind(Messages.PomTemplateContext_param, parameter.isRequired(), parameter.getType());
-
+
String expression = parameter.getExpression();
- if(expression!=null) {
+ if(expression != null) {
text += NLS.bind(Messages.PomTemplateContext_param_expr, expression);
}
-
+
String defaultValue = parameter.getDefaultValue();
- if(defaultValue!=null) {
+ if(defaultValue != null) {
text += NLS.bind(Messages.PomTemplateContext_param_def, defaultValue);
}
-
+
String desc = parameter.getDescription().trim();
text += desc.startsWith("<p>") ? desc : "<br>" + desc; //$NON-NLS-1$ //$NON-NLS-2$
-
+
proposals.add(new Template(name, text, getContextTypeId(), //
"<" + name + ">${cursor}</" + name + ">", false)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
@@ -151,12 +156,14 @@ public enum PomTemplateContext {
}
}
},
-
+
GROUP_ID("groupId") { //$NON-NLS-1$
@Override
- public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node, String prefix) throws CoreException {
+ public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node,
+ String prefix) throws CoreException {
String contextTypeId = getContextTypeId();
- for(String groupId : getSearchEngine(eclipseprj).findGroupIds(prefix, getPackaging(node), getContainingArtifact(node))) {
+ for(String groupId : getSearchEngine(eclipseprj).findGroupIds(prefix, getPackaging(node),
+ getContainingArtifact(node))) {
add(proposals, contextTypeId, groupId);
}
}
@@ -164,7 +171,8 @@ public enum PomTemplateContext {
ARTIFACT_ID("artifactId") { //$NON-NLS-1$
@Override
- public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node, String prefix) throws CoreException {
+ public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node,
+ String prefix) throws CoreException {
String groupId = getGroupId(node);
//#MNGECLIPSE-1832
if((groupId == null || groupId.trim().length() == 0) && "plugin".equals(node.getParentNode().getNodeName())) {
@@ -182,7 +190,8 @@ public enum PomTemplateContext {
VERSION("version") { //$NON-NLS-1$
@Override
- public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node, String prefix) throws CoreException {
+ public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node,
+ String prefix) throws CoreException {
String groupId = getGroupId(node);
//#MNGECLIPSE-1832
if((groupId == null || groupId.trim().length() == 0) && "plugin".equals(node.getParentNode().getNodeName())) {
@@ -196,49 +205,54 @@ public enum PomTemplateContext {
}
}
//mkleint: this concept that all versions out there are equal is questionable..
- if ("dependency".equals(node.getParentNode().getNodeName())) { //$NON-NLS-1$
+ if("dependency".equals(node.getParentNode().getNodeName())) { //$NON-NLS-1$
//see if we can complete the properties ending with .version
-
+
List<String> keys = new ArrayList<String>();
String contextTypeId = getContextTypeId();
- MavenProject mvn = project;
- if (mvn != null) {
- //if groupid is the same, suggest ${project.version}
- if (groupId.equals(mvn.getGroupId())) {
- proposals.add(new Template("${project.version}", Messages.PomTemplateContext_project_version_hint, contextTypeId, "$${project.version}", false)); //$NON-NLS-1$ //$NON-NLS-3$
- }
- Properties props = mvn.getProperties();
- if (props != null) {
- for (Object key : props.keySet()) {
- //only add the properties following the .version convention
- if (key.toString().endsWith(".version") || key.toString().endsWith("Version")) { //$NON-NLS-1$ //$NON-NLS-2$
- keys.add(key.toString());
- }
+ MavenProject mvn = project;
+ if(mvn != null) {
+ //if groupid is the same, suggest ${project.version}
+ if(groupId.equals(mvn.getGroupId())) {
+ proposals
+ .add(new Template(
+ "${project.version}", Messages.PomTemplateContext_project_version_hint, contextTypeId, "$${project.version}", false)); //$NON-NLS-1$ //$NON-NLS-3$
+ }
+ Properties props = mvn.getProperties();
+ if(props != null) {
+ for(Object key : props.keySet()) {
+ //only add the properties following the .version convention
+ if(key.toString().endsWith(".version") || key.toString().endsWith("Version")) { //$NON-NLS-1$ //$NON-NLS-2$
+ keys.add(key.toString());
}
- //sort just properties
- Collections.sort(keys);
- if (keys.size() > 0) {
- for (String key : keys) {
- String expr = "${" + key + "}"; //$NON-NLS-1$ //$NON-NLS-2$
- proposals.add(new Template(expr, Messages.PomTemplateContext_expression_description, contextTypeId, "$" + expr, false)); //$NON-NLS-2$ //$NON-NLS-1$
- }
+ }
+ //sort just properties
+ Collections.sort(keys);
+ if(keys.size() > 0) {
+ for(String key : keys) {
+ String expr = "${" + key + "}"; //$NON-NLS-1$ //$NON-NLS-2$
+ proposals.add(new Template(expr, Messages.PomTemplateContext_expression_description, contextTypeId,
+ "$" + expr, false)); //$NON-NLS-2$ //$NON-NLS-1$
}
}
-
+ }
+
} else {
//if we don't have the maven facade, it means the pom is probably broken.
//all we can do is to try guess the groupid and come up with the project.version proposal eventually
Element root = node.getOwnerDocument().getDocumentElement();
- if (root != null && "project".equals(root.getNodeName())) {//$NON-NLS-1$
+ if(root != null && "project".equals(root.getNodeName())) {//$NON-NLS-1$
String currentgroupid = XmlUtils.getTextValue(XmlUtils.findChild(root, "groupId"));//$NON-NLS-1$
- if (currentgroupid == null) {
+ if(currentgroupid == null) {
Element parEl = XmlUtils.findChild(root, "parent");//$NON-NLS-1$
- if (parEl != null) {
+ if(parEl != null) {
currentgroupid = XmlUtils.getTextValue(XmlUtils.findChild(parEl, "groupId"));//$NON-NLS-1$
}
}
- if (groupId.equals(currentgroupid)) {
- proposals.add(new Template("${project.version}", Messages.PomTemplateContext_project_version_hint, contextTypeId, "$${project.version}", false)); //$NON-NLS-1$ //$NON-NLS-3$
+ if(groupId.equals(currentgroupid)) {
+ proposals
+ .add(new Template(
+ "${project.version}", Messages.PomTemplateContext_project_version_hint, contextTypeId, "$${project.version}", false)); //$NON-NLS-1$ //$NON-NLS-3$
}
}
}
@@ -248,7 +262,8 @@ public enum PomTemplateContext {
CLASSIFIER("classifier") { //$NON-NLS-1$
@Override
- public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node, String prefix) throws CoreException {
+ public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node,
+ String prefix) throws CoreException {
String groupId = getGroupId(node);
String artifactId = getArtifactId(node);
String version = getVersion(node);
@@ -264,22 +279,25 @@ public enum PomTemplateContext {
TYPE("type") { //$NON-NLS-1$
@Override
- public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node, String prefix) throws CoreException {
+ public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node,
+ String prefix) throws CoreException {
String groupId = getGroupId(node);
String artifactId = getArtifactId(node);
String version = getVersion(node);
String contextTypeId = getContextTypeId();
if(groupId != null && artifactId != null && version != null) {
- for(String type : getSearchEngine(eclipseprj).findTypes(groupId, artifactId, version, prefix, getPackaging(node))) {
+ for(String type : getSearchEngine(eclipseprj).findTypes(groupId, artifactId, version, prefix,
+ getPackaging(node))) {
add(proposals, contextTypeId, type, groupId + ":" + artifactId + ":" + version + ":" + type);
}
}
}
},
-
+
PACKAGING("packaging") { //$NON-NLS-1$
@Override
- public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node, String prefix) {
+ public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node,
+ String prefix) {
String contextTypeId = getContextTypeId();
// TODO only show "pom" packaging in root section
add(proposals, contextTypeId, "pom"); //$NON-NLS-1$
@@ -294,10 +312,11 @@ public enum PomTemplateContext {
add(proposals, contextTypeId, "maven-archetype"); //$NON-NLS-1$
}
},
-
+
SCOPE("scope") { //$NON-NLS-1$
@Override
- public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node, String prefix) {
+ public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node,
+ String prefix) {
String contextTypeId = getContextTypeId();
add(proposals, contextTypeId, "compile"); //$NON-NLS-1$
add(proposals, contextTypeId, "test"); //$NON-NLS-1$
@@ -306,22 +325,23 @@ public enum PomTemplateContext {
add(proposals, contextTypeId, "system"); //$NON-NLS-1$
// TODO only show "import" scope in <dependencyManagement>
add(proposals, contextTypeId, "import"); //$NON-NLS-1$
- }
+ }
},
-
+
SYSTEM_PATH("systemPath"), //$NON-NLS-1$
-
+
PHASE("phase") { //$NON-NLS-1$
@Override
- public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node, String prefix) {
+ public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node,
+ String prefix) {
String contextTypeId = getContextTypeId();
// TODO the following list should be derived from the packaging handler (the actual lifecycle)
-
+
// Clean Lifecycle
add(proposals, contextTypeId, "pre-clean", Messages.PomTemplateContext_preclean); //$NON-NLS-1$
add(proposals, contextTypeId, "clean", Messages.PomTemplateContext_clean); //$NON-NLS-1$
add(proposals, contextTypeId, "post-clean", Messages.PomTemplateContext_postclean); //$NON-NLS-1$
-
+
// Default Lifecycle
add(proposals, contextTypeId, "validate", Messages.PomTemplateContext_validate); //$NON-NLS-1$
add(proposals, contextTypeId, "generate-sources", Messages.PomTemplateContext_generatesources); //$NON-NLS-1$
@@ -345,7 +365,7 @@ public enum PomTemplateContext {
add(proposals, contextTypeId, "verify", Messages.PomTemplateContext_verify); //$NON-NLS-1$
add(proposals, contextTypeId, "install", Messages.PomTemplateContext_install); //$NON-NLS-1$
add(proposals, contextTypeId, "deploy", Messages.PomTemplateContext_deploy); //$NON-NLS-1$
-
+
// Site Lifecycle
add(proposals, contextTypeId, "pre-site", Messages.PomTemplateContext_presite); //$NON-NLS-1$
add(proposals, contextTypeId, "site", Messages.PomTemplateContext_site); //$NON-NLS-1$
@@ -356,7 +376,8 @@ public enum PomTemplateContext {
GOAL("goal") { //$NON-NLS-1$
@Override
- public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node, String prefix) throws CoreException {
+ public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node,
+ String prefix) throws CoreException {
if(!"goals".equals(node.getParentNode().getNodeName())) { //$NON-NLS-1$
return;
}
@@ -371,22 +392,23 @@ public enum PomTemplateContext {
node = node.getParentNode();
String groupId = getGroupId(node);
- if(groupId==null) {
+ if(groupId == null) {
groupId = "org.apache.maven.plugins"; //$NON-NLS-1$
}
String artifactId = getArtifactId(node);
-
- String version = extractVersion(project, eclipseprj, getVersion(node), groupId, artifactId, EXTRACT_STRATEGY_PLUGIN | EXTRACT_STRATEGY_SEARCH);
- if(version==null) {
+
+ String version = extractVersion(project, eclipseprj, getVersion(node), groupId, artifactId,
+ EXTRACT_STRATEGY_PLUGIN | EXTRACT_STRATEGY_SEARCH);
+ if(version == null) {
return;
}
-
+
PluginDescriptor descriptor = PomTemplateContextUtil.INSTANCE.getPluginDescriptor(groupId, artifactId, version);
- if (descriptor != null) {
+ if(descriptor != null) {
List<MojoDescriptor> mojos = descriptor.getMojos();
- if (mojos != null) {
+ if(mojos != null) {
String contextTypeId = getContextTypeId();
- for (MojoDescriptor mojo : mojos) {
+ for(MojoDescriptor mojo : mojos) {
add(proposals, contextTypeId, mojo.getGoal(), mojo.getDescription());
}
}
@@ -396,8 +418,8 @@ public enum PomTemplateContext {
MODULE("module") { //$NON-NLS-1$
@Override
- public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node, String prefix)
- throws CoreException {
+ public void addTemplates(MavenProject project, IProject eclipseprj, Collection<Template> proposals, Node node,
+ String prefix) throws CoreException {
if(project == null) {
//shall not happen just double check.
return;
@@ -405,20 +427,20 @@ public enum PomTemplateContext {
//MNGECLIPSE-2204 collect the existing values from the surrounding xml content only..
List<String> existings = new ArrayList<String>();
Node moduleNode = node;
- if (moduleNode != null) {
+ if(moduleNode != null) {
Node modulesNode = moduleNode.getParentNode();
- if (modulesNode != null) {
- for (Element el : XmlUtils.findChilds((Element)modulesNode, "module")) {
- if (el != moduleNode) {
+ if(modulesNode != null) {
+ for(Element el : XmlUtils.findChilds((Element) modulesNode, "module")) {
+ if(el != moduleNode) {
String val = XmlUtils.getTextValue(el);
- if (val != null) {
+ if(val != null) {
existings.add(val);
}
}
}
}
}
-
+
File directory = new File(eclipseprj.getLocationURI());
final File currentPom = new File(directory, "pom.xml");
String path = prefix;
@@ -437,7 +459,7 @@ public enum PomTemplateContext {
path = lastElement != null ? path.substring(0, path.length() - lastElement.length()) : path;
FileFilter filter = new FileFilter() {
public boolean accept(File pathname) {
- if (pathname.isDirectory()) {
+ if(pathname.isDirectory()) {
File pom = new File(pathname, "pom.xml"); //$NON-NLS-1$
//TODO shall also handle polyglot maven :)
return pom.exists() && pom.isFile() && !pom.equals(currentPom);
@@ -445,24 +467,24 @@ public enum PomTemplateContext {
return false;
}
};
- if (directory != null && directory.exists() && directory.isDirectory()) {
+ if(directory != null && directory.exists() && directory.isDirectory()) {
File[] offerings = directory.listFiles(filter);
- for (File candidate : offerings) {
- if(lastElement == null || candidate.getName().startsWith(lastElement) ) {
+ for(File candidate : offerings) {
+ if(lastElement == null || candidate.getName().startsWith(lastElement)) {
String val = path + candidate.getName();
- if (!existings.contains(val)) { //only those not already being added in the surrounding area
+ if(!existings.contains(val)) { //only those not already being added in the surrounding area
add(proposals, getContextTypeId(), val, NLS.bind(Messages.PomTemplateContext_candidate, candidate));
}
}
}
- if (path.length() == 0 && directory.equals(currentPom.getParentFile())) {
+ if(path.length() == 0 && directory.equals(currentPom.getParentFile())) {
//for the empty value, when searching in current directory, propose also stuff one level up.
File currentParent = directory.getParentFile();
- if (currentParent != null && currentParent.exists()) {
+ if(currentParent != null && currentParent.exists()) {
offerings = currentParent.listFiles(filter);
- for (File candidate : offerings) {
+ for(File candidate : offerings) {
String val = "../" + candidate.getName();
- if (!existings.contains(val)) { //only those not already being added in the surrounding area
+ if(!existings.contains(val)) { //only those not already being added in the surrounding area
add(proposals, getContextTypeId(), val, NLS.bind(Messages.PomTemplateContext_candidate, candidate));
}
}
@@ -491,14 +513,13 @@ public enum PomTemplateContext {
Collection<Template> templates = new ArrayList<Template>();
try {
addTemplates(project, eclipsePrj, templates, node, prefix);
- } catch (CoreException e) {
+ } catch(CoreException e) {
log.error(e.getMessage(), e);
}
return templates.toArray(new Template[templates.size()]);
}
-
+
/**
- *
* @param project
* @param eclipsePrj only here because getSearchEngine() requires it as parameter.
* @param templates
@@ -506,13 +527,14 @@ public enum PomTemplateContext {
* @param prefix
* @throws CoreException
*/
- protected void addTemplates(MavenProject project, IProject eclipsePrj, Collection<Template> templates, Node currentNode, String prefix) throws CoreException {
+ protected void addTemplates(MavenProject project, IProject eclipsePrj, Collection<Template> templates,
+ Node currentNode, String prefix) throws CoreException {
}
protected String getNodeName() {
return nodeName;
}
-
+
public String getContextTypeId() {
return PREFIX + nodeName;
}
@@ -541,7 +563,6 @@ public enum PomTemplateContext {
}
return M2EUIPluginActivator.getDefault().getSearchEngine(project);
}
-
private static SearchEngine searchEngineForTests;
@@ -586,27 +607,26 @@ public enum PomTemplateContext {
private boolean isPlugin(Node currentNode) {
return "plugin".equals(currentNode.getParentNode().getNodeName()); //$NON-NLS-1$
}
-
+
/**
* Returns true if user is editing plugin dependency exclusion.
*/
private boolean isExclusion(Node currentNode) {
return "exclusion".equals(currentNode.getParentNode().getNodeName()); //$NON-NLS-1$
}
-
+
/**
* Returns true if user is editing parent dependency.
*/
private boolean isParent(Node currentNode) {
return "parent".equals(currentNode.getParentNode().getNodeName()); //$NON-NLS-1$
}
-
+
protected String getGroupId(Node currentNode) {
return getSiblingTextValue(currentNode, "groupId"); //$NON-NLS-1$
}
/**
- *
* @param project
* @param version
* @param groupId
@@ -614,27 +634,29 @@ public enum PomTemplateContext {
* @return
* @throws CoreException
*/
-
+
static int EXTRACT_STRATEGY_PLUGIN = 1;
+
static int EXTRACT_STRATEGY_DEPENDENCY = 2;
+
static int EXTRACT_STRATEGY_SEARCH = 4;
-
- static String extractVersion(MavenProject mp, IProject project, String version, String groupId, String artifactId, int strategy)
- throws CoreException {
-
+
+ static String extractVersion(MavenProject mp, IProject project, String version, String groupId, String artifactId,
+ int strategy) throws CoreException {
+
assert mp != null;
version = simpleInterpolate(mp, version);
-
- if (version==null) {
- Packaging pack = Packaging.ALL;
- if ( (strategy & EXTRACT_STRATEGY_PLUGIN) != 0) {
+
+ if(version == null) {
+ Packaging pack = Packaging.ALL;
+ if((strategy & EXTRACT_STRATEGY_PLUGIN) != 0) {
version = searchPM(mp, groupId, artifactId);
pack = Packaging.PLUGIN;
}
- if ( (strategy & EXTRACT_STRATEGY_DEPENDENCY) != 0) {
+ if((strategy & EXTRACT_STRATEGY_DEPENDENCY) != 0) {
version = searchDM(mp, groupId, artifactId);
}
- if (version == null && (strategy & EXTRACT_STRATEGY_SEARCH) != 0) {
+ if(version == null && (strategy & EXTRACT_STRATEGY_SEARCH) != 0) {
Collection<String> versions = getSearchEngine(project).findVersions(groupId, artifactId, "", pack); //$NON-NLS-1$
if(versions.isEmpty()) {
return null;
@@ -647,7 +669,7 @@ public enum PomTemplateContext {
// TODO copy of this resides in FormUtils
static String simpleInterpolate(MavenProject project, String text) {
- if (text != null && text.contains("${")) { //$NON-NLS-1$
+ if(text != null && text.contains("${")) { //$NON-NLS-1$
//when expression is in the version but no project instance around
// just give up.
if(project == null) {
@@ -655,21 +677,22 @@ public enum PomTemplateContext {
}
Properties props = project.getProperties();
RegexBasedInterpolator inter = new RegexBasedInterpolator();
- if (props != null) {
+ if(props != null) {
inter.addValueSource(new PropertiesBasedValueSource(props));
}
- inter.addValueSource(new PrefixedObjectValueSource(Arrays.asList( new String[]{ "pom.", "project." } ), project.getModel(), false)); //$NON-NLS-1$ //$NON-NLS-2$
+ inter.addValueSource(new PrefixedObjectValueSource(
+ Arrays.asList(new String[] {"pom.", "project."}), project.getModel(), false)); //$NON-NLS-1$ //$NON-NLS-2$
try {
text = inter.interpolate(text);
} catch(InterpolationException e) {
text = null;
}
- }
+ }
return text;
}
-
+
static String searchPM(MavenProject project, String groupId, String artifactId) {
- if (project == null) {
+ if(project == null) {
return null;
}
String version = null;
@@ -685,9 +708,9 @@ public enum PomTemplateContext {
}
return version;
}
-
+
static String searchDM(MavenProject project, String groupId, String artifactId) {
- if (project == null) {
+ if(project == null) {
return null;
}
String version = null;
@@ -733,8 +756,8 @@ public enum PomTemplateContext {
private static void add(Collection<Template> proposals, String contextTypeId, String name) {
add(proposals, contextTypeId, name, name);
- }
-
+ }
+
private static void add(Collection<Template> proposals, String contextTypeId, String name, String description) {
proposals.add(new Template(name, description, contextTypeId, name, false));
}
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomTemplateContextUtil.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomTemplateContextUtil.java
index ffd75d31..ec784f87 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomTemplateContextUtil.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomTemplateContextUtil.java
@@ -21,20 +21,23 @@ import java.util.Map;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.plugin.descriptor.PluginDescriptor;
-import org.apache.maven.plugin.descriptor.PluginDescriptorBuilder;
-import org.codehaus.plexus.util.IOUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IStatus;
+import org.codehaus.plexus.util.IOUtil;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.artifact.repository.ArtifactRepository;
+import org.apache.maven.plugin.descriptor.PluginDescriptor;
+import org.apache.maven.plugin.descriptor.PluginDescriptorBuilder;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.embedder.IMaven;
+
class PomTemplateContextUtil {
private static final Logger log = LoggerFactory.getLogger(PomTemplateContextUtil.class);
@@ -45,16 +48,16 @@ class PomTemplateContextUtil {
public PluginDescriptor getPluginDescriptor(String groupId, String artifactId, String version) {
String name = groupId + ":" + artifactId + ":" + version;
PluginDescriptor descriptor = descriptors.get(name);
- if(descriptor!=null) {
+ if(descriptor != null) {
return descriptor;
}
-
+
try {
IMaven embedder = MavenPlugin.getMaven();
List<ArtifactRepository> repositories = embedder.getArtifactRepositories();
- Artifact artifact = embedder.resolve(groupId, artifactId, version, "maven-plugin", null, repositories, null); //$NON-NLS-1$
+ Artifact artifact = embedder.resolve(groupId, artifactId, version, "maven-plugin", null, repositories, null); //$NON-NLS-1$
File file = artifact.getFile();
if(file == null) {
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomTextHover.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomTextHover.java
index 65cecdf5..9e7967ab 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomTextHover.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomTextHover.java
@@ -15,10 +15,6 @@ import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
-import org.apache.maven.model.InputLocation;
-import org.apache.maven.model.InputSource;
-import org.apache.maven.model.Model;
-import org.apache.maven.project.MavenProject;
import org.w3c.dom.Node;
import org.eclipse.jface.text.IDocument;
@@ -39,6 +35,11 @@ import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.texteditor.MarkerAnnotation;
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
+import org.apache.maven.model.InputLocation;
+import org.apache.maven.model.InputSource;
+import org.apache.maven.model.Model;
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.core.ui.internal.editing.PomEdits;
import org.eclipse.m2e.editor.xml.PomHyperlinkDetector.ExpressionRegion;
import org.eclipse.m2e.editor.xml.PomHyperlinkDetector.ManagedArtifactRegion;
@@ -47,20 +48,21 @@ import org.eclipse.m2e.editor.xml.internal.Messages;
import org.eclipse.m2e.editor.xml.internal.NodeOperation;
import org.eclipse.m2e.editor.xml.internal.XmlUtils;
+
public class PomTextHover implements ITextHover, ITextHoverExtension, ITextHoverExtension2 {
public PomTextHover(ISourceViewer sourceViewer, String contentType, int stateMask) {
}
-
+
public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {
-
- if (hoverRegion instanceof ExpressionRegion) {
- return getLabelForRegion((ExpressionRegion)hoverRegion).toString();
- } else if (hoverRegion instanceof ManagedArtifactRegion) {
+
+ if(hoverRegion instanceof ExpressionRegion) {
+ return getLabelForRegion((ExpressionRegion) hoverRegion).toString();
+ } else if(hoverRegion instanceof ManagedArtifactRegion) {
ManagedArtifactRegion region = (ManagedArtifactRegion) hoverRegion;
return getLabelForRegion(region).toString();
}
-
+
return null;
}
@@ -69,27 +71,27 @@ public class PomTextHover implements ITextHover, ITextHoverExtension, ITextHover
*/
public static StyledString getLabelForRegion(ManagedArtifactRegion region) {
MavenProject mavprj = region.project;
- if (mavprj != null) {
+ if(mavprj != null) {
String version = null;
- if (region.isDependency) {
+ if(region.isDependency) {
version = PomTemplateContext.searchDM(mavprj, region.groupId, region.artifactId);
}
- if (region.isPlugin) {
+ if(region.isPlugin) {
version = PomTemplateContext.searchPM(mavprj, region.groupId, region.artifactId);
}
StyledString ret = new StyledString();
- if (version != null) {
+ if(version != null) {
ret.append(Messages.PomTextHover_managed_version);
ret.append(version, StyledString.DECORATIONS_STYLER);//not happy with decorations but how to just do bold text
} else {
ret.append(Messages.PomTextHover_managed_version_missing);
}
InputLocation openLocation = PomHyperlinkDetector.findLocationForManagedArtifact(region, mavprj);
- if (openLocation != null) {
+ if(openLocation != null) {
//MNGECLIPSE-2539 apparently you can have an InputLocation with null input source.
// check!
InputSource source = openLocation.getSource();
- if (source != null) {
+ if(source != null) {
ret.append(" "); // a space after the version value
ret.append(NLS.bind(Messages.PomTextHover_managed_location, source.getModelId()));
}
@@ -107,18 +109,18 @@ public class PomTextHover implements ITextHover, ITextHoverExtension, ITextHover
*/
public static StyledString getLabelForRegion(ExpressionRegion region) {
MavenProject mavprj = region.project;
- if (mavprj != null) {
+ if(mavprj != null) {
String value = PomTemplateContext.simpleInterpolate(region.project, "${" + region.property + "}"); //$NON-NLS-1$ //$NON-NLS-2$
String loc = null;
Model mdl = mavprj.getModel();
- if (mdl.getProperties() != null && mdl.getProperties().containsKey(region.property)) {
- if (mdl.getLocation(PomEdits.PROPERTIES) != null) { //$NON-NLS-1$
+ if(mdl.getProperties() != null && mdl.getProperties().containsKey(region.property)) {
+ if(mdl.getLocation(PomEdits.PROPERTIES) != null) { //$NON-NLS-1$
InputLocation location = mdl.getLocation(PomEdits.PROPERTIES).getLocation(region.property); //$NON-NLS-1$
- if (location != null) {
+ if(location != null) {
//MNGECLIPSE-2539 apparently you can have an InputLocation with null input source.
// check!
InputSource source = location.getSource();
- if (source != null) {
+ if(source != null) {
loc = source.getModelId();
}
}
@@ -127,7 +129,7 @@ public class PomTextHover implements ITextHover, ITextHoverExtension, ITextHover
StyledString ret = new StyledString();
ret.append(Messages.PomTextHover_eval1);
ret.append(value, StyledString.DECORATIONS_STYLER); //not happy with decorations but how to just do bold text
- if (loc != null) {
+ if(loc != null) {
ret.append(" "); //$NON-NLS-1$
ret.append(NLS.bind(Messages.PomTextHover_eval2, loc));
}
@@ -145,45 +147,46 @@ public class PomTextHover implements ITextHover, ITextHoverExtension, ITextHover
XmlUtils.performOnCurrentElement(document, offset, new NodeOperation<Node>() {
public void process(Node node, IStructuredDocument structured) {
ExpressionRegion region = PomHyperlinkDetector.findExpressionRegion(node, textViewer, offset);
- if (region != null) {
+ if(region != null) {
regs[0] = region;
return;
}
ManagedArtifactRegion manReg = PomHyperlinkDetector.findManagedArtifactRegion(node, textViewer, offset);
- if (manReg != null) {
+ if(manReg != null) {
regs[1] = manReg;
return;
}
}
});
CompoundRegion toRet = new CompoundRegion(textViewer, offset);
- if (regs[0] != null) {
+ if(regs[0] != null) {
toRet.addRegion(regs[0]);
}
- if (regs[1] != null) {
+ if(regs[1] != null) {
toRet.addRegion(regs[1]);
}
- if (textViewer instanceof ISourceViewer) {
+ if(textViewer instanceof ISourceViewer) {
ISourceViewer sourceViewer = (ISourceViewer) textViewer;
IAnnotationModel model = sourceViewer.getAnnotationModel();
- if (model != null) { //eg. in tests
+ if(model != null) { //eg. in tests
@SuppressWarnings("unchecked")
Iterator<Annotation> it = model.getAnnotationIterator();
- while (it.hasNext()) {
+ while(it.hasNext()) {
Annotation ann = it.next();
- if (ann instanceof MarkerAnnotation) {
+ if(ann instanceof MarkerAnnotation) {
Position pos = sourceViewer.getAnnotationModel().getPosition(ann);
- if (pos.includes(offset)) {
- toRet.addRegion( new PomHyperlinkDetector.MarkerRegion(pos.getOffset(), pos.getLength(), (MarkerAnnotation)ann));
+ if(pos.includes(offset)) {
+ toRet.addRegion(new PomHyperlinkDetector.MarkerRegion(pos.getOffset(), pos.getLength(),
+ (MarkerAnnotation) ann));
}
}
}
}
}
-
+
return toRet.getRegions().size() > 0 ? toRet : null;
}
-
+
public Object getHoverInfo2(ITextViewer textViewer, IRegion hoverRegion) {
return hoverRegion;
}
@@ -195,20 +198,24 @@ public class PomTextHover implements ITextHover, ITextHoverExtension, ITextHover
}
};
}
-
+
public static class CompoundRegion implements IRegion {
private int length = Integer.MIN_VALUE;
+
private int offset = Integer.MAX_VALUE;
+
private List<IRegion> regions = new ArrayList<IRegion>();
+
public final ITextViewer textViewer;
+
public final int textOffset;
-
+
public CompoundRegion(ITextViewer textViewer, int textOffset) {
this.textViewer = textViewer;
this.textOffset = textOffset;
}
-
+
public int getLength() {
return length;
}
@@ -216,19 +223,19 @@ public class PomTextHover implements ITextHover, ITextHoverExtension, ITextHover
public int getOffset() {
return offset;
}
-
+
public void addRegion(IRegion region) {
regions.add(region);
int start = Math.min(region.getOffset(), offset);
int end = Math.max(region.getOffset() + region.getLength(), offset + length);
offset = start;
- length = end - start;
+ length = end - start;
}
-
+
public List<IRegion> getRegions() {
return regions;
}
-
+
}
}
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/XMLSchemaMarkerResolution.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/XMLSchemaMarkerResolution.java
index c24d7610..7360b84b 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/XMLSchemaMarkerResolution.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/XMLSchemaMarkerResolution.java
@@ -28,9 +28,11 @@ import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
import org.eclipse.m2e.editor.xml.internal.Messages;
+
/**
- * MavenMarkerResolution
- * TODO mkleint: this class shall be eventually merged with the class doing the same in POMQuickAssistProcessor
+ * MavenMarkerResolution TODO mkleint: this class shall be eventually merged with the class doing the same in
+ * POMQuickAssistProcessor
+ *
* @author dyocum
*/
public class XMLSchemaMarkerResolution implements IMarkerResolution {
@@ -47,27 +49,33 @@ public class XMLSchemaMarkerResolution implements IMarkerResolution {
* @see org.eclipse.ui.IMarkerResolution#run(org.eclipse.core.resources.IMarker)
*/
public void run(final IMarker marker) {
- if(marker.getResource().getType() == IResource.FILE){
+ if(marker.getResource().getType() == IResource.FILE) {
try {
- IDOMModel domModel = (IDOMModel)StructuredModelManager.getModelManager().getModelForEdit((IFile)marker.getResource());
- int offset = ((Integer)marker.getAttribute("offset")); //$NON-NLS-1$
- IStructuredDocumentRegion regionAtCharacterOffset = domModel.getStructuredDocument().getRegionAtCharacterOffset(offset);
- if(regionAtCharacterOffset != null && regionAtCharacterOffset.getText() != null &&
- regionAtCharacterOffset.getText().lastIndexOf("<project") >=0){ //$NON-NLS-1$
+ IDOMModel domModel = (IDOMModel) StructuredModelManager.getModelManager().getModelForEdit(
+ (IFile) marker.getResource());
+ int offset = ((Integer) marker.getAttribute("offset")); //$NON-NLS-1$
+ IStructuredDocumentRegion regionAtCharacterOffset = domModel.getStructuredDocument()
+ .getRegionAtCharacterOffset(offset);
+ if(regionAtCharacterOffset != null && regionAtCharacterOffset.getText() != null
+ && regionAtCharacterOffset.getText().lastIndexOf("<project") >= 0) { //$NON-NLS-1$
//in case there are unsaved changes, find the current offset of the <project> node before inserting
offset = regionAtCharacterOffset.getStartOffset();
- IDE.openEditor(MvnIndexPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage(), (IFile)marker.getResource());
- InsertEdit edit = new InsertEdit(offset+8, PomQuickAssistProcessor.XSI_VALUE);
+ IDE.openEditor(MvnIndexPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage(),
+ (IFile) marker.getResource());
+ InsertEdit edit = new InsertEdit(offset + 8, PomQuickAssistProcessor.XSI_VALUE);
try {
edit.apply(domModel.getStructuredDocument());
- IEditorPart activeEditor = MvnIndexPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
- MvnIndexPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().saveEditor(activeEditor, false);
- } catch(Exception e){
+ IEditorPart activeEditor = MvnIndexPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow()
+ .getActivePage().getActiveEditor();
+ MvnIndexPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage()
+ .saveEditor(activeEditor, false);
+ } catch(Exception e) {
log.error("Unable to insert schema info", e); //$NON-NLS-1$
}
} else {
String msg = Messages.MavenMarkerResolution_error;
- MessageDialog.openError(MvnIndexPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getShell(), Messages.MavenMarkerResolution_error_title, msg);
+ MessageDialog.openError(MvnIndexPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getShell(),
+ Messages.MavenMarkerResolution_error_title, msg);
}
} catch(Exception e) {
log.error("Unable to run quick fix for maven marker", e); //$NON-NLS-1$
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/FormHoverProvider.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/FormHoverProvider.java
index c746cc4a..7db77494 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/FormHoverProvider.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/FormHoverProvider.java
@@ -36,44 +36,48 @@ import org.eclipse.ui.texteditor.MarkerAnnotation;
import org.eclipse.m2e.editor.xml.PomHyperlinkDetector;
import org.eclipse.m2e.editor.xml.PomTextHover;
+
public final class FormHoverProvider {
- public static Execute createHoverRunnable(final Shell parentShell, final IMarker[] markers, final ISourceViewer sourceViewer) {
- if (markers.length > 0) {
- return new Execute() {
- public void run(Point position) {
- List<IMarker> markersSet = Arrays.asList(markers);
- PomTextHover.CompoundRegion compound = new PomTextHover.CompoundRegion(sourceViewer, 0);
- Iterator<Annotation> it = sourceViewer.getAnnotationModel().getAnnotationIterator();
- while (it.hasNext()) {
- Annotation ann = it.next();
- if (ann instanceof MarkerAnnotation) {
- MarkerAnnotation mann = (MarkerAnnotation) ann;
- if (markersSet.contains(mann.getMarker()));
+ public static Execute createHoverRunnable(final Shell parentShell, final IMarker[] markers,
+ final ISourceViewer sourceViewer) {
+ if(markers.length > 0) {
+ return new Execute() {
+ public void run(Point position) {
+ List<IMarker> markersSet = Arrays.asList(markers);
+ PomTextHover.CompoundRegion compound = new PomTextHover.CompoundRegion(sourceViewer, 0);
+ Iterator<Annotation> it = sourceViewer.getAnnotationModel().getAnnotationIterator();
+ while(it.hasNext()) {
+ Annotation ann = it.next();
+ if(ann instanceof MarkerAnnotation) {
+ MarkerAnnotation mann = (MarkerAnnotation) ann;
+ if(markersSet.contains(mann.getMarker()))
+ ;
compound.addRegion(new PomHyperlinkDetector.MarkerRegion(0, 0, mann));
+ }
}
- }
- final MarkerHoverControl mhc = new MarkerHoverControl(parentShell);
- final Display fDisplay= mhc.getMyShell().getDisplay();
-
- final Listener displayListener = new Listener() {
- public void handleEvent(Event event) {
- if (event.type == SWT.MouseMove) {
- if (!(event.widget instanceof Control) || event.widget.isDisposed())
- return;
+ final MarkerHoverControl mhc = new MarkerHoverControl(parentShell);
+ final Display fDisplay = mhc.getMyShell().getDisplay();
+
+ final Listener displayListener = new Listener() {
+ public void handleEvent(Event event) {
+ if(event.type == SWT.MouseMove) {
+ if(!(event.widget instanceof Control) || event.widget.isDisposed())
+ return;
- IInformationControl infoControl= mhc;
- if (infoControl != null && !infoControl.isFocusControl() && infoControl instanceof IInformationControlExtension3) {
- IInformationControlExtension3 iControl3= (IInformationControlExtension3) infoControl;
- Rectangle controlBounds= iControl3.getBounds();
- if (controlBounds != null) {
- Point mouseLoc= event.display.map((Control) event.widget, null, event.x, event.y);
- int margin= 20;
- Geometry.expand(controlBounds, margin, margin, margin, margin);
- if (!controlBounds.contains(mouseLoc)) {
- mhc.setVisible(false);
+ IInformationControl infoControl = mhc;
+ if(infoControl != null && !infoControl.isFocusControl()
+ && infoControl instanceof IInformationControlExtension3) {
+ IInformationControlExtension3 iControl3 = (IInformationControlExtension3) infoControl;
+ Rectangle controlBounds = iControl3.getBounds();
+ if(controlBounds != null) {
+ Point mouseLoc = event.display.map((Control) event.widget, null, event.x, event.y);
+ int margin = 20;
+ Geometry.expand(controlBounds, margin, margin, margin, margin);
+ if(!controlBounds.contains(mouseLoc)) {
+ mhc.setVisible(false);
+ }
}
- }
// } else {
// System.out.println("removing mouse move..");
@@ -83,42 +87,42 @@ public final class FormHoverProvider {
// */
// if (fDisplay != null && !fDisplay.isDisposed())
// fDisplay.removeFilter(SWT.MouseMove, this);
- }
+ }
- } else if (event.type == SWT.FocusOut) {
- IInformationControl iControl= mhc;
- if (iControl != null && ! iControl.isFocusControl())
- mhc.setVisible(false);
+ } else if(event.type == SWT.FocusOut) {
+ IInformationControl iControl = mhc;
+ if(iControl != null && !iControl.isFocusControl())
+ mhc.setVisible(false);
+ }
}
+ };
+
+ mhc.setLocation(new Point(position.x, position.y));
+ mhc.setSizeConstraints(400, 400);
+ mhc.setInput(compound);
+ Point hint = mhc.computeSizeHint();
+ mhc.setSize(hint.x, Math.min(hint.y, 400));
+ if(!fDisplay.getBounds().contains(position.x + hint.x, position.y)) {
+ mhc.setLocation(new Point(position.x - (position.x + hint.x - fDisplay.getBounds().width), position.y));
}
- };
-
- mhc.setLocation(new Point(position.x, position.y));
- mhc.setSizeConstraints(400, 400);
- mhc.setInput(compound);
- Point hint = mhc.computeSizeHint();
- mhc.setSize(hint.x, Math.min(hint.y, 400));
- if (!fDisplay.getBounds().contains(position.x + hint.x, position.y)) {
- mhc.setLocation(new Point(position.x - (position.x + hint.x - fDisplay.getBounds().width), position.y));
- }
// mhc.getMyShell().addShellListener(new ShellAdapter() {
// public void shellActivated(ShellEvent e) {
// mhc.setFocus();
// }
// });
- if (!fDisplay.isDisposed()) {
- fDisplay.addFilter(SWT.MouseMove, displayListener);
- fDisplay.addFilter(SWT.FocusOut, displayListener);
- }
- mhc.addDisposeListener(new DisposeListener() {
- public void widgetDisposed(DisposeEvent e) {
- fDisplay.removeFilter(SWT.MouseMove, displayListener);
- fDisplay.removeFilter(SWT.FocusOut, displayListener);
+ if(!fDisplay.isDisposed()) {
+ fDisplay.addFilter(SWT.MouseMove, displayListener);
+ fDisplay.addFilter(SWT.FocusOut, displayListener);
}
- });
- mhc.setVisible(true);
- }
- };
+ mhc.addDisposeListener(new DisposeListener() {
+ public void widgetDisposed(DisposeEvent e) {
+ fDisplay.removeFilter(SWT.MouseMove, displayListener);
+ fDisplay.removeFilter(SWT.FocusOut, displayListener);
+ }
+ });
+ mhc.setVisible(true);
+ }
+ };
} else {
return null;
}
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerHoverControl.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerHoverControl.java
index 5b77dcf1..82257d4c 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerHoverControl.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerHoverControl.java
@@ -70,143 +70,145 @@ import org.eclipse.m2e.editor.xml.PomHyperlinkDetector.MarkerRegion;
import org.eclipse.m2e.editor.xml.PomTextHover;
import org.eclipse.m2e.editor.xml.PomTextHover.CompoundRegion;
-public class MarkerHoverControl extends AbstractInformationControl implements IInformationControlExtension2, IInformationControlExtension3, IInformationControlExtension5 {
-
- private CompoundRegion region;
- private Control focusControl;
- private Composite parent;
- private final DefaultMarkerAnnotationAccess markerAccess;
-
-
- public MarkerHoverControl(Shell shell) {
- super(shell, EditorsUI.getTooltipAffordanceString());
- markerAccess = new DefaultMarkerAnnotationAccess();
- create();
- }
- /*
- * @see org.eclipse.jface.text.IInformationControlExtension2#setInput(java.lang.Object)
- */
- public void setInput(Object input) {
- assert input instanceof CompoundRegion;
- if (input instanceof CompoundRegion) {
- region = (CompoundRegion) input;
- } else {
- throw new IllegalStateException("Not CompoundRegion"); //$NON-NLS-1$
- }
- disposeDeferredCreatedContent();
- deferredCreateContent();
- }
-
- Shell getMyShell() {
- return super.getShell();
- }
-
- Control getRoot() {
- return parent;
- }
-
- /*
- * @see org.eclipse.jface.text.IInformationControlExtension#hasContents()
- */
- public boolean hasContents() {
- return region != null;
- }
+public class MarkerHoverControl extends AbstractInformationControl implements IInformationControlExtension2,
+ IInformationControlExtension3, IInformationControlExtension5 {
- /*
- * @see org.eclipse.jdt.internal.ui.text.java.hover.AbstractAnnotationHover.AbstractInformationControl#setFocus()
- */
- public void setFocus() {
- super.setFocus();
- if (focusControl != null) {
- focusControl.setFocus();
- }
- }
+ private CompoundRegion region;
+
+ private Control focusControl;
+
+ private Composite parent;
- /*
- * @see org.eclipse.jface.text.AbstractInformationControl#setVisible(boolean)
- */
- public final void setVisible(boolean visible) {
- if (!visible)
- disposeDeferredCreatedContent();
- super.setVisible(visible);
+ private final DefaultMarkerAnnotationAccess markerAccess;
+
+ public MarkerHoverControl(Shell shell) {
+ super(shell, EditorsUI.getTooltipAffordanceString());
+ markerAccess = new DefaultMarkerAnnotationAccess();
+ create();
+ }
+
+ /*
+ * @see org.eclipse.jface.text.IInformationControlExtension2#setInput(java.lang.Object)
+ */
+ public void setInput(Object input) {
+ assert input instanceof CompoundRegion;
+ if(input instanceof CompoundRegion) {
+ region = (CompoundRegion) input;
+ } else {
+ throw new IllegalStateException("Not CompoundRegion"); //$NON-NLS-1$
}
+ disposeDeferredCreatedContent();
+ deferredCreateContent();
+ }
- protected void disposeDeferredCreatedContent() {
- Control[] children= parent.getChildren();
- for (int i= 0; i < children.length; i++) {
- children[i].dispose();
- }
- ToolBarManager toolBarManager= getToolBarManager();
- if (toolBarManager != null)
- toolBarManager.removeAll();
+ Shell getMyShell() {
+ return super.getShell();
+ }
+
+ Control getRoot() {
+ return parent;
+ }
+
+ /*
+ * @see org.eclipse.jface.text.IInformationControlExtension#hasContents()
+ */
+ public boolean hasContents() {
+ return region != null;
+ }
+
+ /*
+ * @see org.eclipse.jdt.internal.ui.text.java.hover.AbstractAnnotationHover.AbstractInformationControl#setFocus()
+ */
+ public void setFocus() {
+ super.setFocus();
+ if(focusControl != null) {
+ focusControl.setFocus();
}
+ }
- /*
- * @see org.eclipse.jface.text.AbstractInformationControl#createContent(org.eclipse.swt.widgets.Composite)
- */
- protected void createContent(Composite parent) {
- this.parent= parent;
- GridLayout layout= new GridLayout(1, false);
- layout.verticalSpacing= 0;
- layout.marginWidth= 0;
- layout.marginHeight= 0;
- parent.setLayout(layout);
+ /*
+ * @see org.eclipse.jface.text.AbstractInformationControl#setVisible(boolean)
+ */
+ public final void setVisible(boolean visible) {
+ if(!visible)
+ disposeDeferredCreatedContent();
+ super.setVisible(visible);
+ }
+
+ protected void disposeDeferredCreatedContent() {
+ Control[] children = parent.getChildren();
+ for(int i = 0; i < children.length; i++ ) {
+ children[i].dispose();
}
+ ToolBarManager toolBarManager = getToolBarManager();
+ if(toolBarManager != null)
+ toolBarManager.removeAll();
+ }
- /*
- * @see org.eclipse.jface.text.AbstractInformationControl#computeSizeHint()
- */
- public Point computeSizeHint() {
- Point preferedSize= getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
+ /*
+ * @see org.eclipse.jface.text.AbstractInformationControl#createContent(org.eclipse.swt.widgets.Composite)
+ */
+ protected void createContent(Composite parent) {
+ this.parent = parent;
+ GridLayout layout = new GridLayout(1, false);
+ layout.verticalSpacing = 0;
+ layout.marginWidth = 0;
+ layout.marginHeight = 0;
+ parent.setLayout(layout);
+ }
- Point constrains= getSizeConstraints();
- if (constrains == null)
- return preferedSize;
+ /*
+ * @see org.eclipse.jface.text.AbstractInformationControl#computeSizeHint()
+ */
+ public Point computeSizeHint() {
+ Point preferedSize = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
- Point constrainedSize= getShell().computeSize(constrains.x, SWT.DEFAULT, true);
+ Point constrains = getSizeConstraints();
+ if(constrains == null)
+ return preferedSize;
- int width= Math.min(preferedSize.x, constrainedSize.x);
- int height= Math.max(preferedSize.y, constrainedSize.y);
+ Point constrainedSize = getShell().computeSize(constrains.x, SWT.DEFAULT, true);
- return new Point(width, height);
- }
+ int width = Math.min(preferedSize.x, constrainedSize.x);
+ int height = Math.max(preferedSize.y, constrainedSize.y);
- /**
- * Create content of the hover. This is called after
- * the input has been set.
- */
- protected void deferredCreateContent() {
+ return new Point(width, height);
+ }
+
+ /**
+ * Create content of the hover. This is called after the input has been set.
+ */
+ protected void deferredCreateContent() {
// fillToolbar();
- if (region != null) {
- final ScrolledComposite scrolledComposite= new ScrolledComposite(parent, SWT.V_SCROLL);
- GridData gridData= new GridData(SWT.FILL, SWT.FILL, true, true);
- scrolledComposite.setLayoutData(gridData);
- scrolledComposite.setExpandVertical(false);
- scrolledComposite.setExpandHorizontal(false);
- Composite composite = new Composite(scrolledComposite, SWT.NONE);
- composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- GridLayout layout = new GridLayout(1, false);
- composite.setLayout(layout);
- scrolledComposite.setContent(composite);
-
-
- for (IRegion reg : region.getRegions()) {
- if (reg instanceof PomHyperlinkDetector.MarkerRegion) {
- final PomHyperlinkDetector.MarkerRegion markerReg = (PomHyperlinkDetector.MarkerRegion) reg;
- createAnnotationInformation(composite, markerReg);
- final IMarker mark = markerReg.getAnnotation().getMarker();
- IMarkerResolution[] resolutions = IDE.getMarkerHelpRegistry().getResolutions(mark);
- if (resolutions.length > 0) {
- createResolutionsControl(composite, mark, resolutions);
- }
+ if(region != null) {
+ final ScrolledComposite scrolledComposite = new ScrolledComposite(parent, SWT.V_SCROLL);
+ GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
+ scrolledComposite.setLayoutData(gridData);
+ scrolledComposite.setExpandVertical(false);
+ scrolledComposite.setExpandHorizontal(false);
+ Composite composite = new Composite(scrolledComposite, SWT.NONE);
+ composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ GridLayout layout = new GridLayout(1, false);
+ composite.setLayout(layout);
+ scrolledComposite.setContent(composite);
+
+ for(IRegion reg : region.getRegions()) {
+ if(reg instanceof PomHyperlinkDetector.MarkerRegion) {
+ final PomHyperlinkDetector.MarkerRegion markerReg = (PomHyperlinkDetector.MarkerRegion) reg;
+ createAnnotationInformation(composite, markerReg);
+ final IMarker mark = markerReg.getAnnotation().getMarker();
+ IMarkerResolution[] resolutions = IDE.getMarkerHelpRegistry().getResolutions(mark);
+ if(resolutions.length > 0) {
+ createResolutionsControl(composite, mark, resolutions);
}
+ }
if(reg instanceof ManagedArtifactRegion) {
final ManagedArtifactRegion man = (ManagedArtifactRegion) reg;
Composite comp = createTooltipComposite(composite, PomTextHover.getLabelForRegion(man));
//only create the hyperlink when the origin location for jumping is present.
//in some cases (managed version comes from imported dependencies) we don't have the location and have nowhere to jump)
- if (PomHyperlinkDetector.canCreateHyperLink(man)) {
+ if(PomHyperlinkDetector.canCreateHyperLink(man)) {
Link link = createHyperlink(comp);
link.addSelectionListener(new SelectionAdapter() {
@Override
@@ -218,38 +220,37 @@ public class MarkerHoverControl extends AbstractInformationControl implements II
}
}
- if (reg instanceof ExpressionRegion) {
- final ExpressionRegion expr = (ExpressionRegion)reg;
- Composite tooltipComposite = createTooltipComposite(composite, PomTextHover.getLabelForRegion(expr));
- if(PomHyperlinkDetector.canCreateHyperLink(expr)) {
- Link link = createHyperlink(tooltipComposite);
- link.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent e) {
- dispose();
- PomHyperlinkDetector.createHyperlink(expr).open();
- }
- });
- }
- }
- if (region.getRegions().indexOf(reg) < region.getRegions().size() - 1) {
- createSeparator(composite);
+ if(reg instanceof ExpressionRegion) {
+ final ExpressionRegion expr = (ExpressionRegion) reg;
+ Composite tooltipComposite = createTooltipComposite(composite, PomTextHover.getLabelForRegion(expr));
+ if(PomHyperlinkDetector.canCreateHyperLink(expr)) {
+ Link link = createHyperlink(tooltipComposite);
+ link.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ dispose();
+ PomHyperlinkDetector.createHyperlink(expr).open();
+ }
+ });
}
}
-
-
- Point constraints = getSizeConstraints();
- Point contentSize = composite.computeSize(constraints != null ? constraints.x : SWT.DEFAULT, SWT.DEFAULT);
-
- composite.setSize(new Point(contentSize.x, contentSize.y)); //12 is the magic number for height of status line
-
+ if(region.getRegions().indexOf(reg) < region.getRegions().size() - 1) {
+ createSeparator(composite);
+ }
}
-
- setColorAndFont(parent, parent.getForeground(), parent.getBackground(), JFaceResources.getDialogFont());
- parent.layout(true);
+ Point constraints = getSizeConstraints();
+ Point contentSize = composite.computeSize(constraints != null ? constraints.x : SWT.DEFAULT, SWT.DEFAULT);
+
+ composite.setSize(new Point(contentSize.x, contentSize.y)); //12 is the magic number for height of status line
+
}
+ setColorAndFont(parent, parent.getForeground(), parent.getBackground(), JFaceResources.getDialogFont());
+
+ parent.layout(true);
+ }
+
private Link createHyperlink(Composite parent) {
Link link = new Link(parent, SWT.NONE);
GridData data2 = new GridData(SWT.FILL, SWT.FILL, true, true);
@@ -287,258 +288,256 @@ public class MarkerHoverControl extends AbstractInformationControl implements II
return composite;
}
-
- private void setColorAndFont(Control control, Color foreground, Color background, Font font) {
- control.setForeground(foreground);
- control.setBackground(background);
- control.setFont(font);
-
- if (control instanceof Composite) {
- Control[] children= ((Composite) control).getChildren();
- for (int i= 0; i < children.length; i++) {
- setColorAndFont(children[i], foreground, background, font);
- }
+
+ private void setColorAndFont(Control control, Color foreground, Color background, Font font) {
+ control.setForeground(foreground);
+ control.setBackground(background);
+ control.setFont(font);
+
+ if(control instanceof Composite) {
+ Control[] children = ((Composite) control).getChildren();
+ for(int i = 0; i < children.length; i++ ) {
+ setColorAndFont(children[i], foreground, background, font);
}
}
+ }
- private void createAnnotationInformation(Composite parent, final MarkerRegion annotation) {
- Composite composite= new Composite(parent, SWT.NONE);
- composite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
- GridLayout layout= new GridLayout(2, false);
- layout.marginHeight= 2;
- layout.marginWidth= 2;
- layout.horizontalSpacing= 0;
- composite.setLayout(layout);
+ private void createAnnotationInformation(Composite parent, final MarkerRegion annotation) {
+ Composite composite = new Composite(parent, SWT.NONE);
+ composite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
+ GridLayout layout = new GridLayout(2, false);
+ layout.marginHeight = 2;
+ layout.marginWidth = 2;
+ layout.horizontalSpacing = 0;
+ composite.setLayout(layout);
- //this paints the icon..
- final Canvas canvas= new Canvas(composite, SWT.NO_FOCUS);
- GridData gridData= new GridData(SWT.BEGINNING, SWT.BEGINNING, false, false);
- gridData.widthHint= 17;
- gridData.heightHint= 16;
- canvas.setLayoutData(gridData);
- canvas.addPaintListener(new PaintListener() {
- public void paintControl(PaintEvent e) {
- e.gc.setFont(null);
- markerAccess.paint(annotation.getAnnotation(), e.gc, canvas, new Rectangle(0, 0, 16, 16));
+ //this paints the icon..
+ final Canvas canvas = new Canvas(composite, SWT.NO_FOCUS);
+ GridData gridData = new GridData(SWT.BEGINNING, SWT.BEGINNING, false, false);
+ gridData.widthHint = 17;
+ gridData.heightHint = 16;
+ canvas.setLayoutData(gridData);
+ canvas.addPaintListener(new PaintListener() {
+ public void paintControl(PaintEvent e) {
+ e.gc.setFont(null);
+ markerAccess.paint(annotation.getAnnotation(), e.gc, canvas, new Rectangle(0, 0, 16, 16));
+ }
+ });
+
+ //and now comes the text
+ StyledText text = new StyledText(composite, SWT.MULTI | SWT.WRAP | SWT.READ_ONLY);
+ GridData data = new GridData(SWT.FILL, SWT.FILL, true, true);
+ text.setLayoutData(data);
+ String annotationText = annotation.getAnnotation().getText();
+ if(annotationText != null) {
+ text.setText(annotationText);
+ }
+ if(annotation.isDefinedInParent()) {
+ new Label(composite, SWT.NONE);
+
+ Link link = new Link(composite, SWT.NONE);
+ GridData data2 = new GridData(SWT.FILL, SWT.FILL, true, true);
+ data2.horizontalIndent = 18;
+ link.setLayoutData(data2);
+ link.setText("<a>Jump to definition in parent POM</a>");
+ link.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ PomHyperlinkDetector.createHyperlink(annotation).open();
+ dispose();
}
});
-
- //and now comes the text
- StyledText text= new StyledText(composite, SWT.MULTI | SWT.WRAP | SWT.READ_ONLY);
- GridData data= new GridData(SWT.FILL, SWT.FILL, true, true);
- text.setLayoutData(data);
- String annotationText = annotation.getAnnotation().getText();
- if (annotationText != null) {
- text.setText(annotationText);
- }
- if (annotation.isDefinedInParent()) {
- new Label(composite, SWT.NONE);
-
- Link link = new Link(composite, SWT.NONE);
- GridData data2 = new GridData(SWT.FILL, SWT.FILL, true, true);
- data2.horizontalIndent = 18;
- link.setLayoutData(data2);
- link.setText("<a>Jump to definition in parent POM</a>");
- link.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent e) {
- PomHyperlinkDetector.createHyperlink(annotation).open();
- dispose();
- }
- });
- }
-
}
-
- private void createSeparator(Composite parent) {
- Label separator= new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL);
- GridData gridData= new GridData(SWT.FILL, SWT.TOP, true, false);
- gridData.verticalIndent = 2;
- separator.setLayoutData(gridData);
+
+ }
+
+ private void createSeparator(Composite parent) {
+ Label separator = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL);
+ GridData gridData = new GridData(SWT.FILL, SWT.TOP, true, false);
+ gridData.verticalIndent = 2;
+ separator.setLayoutData(gridData);
+ }
+
+ private void createResolutionsControl(Composite parent, IMarker mark, IMarkerResolution[] resolutions) {
+ Composite composite = new Composite(parent, SWT.NONE);
+ composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ GridLayout layout = new GridLayout(1, false);
+ layout.marginWidth = 0;
+ layout.verticalSpacing = 2;
+ layout.marginHeight = 0;
+ composite.setLayout(layout);
+
+ Label quickFixLabel = new Label(composite, SWT.NONE);
+ GridData layoutData = new GridData(SWT.BEGINNING, SWT.TOP, false, false);
+ layoutData.horizontalIndent = 4;
+ quickFixLabel.setLayoutData(layoutData);
+ String text;
+
+ if(resolutions.length == 1) {
+ text = Messages.PomTextHover_one_quickfix;
+ } else {
+ text = NLS.bind(Messages.PomTextHover_more_quickfixes, String.valueOf(resolutions.length));
}
+ quickFixLabel.setText(text);
- private void createResolutionsControl(Composite parent, IMarker mark, IMarkerResolution[] resolutions) {
- Composite composite = new Composite(parent, SWT.NONE);
- composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- GridLayout layout= new GridLayout(1, false);
- layout.marginWidth = 0;
- layout.verticalSpacing = 2;
- layout.marginHeight = 0;
- composite.setLayout(layout);
+ Composite composite2 = new Composite(parent, SWT.NONE);
+ composite2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ GridLayout layout2 = new GridLayout(2, false);
+ layout2.marginLeft = 5;
+ layout2.verticalSpacing = 2;
+ composite2.setLayout(layout2);
- Label quickFixLabel= new Label(composite, SWT.NONE);
- GridData layoutData= new GridData(SWT.BEGINNING, SWT.TOP, false, false);
- layoutData.horizontalIndent= 4;
- quickFixLabel.setLayoutData(layoutData);
- String text;
-
- if (resolutions.length == 1) {
- text= Messages.PomTextHover_one_quickfix;
- } else {
- text= NLS.bind(Messages.PomTextHover_more_quickfixes, String.valueOf(resolutions.length));
- }
- quickFixLabel.setText(text);
-
-
- Composite composite2= new Composite(parent, SWT.NONE);
- composite2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- GridLayout layout2= new GridLayout(2, false);
- layout2.marginLeft= 5;
- layout2.verticalSpacing= 2;
- composite2.setLayout(layout2);
-
- List<Link> list= new ArrayList<Link>();
- for (int i= 0; i < resolutions.length; i++) {
- list.add(createCompletionProposalLink(composite2, mark, resolutions[i], 1));// Original link for single fix, hence pass 1 for count
-
- }
- final Link[] links = list.toArray(new Link[list.size()]);
-
-
- focusControl= links[0];
- for (int i= 0; i < links.length; i++) {
- final int index= i;
- final Link link= links[index];
- link.addKeyListener(new KeyListener() {
- public void keyPressed(KeyEvent e) {
- switch (e.keyCode) {
- case SWT.ARROW_DOWN:
- if (index + 1 < links.length) {
- links[index + 1].setFocus();
- }
- break;
- case SWT.ARROW_UP:
- if (index > 0) {
- links[index - 1].setFocus();
- }
- break;
- default:
- break;
- }
- }
+ List<Link> list = new ArrayList<Link>();
+ for(int i = 0; i < resolutions.length; i++ ) {
+ list.add(createCompletionProposalLink(composite2, mark, resolutions[i], 1));// Original link for single fix, hence pass 1 for count
- public void keyReleased(KeyEvent e) {
+ }
+ final Link[] links = list.toArray(new Link[list.size()]);
+
+ focusControl = links[0];
+ for(int i = 0; i < links.length; i++ ) {
+ final int index = i;
+ final Link link = links[index];
+ link.addKeyListener(new KeyListener() {
+ public void keyPressed(KeyEvent e) {
+ switch(e.keyCode) {
+ case SWT.ARROW_DOWN:
+ if(index + 1 < links.length) {
+ links[index + 1].setFocus();
+ }
+ break;
+ case SWT.ARROW_UP:
+ if(index > 0) {
+ links[index - 1].setFocus();
+ }
+ break;
+ default:
+ break;
}
- });
+ }
+
+ public void keyReleased(KeyEvent e) {
+ }
+ });
- }
}
-
- private Link createCompletionProposalLink(Composite parent, final IMarker mark, final IMarkerResolution proposal, int count) {
- final boolean isMultiFix= count > 1;
- if (isMultiFix) {
- new Label(parent, SWT.NONE); // spacer to fill image cell
- parent= new Composite(parent, SWT.NONE); // indented composite for multi-fix
- GridLayout layout= new GridLayout(2, false);
- layout.marginWidth= 0;
- layout.marginHeight= 0;
- parent.setLayout(layout);
- }
-
- Label proposalImage= new Label(parent, SWT.NONE);
- proposalImage.setLayoutData(new GridData(SWT.BEGINNING, SWT.TOP, false, false));
- Image image= null;
- if (proposal instanceof ICompletionProposal) {
- image = ((ICompletionProposal)proposal).getImage();
- } else if (proposal instanceof IMarkerResolution2) {
- image = ((IMarkerResolution2)proposal).getImage();
- }
- if (image != null) {
- proposalImage.setImage(image);
+ }
+
+ private Link createCompletionProposalLink(Composite parent, final IMarker mark, final IMarkerResolution proposal,
+ int count) {
+ final boolean isMultiFix = count > 1;
+ if(isMultiFix) {
+ new Label(parent, SWT.NONE); // spacer to fill image cell
+ parent = new Composite(parent, SWT.NONE); // indented composite for multi-fix
+ GridLayout layout = new GridLayout(2, false);
+ layout.marginWidth = 0;
+ layout.marginHeight = 0;
+ parent.setLayout(layout);
+ }
- proposalImage.addMouseListener(new MouseListener() {
+ Label proposalImage = new Label(parent, SWT.NONE);
+ proposalImage.setLayoutData(new GridData(SWT.BEGINNING, SWT.TOP, false, false));
+ Image image = null;
+ if(proposal instanceof ICompletionProposal) {
+ image = ((ICompletionProposal) proposal).getImage();
+ } else if(proposal instanceof IMarkerResolution2) {
+ image = ((IMarkerResolution2) proposal).getImage();
+ }
+ if(image != null) {
+ proposalImage.setImage(image);
- public void mouseDoubleClick(MouseEvent e) {
- }
+ proposalImage.addMouseListener(new MouseListener() {
- public void mouseDown(MouseEvent e) {
- }
+ public void mouseDoubleClick(MouseEvent e) {
+ }
- public void mouseUp(MouseEvent e) {
- if (e.button == 1) {
- apply(proposal, mark, region.textViewer, region.textOffset);
- }
- }
- });
- }
+ public void mouseDown(MouseEvent e) {
+ }
- Link proposalLink = new Link(parent, SWT.WRAP);
- GridData layoutData= new GridData(SWT.BEGINNING, SWT.TOP, false, false);
- String linkText;
- if (isMultiFix) {
- linkText = NLS.bind(Messages.PomTextHover_category_fix, new Integer(count));
- } else {
- linkText = proposal.getLabel();
- }
- proposalLink.setText("<a>" + linkText + "</a>"); //$NON-NLS-1$ //$NON-NLS-2$
- proposalLink.setLayoutData(layoutData);
- proposalLink.addSelectionListener(new SelectionAdapter() {
- public void widgetSelected(SelectionEvent e) {
- apply(proposal, mark, region.textViewer, region.textOffset);
+ public void mouseUp(MouseEvent e) {
+ if(e.button == 1) {
+ apply(proposal, mark, region.textViewer, region.textOffset);
+ }
}
});
- return proposalLink;
}
-
- /**
- * {@inheritDoc}
- * This default implementation returns <code>null</code>. Subclasses may override.
- */
- public IInformationControlCreator getInformationPresenterControlCreator() {
- return new IInformationControlCreator() {
- /*
- * @see org.eclipse.jface.text.IInformationControlCreator#createInformationControl(org.eclipse.swt.widgets.Shell)
- */
- public IInformationControl createInformationControl(Shell parent) {
- return new MarkerHoverControl(parent);
- }
- };
+
+ Link proposalLink = new Link(parent, SWT.WRAP);
+ GridData layoutData = new GridData(SWT.BEGINNING, SWT.TOP, false, false);
+ String linkText;
+ if(isMultiFix) {
+ linkText = NLS.bind(Messages.PomTextHover_category_fix, new Integer(count));
+ } else {
+ linkText = proposal.getLabel();
}
-
- private void apply(IMarkerResolution res, IMarker mark, ITextViewer viewer, int offset) {
- if (res instanceof ICompletionProposal) {
- apply((ICompletionProposal)res, viewer, offset, false);
- } else {
- dispose();
- res.run(mark);
+ proposalLink.setText("<a>" + linkText + "</a>"); //$NON-NLS-1$ //$NON-NLS-2$
+ proposalLink.setLayoutData(layoutData);
+ proposalLink.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ apply(proposal, mark, region.textViewer, region.textOffset);
}
- }
+ });
+ return proposalLink;
+ }
+
+ /**
+ * {@inheritDoc} This default implementation returns <code>null</code>. Subclasses may override.
+ */
+ public IInformationControlCreator getInformationPresenterControlCreator() {
+ return new IInformationControlCreator() {
+ /*
+ * @see org.eclipse.jface.text.IInformationControlCreator#createInformationControl(org.eclipse.swt.widgets.Shell)
+ */
+ public IInformationControl createInformationControl(Shell parent) {
+ return new MarkerHoverControl(parent);
+ }
+ };
+ }
- private void apply(ICompletionProposal p, ITextViewer viewer, int offset, boolean isMultiFix) {
- //Focus needs to be in the text viewer, otherwise linked mode does not work
+ private void apply(IMarkerResolution res, IMarker mark, ITextViewer viewer, int offset) {
+ if(res instanceof ICompletionProposal) {
+ apply((ICompletionProposal) res, viewer, offset, false);
+ } else {
dispose();
+ res.run(mark);
+ }
+ }
- IRewriteTarget target= null;
- try {
- IDocument document= viewer.getDocument();
+ private void apply(ICompletionProposal p, ITextViewer viewer, int offset, boolean isMultiFix) {
+ //Focus needs to be in the text viewer, otherwise linked mode does not work
+ dispose();
- if (viewer instanceof ITextViewerExtension) {
- ITextViewerExtension extension= (ITextViewerExtension) viewer;
- target= extension.getRewriteTarget();
- }
+ IRewriteTarget target = null;
+ try {
+ IDocument document = viewer.getDocument();
- if (target != null)
- target.beginCompoundChange();
-
- if (p instanceof ICompletionProposalExtension2) {
- ICompletionProposalExtension2 e= (ICompletionProposalExtension2) p;
- e.apply(viewer, (char) 0, isMultiFix ? SWT.CONTROL : SWT.NONE, offset);
- } else if (p instanceof ICompletionProposalExtension) {
- ICompletionProposalExtension e= (ICompletionProposalExtension) p;
- e.apply(document, (char) 0, offset);
- } else {
- p.apply(document);
- }
+ if(viewer instanceof ITextViewerExtension) {
+ ITextViewerExtension extension = (ITextViewerExtension) viewer;
+ target = extension.getRewriteTarget();
+ }
- Point selection= p.getSelection(document);
- if (selection != null) {
- viewer.setSelectedRange(selection.x, selection.y);
- viewer.revealRange(selection.x, selection.y);
- }
- } finally {
- if (target != null)
- target.endCompoundChange();
+ if(target != null)
+ target.beginCompoundChange();
+
+ if(p instanceof ICompletionProposalExtension2) {
+ ICompletionProposalExtension2 e = (ICompletionProposalExtension2) p;
+ e.apply(viewer, (char) 0, isMultiFix ? SWT.CONTROL : SWT.NONE, offset);
+ } else if(p instanceof ICompletionProposalExtension) {
+ ICompletionProposalExtension e = (ICompletionProposalExtension) p;
+ e.apply(document, (char) 0, offset);
+ } else {
+ p.apply(document);
}
+
+ Point selection = p.getSelection(document);
+ if(selection != null) {
+ viewer.setSelectedRange(selection.x, selection.y);
+ viewer.revealRange(selection.x, selection.y);
+ }
+ } finally {
+ if(target != null)
+ target.endCompoundChange();
}
-
- } \ No newline at end of file
+ }
+
+}
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java
index 75577ee4..f0e40179 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java
@@ -25,14 +25,9 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import org.apache.maven.model.Dependency;
-import org.apache.maven.model.DependencyManagement;
-import org.apache.maven.model.InputLocation;
-import org.apache.maven.model.Plugin;
-import org.apache.maven.model.PluginManagement;
-import org.apache.maven.project.MavenProject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+
import org.w3c.dom.Comment;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -53,6 +48,13 @@ import org.eclipse.wst.xml.core.internal.parser.regions.TagNameRegion;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
import org.eclipse.wst.xml.core.internal.regions.DOMRegionContext;
+import org.apache.maven.model.Dependency;
+import org.apache.maven.model.DependencyManagement;
+import org.apache.maven.model.InputLocation;
+import org.apache.maven.model.Plugin;
+import org.apache.maven.model.PluginManagement;
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.core.internal.markers.IEditorMarkerService;
import org.eclipse.m2e.core.internal.markers.IMarkerLocationService;
@@ -62,10 +64,11 @@ import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
import org.eclipse.m2e.core.ui.internal.editing.PomEdits;
import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Matcher;
+
/**
* a service impl used by the core module to improve marker locations and addition of our own markers
+ *
* @author mkleint
- *
*/
@SuppressWarnings("restriction")
public class MarkerLocationService implements IMarkerLocationService, IEditorMarkerService {
@@ -74,6 +77,7 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
private static final String XSI_SCHEMA_LOCATION = "xsi:schemaLocation"; //$NON-NLS-1$
private static final String PROJECT_NODE = "project"; //$NON-NLS-1$
+
private static final String OFFSET = "offset"; //$NON-NLS-1$
public void findLocationForMarker(final IMarker marker) {
@@ -118,86 +122,88 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
}
public void findLocationForMarker_(final IMarker marker) {
-
+
String hint = marker.getAttribute(IMavenConstants.MARKER_ATTR_EDITOR_HINT, null);
-
- if (IMavenConstants.EDITOR_HINT_NOT_COVERED_MOJO_EXECUTION.equals(hint)) {
+
+ if(IMavenConstants.EDITOR_HINT_NOT_COVERED_MOJO_EXECUTION.equals(hint)) {
try {
final boolean lookInPM = false;
final String groupId = marker.getAttribute(IMavenConstants.MARKER_ATTR_GROUP_ID, "");
final String artifactId = marker.getAttribute(IMavenConstants.MARKER_ATTR_ARTIFACT_ID, "");
final String exec = marker.getAttribute(IMavenConstants.MARKER_ATTR_EXECUTION_ID, "");
final String goal = marker.getAttribute(IMavenConstants.MARKER_ATTR_GOAL, "");
- XmlUtils.performOnRootElement((IFile)marker.getResource(), new NodeOperation<Element>() {
+ XmlUtils.performOnRootElement((IFile) marker.getResource(), new NodeOperation<Element>() {
public void process(Element root, IStructuredDocument structuredDocument) {
Element build = findChild(root, PomEdits.BUILD);
List<Element> candidates = new ArrayList<Element>();
Element plugin = findPlugin(build, groupId, artifactId);
- if (plugin != null) {
+ if(plugin != null) {
candidates.add(plugin);
}
- if (lookInPM) {
+ if(lookInPM) {
plugin = findPlugin(findChild(build, PomEdits.PLUGIN_MANAGEMENT), groupId, artifactId);
- if (plugin != null) {
+ if(plugin != null) {
candidates.add(plugin);
}
}
//look in profiles
List<Element> profiles = findChilds(findChild(root, PomEdits.PROFILES), PomEdits.PROFILE);
//TODO eventually we should only process the activated profiles.. but need MavenProject for it.
- for (Element profile : profiles) {
+ for(Element profile : profiles) {
Element profBuild = findChild(profile, PomEdits.BUILD);
plugin = findPlugin(profBuild, groupId, artifactId);
- if (plugin != null) {
+ if(plugin != null) {
candidates.add(plugin);
}
- if (lookInPM) {
+ if(lookInPM) {
plugin = findPlugin(findChild(profBuild, PomEdits.PLUGIN_MANAGEMENT), groupId, artifactId);
- if (plugin != null) {
+ if(plugin != null) {
candidates.add(plugin);
}
}
}
Element ourMarkerPlacement = null;
- for (Element candid : candidates) {
- Matcher match = exec.equals("default") ? childMissingOrEqual(PomEdits.ID, "default") : childEquals(PomEdits.ID, exec);
+ for(Element candid : candidates) {
+ Matcher match = exec.equals("default") ? childMissingOrEqual(PomEdits.ID, "default") : childEquals(
+ PomEdits.ID, exec);
Element execution = findChild(findChild(candid, PomEdits.EXECUTIONS), PomEdits.EXECUTION, match);
- if (execution != null) {
+ if(execution != null) {
Element goalEl = findChild(findChild(execution, PomEdits.GOALS), PomEdits.GOAL, textEquals(goal));
- if (goalEl != null) {
+ if(goalEl != null) {
ourMarkerPlacement = goalEl;
break;
} else {
//only remember the first execution match
- if (ourMarkerPlacement == null) {
+ if(ourMarkerPlacement == null) {
ourMarkerPlacement = findChild(execution, PomEdits.ID);
- if (ourMarkerPlacement == null) { //just old plain paranoia
+ if(ourMarkerPlacement == null) { //just old plain paranoia
ourMarkerPlacement = execution;
}
}
}
}
}
- if (ourMarkerPlacement == null) {
- plugin = candidates.size() > 0 ? candidates.get(0) : null;
- //executions not here (eg. in PM or parent PM), just mark the plugin's artifactId
- ourMarkerPlacement = findChild(plugin, PomEdits.ARTIFACT_ID);
- if (ourMarkerPlacement == null && plugin != null) { //just old plain paranoia
- ourMarkerPlacement = plugin;
- } else {
- //what are the strategies for placement when no plugin is found?
- // we could.. search pluginManagement, but it's unlikely to be there..
- ourMarkerPlacement = build != null ? build : root;
- }
+ if(ourMarkerPlacement == null) {
+ plugin = candidates.size() > 0 ? candidates.get(0) : null;
+ //executions not here (eg. in PM or parent PM), just mark the plugin's artifactId
+ ourMarkerPlacement = findChild(plugin, PomEdits.ARTIFACT_ID);
+ if(ourMarkerPlacement == null && plugin != null) { //just old plain paranoia
+ ourMarkerPlacement = plugin;
+ } else {
+ //what are the strategies for placement when no plugin is found?
+ // we could.. search pluginManagement, but it's unlikely to be there..
+ ourMarkerPlacement = build != null ? build : root;
+ }
}
-
+
annotateMarker(marker, structuredDocument, ourMarkerPlacement);
}
-
private Element findPlugin(Element build, String groupId, String artifactId) {
- Matcher grIdmatch = groupId.equals("org.apache.maven.plugins") ? childMissingOrEqual(PomEdits.GROUP_ID, groupId) : childEquals(PomEdits.GROUP_ID, groupId);
- return findChild(findChild(build, PomEdits.PLUGINS), PomEdits.PLUGIN, grIdmatch, childEquals(PomEdits.ARTIFACT_ID, artifactId));
+ Matcher grIdmatch = groupId.equals("org.apache.maven.plugins") ? childMissingOrEqual(PomEdits.GROUP_ID,
+ groupId) : childEquals(PomEdits.GROUP_ID, groupId);
+ return findChild(findChild(build, PomEdits.PLUGINS), PomEdits.PLUGIN, grIdmatch,
+ childEquals(PomEdits.ARTIFACT_ID, artifactId));
}
});
} catch(IOException e) {
@@ -209,7 +215,7 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
}
private void annotateMarker(final IMarker marker, IStructuredDocument structuredDocument, Element ourMarkerPlacement) {
- if (ourMarkerPlacement instanceof IndexedRegion) {
+ if(ourMarkerPlacement instanceof IndexedRegion) {
IndexedRegion region = (IndexedRegion) ourMarkerPlacement;
try {
marker.setAttribute(IMarker.CHAR_START, region.getStartOffset());
@@ -228,7 +234,6 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
}
}
}
-
public void addEditorHintMarkers(IMavenMarkerManager markerManager, IFile pom, MavenProject mavenProject, String type) {
checkForSchema(markerManager, pom, type);
@@ -236,29 +241,30 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
}
/**
- * The xsi:schema info is not part of the model, it is stored in the xml only. Need to open the DOM
- * and look for the project node to see if it has this schema defined
- * @param mavenMarkerManager
+ * The xsi:schema info is not part of the model, it is stored in the xml only. Need to open the DOM and look for the
+ * project node to see if it has this schema defined
+ *
+ * @param mavenMarkerManager
* @param pomFile
*/
static void checkForSchema(IMavenMarkerManager mavenMarkerManager, IResource pomFile, String type) {
IDOMModel domModel = null;
- try{
- if(!(pomFile instanceof IFile)){
+ try {
+ if(!(pomFile instanceof IFile)) {
return;
}
- domModel = (IDOMModel)StructuredModelManager.getModelManager().getModelForRead((IFile)pomFile);
+ domModel = (IDOMModel) StructuredModelManager.getModelManager().getModelForRead((IFile) pomFile);
IStructuredDocument document = domModel.getStructuredDocument();
-
+
// iterate through document regions
- documentLoop:for(IStructuredDocumentRegion documentRegion : document.getStructuredDocumentRegions()) {
+ documentLoop: for(IStructuredDocumentRegion documentRegion : document.getStructuredDocumentRegions()) {
// only check tag regions
- if (DOMRegionContext.XML_TAG_NAME.equals(documentRegion.getType())){
- for(ITextRegion textRegion: documentRegion.getRegions().toArray()){
+ if(DOMRegionContext.XML_TAG_NAME.equals(documentRegion.getType())) {
+ for(ITextRegion textRegion : documentRegion.getRegions().toArray()) {
// find a project tag
- if(textRegion instanceof TagNameRegion && PROJECT_NODE.equals(documentRegion.getText(textRegion))){
+ if(textRegion instanceof TagNameRegion && PROJECT_NODE.equals(documentRegion.getText(textRegion))) {
// check if schema is missing
- if (documentRegion.getText().lastIndexOf(XSI_SCHEMA_LOCATION) == -1) {
+ if(documentRegion.getText().lastIndexOf(XSI_SCHEMA_LOCATION) == -1) {
int offset = documentRegion.getStartOffset();
int lineNumber = document.getLineOfOffset(offset) + 1;
IMarker marker = mavenMarkerManager.addMarker(pomFile, type,
@@ -266,7 +272,7 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
IMarker.SEVERITY_WARNING);
//the quick fix in the marker view needs to know the offset, since it doesn't have access to the
//editor/source viewer
- if(marker != null){
+ if(marker != null) {
marker.setAttribute(OFFSET, offset);
marker.setAttribute(IMavenConstants.MARKER_ATTR_EDITOR_HINT,
IMavenConstants.EDITOR_HINT_MISSING_SCHEMA);
@@ -283,23 +289,22 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
}
} catch(Exception ex) {
log.error("Error checking for schema", ex); //$NON-NLS-1$
- }
- finally {
- if ( domModel != null ) {
+ } finally {
+ if(domModel != null) {
domModel.releaseFromRead();
}
}
}
- private static void checkManagedDependencies(IMavenMarkerManager mavenMarkerManager, Element root, IResource pomFile, MavenProject mavenproject, String type, IStructuredDocument document)
- throws CoreException {
+ private static void checkManagedDependencies(IMavenMarkerManager mavenMarkerManager, Element root, IResource pomFile,
+ MavenProject mavenproject, String type, IStructuredDocument document) throws CoreException {
List<Element> candidates = new ArrayList<Element>();
-
+
Element dependencies = findChild(root, PomEdits.DEPENDENCIES);
- if (dependencies != null) {
- for (Element el : findChilds(dependencies, PomEdits.DEPENDENCY)) {
+ if(dependencies != null) {
+ for(Element el : findChilds(dependencies, PomEdits.DEPENDENCY)) {
Element version = findChild(el, PomEdits.VERSION);
- if (version != null) {
+ if(version != null) {
candidates.add(el);
}
}
@@ -307,20 +312,21 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
//we should also consider <dependencies> section in the profiles, but profile are optional and so is their
// dependencyManagement section.. that makes handling our markers more complex.
// see MavenProject.getInjectedProfileIds() for a list of currently active profiles in effective pom
- String currentProjectKey = mavenproject.getGroupId() + ":" + mavenproject.getArtifactId() + ":" + mavenproject.getVersion(); //$NON-NLS-1$ //$NON-NLS-2$
+ String currentProjectKey = mavenproject.getGroupId()
+ + ":" + mavenproject.getArtifactId() + ":" + mavenproject.getVersion(); //$NON-NLS-1$ //$NON-NLS-2$
List<String> activeprofiles = mavenproject.getInjectedProfileIds().get(currentProjectKey);
//remember what profile we found the dependency in.
Map<Element, String> candidateProfile = new HashMap<Element, String>();
Element profiles = findChild(root, PomEdits.PROFILES);
- if (profiles != null) {
- for (Element profile : findChilds(profiles, PomEdits.PROFILE)) {
+ if(profiles != null) {
+ for(Element profile : findChilds(profiles, PomEdits.PROFILE)) {
String idString = getTextValue(findChild(profile, PomEdits.ID));
- if (idString != null && activeprofiles.contains(idString)) {
+ if(idString != null && activeprofiles.contains(idString)) {
dependencies = findChild(profile, PomEdits.DEPENDENCIES);
- if (dependencies != null) {
- for (Element el : findChilds(dependencies, PomEdits.DEPENDENCY)) {
+ if(dependencies != null) {
+ for(Element el : findChilds(dependencies, PomEdits.DEPENDENCY)) {
Element version = findChild(el, PomEdits.VERSION);
- if (version != null) {
+ if(version != null) {
candidates.add(el);
candidateProfile.put(el, idString);
}
@@ -332,18 +338,18 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
//collect the managed dep ids
Map<String, String> managed = new HashMap<String, String>();
DependencyManagement dm = mavenproject.getDependencyManagement();
- if (dm != null) {
+ if(dm != null) {
List<Dependency> deps = dm.getDependencies();
- if (deps != null) {
- for (Dependency dep : deps) {
- if (dep.getVersion() != null) { //#335366
+ if(deps != null) {
+ for(Dependency dep : deps) {
+ if(dep.getVersion() != null) { //#335366
//shall we be using geManagementkey() here? but it contains also the type, not only the gr+art ids..
managed.put(dep.getGroupId() + ":" + dep.getArtifactId(), dep.getVersion()); //$NON-NLS-1$
}
}
}
}
-
+
//now we have all the candidates, match them against the effective managed set
for(Element dep : candidates) {
Element version = findChild(dep, PomEdits.VERSION);
@@ -359,7 +365,7 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
if(lookForIgnoreMarker(document, version, off, IMavenConstants.MARKER_IGNORE_MANAGED)) {
continue;
}
-
+
IMarker mark = mavenMarkerManager.addMarker(pomFile, type, NLS.bind(
org.eclipse.m2e.core.internal.Messages.MavenMarkerManager_managed_title, managedVersion, artString),
document.getLineOfOffset(off.getStartOffset()) + 1, IMarker.SEVERITY_WARNING);
@@ -381,18 +387,18 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
}
}
- private static void checkManagedPlugins(IMavenMarkerManager mavenMarkerManager, Element root, IResource pomFile, MavenProject mavenproject, String type, IStructuredDocument document)
- throws CoreException {
+ private static void checkManagedPlugins(IMavenMarkerManager mavenMarkerManager, Element root, IResource pomFile,
+ MavenProject mavenproject, String type, IStructuredDocument document) throws CoreException {
List<Element> candidates = new ArrayList<Element>();
Element build = findChild(root, PomEdits.BUILD);
- if (build == null) {
+ if(build == null) {
return;
}
- Element plugins = findChild(build, PomEdits.PLUGINS);
- if (plugins != null) {
- for (Element el : findChilds(plugins, PomEdits.PLUGIN)) {
+ Element plugins = findChild(build, PomEdits.PLUGINS);
+ if(plugins != null) {
+ for(Element el : findChilds(plugins, PomEdits.PLUGIN)) {
Element version = findChild(el, PomEdits.VERSION);
- if (version != null) {
+ if(version != null) {
candidates.add(el);
}
}
@@ -400,24 +406,25 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
//we should also consider <plugins> section in the profiles, but profile are optional and so is their
// pluginManagement section.. that makes handling our markers more complex.
// see MavenProject.getInjectedProfileIds() for a list of currently active profiles in effective pom
- String currentProjectKey = mavenproject.getGroupId() + ":" + mavenproject.getArtifactId() + ":" + mavenproject.getVersion(); //$NON-NLS-1$ //$NON-NLS-2$
+ String currentProjectKey = mavenproject.getGroupId()
+ + ":" + mavenproject.getArtifactId() + ":" + mavenproject.getVersion(); //$NON-NLS-1$ //$NON-NLS-2$
List<String> activeprofiles = mavenproject.getInjectedProfileIds().get(currentProjectKey);
//remember what profile we found the dependency in.
Map<Element, String> candidateProfile = new HashMap<Element, String>();
Element profiles = findChild(root, PomEdits.PROFILES);
- if (profiles != null) {
- for (Element profile : findChilds(profiles, PomEdits.PROFILE)) {
- String idString = getTextValue(findChild(profile, PomEdits.ID));
- if (idString != null && activeprofiles.contains(idString)) {
+ if(profiles != null) {
+ for(Element profile : findChilds(profiles, PomEdits.PROFILE)) {
+ String idString = getTextValue(findChild(profile, PomEdits.ID));
+ if(idString != null && activeprofiles.contains(idString)) {
build = findChild(profile, PomEdits.BUILD);
- if (build == null) {
+ if(build == null) {
continue;
}
plugins = findChild(build, PomEdits.PLUGINS);
- if (plugins != null) {
- for (Element el : findChilds(plugins, PomEdits.PLUGIN)) {
+ if(plugins != null) {
+ for(Element el : findChilds(plugins, PomEdits.PLUGIN)) {
Element version = findChild(el, PomEdits.VERSION);
- if (version != null) {
+ if(version != null) {
candidates.add(el);
candidateProfile.put(el, idString);
}
@@ -429,23 +436,23 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
//collect the managed plugin ids
Map<String, String> managed = new HashMap<String, String>();
PluginManagement pm = mavenproject.getPluginManagement();
- if (pm != null) {
+ if(pm != null) {
List<Plugin> plgs = pm.getPlugins();
- if (plgs != null) {
- for (Plugin plg : plgs) {
+ if(plgs != null) {
+ for(Plugin plg : plgs) {
InputLocation loc = plg.getLocation("version");
//#350203 skip plugins defined in the superpom
- if (loc != null) {
+ if(loc != null) {
managed.put(plg.getKey(), plg.getVersion());
}
}
}
}
-
+
//now we have all the candidates, match them against the effective managed set
for(Element dep : candidates) {
String grpString = getTextValue(findChild(dep, PomEdits.GROUP_ID)); //$NON-NLS-1$
- if (grpString == null) {
+ if(grpString == null) {
grpString = "org.apache.maven.plugins"; //$NON-NLS-1$
}
String artString = getTextValue(findChild(dep, PomEdits.ARTIFACT_ID)); //$NON-NLS-1$
@@ -460,7 +467,7 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
if(lookForIgnoreMarker(document, version, off, IMavenConstants.MARKER_IGNORE_MANAGED)) {
continue;
}
-
+
IMarker mark = mavenMarkerManager.addMarker(pomFile, type, NLS.bind(
org.eclipse.m2e.core.internal.Messages.MavenMarkerManager_managed_title, managedVersion, artString),
document.getLineOfOffset(off.getStartOffset()) + 1, IMarker.SEVERITY_WARNING);
@@ -482,12 +489,11 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
}
}
- private static void checkParentMatchingGroupIdVersion(IMavenMarkerManager mavenMarkerManager, Element root, IResource pomFile, String type,
- IStructuredDocument document) throws CoreException {
+ private static void checkParentMatchingGroupIdVersion(IMavenMarkerManager mavenMarkerManager, Element root,
+ IResource pomFile, String type, IStructuredDocument document) throws CoreException {
Element parent = findChild(root, PomEdits.PARENT);
Element groupId = findChild(root, PomEdits.GROUP_ID);
- if(parent != null && groupId != null
- && !skipParentMatchingGroupIdWarning()) {
+ if(parent != null && groupId != null && !skipParentMatchingGroupIdWarning()) {
//now compare the values of parent and project groupid..
String parentString = getTextValue(findChild(parent, PomEdits.GROUP_ID));
String childString = getTextValue(groupId);
@@ -506,8 +512,7 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
}
}
Element version = findChild(root, PomEdits.VERSION); //$NON-NLS-1$
- if(parent != null && version != null
- && !skipParentMatchingVersionWarning()) {
+ if(parent != null && version != null && !skipParentMatchingVersionWarning()) {
//now compare the values of parent and project version..
String parentString = getTextValue(findChild(parent, PomEdits.VERSION)); //$NON-NLS-1$
String childString = getTextValue(version);
@@ -528,21 +533,22 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
}
private static boolean skipParentMatchingGroupIdWarning() {
- return M2EUIPluginActivator.getDefault().getPreferenceStore().getBoolean(
- MavenPreferenceConstants.P_DISABLE_GROUPID_DUP_OF_PARENT_WARNING);
+ return M2EUIPluginActivator.getDefault().getPreferenceStore()
+ .getBoolean(MavenPreferenceConstants.P_DISABLE_GROUPID_DUP_OF_PARENT_WARNING);
}
private static boolean skipParentMatchingVersionWarning() {
- return M2EUIPluginActivator.getDefault().getPreferenceStore().getBoolean(
- MavenPreferenceConstants.P_DISABLE_VERSION_DUP_OF_PARENT_WARNING);
+ return M2EUIPluginActivator.getDefault().getPreferenceStore()
+ .getBoolean(MavenPreferenceConstants.P_DISABLE_VERSION_DUP_OF_PARENT_WARNING);
}
/**
- * @param mavenMarkerManager
+ * @param mavenMarkerManager
* @param pomFile
* @param mavenProject can be null
*/
- static void checkVarious(IMavenMarkerManager mavenMarkerManager, IResource pomFile, MavenProject mavenProject, String type) {
+ static void checkVarious(IMavenMarkerManager mavenMarkerManager, IResource pomFile, MavenProject mavenProject,
+ String type) {
IDOMModel domModel = null;
try {
if(!(pomFile instanceof IFile)) {
@@ -551,11 +557,11 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
domModel = (IDOMModel) StructuredModelManager.getModelManager().getModelForRead((IFile) pomFile);
IStructuredDocument document = domModel.getStructuredDocument();
Element root = domModel.getDocument().getDocumentElement();
-
+
if(root.getNodeName().equals("project")) { //$NON-NLS-1$
//now check parent version and groupid against the current project's ones..
checkParentMatchingGroupIdVersion(mavenMarkerManager, root, pomFile, type, document);
- if (mavenProject != null) {
+ if(mavenProject != null) {
checkManagedDependencies(mavenMarkerManager, root, pomFile, mavenProject, type, document);
checkManagedPlugins(mavenMarkerManager, root, pomFile, mavenProject, type, document);
}
@@ -568,24 +574,25 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
}
}
}
-
- private static boolean lookForIgnoreMarker(IStructuredDocument document, Element version, IndexedRegion off, String ignoreString) {
+
+ private static boolean lookForIgnoreMarker(IStructuredDocument document, Element version, IndexedRegion off,
+ String ignoreString) {
Node reg = version;
int line = document.getLineOfOffset(off.getStartOffset());
try {
int lineend = document.getLineOffset(line) + document.getLineLength(line) - 1;
int start = off.getStartOffset();
- while (reg != null && start < lineend) {
+ while(reg != null && start < lineend) {
reg = reg.getNextSibling();
- if (reg != null && reg instanceof Comment) {
- Comment comm = (Comment)reg;
- String data =comm.getData();
- if (data != null && data.contains(ignoreString)) {
+ if(reg != null && reg instanceof Comment) {
+ Comment comm = (Comment) reg;
+ String data = comm.getData();
+ if(data != null && data.contains(ignoreString)) {
return true;
}
}
- if (reg != null) {
- start = ((IndexedRegion)reg).getStartOffset();
+ if(reg != null) {
+ start = ((IndexedRegion) reg).getStartOffset();
}
}
} catch(BadLocationException ex) {
@@ -594,5 +601,4 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
return false;
}
-
}
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/NodeOperation.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/NodeOperation.java
index 82c6e266..25e0cded 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/NodeOperation.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/NodeOperation.java
@@ -15,10 +15,12 @@ import org.w3c.dom.Node;
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
+
/**
- *A non-editing operation on top of the DOM document, to be used with XmlUtils.performOnRootElement and XmlUtils.performOnCurrentElement
+ * A non-editing operation on top of the DOM document, to be used with XmlUtils.performOnRootElement and
+ * XmlUtils.performOnCurrentElement
+ *
* @author mkleint
- *
* @param <T>
*/
public interface NodeOperation<T extends Node> {
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModel.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModel.java
index 72031cdf..d7489606 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModel.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModel.java
@@ -18,8 +18,10 @@ import org.eclipse.wst.sse.ui.internal.StructuredResourceMarkerAnnotationModel;
import org.eclipse.m2e.core.internal.IMavenConstants;
+
/**
* created this file to get the proper lightbulb icon for the warnings with hint
+ *
* @author mkleint
*/
public class POMMarkerAnnotationModel extends StructuredResourceMarkerAnnotationModel {
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModelFactory.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModelFactory.java
index f324d455..9aaeb1b8 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModelFactory.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/POMMarkerAnnotationModelFactory.java
@@ -18,9 +18,10 @@ import org.eclipse.core.runtime.IPath;
import org.eclipse.jface.text.source.IAnnotationModel;
import org.eclipse.ui.texteditor.ResourceMarkerAnnotationModelFactory;
+
/**
- * created this file to get the proper lightbulb icon for the warnings with hint
- * is almost exact copy of the wst one..
+ * created this file to get the proper lightbulb icon for the warnings with hint is almost exact copy of the wst one..
+ *
* @author mkleint
*/
public class POMMarkerAnnotationModelFactory extends ResourceMarkerAnnotationModelFactory {
@@ -34,10 +35,9 @@ public class POMMarkerAnnotationModelFactory extends ResourceMarkerAnnotationMod
public IAnnotationModel createAnnotationModel(IPath location) {
IAnnotationModel model = null;
IFile file = FileBuffers.getWorkspaceFileAtLocation(location);
- if (file != null) {
+ if(file != null) {
model = new POMMarkerAnnotationModel(file);
- }
- else {
+ } else {
model = new POMMarkerAnnotationModel(ResourcesPlugin.getWorkspace().getRoot(), location.toString());
}
return model;
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/XmlUtils.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/XmlUtils.java
index ba210189..42e4ba9d 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/XmlUtils.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/XmlUtils.java
@@ -16,11 +16,9 @@ import java.io.IOException;
import java.util.List;
import java.util.Stack;
-import org.apache.maven.model.InputLocation;
-import org.apache.maven.model.InputSource;
-import org.apache.maven.project.MavenProject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -43,12 +41,17 @@ import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
+import org.apache.maven.model.InputLocation;
+import org.apache.maven.model.InputSource;
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.embedder.IMaven;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
import org.eclipse.m2e.core.ui.internal.editing.PomEdits;
+
+
/**
- *
* @author mkleint
*/
public class XmlUtils {
@@ -65,9 +68,11 @@ public class XmlUtils {
public static String getTextValue(Node element) {
return PomEdits.getTextValue(element);
}
+
/**
- * finds exactly one (first) occurence of child element with the given name (eg. dependency)
- * that fulfills conditions expressed by the Matchers (eg. groupId/artifactId match)
+ * finds exactly one (first) occurence of child element with the given name (eg. dependency) that fulfills conditions
+ * expressed by the Matchers (eg. groupId/artifactId match)
+ *
* @param parent
* @param name
* @param matchers
@@ -78,17 +83,18 @@ public class XmlUtils {
}
/**
- * what is this method supposed to do? for the sourceViewer find the associated file on disk and for
- * that one find the IProject it belongs to. The required condition for the IProject instance is that
- * project relative path of the file shall only be pom.xml (thus no nested, unopened maven pom).
- * So that when MavenPlugin.getMavenProjectManager().getProject(prj); is called later on
- * the instance, it actually returns the maven model facade for the pom.xml backing the sourceViewer.
+ * what is this method supposed to do? for the sourceViewer find the associated file on disk and for that one find the
+ * IProject it belongs to. The required condition for the IProject instance is that project relative path of the file
+ * shall only be pom.xml (thus no nested, unopened maven pom). So that when
+ * MavenPlugin.getMavenProjectManager().getProject(prj); is called later on the instance, it actually returns the
+ * maven model facade for the pom.xml backing the sourceViewer.
+ *
* @param sourceViewer
* @return
*/
public static IProject extractProject(ITextViewer sourceViewer) {
ITextFileBuffer buf = FileBuffers.getTextFileBufferManager().getTextFileBuffer(sourceViewer.getDocument());
- if (buf == null) {
+ if(buf == null) {
//eg. for viewers of pom files in local repository
return null;
}
@@ -100,22 +106,22 @@ public class XmlUtils {
//we do so by shortening the path and remembering all the resources identified.
// at the end we pick the last one from the stack. is there a catch to it?
IFile ifile = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(path);
- if (ifile != null) {
+ if(ifile != null) {
stack.push(ifile);
}
while(path.segmentCount() > 1) {
IResource ires = ResourcesPlugin.getWorkspace().getRoot().findMember(path);
if(ires != null && ires instanceof IFile) {
- stack.push((IFile)ires);
+ stack.push((IFile) ires);
}
path = path.removeFirstSegments(1);
}
IFile res = stack.empty() ? null : stack.pop();
- if (res != null) {
+ if(res != null) {
IProject prj = res.getProject();
- //the project returned is in a way unrelated to nested child poms that don't have an opened project,
- //in that case we pass along a wrong parent/aggregator
- if (res.getProjectRelativePath().segmentCount() != 1) {
+ //the project returned is in a way unrelated to nested child poms that don't have an opened project,
+ //in that case we pass along a wrong parent/aggregator
+ if(res.getProjectRelativePath().segmentCount() != 1) {
//if the project were the pom's project, the relative path would be just "pom.xml", if it's not just throw it out of the window..
prj = null;
}
@@ -123,48 +129,51 @@ public class XmlUtils {
}
return null;
}
-
+
public static MavenProject extractMavenProject(ITextViewer sourceViewer) {
//look in the sourceViewer's cache only
- if (sourceViewer instanceof IAdaptable) {
- return (MavenProject)((IAdaptable)sourceViewer).getAdapter(MavenProject.class);
+ if(sourceViewer instanceof IAdaptable) {
+ return (MavenProject) ((IAdaptable) sourceViewer).getAdapter(MavenProject.class);
}
return null;
}
/**
- * converts an InputLocation to a file path on the local disk, null if not available.
- * still the input source's model value can be used further..
+ * converts an InputLocation to a file path on the local disk, null if not available. still the input source's model
+ * value can be used further..
+ *
* @param location
* @return
*/
- public static File fileForInputLocation(InputLocation location, MavenProject origin) {
+ public static File fileForInputLocation(InputLocation location, MavenProject origin) {
InputSource source = location.getSource();
- if (source != null) {
+ if(source != null) {
//MNGECLIPSE-2539 apparently if maven can't resolve the model from local storage,
//the location will be empty. not only applicable to local repo models but
//apparently also to models in workspace not reachable by relativePath
String loc = source.getLocation();
File file = null;
- if (loc != null) {
+ if(loc != null) {
file = new File(loc);
} else {
//try to find pom by coordinates..
String modelId = source.getModelId();
- if (origin.getModel().getId().equals(modelId) && origin.getFile() != null) {
+ if(origin.getModel().getId().equals(modelId) && origin.getFile() != null) {
return origin.getFile();
}
String[] splitStrings = modelId.split(":");
assert splitStrings.length == 3;
- IMavenProjectFacade facade = MavenPlugin.getMavenProjectRegistry().getMavenProject(splitStrings[0], splitStrings[1], splitStrings[2]);
- if (facade != null) {
+ IMavenProjectFacade facade = MavenPlugin.getMavenProjectRegistry().getMavenProject(splitStrings[0],
+ splitStrings[1], splitStrings[2]);
+ if(facade != null) {
file = facade.getPomFile();
} else {
//if not in the workspace, try looking into the local repository.
IMaven maven = MavenPlugin.getMaven();
try {
- String path = maven.getArtifactPath(maven.getLocalRepository(), splitStrings[0], splitStrings[1], splitStrings[2], "pom", null);
- if (path != null) {
+ String path = maven.getArtifactPath(maven.getLocalRepository(), splitStrings[0], splitStrings[1],
+ splitStrings[2], "pom", null);
+ if(path != null) {
file = new File(maven.getLocalRepositoryPath(), path);
}
} catch(CoreException e) {
@@ -178,12 +187,9 @@ public class XmlUtils {
}
/**
- * originally copied from org.eclipse.wst.xml.ui.internal.hyperlink.XMLHyperlinkDetector
-
- * this method grabs the IDOMModel for the IDocument, performs the passed operation on the node at the offset
- * and then releases the IDOMModel
- *
- * operation's Node value is also an instance of IndexedRegion
+ * originally copied from org.eclipse.wst.xml.ui.internal.hyperlink.XMLHyperlinkDetector this method grabs the
+ * IDOMModel for the IDocument, performs the passed operation on the node at the offset and then releases the
+ * IDOMModel operation's Node value is also an instance of IndexedRegion
*
* @param offset
*/
@@ -195,28 +201,26 @@ public class XmlUtils {
IStructuredModel sModel = null;
try {
sModel = StructuredModelManager.getModelManager().getExistingModelForRead(document);
- if (sModel != null) {
+ if(sModel != null) {
IndexedRegion inode = sModel.getIndexedRegion(offset);
- if (inode == null) {
+ if(inode == null) {
inode = sModel.getIndexedRegion(offset - 1);
}
- if (inode instanceof Node) {
+ if(inode instanceof Node) {
operation.process((Node) inode, sModel.getStructuredDocument());
- }
+ }
}
- }
- finally {
- if (sModel != null) {
+ } finally {
+ if(sModel != null) {
sModel.releaseFromRead();
}
}
}
/**
- * this method grabs the IDOMModel for the IDocument, performs the passed operation on the root element of the document
- * and then releases the IDOMModel
+ * this method grabs the IDOMModel for the IDocument, performs the passed operation on the root element of the
+ * document and then releases the IDOMModel root Element value is also an instance of IndexedRegion
*
- * root Element value is also an instance of IndexedRegion
* @param doc
* @param operation
*/
@@ -226,37 +230,38 @@ public class XmlUtils {
IDOMModel domModel = null;
try {
domModel = (IDOMModel) StructuredModelManager.getModelManager().getExistingModelForRead(doc);
- if (domModel == null) {
+ if(domModel == null) {
throw new IllegalArgumentException("Document is not structured: " + doc);
}
IStructuredDocument document = domModel.getStructuredDocument();
Element root = domModel.getDocument().getDocumentElement();
operation.process(root, document);
} finally {
- if (domModel != null) {
+ if(domModel != null) {
domModel.releaseFromRead();
}
}
}
-
- public static void performOnRootElement(IFile resource, NodeOperation<Element> operation) throws IOException, CoreException {
+
+ public static void performOnRootElement(IFile resource, NodeOperation<Element> operation) throws IOException,
+ CoreException {
assert resource != null;
assert operation != null;
IDOMModel domModel = null;
try {
domModel = (IDOMModel) StructuredModelManager.getModelManager().getModelForRead(resource);
- if (domModel == null) {
+ if(domModel == null) {
throw new IllegalArgumentException("Document is not structured: " + resource);
}
IStructuredDocument document = domModel.getStructuredDocument();
Element root = domModel.getDocument().getDocumentElement();
operation.process(root, document);
} finally {
- if (domModel != null) {
+ if(domModel != null) {
domModel.releaseFromRead();
}
}
- }
+ }
/*
* calculates the path of the node up in the hierarchy, example of result is project/build/plugins/plugin
@@ -266,19 +271,17 @@ public class XmlUtils {
public static String pathUp(Node node, int level) {
StringBuffer buf = new StringBuffer();
int current = level;
- while (node != null && current > 0) {
- if (node instanceof Element) {
- if (buf.length() > 0) {
+ while(node != null && current > 0) {
+ if(node instanceof Element) {
+ if(buf.length() > 0) {
buf.insert(0, "/");
}
buf.insert(0, node.getNodeName());
- current = current -1;
+ current = current - 1;
}
node = node.getParentNode();
}
return buf.toString();
}
-
-
}
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/dialogs/SelectSPDXLicenseDialog.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/dialogs/SelectSPDXLicenseDialog.java
index 18bb0862..13e10cc8 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/dialogs/SelectSPDXLicenseDialog.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/dialogs/SelectSPDXLicenseDialog.java
@@ -13,8 +13,6 @@ package org.eclipse.m2e.editor.xml.internal.dialogs;
import java.util.Collection;
-import org.apache.maven.project.MavenProject;
-
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.viewers.ILabelProvider;
@@ -44,6 +42,8 @@ import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.Text;
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
import org.eclipse.m2e.core.ui.internal.components.PomHierarchyComposite;
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingDialog.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingDialog.java
index 59a55028..af53849b 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingDialog.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingDialog.java
@@ -14,10 +14,6 @@ package org.eclipse.m2e.editor.xml.internal.lifecycle;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
-import org.apache.maven.model.InputLocation;
-import org.apache.maven.model.Plugin;
-import org.apache.maven.project.MavenProject;
-
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jface.dialogs.Dialog;
@@ -37,6 +33,10 @@ import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.PlatformUI;
+import org.apache.maven.model.InputLocation;
+import org.apache.maven.model.Plugin;
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.internal.M2EUtils;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingProposal.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingProposal.java
index 710f9308..27f589a9 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingProposal.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingProposal.java
@@ -9,7 +9,6 @@
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
-
package org.eclipse.m2e.editor.xml.internal.lifecycle;
import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.performOnDOMDocument;
@@ -51,17 +50,17 @@ public class LifecycleMappingProposal extends AbstractLifecycleMappingProposal i
private static final Logger log = LoggerFactory.getLogger(LifecycleMappingProposal.class);
private IQuickAssistInvocationContext context;
-
+
public LifecycleMappingProposal(IQuickAssistInvocationContext context, MarkerAnnotation mark,
PluginExecutionAction action) {
super(mark.getMarker(), action);
this.context = context;
}
-
+
public LifecycleMappingProposal(IMarker marker, PluginExecutionAction action) {
super(marker, action);
}
-
+
public void apply(final IDocument doc) {
try {
if(PluginExecutionAction.ignore.equals(action)) {
@@ -93,7 +92,7 @@ public class LifecycleMappingProposal extends AbstractLifecycleMappingProposal i
});
if(pomFile[0] != null) {
List<LifecycleMappingOperation> lst = new ArrayList<LifecycleMappingOperation>();
- for (IMarker m : marks) {
+ for(IMarker m : marks) {
lst.add(createOperation(m));
}
performOnDOMDocument(new OperationTuple(pomFile[0], new CompoundOperation(lst.toArray(new Operation[0]))));
@@ -104,11 +103,10 @@ public class LifecycleMappingProposal extends AbstractLifecycleMappingProposal i
String pluginGroupId = mark.getAttribute(IMavenConstants.MARKER_ATTR_GROUP_ID, ""); //$NON-NLS-1$
String pluginArtifactId = mark.getAttribute(IMavenConstants.MARKER_ATTR_ARTIFACT_ID, ""); //$NON-NLS-1$
String pluginVersion = mark.getAttribute(IMavenConstants.MARKER_ATTR_VERSION, ""); //$NON-NLS-1$
- String[] goals = new String[] { mark.getAttribute(IMavenConstants.MARKER_ATTR_GOAL, "")}; //$NON-NLS-1$
+ String[] goals = new String[] {mark.getAttribute(IMavenConstants.MARKER_ATTR_GOAL, "")}; //$NON-NLS-1$
return new LifecycleMappingOperation(pluginGroupId, pluginArtifactId, pluginVersion, action, goals);
}
-
public String getAdditionalProposalInfo() {
return null;
}
@@ -128,7 +126,7 @@ public class LifecycleMappingProposal extends AbstractLifecycleMappingProposal i
}
public Object getAdditionalProposalInfo(IProgressMonitor monitor) {
- if (context == null) {
+ if(context == null) {
//no context in markerresolution, just to be sure..
return null;
}
@@ -138,12 +136,14 @@ public class LifecycleMappingProposal extends AbstractLifecycleMappingProposal i
String goal = marker.getAttribute(IMavenConstants.MARKER_ATTR_GOAL, ""); //$NON-NLS-1$
String execution = marker.getAttribute(IMavenConstants.MARKER_ATTR_EXECUTION_ID, "-"); //$NON-NLS-1$
String phase = marker.getAttribute(IMavenConstants.MARKER_ATTR_LIFECYCLE_PHASE, "-"); //$NON-NLS-1$
- String info = NLS.bind(Messages.LifecycleMappingProposal_all_desc,
- new Object[] {goal, execution, phase, pluginGroupId + ":" + pluginArtifactId + ":" + pluginVersion, //$NON-NLS-1$ //$NON-NLS-2$
- (PluginExecutionAction.ignore.equals(action)
- ? Messages.LifecycleMappingProposal_ignore_desc
+ String info = NLS.bind(Messages.LifecycleMappingProposal_all_desc, new Object[] {
+ goal,
+ execution,
+ phase,
+ pluginGroupId + ":" + pluginArtifactId + ":" + pluginVersion, //$NON-NLS-1$ //$NON-NLS-2$
+ (PluginExecutionAction.ignore.equals(action) ? Messages.LifecycleMappingProposal_ignore_desc
: Messages.LifecycleMappingProposal_execute_desc)});
-
+
return info;
}
@@ -154,10 +154,11 @@ public class LifecycleMappingProposal extends AbstractLifecycleMappingProposal i
performIgnore(markers);
} else {
List<LifecycleMappingOperation> lst = new ArrayList<LifecycleMappingOperation>();
- for (IMarker m : markers) {
+ for(IMarker m : markers) {
lst.add(createOperation(m));
}
- performOnDOMDocument(new OperationTuple((IFile) marker.getResource(), new CompoundOperation(lst.toArray(new Operation[0]))));
+ performOnDOMDocument(new OperationTuple((IFile) marker.getResource(), new CompoundOperation(
+ lst.toArray(new Operation[0]))));
}
} catch(IOException e) {
log.error("Error generating code in pom.xml", e); //$NON-NLS-1$
@@ -165,6 +166,5 @@ public class LifecycleMappingProposal extends AbstractLifecycleMappingProposal i
log.error(e.getMessage(), e);
}
}
-
-
-} \ No newline at end of file
+
+}
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/WorkspaceLifecycleMappingProposal.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/WorkspaceLifecycleMappingProposal.java
index 6b8a1d67..70550bbd 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/WorkspaceLifecycleMappingProposal.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/WorkspaceLifecycleMappingProposal.java
@@ -14,8 +14,6 @@ package org.eclipse.m2e.editor.xml.internal.lifecycle;
import java.util.HashSet;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -25,6 +23,8 @@ import org.eclipse.jface.text.contentassist.IContextInformation;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.graphics.Point;
+import org.codehaus.plexus.util.xml.Xpp3Dom;
+
import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory;
import org.eclipse.m2e.core.internal.lifecyclemapping.model.LifecycleMappingMetadataSource;
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/preferences/PomTemplatesPreferencePage.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/preferences/PomTemplatesPreferencePage.java
index 67022b62..1edaeb16 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/preferences/PomTemplatesPreferencePage.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/preferences/PomTemplatesPreferencePage.java
@@ -16,7 +16,6 @@ import org.eclipse.ui.texteditor.templates.TemplatePreferencePage;
import org.eclipse.m2e.editor.xml.MvnIndexPlugin;
-
/**
* @author Eugene Kuleshov
*/
diff --git a/org.eclipse.m2e.editor/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.editor/.settings/org.eclipse.jdt.core.prefs
index 62825a63..80d9c54b 100644
--- a/org.eclipse.m2e.editor/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.m2e.editor/.settings/org.eclipse.jdt.core.prefs
@@ -1,13 +1,22 @@
-#Sat Jul 30 19:02:00 MSD 2011
eclipse.preferences.version=1
org.eclipse.jdt.core.builder.cleanOutputFolder=clean
org.eclipse.jdt.core.builder.duplicateResourceTask=warning
org.eclipse.jdt.core.builder.invalidClasspath=abort
org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder=ignore
-org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.uad,*.ucd,*.uld,*.upd,*.udd,*.uod,*.usd,*.utd,*.uud,*.odd,*.ead,*.ecd,*.eld,*.epd,*.edd,*.eod,*.esd,*.etd,*.eud,*.urd*.uml,*.ecore,,*.launch,*.ucls
+org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch
org.eclipse.jdt.core.circularClasspath=error
org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
+org.eclipse.jdt.core.codeComplete.argumentPrefixes=
+org.eclipse.jdt.core.codeComplete.argumentSuffixes=
+org.eclipse.jdt.core.codeComplete.fieldPrefixes=
+org.eclipse.jdt.core.codeComplete.fieldSuffixes=
+org.eclipse.jdt.core.codeComplete.localPrefixes=
+org.eclipse.jdt.core.codeComplete.localSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
@@ -15,13 +24,16 @@ org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.doc.comment.support=enabled
org.eclipse.jdt.core.compiler.maxProblemPerUnit=100
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
+org.eclipse.jdt.core.compiler.problem.deadCode=warning
org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
@@ -30,58 +42,76 @@ org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
+org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
org.eclipse.jdt.core.compiler.problem.nullReference=warning
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=error
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=enabled
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.5
org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled
-org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,NORMAL
+org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH
org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
@@ -92,15 +122,18 @@ org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=2
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
org.eclipse.jdt.core.formatter.blank_lines_before_field=1
@@ -136,10 +169,16 @@ org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert
org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=2
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
@@ -157,6 +196,7 @@ org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert
org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
@@ -223,12 +263,14 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invoca
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
@@ -252,6 +294,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
@@ -307,6 +350,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
@@ -316,6 +360,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=inser
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
@@ -325,6 +370,8 @@ org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
@@ -337,7 +384,10 @@ org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
org.eclipse.jdt.core.formatter.tabulation.char=space
org.eclipse.jdt.core.formatter.tabulation.size=2
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
org.eclipse.jdt.core.incompatibleJDKLevel=ignore
org.eclipse.jdt.core.incompleteClasspath=error
diff --git a/org.eclipse.m2e.editor/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.m2e.editor/.settings/org.eclipse.jdt.ui.prefs
index ee9d1387..595d9975 100644
--- a/org.eclipse.m2e.editor/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.m2e.editor/.settings/org.eclipse.jdt.ui.prefs
@@ -1,5 +1,66 @@
eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_m2 plugin
-formatter_settings_version=11
-org.eclipse.jdt.ui.javadoc=false
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************\n * Copyright (c) 2010 Sonatype, Inc.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http\://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors\:\n * Sonatype, Inc. - initial API and implementation\n *******************************************************************************/</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nMavenPlugin.log(${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+formatter_settings_version=12
+org.eclipse.jdt.ui.exception.name=ex
+org.eclipse.jdt.ui.gettersetter.use.is=true
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=java;javax;org;org.w3c;org.xml;org.apache;com;junit;org.eclipse;org.codehaus;org.apache.lucene;org.apache.maven;org.sonatype;org.eclipse.m2e;
+org.eclipse.jdt.ui.javadoc=true
+org.eclipse.jdt.ui.keywordthis=true
+org.eclipse.jdt.ui.ondemandthreshold=99
+org.eclipse.jdt.ui.overrideannotation=false
+org.eclipse.jdt.ui.staticondemandthreshold=99
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/MavenEditorImages.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/MavenEditorImages.java
index 598c01fc..fad30c39 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/MavenEditorImages.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/MavenEditorImages.java
@@ -11,12 +11,14 @@
package org.eclipse.m2e.editor;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
/**
* @author Eugene Kuleshov
@@ -25,39 +27,39 @@ public class MavenEditorImages {
private static final Logger log = LoggerFactory.getLogger(MavenEditorImages.class);
// images
-
+
public static final Image IMG_CLEAR = createImage("clear.gif"); //$NON-NLS-1$
-
+
public static final Image IMG_CLEAR_DISABLED = createImage("clear_disabled.gif"); //$NON-NLS-1$
-
- public static final Image IMG_PROJECT = createImage("project_obj.gif"); //$NON-NLS-1$
+
+ public static final Image IMG_PROJECT = createImage("project_obj.gif"); //$NON-NLS-1$
// object images
-
- public static final Image IMG_JAR = createImage("jar_obj.gif"); //$NON-NLS-1$
-
+
+ public static final Image IMG_JAR = createImage("jar_obj.gif"); //$NON-NLS-1$
+
public static final Image IMG_INHERITED = createImage("inherited_obj.gif"); //$NON-NLS-1$
- public static final Image IMG_REPOSITORY = createImage("repository_obj.gif"); //$NON-NLS-1$
-
- public static final Image IMG_PLUGIN = createImage("plugin_obj.gif"); //$NON-NLS-1$
+ public static final Image IMG_REPOSITORY = createImage("repository_obj.gif"); //$NON-NLS-1$
+
+ public static final Image IMG_PLUGIN = createImage("plugin_obj.gif"); //$NON-NLS-1$
public static final Image IMG_EXECUTION = createImage("execution_obj.gif"); //$NON-NLS-1$
-
- public static final Image IMG_GOAL = createImage("goal_obj.gif"); //$NON-NLS-1$
- public static final Image IMG_FILTER = createImage("filter_obj.gif"); //$NON-NLS-1$
+ public static final Image IMG_GOAL = createImage("goal_obj.gif"); //$NON-NLS-1$
+
+ public static final Image IMG_FILTER = createImage("filter_obj.gif"); //$NON-NLS-1$
+
+ public static final Image IMG_RESOURCE = createImage("resource_obj.gif"); //$NON-NLS-1$
- public static final Image IMG_RESOURCE = createImage("resource_obj.gif"); //$NON-NLS-1$
+ public static final Image IMG_INCLUDE = createImage("include_obj.gif"); //$NON-NLS-1$
+
+ public static final Image IMG_EXCLUDE = createImage("exclude_obj.gif"); //$NON-NLS-1$
- public static final Image IMG_INCLUDE = createImage("include_obj.gif"); //$NON-NLS-1$
-
- public static final Image IMG_EXCLUDE = createImage("exclude_obj.gif"); //$NON-NLS-1$
-
public static final Image IMG_PERSON = createImage("person_obj.gif"); //$NON-NLS-1$
-
+
public static final Image IMG_ROLE = createImage("role_obj.gif"); //$NON-NLS-1$
-
+
public static final Image IMG_PROPERTY = createImage("property_obj.gif"); //$NON-NLS-1$
public static final Image IMG_REPORT = createImage("report_obj.gif"); //$NON-NLS-1$
@@ -65,35 +67,35 @@ public class MavenEditorImages {
public static final Image IMG_PROFILE = createImage("profile_obj.gif"); //$NON-NLS-1$
public static final Image IMG_SCOPE = createImage("scope_obj.gif"); //$NON-NLS-1$
-
+
// image descriptors
-
- public static final ImageDescriptor REFRESH = create("refresh.gif"); //$NON-NLS-1$
-
+
+ public static final ImageDescriptor REFRESH = create("refresh.gif"); //$NON-NLS-1$
+
public static final ImageDescriptor COLLAPSE_ALL = create("collapseall.gif"); //$NON-NLS-1$
public static final ImageDescriptor EXPAND_ALL = create("expandall.gif"); //$NON-NLS-1$
public static final ImageDescriptor SHOW_GROUP = create("show_group.gif"); //$NON-NLS-1$
-
+
public static final ImageDescriptor SHOW_INHERITED_DEPENDENCIES = create("show_inherited_dependencies.gif"); //$NON-NLS-1$
public static final ImageDescriptor ADD_MODULE = create("new_project.gif"); //$NON-NLS-1$
public static final ImageDescriptor ADD_ARTIFACT = create("new_jar.gif"); //$NON-NLS-1$
-
+
public static final ImageDescriptor SELECT_ARTIFACT = create("select_jar.gif"); //$NON-NLS-1$
-
+
public static final ImageDescriptor ADD_PLUGIN = create("new_plugin.gif"); //$NON-NLS-1$
-
+
public static final ImageDescriptor SELECT_PLUGIN = create("select_plugin.gif"); //$NON-NLS-1$
-
+
public static final ImageDescriptor SORT = create("sort.gif"); //$NON-NLS-1$
public static final ImageDescriptor FILTER = create("filter.gif"); //$NON-NLS-1$
public static final ImageDescriptor EFFECTIVE_POM = create("effective_pom.gif"); //$NON-NLS-1$
-
+
public static final ImageDescriptor PARENT_POM = create("parent_pom.gif"); //$NON-NLS-1$
public static final ImageDescriptor WEB_PAGE = create("web.gif"); //$NON-NLS-1$
@@ -101,21 +103,20 @@ public class MavenEditorImages {
public static final ImageDescriptor HIERARCHY = create("hierarchy.gif"); //$NON-NLS-1$
public static final ImageDescriptor SCOPE = create("scope.gif"); //$NON-NLS-1$
-
+
public static final ImageDescriptor ADVANCED_TABS = create("advanced_tabs.gif"); //$NON-NLS-1$
public static final ImageDescriptor ELEMENT_OBJECT = create("element_obj.gif"); //$NON-NLS-1$
-
private static ImageDescriptor create(String key) {
try {
ImageDescriptor imageDescriptor = createDescriptor(key);
ImageRegistry imageRegistry = getImageRegistry();
- if(imageRegistry!=null) {
+ if(imageRegistry != null) {
imageRegistry.put(key, imageDescriptor);
}
return imageDescriptor;
- } catch (Exception ex) {
+ } catch(Exception ex) {
log.error(key, ex);
return null;
}
@@ -124,16 +125,16 @@ public class MavenEditorImages {
private static Image createImage(String key) {
create(key);
ImageRegistry imageRegistry = getImageRegistry();
- return imageRegistry==null ? null : imageRegistry.get(key);
+ return imageRegistry == null ? null : imageRegistry.get(key);
}
private static ImageRegistry getImageRegistry() {
MavenEditorPlugin plugin = MavenEditorPlugin.getDefault();
- return plugin==null ? null : plugin.getImageRegistry();
+ return plugin == null ? null : plugin.getImageRegistry();
}
private static ImageDescriptor createDescriptor(String image) {
return AbstractUIPlugin.imageDescriptorFromPlugin(MavenEditorPlugin.PLUGIN_ID, "icons/" + image); //$NON-NLS-1$
}
-
+
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/MavenEditorPlugin.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/MavenEditorPlugin.java
index 2a1454e8..53612937 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/MavenEditorPlugin.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/MavenEditorPlugin.java
@@ -11,35 +11,37 @@
package org.eclipse.m2e.editor;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+
+
/**
* @author Eugene Kuleshov
*/
public class MavenEditorPlugin extends AbstractUIPlugin {
public static final String PLUGIN_ID = "org.eclipse.m2e.editor"; //$NON-NLS-1$
-
+
private static MavenEditorPlugin instance;
public MavenEditorPlugin() {
}
-
+
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
instance = this;
}
-
+
@Override
public void stop(BundleContext context) throws Exception {
super.stop(context);
instance = null;
}
-
+
public static MavenEditorPlugin getDefault() {
return instance;
}
-
+
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComparator.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComparator.java
index 8727e122..8eb60ce3 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComparator.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComparator.java
@@ -8,27 +8,27 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.editor.composites;
import java.util.Comparator;
public class DependenciesComparator<T> implements Comparator<T> {
-
+
private boolean sortByGroups = true;
-
+
public int compare(T o1, T o2) {
String[] gav1;
String[] gav2;
-
+
gav1 = toGAV((org.apache.maven.model.Dependency) o1);
-
+
gav2 = toGAV((org.apache.maven.model.Dependency) o2);
-
+
return compareGAVs(gav1, gav2);
}
-
-
+
protected String[] toGAV(org.apache.maven.model.Dependency dep) {
String[] gav = new String[3];
gav[0] = dep.getGroupId();
@@ -36,28 +36,28 @@ public class DependenciesComparator<T> implements Comparator<T> {
gav[2] = dep.getVersion();
return gav;
}
-
+
protected int compareGAVs(String[] gav1, String[] gav2) {
-
+
String g1 = gav1[0] == null ? "" : gav1[0]; //$NON-NLS-1$
String g2 = gav2[0] == null ? "" : gav2[0]; //$NON-NLS-1$
-
+
String a1 = gav1[1] == null ? "" : gav1[1]; //$NON-NLS-1$
String a2 = gav2[1] == null ? "" : gav2[1]; //$NON-NLS-1$
-
+
String v1 = gav1[2] == null ? "" : gav1[2]; //$NON-NLS-1$
String v2 = gav2[2] == null ? "" : gav2[2]; //$NON-NLS-1$
return compareDependencies(g1, a1, v1, g2, a2, v2);
}
-
- protected int compareDependencies(String group1, String artifact1, String version1,
- String group2, String artifact2, String version2) {
+
+ protected int compareDependencies(String group1, String artifact1, String version1, String group2, String artifact2,
+ String version2) {
int comp = 0;
- if (sortByGroups && (comp = group1.compareTo(group2)) != 0) {
+ if(sortByGroups && (comp = group1.compareTo(group2)) != 0) {
return comp;
}
- if ((comp = artifact1.compareTo(artifact2)) != 0) {
+ if((comp = artifact1.compareTo(artifact2)) != 0) {
return comp;
}
@@ -66,9 +66,10 @@ public class DependenciesComparator<T> implements Comparator<T> {
/**
* Set this to false to ignore groupIDs while sorting
+ *
* @param sortByGroups
*/
public void setSortByGroups(boolean sortByGroups) {
this.sortByGroups = sortByGroups;
}
-} \ No newline at end of file
+}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java
index d3c23aae..36b4ecde 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java
@@ -11,7 +11,25 @@
package org.eclipse.m2e.editor.composites;
-import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.*;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.ARTIFACT_ID;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.CLASSIFIER;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.DEPENDENCIES;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.DEPENDENCY;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.DEPENDENCY_MANAGEMENT;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.GROUP_ID;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.OPTIONAL;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.SCOPE;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.SYSTEM_PATH;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.TYPE;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.VERSION;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.childEquals;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.findChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.findChilds;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.getChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.getTextValue;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.performOnDOMDocument;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.removeChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.removeIfNoChildElement;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
@@ -20,9 +38,12 @@ import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.model.DependencyManagement;
-import org.apache.maven.project.MavenProject;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -40,6 +61,24 @@ import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerFilter;
import org.eclipse.jface.window.Window;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.SashForm;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.forms.widgets.ExpandableComposite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Section;
+
+import org.apache.maven.model.DependencyManagement;
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.embedder.ArtifactKey;
import org.eclipse.m2e.core.internal.index.IndexedArtifactFile;
@@ -60,24 +99,6 @@ import org.eclipse.m2e.editor.pom.MavenPomEditorPage;
import org.eclipse.m2e.editor.pom.SearchControl;
import org.eclipse.m2e.editor.pom.SearchMatcher;
import org.eclipse.m2e.editor.pom.ValueProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.SashForm;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.forms.widgets.ExpandableComposite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.forms.widgets.Section;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
/**
@@ -99,7 +120,7 @@ public class DependenciesComposite extends Composite {
//This ListComposite takes both m2e and maven Dependencies
DependenciesListComposite<Object> dependenciesEditor;
-
+
private final List<String> temporaryRemovedDependencies = new ArrayList<String>();
Button dependencySelectButton;
@@ -129,8 +150,8 @@ public class DependenciesComposite extends Composite {
DependenciesComparator<Dependency> dependencyManagementComparator;
private List<DependenciesComposite.Dependency> dependencies;
- private List<DependenciesComposite.Dependency> manageddependencies;
-
+
+ private List<DependenciesComposite.Dependency> manageddependencies;
public DependenciesComposite(Composite composite, MavenPomEditorPage editorPage, int flags, MavenPomEditor pomEditor) {
super(composite, flags);
@@ -164,30 +185,29 @@ public class DependenciesComposite extends Composite {
Section dependenciesSection = toolkit.createSection(verticalSash, ExpandableComposite.TITLE_BAR);
dependenciesSection.marginWidth = 3;
dependenciesSection.setText(Messages.DependenciesComposite_sectionDependencies);
-
+
dependenciesComparator = new DependenciesComparator<Object>();
dependenciesContentProvider.setComparator(dependenciesComparator);
dependenciesEditor = new DependenciesListComposite<Object>(dependenciesSection, SWT.NONE, true);
- dependenciesEditor.setCellLabelProvider(new DelegatingStyledCellLabelProvider( dependencyLabelProvider));
+ dependenciesEditor.setCellLabelProvider(new DelegatingStyledCellLabelProvider(dependencyLabelProvider));
dependenciesEditor.setContentProvider(dependenciesContentProvider);
dependenciesEditor.setRemoveButtonListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
final List<Object> dependencyList = dependenciesEditor.getSelection();
try {
- editorPage.performEditOperation( new Operation() {
+ editorPage.performEditOperation(new Operation() {
public void process(Document document) {
Element deps = findChild(document.getDocumentElement(), DEPENDENCIES);
- if (deps == null) {
+ if(deps == null) {
//TODO log
return;
}
- for (Object dependency : dependencyList) {
- if (dependency instanceof Dependency) {
- Element dep = findChild(deps, DEPENDENCY,
- childEquals(GROUP_ID, ((Dependency)dependency).groupId),
- childEquals(ARTIFACT_ID, ((Dependency)dependency).artifactId));
+ for(Object dependency : dependencyList) {
+ if(dependency instanceof Dependency) {
+ Element dep = findChild(deps, DEPENDENCY, childEquals(GROUP_ID, ((Dependency) dependency).groupId),
+ childEquals(ARTIFACT_ID, ((Dependency) dependency).artifactId));
removeChild(deps, dep);
}
}
@@ -203,10 +223,10 @@ public class DependenciesComposite extends Composite {
dependenciesEditor.setPropertiesListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
Object selection = dependenciesEditor.getSelection().get(0);
- if (selection instanceof Dependency) {
+ if(selection instanceof Dependency) {
Dependency dependency = (Dependency) selection;
- EditDependencyDialog d = new EditDependencyDialog(getShell(), false, editorPage
- .getProject(), editorPage.getPomEditor().getMavenProject());
+ EditDependencyDialog d = new EditDependencyDialog(getShell(), false, editorPage.getProject(), editorPage
+ .getPomEditor().getMavenProject());
d.setDependency(toApacheDependency(dependency));
if(d.open() == Window.OK) {
try {
@@ -216,7 +236,7 @@ public class DependenciesComposite extends Composite {
dependenciesEditor.setSelection(Collections.singletonList((Object) dependency));
}
}
- } else if (selection instanceof org.apache.maven.model.Dependency) {
+ } else if(selection instanceof org.apache.maven.model.Dependency) {
/*
* TODO: Support editing or displaying of inherited/managed dependencies.
*/
@@ -235,18 +255,21 @@ public class DependenciesComposite extends Composite {
try {
openManageDependenciesDialog();
} catch(InvocationTargetException e1) {
- MavenEditorPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, MavenEditorPlugin.PLUGIN_ID, "Error: ", e1)); //$NON-NLS-1$
+ MavenEditorPlugin.getDefault().getLog()
+ .log(new Status(IStatus.ERROR, MavenEditorPlugin.PLUGIN_ID, "Error: ", e1)); //$NON-NLS-1$
} catch(InterruptedException e1) {
- MavenEditorPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, MavenEditorPlugin.PLUGIN_ID, "Error: ", e1)); //$NON-NLS-1$
+ MavenEditorPlugin.getDefault().getLog()
+ .log(new Status(IStatus.ERROR, MavenEditorPlugin.PLUGIN_ID, "Error: ", e1)); //$NON-NLS-1$
}
}
});
-
+
dependenciesEditor.setAddButtonListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
final MavenRepositorySearchDialog addDepDialog = MavenRepositorySearchDialog.createSearchDependencyDialog(
- getShell(), Messages.DependenciesComposite_action_selectDependency, editorPage.getPomEditor().getMavenProject(), editorPage.getProject(), false);
-
+ getShell(), Messages.DependenciesComposite_action_selectDependency, editorPage.getPomEditor()
+ .getMavenProject(), editorPage.getProject(), false);
+
if(addDepDialog.open() == Window.OK) {
final IndexedArtifactFile dep = (IndexedArtifactFile) addDepDialog.getFirstResult();
final String selectedScope = addDepDialog.getSelectedScope();
@@ -254,8 +277,7 @@ public class DependenciesComposite extends Composite {
editorPage.performEditOperation(new Operation() {
public void process(Document document) {
Element depsEl = getChild(document.getDocumentElement(), DEPENDENCIES);
- PomHelper.addOrUpdateDependency(depsEl,
- dep.group, dep.artifact,
+ PomHelper.addOrUpdateDependency(depsEl, dep.group, dep.artifact,
isManaged(dep.group, dep.artifact, dep.version) ? null : dep.version, dep.type, selectedScope,
dep.classifier);
}
@@ -263,8 +285,8 @@ public class DependenciesComposite extends Composite {
} finally {
setDependenciesInput();
List<Dependency> deps = getDependencies();
- if (deps.size() > 0) {
- dependenciesEditor.setSelection(Collections.<Object>singletonList(deps.get(deps.size() - 1)));
+ if(deps.size() > 0) {
+ dependenciesEditor.setSelection(Collections.<Object> singletonList(deps.get(deps.size() - 1)));
}
}
}
@@ -273,41 +295,42 @@ public class DependenciesComposite extends Composite {
});
ToolBarManager modulesToolBarManager = new ToolBarManager(SWT.FLAT);
-
- modulesToolBarManager.add(new Action(Messages.DependenciesComposite_action_sortAlphabetically, MavenEditorImages.SORT) {
+
+ modulesToolBarManager.add(new Action(Messages.DependenciesComposite_action_sortAlphabetically,
+ MavenEditorImages.SORT) {
{
setChecked(false);
}
-
+
@Override
public int getStyle() {
return AS_CHECK_BOX;
}
-
+
@Override
public void run() {
dependenciesContentProvider.setShouldSort(isChecked());
dependenciesEditor.getViewer().refresh();
}
});
-
- modulesToolBarManager.add(new Action(Messages.DependenciesComposite_action_showInheritedDependencies,
+
+ modulesToolBarManager.add(new Action(Messages.DependenciesComposite_action_showInheritedDependencies,
MavenEditorImages.SHOW_INHERITED_DEPENDENCIES) {
{
setChecked(false);
}
-
+
@Override
public int getStyle() {
return AS_CHECK_BOX;
}
-
+
@Override
public void run() {
- if (isChecked()) {
- showInheritedDependencies = true;
+ if(isChecked()) {
+ showInheritedDependencies = true;
} else {
- showInheritedDependencies = false;
+ showInheritedDependencies = false;
}
ISelection selection = dependenciesEditor.getViewer().getSelection();
setDependenciesInput();
@@ -315,7 +338,7 @@ public class DependenciesComposite extends Composite {
dependenciesEditor.getViewer().setSelection(selection, true);
}
});
-
+
modulesToolBarManager.add(new Action(Messages.DependenciesComposite_action_showgroupid,
MavenEditorImages.SHOW_GROUP) {
{
@@ -379,7 +402,6 @@ public class DependenciesComposite extends Composite {
dependencyManagementEditor.setContentProvider(dependencyManagementContentProvider);
dependencyManagementEditor.setLabelProvider(dependencyManagementLabelProvider);
dependencyManagementSection.setClient(dependencyManagementEditor);
-
dependencyManagementEditor.setRemoveButtonListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
@@ -388,13 +410,12 @@ public class DependenciesComposite extends Composite {
editorPage.performEditOperation(new Operation() {
public void process(Document document) {
Element deps = findChild(findChild(document.getDocumentElement(), DEPENDENCY_MANAGEMENT), DEPENDENCIES);
- if (deps == null) {
+ if(deps == null) {
//TODO log
return;
}
- for (Dependency dependency : dependencyList) {
- Element dep = findChild(deps, DEPENDENCY,
- childEquals(GROUP_ID, dependency.groupId),
+ for(Dependency dependency : dependencyList) {
+ Element dep = findChild(deps, DEPENDENCY, childEquals(GROUP_ID, dependency.groupId),
childEquals(ARTIFACT_ID, dependency.artifactId));
removeChild(deps, dep);
}
@@ -407,17 +428,17 @@ public class DependenciesComposite extends Composite {
}
}
});
-
+
dependencyManagementEditor.setPropertiesListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
Dependency dependency = dependencyManagementEditor.getSelection().get(0);
- EditDependencyDialog d = new EditDependencyDialog(getShell(), true, editorPage
- .getProject(), editorPage.getPomEditor().getMavenProject());
+ EditDependencyDialog d = new EditDependencyDialog(getShell(), true, editorPage.getProject(), editorPage
+ .getPomEditor().getMavenProject());
d.setDependency(toApacheDependency(dependency));
if(d.open() == Window.OK) {
try {
editorPage.performEditOperation(d.getEditOperation(), log, "Error updating dependency");
- } finally {
+ } finally {
setDependencyManagementInput();
dependencyManagementEditor.setSelection(Collections.singletonList(dependency));
//refresh this one to update decorations..
@@ -443,7 +464,8 @@ public class DependenciesComposite extends Composite {
dependencyManagementEditor.setAddButtonListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
final MavenRepositorySearchDialog addDepDialog = MavenRepositorySearchDialog.createSearchDependencyDialog(
- getShell(), Messages.DependenciesComposite_action_selectDependency, editorPage.getPomEditor().getMavenProject(), editorPage.getProject(), true);
+ getShell(), Messages.DependenciesComposite_action_selectDependency, editorPage.getPomEditor()
+ .getMavenProject(), editorPage.getProject(), true);
if(addDepDialog.open() == Window.OK) {
final IndexedArtifactFile dep = (IndexedArtifactFile) addDepDialog.getFirstResult();
final String selectedScope = addDepDialog.getSelectedScope();
@@ -451,45 +473,45 @@ public class DependenciesComposite extends Composite {
editorPage.performEditOperation(new Operation() {
public void process(Document document) {
Element depsEl = getChild(document.getDocumentElement(), DEPENDENCY_MANAGEMENT, DEPENDENCIES);
- PomHelper.addOrUpdateDependency(depsEl,
- dep.group, dep.artifact,
- dep.version, dep.type, selectedScope, dep.classifier);
+ PomHelper.addOrUpdateDependency(depsEl, dep.group, dep.artifact, dep.version, dep.type, selectedScope,
+ dep.classifier);
}
}, log, "errror adding dependency");
} finally {
setDependencyManagementInput();
List<Dependency> dlist = getManagedDependencies();
- if (dlist.size() > 0) {
- dependencyManagementEditor.setSelection(Collections.<Dependency>singletonList(dlist.get(dlist.size() - 1)));
+ if(dlist.size() > 0) {
+ dependencyManagementEditor.setSelection(Collections.<Dependency> singletonList(dlist.get(dlist.size() - 1)));
}
//refresh this one to update decorations..
dependenciesEditor.refresh();
}
-
+
}
}
});
ToolBarManager modulesToolBarManager = new ToolBarManager(SWT.FLAT);
- modulesToolBarManager.add(new Action(Messages.DependenciesComposite_action_sortAlphabetically, MavenEditorImages.SORT) {
+ modulesToolBarManager.add(new Action(Messages.DependenciesComposite_action_sortAlphabetically,
+ MavenEditorImages.SORT) {
{
setChecked(false);
dependencyManagementContentProvider.setShouldSort(false);
}
-
+
@Override
public int getStyle() {
return AS_CHECK_BOX;
}
-
+
@Override
public void run() {
dependencyManagementContentProvider.setShouldSort(isChecked());
dependencyManagementEditor.getViewer().refresh();
}
});
-
+
modulesToolBarManager.add(new Action(Messages.DependenciesComposite_action_showgroupid,
MavenEditorImages.SHOW_GROUP) {
{
@@ -542,7 +564,6 @@ public class DependenciesComposite extends Composite {
dependencyManagementSection.setTextClient(toolbarComposite);
}
-
public void loadData() {
resetDependencies();
resetManagedDependencies();
@@ -550,7 +571,7 @@ public class DependenciesComposite extends Composite {
@Override
public List<org.apache.maven.model.Dependency> getValue() {
List<org.apache.maven.model.Dependency> toRet = new ArrayList<org.apache.maven.model.Dependency>();
- for (DependenciesComposite.Dependency d : getManagedDependencies()) {
+ for(DependenciesComposite.Dependency d : getManagedDependencies()) {
toRet.add(toApacheDependency(d));
}
return toRet;
@@ -570,7 +591,6 @@ public class DependenciesComposite extends Composite {
}
}
-
public void setSearchControl(SearchControl searchControl) {
if(this.searchControl != null) {
return;
@@ -607,7 +627,6 @@ public class DependenciesComposite extends Composite {
}
-
public static class DependencyFilter extends ViewerFilter {
private SearchMatcher searchMatcher;
@@ -619,7 +638,7 @@ public class DependenciesComposite extends Composite {
if(element instanceof Dependency) {
Dependency d = (Dependency) element;
return searchMatcher.isMatchingArtifact(d.groupId, d.artifactId);
- } else if (element instanceof org.apache.maven.model.Dependency) {
+ } else if(element instanceof org.apache.maven.model.Dependency) {
org.apache.maven.model.Dependency dependency = (org.apache.maven.model.Dependency) element;
return searchMatcher.isMatchingArtifact(dependency.getGroupId(), dependency.getArtifactId());
}
@@ -633,14 +652,15 @@ public class DependenciesComposite extends Composite {
* The head is the child, the tail is the root pom
*/
final LinkedList<MavenProject> hierarchy = new LinkedList<MavenProject>();
-
+
IRunnableWithProgress projectLoader = new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
try {
IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry();
IMavenProjectFacade projectFacade = projectManager.create(pomEditor.getPomFile(), true, monitor);
- if (projectFacade != null) {
- hierarchy.addAll(new ParentGatherer(projectFacade.getMavenProject(), projectFacade).getParentHierarchy(monitor));
+ if(projectFacade != null) {
+ hierarchy.addAll(new ParentGatherer(projectFacade.getMavenProject(), projectFacade)
+ .getParentHierarchy(monitor));
}
} catch(CoreException e) {
throw new InvocationTargetException(e);
@@ -650,26 +670,26 @@ public class DependenciesComposite extends Composite {
PlatformUI.getWorkbench().getProgressService().run(false, true, projectLoader);
- if (hierarchy.isEmpty()) {
+ if(hierarchy.isEmpty()) {
//We were unable to read the project metadata above, so there was an error.
//User has already been notified to fix the problem.
return;
}
-
- final ManageDependenciesDialog manageDepDialog = new ManageDependenciesDialog(getShell(), new ValueProvider<List<org.apache.maven.model.Dependency>>() {
- @Override
- public List<org.apache.maven.model.Dependency> getValue() {
- List<org.apache.maven.model.Dependency> toRet = new ArrayList<org.apache.maven.model.Dependency>();
- for (DependenciesComposite.Dependency d : getDependencies()) {
- toRet.add(toApacheDependency(d));
- }
- return toRet;
- }
- }, hierarchy,
- dependenciesEditor.getSelection());
+
+ final ManageDependenciesDialog manageDepDialog = new ManageDependenciesDialog(getShell(),
+ new ValueProvider<List<org.apache.maven.model.Dependency>>() {
+ @Override
+ public List<org.apache.maven.model.Dependency> getValue() {
+ List<org.apache.maven.model.Dependency> toRet = new ArrayList<org.apache.maven.model.Dependency>();
+ for(DependenciesComposite.Dependency d : getDependencies()) {
+ toRet.add(toApacheDependency(d));
+ }
+ return toRet;
+ }
+ }, hierarchy, dependenciesEditor.getSelection());
manageDepDialog.open();
}
-
+
protected void setDependencyManagementInput() {
resetManagedDependencies();
final List<Dependency> managed = getManagedDependencies();
@@ -678,6 +698,7 @@ public class DependenciesComposite extends Composite {
/**
* only to be called within the perform* methods..
+ *
* @param depEl
* @return
*/
@@ -693,67 +714,67 @@ public class DependenciesComposite extends Composite {
dep.optional = Boolean.parseBoolean(getTextValue(findChild(depEl, OPTIONAL)));
return dep;
}
-
+
private final Object MAN_DEP_LOCK = new Object();
private List<Dependency> getManagedDependencies() {
- synchronized (MAN_DEP_LOCK) {
- if (manageddependencies == null) {
+ synchronized(MAN_DEP_LOCK) {
+ if(manageddependencies == null) {
manageddependencies = new ArrayList<Dependency>();
try {
performOnDOMDocument(new OperationTuple(pomEditor.getDocument(), new Operation() {
public void process(Document document) {
Element dms = findChild(findChild(document.getDocumentElement(), DEPENDENCY_MANAGEMENT), DEPENDENCIES);
- for (Element depEl : findChilds(dms, DEPENDENCY)) {
+ for(Element depEl : findChilds(dms, DEPENDENCY)) {
Dependency dep = toDependency(depEl);
- if (dep != null) {
+ if(dep != null) {
manageddependencies.add(dep);
}
}
}
}, true));
- } catch (Exception ex) {
+ } catch(Exception ex) {
log.error("Error loading managed dependencies", ex);
}
}
return manageddependencies;
}
}
-
+
private void resetManagedDependencies() {
- synchronized (MAN_DEP_LOCK) {
+ synchronized(MAN_DEP_LOCK) {
manageddependencies = null;
}
}
-
-
- private final Object DEP_LOCK = new Object();
+
+ private final Object DEP_LOCK = new Object();
+
private List<Dependency> getDependencies() {
- synchronized (DEP_LOCK) {
- if (dependencies == null) {
+ synchronized(DEP_LOCK) {
+ if(dependencies == null) {
dependencies = new ArrayList<Dependency>();
try {
performOnDOMDocument(new OperationTuple(pomEditor.getDocument(), new Operation() {
public void process(Document document) {
Element dms = findChild(document.getDocumentElement(), DEPENDENCIES);
- for (Element depEl : findChilds(dms, DEPENDENCY)) {
+ for(Element depEl : findChilds(dms, DEPENDENCY)) {
Dependency dep = toDependency(depEl);
- if (dep != null) {
+ if(dep != null) {
dependencies.add(dep);
}
}
}
}, true));
- } catch (Exception ex) {
+ } catch(Exception ex) {
log.error("Error loading dependencies", ex);
}
}
return dependencies;
}
}
-
+
private void resetDependencies() {
- synchronized (DEP_LOCK) {
+ synchronized(DEP_LOCK) {
dependencies = null;
}
}
@@ -762,9 +783,9 @@ public class DependenciesComposite extends Composite {
resetDependencies();
List<Object> deps = new ArrayList<Object>();
deps.addAll(getDependencies());
-
- if (showInheritedDependencies) {
-
+
+ if(showInheritedDependencies) {
+
/*
* Add the inherited dependencies into the bunch. But don't we need to
* filter out the dependencies that are duplicated in the M2E model, so
@@ -772,22 +793,21 @@ public class DependenciesComposite extends Composite {
*/
List<org.apache.maven.model.Dependency> allDeps = new LinkedList<org.apache.maven.model.Dependency>();
MavenProject mp = pomEditor.getMavenProject();
- if (mp != null) {
+ if(mp != null) {
allDeps.addAll(mp.getDependencies());
}
- for (org.apache.maven.model.Dependency mavenDep : allDeps) {
+ for(org.apache.maven.model.Dependency mavenDep : allDeps) {
boolean found = false;
Iterator<Dependency> iter = getDependencies().iterator();
- while (!found && iter.hasNext()) {
+ while(!found && iter.hasNext()) {
Dependency m2eDep = iter.next();
- if (mavenDep.getGroupId().equals(m2eDep.groupId)
- && mavenDep.getArtifactId().equals(m2eDep.artifactId)) {
+ if(mavenDep.getGroupId().equals(m2eDep.groupId) && mavenDep.getArtifactId().equals(m2eDep.artifactId)) {
found = true;
}
}
- if (!found) {
+ if(!found) {
//now check the temporary keys
- if (!temporaryRemovedDependencies.contains(mavenDep.getGroupId() + ":" + mavenDep.getArtifactId())) {
+ if(!temporaryRemovedDependencies.contains(mavenDep.getGroupId() + ":" + mavenDep.getArtifactId())) {
deps.add(mavenDep);
}
}
@@ -795,15 +815,16 @@ public class DependenciesComposite extends Composite {
}
dependenciesEditor.setInput(deps);
}
-
+
protected class PropertiesListComposite<T> extends ListEditorComposite<T> {
private static final String PROPERTIES_BUTTON_KEY = "PROPERTIES"; //$NON-NLS-1$
+
protected Button properties;
-
+
public PropertiesListComposite(Composite parent, int style, boolean includeSearch) {
super(parent, style, includeSearch);
}
-
+
@Override
protected void createButtons(boolean includeSearch) {
if(includeSearch) {
@@ -813,52 +834,52 @@ public class DependenciesComposite extends Composite {
properties = createButton(Messages.ListEditorComposite_btnProperties);
addButton(PROPERTIES_BUTTON_KEY, properties);
}
-
+
public void setPropertiesListener(SelectionListener listener) {
properties.addSelectionListener(listener);
}
-
+
@Override
protected void viewerSelectionChanged() {
super.viewerSelectionChanged();
updatePropertiesButton();
}
-
+
protected void updatePropertiesButton() {
boolean enable = !viewer.getSelection().isEmpty() && !isBadSelection();
properties.setEnabled(!readOnly && enable);
}
-
+
@Override
protected void updateRemoveButton() {
boolean enable = !viewer.getSelection().isEmpty() && !isBadSelection();
getRemoveButton().setEnabled(!readOnly && enable);
}
-
+
@Override
public void setReadOnly(boolean readOnly) {
super.setReadOnly(readOnly);
updatePropertiesButton();
}
-
+
/**
- * Returns true if the viewer has no input or if there is currently
- * an inherited dependency selected
+ * Returns true if the viewer has no input or if there is currently an inherited dependency selected
+ *
* @return
*/
protected boolean isBadSelection() {
@SuppressWarnings("unchecked")
List<Object> deps = (List<Object>) viewer.getInput();
- if (deps == null || deps.isEmpty()) {
+ if(deps == null || deps.isEmpty()) {
return true;
}
boolean bad = false;
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
@SuppressWarnings("unchecked")
Iterator<Object> iter = selection.iterator();
- while (iter.hasNext()) {
+ while(iter.hasNext()) {
Object obj = iter.next();
- if (obj instanceof org.apache.maven.model.Dependency) {
+ if(obj instanceof org.apache.maven.model.Dependency) {
bad = true;
break;
}
@@ -866,16 +887,16 @@ public class DependenciesComposite extends Composite {
return bad;
}
}
-
+
protected class DependenciesListComposite<T> extends PropertiesListComposite<T> {
private static final String MANAGE = "MANAGE"; //$NON-NLS-1$
+
protected Button manage;
public DependenciesListComposite(Composite parent, int style, boolean includeSearch) {
super(parent, style, includeSearch);
}
-
@Override
protected void createButtons(boolean includeSearch) {
@@ -883,19 +904,19 @@ public class DependenciesComposite extends Composite {
manage = createButton(Messages.DependenciesComposite_manageButton);
addButton(MANAGE, manage);
}
-
+
@Override
protected void viewerSelectionChanged() {
super.viewerSelectionChanged();
updateManageButton();
}
-
+
@Override
public void setReadOnly(boolean readOnly) {
super.setReadOnly(readOnly);
updateManageButton();
}
-
+
@Override
public void refresh() {
super.refresh();
@@ -913,7 +934,7 @@ public class DependenciesComposite extends Composite {
}
manage.setEnabled(!readOnly && hasNonManaged);
}
-
+
public void setManageButtonListener(SelectionListener listener) {
manage.addSelectionListener(listener);
}
@@ -922,12 +943,12 @@ public class DependenciesComposite extends Composite {
public void mavenProjectHasChanged() {
temporaryRemovedDependencies.clear();
//MNGECLIPSE-2673 when maven project changes and we show the inherited items, update now..
- if (showInheritedDependencies) {
+ if(showInheritedDependencies) {
setDependenciesInput();
}
dependenciesEditor.refresh();
}
-
+
private org.apache.maven.model.Dependency toApacheDependency(Dependency dependency) {
org.apache.maven.model.Dependency toRet = new org.apache.maven.model.Dependency();
toRet.setArtifactId(dependency.artifactId);
@@ -962,19 +983,27 @@ public class DependenciesComposite extends Composite {
class Dependency implements IAdaptable {
String artifactId;
+
String groupId;
+
String version;
+
String type;
+
String classifier;
+
String scope;
+
String systemPath;
+
boolean optional;
-
- public Dependency() {}
+
+ public Dependency() {
+ }
@SuppressWarnings("rawtypes")
public Object getAdapter(Class adapter) {
- if (ArtifactKey.class.equals(adapter)) {
+ if(ArtifactKey.class.equals(adapter)) {
return new ArtifactKey(groupId, artifactId, version, classifier);
}
return null;
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependencyLabelProvider.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependencyLabelProvider.java
index 22fc6e18..a1b37183 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependencyLabelProvider.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependencyLabelProvider.java
@@ -14,16 +14,23 @@ package org.eclipse.m2e.editor.composites;
import java.util.Collection;
import java.util.List;
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.model.Dependency;
-import org.apache.maven.model.DependencyManagement;
-import org.apache.maven.model.InputLocation;
-import org.apache.maven.project.MavenProject;
import org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider;
import org.eclipse.jface.viewers.IColorProvider;
import org.eclipse.jface.viewers.IDecoration;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.viewers.StyledString;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.model.Dependency;
+import org.apache.maven.model.DependencyManagement;
+import org.apache.maven.model.InputLocation;
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
import org.eclipse.m2e.core.project.IMavenProjectRegistry;
@@ -32,11 +39,6 @@ import org.eclipse.m2e.editor.MavenEditorImages;
import org.eclipse.m2e.editor.internal.Messages;
import org.eclipse.m2e.editor.pom.MavenPomEditor;
import org.eclipse.m2e.editor.pom.ValueProvider;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
/**
@@ -44,7 +46,8 @@ import org.eclipse.swt.widgets.Display;
*
* @author Eugene Kuleshov
*/
-public class DependencyLabelProvider extends LabelProvider implements IColorProvider, DelegatingStyledCellLabelProvider.IStyledLabelProvider {
+public class DependencyLabelProvider extends LabelProvider implements IColorProvider,
+ DelegatingStyledCellLabelProvider.IStyledLabelProvider {
private MavenPomEditor pomEditor;
@@ -63,34 +66,35 @@ public class DependencyLabelProvider extends LabelProvider implements IColorProv
this.showManagedOverlay = showManagedOverlay;
}
- public void setPomEditor(MavenPomEditor pomEditor, ValueProvider<List<org.apache.maven.model.Dependency>> valueProvider) {
+ public void setPomEditor(MavenPomEditor pomEditor,
+ ValueProvider<List<org.apache.maven.model.Dependency>> valueProvider) {
assert pomEditor != null;
this.pomEditor = pomEditor;
this.valueProvider = valueProvider;
}
-
+
public void setShowGroupId(boolean showGroupId) {
this.showGroupId = showGroupId;
}
// IColorProvider
-
+
public Color getForeground(Object element) {
//a workaround to handle display in ManagedDependenciesDialog
//TODO shall have a switch of it's own.. the curse of blind code reuse
- if (showManagedOverlay && element instanceof org.apache.maven.model.Dependency) {
+ if(showManagedOverlay && element instanceof org.apache.maven.model.Dependency) {
//mkleint: let's just assume all maven Dependency instances are inherited
return Display.getDefault().getSystemColor(SWT.COLOR_DARK_GRAY);
}
return null;
}
-
+
public Color getBackground(Object element) {
return null;
}
-
+
private String[] findManaged(DependenciesComposite.Dependency dep) {
- if (pomEditor != null) {
+ if(pomEditor != null) {
MavenProject mp = pomEditor.getMavenProject();
String version = null;
String scope = null;
@@ -102,33 +106,33 @@ public class DependencyLabelProvider extends LabelProvider implements IColorProv
if(d.getGroupId().equals(dep.groupId) && d.getArtifactId().equals(dep.artifactId)) {
//based on location, try finding a match in the live Model
InputLocation location = d.getLocation("artifactId");
- if (location != null) {
- if (id.equals(location.getSource().getModelId())) {
+ if(location != null) {
+ if(id.equals(location.getSource().getModelId())) {
version = d.getVersion();
scope = d.getScope();
break;
}
}
- return new String [] {d.getVersion(), d.getScope()};
+ return new String[] {d.getVersion(), d.getScope()};
}
}
}
}
List<org.apache.maven.model.Dependency> dm = valueProvider.getValue();
- for (org.apache.maven.model.Dependency modelDep : dm) {
- String modelGroupId = modelDep.getGroupId();
- String modelArtifactId = modelDep.getArtifactId();
- String modelVersion = modelDep.getVersion();
- String modelScope = modelDep.getScope();
- if (modelGroupId != null && modelGroupId.equals(dep.groupId) && modelArtifactId != null
- && modelArtifactId.equals(dep.artifactId)) {
- if (version != null && (modelVersion == null || modelVersion.contains("${"))) {
- //prefer the resolved version to the model one if the model version as expressions..
- return new String[] {version, modelScope == null ? scope : modelScope};
- }
- return new String[] {modelVersion, modelScope == null ? scope : modelScope};
+ for(org.apache.maven.model.Dependency modelDep : dm) {
+ String modelGroupId = modelDep.getGroupId();
+ String modelArtifactId = modelDep.getArtifactId();
+ String modelVersion = modelDep.getVersion();
+ String modelScope = modelDep.getScope();
+ if(modelGroupId != null && modelGroupId.equals(dep.groupId) && modelArtifactId != null
+ && modelArtifactId.equals(dep.artifactId)) {
+ if(version != null && (modelVersion == null || modelVersion.contains("${"))) {
+ //prefer the resolved version to the model one if the model version as expressions..
+ return new String[] {version, modelScope == null ? scope : modelScope};
}
+ return new String[] {modelVersion, modelScope == null ? scope : modelScope};
}
+ }
}
return null;
}
@@ -138,9 +142,9 @@ public class DependencyLabelProvider extends LabelProvider implements IColorProv
StyledString ss = new StyledString(getText(element));
DependenciesComposite.Dependency dep = (DependenciesComposite.Dependency) element;
String[] managed = findManaged(dep);
- if (managed != null && managed[0] != null) {
+ if(managed != null && managed[0] != null) {
String man = managed[0];
- if (managed[1] != null && !Artifact.SCOPE_COMPILE.equals(managed[1])) {
+ if(managed[1] != null && !Artifact.SCOPE_COMPILE.equals(managed[1])) {
man = man + "," + managed[1];
}
ss.append(NLS.bind(Messages.DependencyLabelProvider_0, man), StyledString.DECORATIONS_STYLER);
@@ -149,16 +153,16 @@ public class DependencyLabelProvider extends LabelProvider implements IColorProv
}
return new StyledString(getText(element));
}
-
+
// LabelProvider
-
+
@Override
public String getText(Object element) {
if(element instanceof DependenciesComposite.Dependency) {
DependenciesComposite.Dependency dependency = (DependenciesComposite.Dependency) element;
return getText(dependency.groupId, dependency.artifactId, dependency.version, //
dependency.classifier, dependency.type, dependency.scope);
- } else if (element instanceof org.apache.maven.model.Dependency) {
+ } else if(element instanceof org.apache.maven.model.Dependency) {
org.apache.maven.model.Dependency dependency = (org.apache.maven.model.Dependency) element;
return getText(dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion(),
dependency.getClassifier(), dependency.getType(), dependency.getScope());
@@ -178,10 +182,9 @@ public class DependencyLabelProvider extends LabelProvider implements IColorProv
DependenciesComposite.Dependency dependency = (DependenciesComposite.Dependency) element;
boolean isManaged = showManagedOverlay && findManaged(dependency) != null;
return getImage(dependency.groupId, dependency.artifactId, dependency.version, isManaged);
- } else if (element instanceof org.apache.maven.model.Dependency) {
-
-
- if (!showManagedOverlay) {
+ } else if(element instanceof org.apache.maven.model.Dependency) {
+
+ if(!showManagedOverlay) {
org.apache.maven.model.Dependency dependency = (Dependency) element;
//a workaround to handle display in ManagedDependenciesDialog
//TODO shall have a switch of it's own.. the curse of blind code reuse
@@ -203,34 +206,37 @@ public class DependencyLabelProvider extends LabelProvider implements IColorProv
private Image getImage(String groupId, String artifactId, String version, boolean isManaged) {
// XXX need to resolve actual dependencies (i.e. inheritance, dependency management or properties)
// XXX need to handle version ranges
-
+
if((version == null || version.indexOf("${") > -1) && pomEditor != null) { //$NON-NLS-1$
- MavenProject mavenProject = pomEditor.getMavenProject();
- if(mavenProject != null) {
- Artifact artifact = mavenProject.getArtifactMap().get(groupId + ":" + artifactId); //$NON-NLS-1$
- if(artifact!=null) {
- version = artifact.getVersion();
- }
- if(version==null || version.indexOf("${") > -1) { //$NON-NLS-1$
- Collection<Artifact> artifacts = mavenProject.getManagedVersionMap().values();
- for(Artifact a : artifacts) {
- if(a.getGroupId().equals(groupId) && a.getArtifactId().equals(artifactId)) {
- version = a.getVersion();
- break;
- }
+ MavenProject mavenProject = pomEditor.getMavenProject();
+ if(mavenProject != null) {
+ Artifact artifact = mavenProject.getArtifactMap().get(groupId + ":" + artifactId); //$NON-NLS-1$
+ if(artifact != null) {
+ version = artifact.getVersion();
+ }
+ if(version == null || version.indexOf("${") > -1) { //$NON-NLS-1$
+ Collection<Artifact> artifacts = mavenProject.getManagedVersionMap().values();
+ for(Artifact a : artifacts) {
+ if(a.getGroupId().equals(groupId) && a.getArtifactId().equals(artifactId)) {
+ version = a.getVersion();
+ break;
}
}
}
+ }
}
-
+
if(groupId != null && artifactId != null && version != null) {
IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry();
IMavenProjectFacade projectFacade = projectManager.getMavenProject(groupId, artifactId, version);
if(projectFacade != null) {
- return isManaged ? MavenImages.getOverlayImage(MavenImages.PATH_PROJECT, MavenImages.PATH_LOCK, IDecoration.BOTTOM_LEFT) : MavenEditorImages.IMG_PROJECT;
+ return isManaged ? MavenImages.getOverlayImage(MavenImages.PATH_PROJECT, MavenImages.PATH_LOCK,
+ IDecoration.BOTTOM_LEFT) : MavenEditorImages.IMG_PROJECT;
}
- }
- return isManaged ? MavenImages.getOverlayImage(MavenImages.PATH_JAR, MavenImages.PATH_LOCK, IDecoration.BOTTOM_LEFT) : MavenEditorImages.IMG_JAR;
+ }
+ return isManaged ? MavenImages
+ .getOverlayImage(MavenImages.PATH_JAR, MavenImages.PATH_LOCK, IDecoration.BOTTOM_LEFT)
+ : MavenEditorImages.IMG_JAR;
}
private String getText(String groupId, String artifactId, String version, String classifier, String type, String scope) {
@@ -264,6 +270,4 @@ public class DependencyLabelProvider extends LabelProvider implements IColorProv
return s == null || s.trim().length() == 0;
}
-
-
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/ListEditorComposite.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/ListEditorComposite.java
index 9b4aa9e0..b6e309ce 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/ListEditorComposite.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/ListEditorComposite.java
@@ -29,7 +29,6 @@ import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.TableViewerColumn;
import org.eclipse.jface.viewers.TextCellEditor;
-import org.eclipse.m2e.editor.internal.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ControlAdapter;
import org.eclipse.swt.events.ControlEvent;
@@ -41,6 +40,8 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Table;
import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.m2e.editor.internal.Messages;
+
/**
* List editor composite
@@ -49,16 +50,17 @@ import org.eclipse.ui.forms.widgets.FormToolkit;
*/
public class ListEditorComposite<T> extends Composite {
-
TableViewer viewer;
-
+
protected Map<String, Button> buttons = new HashMap<String, Button>(5);
-
+
/*
* Default button keys
*/
private static final String ADD = "ADD"; //$NON-NLS-1$
+
private static final String CREATE = "CREATE"; //$NON-NLS-1$
+
private static final String REMOVE = "REMOVE"; //$NON-NLS-1$
boolean readOnly = false;
@@ -91,7 +93,7 @@ public class ListEditorComposite<T> extends Composite {
});
createButtons(includeSearch);
-
+
int vSpan = buttons.size();
GridData viewerData = new GridData(SWT.FILL, SWT.FILL, true, true, 1, vSpan);
viewerData.widthHint = 100;
@@ -116,7 +118,7 @@ public class ListEditorComposite<T> extends Composite {
public void setLabelProvider(ILabelProvider labelProvider) {
viewer.setLabelProvider(labelProvider);
}
-
+
public void setCellLabelProvider(CellLabelProvider cell) {
column.setLabelProvider(cell);
}
@@ -148,11 +150,11 @@ public class ListEditorComposite<T> extends Composite {
getAddButton().setEnabled(true);
}
}
-
+
protected Button getCreateButton() {
return buttons.get(CREATE);
}
-
+
protected Button getRemoveButton() {
return buttons.get(REMOVE);
}
@@ -194,8 +196,8 @@ public class ListEditorComposite<T> extends Composite {
public void setReadOnly(boolean readOnly) {
this.readOnly = readOnly;
- for (Map.Entry<String, Button> entry : buttons.entrySet()) {
- if (entry.getKey().equals(REMOVE)) {
+ for(Map.Entry<String, Button> entry : buttons.entrySet()) {
+ if(entry.getKey().equals(REMOVE)) {
//Special case, as it makes no sense to enable if it there's nothing selected.
updateRemoveButton();
} else {
@@ -208,7 +210,7 @@ public class ListEditorComposite<T> extends Composite {
protected void viewerSelectionChanged() {
updateRemoveButton();
}
-
+
protected void updateRemoveButton() {
getRemoveButton().setEnabled(!readOnly && !viewer.getSelection().isEmpty());
}
@@ -233,9 +235,8 @@ public class ListEditorComposite<T> extends Composite {
}
/**
- * Create the buttons that populate the column to the right of the ListViewer.
- * Subclasses must call the helper method addButton to add each button to the
- * composite.
+ * Create the buttons that populate the column to the right of the ListViewer. Subclasses must call the helper method
+ * addButton to add each button to the composite.
*
* @param includeSearch true if the search button should be created
*/
@@ -246,7 +247,7 @@ public class ListEditorComposite<T> extends Composite {
createCreateButton();
createRemoveButton();
}
-
+
protected void addButton(String key, Button button) {
buttons.put(key, button);
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/ListEditorContentProvider.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/ListEditorContentProvider.java
index 735755c8..b6c21d08 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/ListEditorContentProvider.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/ListEditorContentProvider.java
@@ -18,22 +18,25 @@ import java.util.List;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;
+
/**
* @author Eugene Kuleshov
*/
public class ListEditorContentProvider<T> implements IStructuredContentProvider {
public static final Object[] EMPTY = new Object[0];
+
private boolean shouldSort;
+
private Comparator<T> comparator;
-
+
@SuppressWarnings("unchecked")
public Object[] getElements(Object input) {
if(input instanceof List) {
List<T> list = (List<T>) input;
- if (shouldSort) {
+ if(shouldSort) {
T[] array = (T[]) list.toArray();
- Arrays.<T>sort(array, comparator);
+ Arrays.<T> sort(array, comparator);
return array;
}
return list.toArray();
@@ -43,14 +46,14 @@ public class ListEditorContentProvider<T> implements IStructuredContentProvider
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
}
-
+
public void dispose() {
}
-
+
public void setShouldSort(boolean shouldSort) {
this.shouldSort = shouldSort;
}
-
+
public void setComparator(Comparator<T> comparator) {
this.comparator = comparator;
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/SectionExpansionAdapter.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/SectionExpansionAdapter.java
index 1f34cec0..a9b940d4 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/SectionExpansionAdapter.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/SectionExpansionAdapter.java
@@ -15,13 +15,15 @@ import org.eclipse.ui.forms.events.ExpansionAdapter;
import org.eclipse.ui.forms.events.ExpansionEvent;
import org.eclipse.ui.forms.widgets.Section;
+
/**
* An expansion adapter that collapses all the sections in the same row.
*/
public class SectionExpansionAdapter extends ExpansionAdapter {
private boolean inProgress = false;
+
private Section[] sections;
-
+
public SectionExpansionAdapter(Section[] sections) {
this.sections = sections;
for(Section section : sections) {
@@ -32,8 +34,8 @@ public class SectionExpansionAdapter extends ExpansionAdapter {
public void expansionStateChanged(ExpansionEvent e) {
if(!inProgress && e.getSource() instanceof Section) {
inProgress = true;
- boolean expand = ((Section)e.getSource()).isExpanded();
-
+ boolean expand = ((Section) e.getSource()).isExpanded();
+
for(Section section : sections) {
section.setExpanded(expand);
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/StringLabelProvider.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/StringLabelProvider.java
index 270be049..612cfdaa 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/StringLabelProvider.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/StringLabelProvider.java
@@ -14,6 +14,7 @@ package org.eclipse.m2e.editor.composites;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;
+
/**
* Label provider for <code>String</code> entries
*
@@ -36,4 +37,4 @@ public class StringLabelProvider extends LabelProvider {
public Image getImage(Object element) {
return img;
}
-} \ No newline at end of file
+}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java
index 4b3feb64..35657975 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java
@@ -27,8 +27,12 @@ import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
-import org.apache.maven.model.Dependency;
-import org.apache.maven.project.MavenProject;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -44,18 +48,6 @@ import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.m2e.core.MavenPlugin;
-import org.eclipse.m2e.core.project.IMavenProjectFacade;
-import org.eclipse.m2e.core.ui.internal.components.PomHierarchyComposite;
-import org.eclipse.m2e.core.ui.internal.dialogs.AbstractMavenDialog;
-import org.eclipse.m2e.core.ui.internal.editing.PomEdits.CompoundOperation;
-import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
-import org.eclipse.m2e.core.ui.internal.editing.PomEdits.OperationTuple;
-import org.eclipse.m2e.core.ui.internal.editing.PomHelper;
-import org.eclipse.m2e.editor.MavenEditorPlugin;
-import org.eclipse.m2e.editor.composites.DependencyLabelProvider;
-import org.eclipse.m2e.editor.composites.ListEditorContentProvider;
-import org.eclipse.m2e.editor.pom.ValueProvider;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.SashForm;
@@ -71,10 +63,23 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
+
+import org.apache.maven.model.Dependency;
+import org.apache.maven.project.MavenProject;
+
+import org.eclipse.m2e.core.MavenPlugin;
+import org.eclipse.m2e.core.project.IMavenProjectFacade;
+import org.eclipse.m2e.core.ui.internal.components.PomHierarchyComposite;
+import org.eclipse.m2e.core.ui.internal.dialogs.AbstractMavenDialog;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits.CompoundOperation;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits.OperationTuple;
+import org.eclipse.m2e.core.ui.internal.editing.PomHelper;
+import org.eclipse.m2e.editor.MavenEditorPlugin;
+import org.eclipse.m2e.editor.composites.DependencyLabelProvider;
+import org.eclipse.m2e.editor.composites.ListEditorContentProvider;
+import org.eclipse.m2e.editor.pom.ValueProvider;
+
/**
* This dialog is used to present the user with a list of dialogs that they can move to being managed under
@@ -94,21 +99,22 @@ public class ManageDependenciesDialog extends AbstractMavenDialog {
private PomHierarchyComposite pomHierarchy;
private IStatus status;
-
+
private List<Object> originalSelection;
-
+
private ValueProvider<List<Dependency>> modelVProvider;
/**
* Hierarchy is a LinkedList representing the hierarchy relationship between POM represented by model and its parents.
* The head of the list should be the child, while the tail should be the root parent, with the others in between.
*/
- public ManageDependenciesDialog(Shell parent, ValueProvider<List<Dependency>> modelVProvider, LinkedList<MavenProject> hierarchy) {
+ public ManageDependenciesDialog(Shell parent, ValueProvider<List<Dependency>> modelVProvider,
+ LinkedList<MavenProject> hierarchy) {
this(parent, modelVProvider, hierarchy, null);
}
- public ManageDependenciesDialog(Shell parent, ValueProvider<List<Dependency>> modelVProvider, LinkedList<MavenProject> hierarchy,
- List<Object> selection) {
+ public ManageDependenciesDialog(Shell parent, ValueProvider<List<Dependency>> modelVProvider,
+ LinkedList<MavenProject> hierarchy, List<Object> selection) {
super(parent, DIALOG_SETTINGS);
setShellStyle(getShellStyle() | SWT.RESIZE);
@@ -208,9 +214,9 @@ public class ManageDependenciesDialog extends AbstractMavenDialog {
//MNGECLIPSE-2675 only show the dependencies not already managed (decide just by absence of the version element
List<Dependency> deps = modelVProvider.getValue();
List<Dependency> nonManaged = new ArrayList<Dependency>();
- if (deps != null) {
- for (Dependency d : deps) {
- if (d.getVersion() != null) {
+ if(deps != null) {
+ for(Dependency d : deps) {
+ if(d.getVersion() != null) {
nonManaged.add(d);
}
}
@@ -226,7 +232,7 @@ public class ManageDependenciesDialog extends AbstractMavenDialog {
if(originalSelection != null && originalSelection.size() > 0) {
dependenciesViewer.setSelection(new StructuredSelection(originalSelection));
}
-
+
return composite;
}
@@ -235,17 +241,17 @@ public class ManageDependenciesDialog extends AbstractMavenDialog {
*/
protected void computeResult() {
MavenProject targetPOM = getTargetPOM();
- IMavenProjectFacade targetFacade = MavenPlugin.getMavenProjectRegistry()
- .getMavenProject(targetPOM.getGroupId(), targetPOM.getArtifactId(), targetPOM.getVersion());
+ IMavenProjectFacade targetFacade = MavenPlugin.getMavenProjectRegistry().getMavenProject(targetPOM.getGroupId(),
+ targetPOM.getArtifactId(), targetPOM.getVersion());
MavenProject currentPOM = projectHierarchy.getFirst();
- IMavenProjectFacade currentFacade = MavenPlugin.getMavenProjectRegistry()
- .getMavenProject(currentPOM.getGroupId(), currentPOM.getArtifactId(), currentPOM.getVersion());
-
- if (targetFacade == null || currentFacade == null) {
- return;
+ IMavenProjectFacade currentFacade = MavenPlugin.getMavenProjectRegistry().getMavenProject(currentPOM.getGroupId(),
+ currentPOM.getArtifactId(), currentPOM.getVersion());
+
+ if(targetFacade == null || currentFacade == null) {
+ return;
}
final boolean same = targetPOM.equals(currentPOM);
-
+
final LinkedList<Dependency> modelDeps = getDependenciesList();
/*
@@ -253,7 +259,6 @@ public class ManageDependenciesDialog extends AbstractMavenDialog {
* 2) Add dependencies to dependencyManagement of targetPOM
*/
-
//First we remove the version from the original dependency
final IFile current = currentFacade.getPom();
final IFile target = targetFacade.getPom();
@@ -261,10 +266,12 @@ public class ManageDependenciesDialog extends AbstractMavenDialog {
@Override
protected IStatus run(IProgressMonitor monitor) {
try {
- if (same) {
- performOnDOMDocument(new OperationTuple(current, new CompoundOperation(createManageOperation(modelDeps), createRemoveVersionOperation(modelDeps))));
+ if(same) {
+ performOnDOMDocument(new OperationTuple(current, new CompoundOperation(createManageOperation(modelDeps),
+ createRemoveVersionOperation(modelDeps))));
} else {
- performOnDOMDocument(new OperationTuple(target, createManageOperation(modelDeps)), new OperationTuple(current, createRemoveVersionOperation(modelDeps)));
+ performOnDOMDocument(new OperationTuple(target, createManageOperation(modelDeps)), new OperationTuple(
+ current, createRemoveVersionOperation(modelDeps)));
}
} catch(Exception e) {
LOG.error("Error updating managed dependencies", e);
@@ -277,54 +284,56 @@ public class ManageDependenciesDialog extends AbstractMavenDialog {
perform.setSystem(true);
perform.schedule();
}
-
+
public static Operation createRemoveVersionOperation(final List<Dependency> modelDeps) {
return new Operation() {
public void process(Document document) {
List<Element> deps = findChilds(findChild(document.getDocumentElement(), DEPENDENCIES), DEPENDENCY);
- for (Element dep : deps) {
+ for(Element dep : deps) {
String grid = getTextValue(findChild(dep, GROUP_ID));
String artid = getTextValue(findChild(dep, ARTIFACT_ID));
for(Dependency modelDep : modelDeps) {
- if (modelDep.getGroupId() != null && modelDep.getGroupId().equals(grid) &&
- modelDep.getArtifactId() != null && modelDep.getArtifactId().equals(artid)) {
+ if(modelDep.getGroupId() != null && modelDep.getGroupId().equals(grid) && modelDep.getArtifactId() != null
+ && modelDep.getArtifactId().equals(artid)) {
removeChild(dep, findChild(dep, VERSION));
}
}
}
}
};
-
+
}
+
public static Operation createManageOperation(final List<Dependency> modelDeps) {
return new Operation() {
public void process(Document document) {
List<Dependency> modelDependencies = new ArrayList<Dependency>(modelDeps);
Element managedDepsElement = getChild(document.getDocumentElement(), DEPENDENCY_MANAGEMENT, DEPENDENCIES);
List<Element> existing = findChilds(managedDepsElement, DEPENDENCY);
- for (Element dep : existing) {
- String artifactId = getTextValue(findChild(dep, ARTIFACT_ID));
- String groupId = getTextValue(findChild(dep, GROUP_ID));
- //cloned list, shall not modify shared resource (used by the remove operation)
- Iterator<Dependency> mdIter = modelDependencies.iterator();
- while(mdIter.hasNext()) {
- //TODO: here we iterate to find existing managed dependencies and decide not to overwrite them.
- // but this could eventually break the current project when the versions are diametrally different
- // we should have shown this information to the user in the UI in the first place (for him to decide what to do)
- Dependency md = mdIter.next();
- if(artifactId.equals(md.getArtifactId()) && groupId.equals(md.getGroupId())) {
- mdIter.remove();
- break;
- }
+ for(Element dep : existing) {
+ String artifactId = getTextValue(findChild(dep, ARTIFACT_ID));
+ String groupId = getTextValue(findChild(dep, GROUP_ID));
+ //cloned list, shall not modify shared resource (used by the remove operation)
+ Iterator<Dependency> mdIter = modelDependencies.iterator();
+ while(mdIter.hasNext()) {
+ //TODO: here we iterate to find existing managed dependencies and decide not to overwrite them.
+ // but this could eventually break the current project when the versions are diametrally different
+ // we should have shown this information to the user in the UI in the first place (for him to decide what to do)
+ Dependency md = mdIter.next();
+ if(artifactId.equals(md.getArtifactId()) && groupId.equals(md.getGroupId())) {
+ mdIter.remove();
+ break;
}
}
- //TODO is the version is defined by property expression, we should make sure the property is defined in the current project
- for (Dependency modelDependency : modelDependencies) {
- PomHelper.createDependency(managedDepsElement, modelDependency.getGroupId(), modelDependency.getArtifactId(), modelDependency.getVersion());
- }
+ }
+ //TODO is the version is defined by property expression, we should make sure the property is defined in the current project
+ for(Dependency modelDependency : modelDependencies) {
+ PomHelper.createDependency(managedDepsElement, modelDependency.getGroupId(), modelDependency.getArtifactId(),
+ modelDependency.getVersion());
+ }
}
};
-
+
}
protected LinkedList<Dependency> getDependenciesList() {
@@ -389,12 +398,13 @@ public class ManageDependenciesDialog extends AbstractMavenDialog {
protected void checkStatus(MavenProject targetProject, LinkedList<Dependency> selectedDependencies) {
if(targetProject == null || selectedDependencies.isEmpty()) {
- updateStatus(new Status(IStatus.ERROR, MavenEditorPlugin.PLUGIN_ID, Messages.ManageDependenciesDialog_emptySelectionError));
+ updateStatus(new Status(IStatus.ERROR, MavenEditorPlugin.PLUGIN_ID,
+ Messages.ManageDependenciesDialog_emptySelectionError));
return;
}
boolean error = false;
- IMavenProjectFacade facade = MavenPlugin.getMavenProjectRegistry()
- .getMavenProject(targetProject.getGroupId(), targetProject.getArtifactId(), targetProject.getVersion());
+ IMavenProjectFacade facade = MavenPlugin.getMavenProjectRegistry().getMavenProject(targetProject.getGroupId(),
+ targetProject.getArtifactId(), targetProject.getVersion());
if(facade == null) {
error = true;
updateStatus(new Status(IStatus.ERROR, MavenEditorPlugin.PLUGIN_ID,
@@ -471,8 +481,8 @@ public class ManageDependenciesDialog extends AbstractMavenDialog {
public Color getForeground(Object element) {
if(element instanceof MavenProject) {
MavenProject project = (MavenProject) element;
- IMavenProjectFacade search = MavenPlugin.getMavenProjectRegistry()
- .getMavenProject(project.getGroupId(), project.getArtifactId(), project.getVersion());
+ IMavenProjectFacade search = MavenPlugin.getMavenProjectRegistry().getMavenProject(project.getGroupId(),
+ project.getArtifactId(), project.getVersion());
if(search == null) {
//This project is not in the workspace so we can't really modify it.
return Display.getDefault().getSystemColor(SWT.COLOR_DARK_GRAY);
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/MavenModuleSelectionDialog.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/MavenModuleSelectionDialog.java
index 9c391597..5bb53c93 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/MavenModuleSelectionDialog.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/MavenModuleSelectionDialog.java
@@ -8,8 +8,6 @@ import org.eclipse.jface.viewers.IColorProvider;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.viewers.TreeViewer;
-import org.eclipse.m2e.core.ui.internal.wizards.MavenProjectSelectionDialog;
-import org.eclipse.m2e.editor.internal.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
@@ -23,6 +21,9 @@ import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.ui.model.WorkbenchLabelProvider;
+import org.eclipse.m2e.core.ui.internal.wizards.MavenProjectSelectionDialog;
+import org.eclipse.m2e.editor.internal.Messages;
+
public class MavenModuleSelectionDialog extends MavenProjectSelectionDialog {
protected Set<Object> knownModules;
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/Messages.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/Messages.java
index 7d29a4f7..c6c3e07b 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/Messages.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/Messages.java
@@ -88,7 +88,7 @@ public class Messages extends NLS {
public static String DependencyTreePage_title;
public static String FormUtils_click_for_details;
-
+
public static String FormUtils_click_for_details2;
public static String FormUtils_error_info;
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/actions/ShowDependencyHierarchyAction.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/actions/ShowDependencyHierarchyAction.java
index 5f679dae..8e9411e9 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/actions/ShowDependencyHierarchyAction.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/internal/actions/ShowDependencyHierarchyAction.java
@@ -18,15 +18,16 @@ import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.actions.ActionDelegate;
+
import org.eclipse.m2e.core.embedder.ArtifactKey;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
import org.eclipse.m2e.core.ui.internal.actions.OpenPomAction;
import org.eclipse.m2e.core.ui.internal.actions.SelectionUtil;
import org.eclipse.m2e.editor.internal.Messages;
import org.eclipse.m2e.editor.pom.MavenPomEditor;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.actions.ActionDelegate;
/**
@@ -50,9 +51,9 @@ public class ShowDependencyHierarchyAction extends ActionDelegate {
if(selection != null) {
Object element = this.selection.getFirstElement();
IMavenProjectFacade projectFacade = SelectionUtil.getType(element, IMavenProjectFacade.class);
- if(projectFacade!=null) {
+ if(projectFacade != null) {
ArtifactKey artifactKey = SelectionUtil.getType(element, ArtifactKey.class);
- if(artifactKey!=null) {
+ if(artifactKey != null) {
showDependencyHierarchy(projectFacade.getArtifactKey(), artifactKey);
}
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependenciesPage.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependenciesPage.java
index 736f4190..e153ab81 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependenciesPage.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependenciesPage.java
@@ -14,9 +14,6 @@ package org.eclipse.m2e.editor.pom;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.action.Separator;
-import org.eclipse.m2e.core.internal.IMavenConstants;
-import org.eclipse.m2e.editor.composites.DependenciesComposite;
-import org.eclipse.m2e.editor.internal.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
@@ -27,20 +24,26 @@ import org.eclipse.ui.forms.IManagedForm;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.ScrolledForm;
+import org.eclipse.m2e.core.internal.IMavenConstants;
+import org.eclipse.m2e.editor.composites.DependenciesComposite;
+import org.eclipse.m2e.editor.internal.Messages;
+
+
/**
* @author Eugene Kuleshov
*/
public class DependenciesPage extends MavenPomEditorPage {
-
+
private DependenciesComposite dependenciesComposite;
+
private SearchControl searchControl;
-
+
public DependenciesPage(MavenPomEditor pomEditor) {
super(pomEditor, IMavenConstants.PLUGIN_ID + ".pom.dependencies", Messages.DependenciesPage_title); //$NON-NLS-1$
}
public void dispose() {
- if(dependenciesComposite!=null) {
+ if(dependenciesComposite != null) {
dependenciesComposite.dispose();
}
super.dispose();
@@ -53,13 +56,13 @@ public class DependenciesPage extends MavenPomEditorPage {
searchControl.getSearchText().setEditable(true);
}
}
-
+
protected void createFormContent(IManagedForm managedForm) {
FormToolkit toolkit = managedForm.getToolkit();
-
+
ScrolledForm form = managedForm.getForm();
form.setText(Messages.DependenciesPage_form);
-
+
form.getBody().setLayout(new GridLayout(1, true));
dependenciesComposite = new DependenciesComposite(form.getBody(), this, SWT.NONE, pomEditor);
@@ -75,13 +78,13 @@ public class DependenciesPage extends MavenPomEditorPage {
});
searchControl = new SearchControl(Messages.DependenciesPage_find, managedForm);
-
+
IToolBarManager pageToolBarManager = form.getForm().getToolBarManager();
pageToolBarManager.add(searchControl);
pageToolBarManager.add(new Separator());
-
+
form.updateToolBar();
-
+
// form.pack();
super.createFormContent(managedForm);
@@ -90,7 +93,7 @@ public class DependenciesPage extends MavenPomEditorPage {
public void loadData() {
dependenciesComposite.loadData();
}
-
+
public void updateView(final Notification notification) {
}
@@ -99,10 +102,9 @@ public class DependenciesPage extends MavenPomEditorPage {
*/
@Override
public void mavenProjectHasChanged() {
- if (dependenciesComposite != null) {
+ if(dependenciesComposite != null) {
dependenciesComposite.mavenProjectHasChanged();
}
}
-
-
+
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependencyTreePage.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependencyTreePage.java
index 523761a9..c6445050 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependencyTreePage.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependencyTreePage.java
@@ -17,9 +17,9 @@ import java.util.Iterator;
import java.util.List;
import java.util.Set;
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
-import org.apache.maven.project.MavenProject;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
@@ -49,17 +49,6 @@ import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerComparator;
import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.m2e.core.MavenPlugin;
-import org.eclipse.m2e.core.embedder.ArtifactKey;
-import org.eclipse.m2e.core.internal.IMavenConstants;
-import org.eclipse.m2e.core.internal.MavenPluginActivator;
-import org.eclipse.m2e.core.project.IMavenProjectChangedListener;
-import org.eclipse.m2e.core.project.IMavenProjectFacade;
-import org.eclipse.m2e.core.project.MavenProjectChangedEvent;
-import org.eclipse.m2e.core.project.IMavenProjectRegistry;
-import org.eclipse.m2e.core.ui.internal.actions.OpenPomAction;
-import org.eclipse.m2e.editor.MavenEditorImages;
-import org.eclipse.m2e.editor.internal.Messages;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.SashForm;
@@ -87,11 +76,26 @@ import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.ScrolledForm;
import org.eclipse.ui.forms.widgets.Section;
import org.eclipse.ui.progress.UIJob;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
+import org.apache.maven.project.MavenProject;
+
import org.sonatype.aether.graph.DependencyNode;
import org.sonatype.aether.graph.DependencyVisitor;
+import org.eclipse.m2e.core.MavenPlugin;
+import org.eclipse.m2e.core.embedder.ArtifactKey;
+import org.eclipse.m2e.core.internal.IMavenConstants;
+import org.eclipse.m2e.core.internal.MavenPluginActivator;
+import org.eclipse.m2e.core.project.IMavenProjectChangedListener;
+import org.eclipse.m2e.core.project.IMavenProjectFacade;
+import org.eclipse.m2e.core.project.IMavenProjectRegistry;
+import org.eclipse.m2e.core.project.MavenProjectChangedEvent;
+import org.eclipse.m2e.core.ui.internal.actions.OpenPomAction;
+import org.eclipse.m2e.editor.MavenEditorImages;
+import org.eclipse.m2e.editor.internal.Messages;
+
/**
* @author Eugene Kuleshov
@@ -176,11 +180,11 @@ public class DependencyTreePage extends FormPage implements IMavenProjectChanged
private void initPopupMenu(Viewer viewer, String id) {
MenuManager menuMgr = new MenuManager("#PopupMenu-" + id); //$NON-NLS-1$
menuMgr.setRemoveAllWhenShown(true);
-
+
Menu menu = menuMgr.createContextMenu(viewer.getControl());
viewer.getControl().setMenu(menu);
-
+
getEditorSite().registerContextMenu(MavenPomEditor.EDITOR_ID + id, menuMgr, viewer, false);
}
@@ -201,13 +205,14 @@ public class DependencyTreePage extends FormPage implements IMavenProjectChanged
return;
}
listViewer.setInput(null);
- FormUtils.setMessage(getManagedForm().getForm(), Messages.DependencyTreePage_message_resolving, IMessageProvider.WARNING);
+ FormUtils.setMessage(getManagedForm().getForm(), Messages.DependencyTreePage_message_resolving,
+ IMessageProvider.WARNING);
dataLoadingJob = new Job(Messages.DependencyTreePage_job_loading) {
protected IStatus run(IProgressMonitor monitor) {
try {
mavenProject = pomEditor.readMavenProject(force, monitor);
- if(mavenProject == null){
+ if(mavenProject == null) {
log.error("Unable to read maven project. Dependencies not updated."); //$NON-NLS-1$
return Status.CANCEL_STATUS;
}
@@ -273,7 +278,7 @@ public class DependencyTreePage extends FormPage implements IMavenProjectChanged
Tree tree = formToolkit.createTree(hierarchySection, SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);
hierarchySection.setClient(tree);
-
+
treeViewer = new TreeViewer(tree);
treeViewer.setData(FormToolkit.KEY_DRAW_BORDER, Boolean.TRUE);
@@ -312,7 +317,8 @@ public class DependencyTreePage extends FormPage implements IMavenProjectChanged
FormToolkit formToolkit) {
ToolBarManager hiearchyToolBarManager = new ToolBarManager(SWT.FLAT);
- hiearchyToolBarManager.add(new Action(Messages.DependencyTreePage_action_collapseAll, MavenEditorImages.COLLAPSE_ALL) {
+ hiearchyToolBarManager.add(new Action(Messages.DependencyTreePage_action_collapseAll,
+ MavenEditorImages.COLLAPSE_ALL) {
public void run() {
treeViewer.collapseAll();
}
@@ -340,16 +346,17 @@ public class DependencyTreePage extends FormPage implements IMavenProjectChanged
}
});
- hiearchyToolBarManager.add(new Action(Messages.DependencyTreePage_action_showGroupId, MavenEditorImages.SHOW_GROUP) {
- public int getStyle() {
- return AS_CHECK_BOX;
- }
+ hiearchyToolBarManager
+ .add(new Action(Messages.DependencyTreePage_action_showGroupId, MavenEditorImages.SHOW_GROUP) {
+ public int getStyle() {
+ return AS_CHECK_BOX;
+ }
- public void run() {
- treeLabelProvider.setShowGroupId(isChecked());
- treeViewer.refresh();
- }
- });
+ public void run() {
+ treeLabelProvider.setShowGroupId(isChecked());
+ treeViewer.refresh();
+ }
+ });
hierarchyFilterAction = new Action(Messages.DependencyTreePage_action_filterSearch, MavenEditorImages.FILTER) {
public int getStyle() {
@@ -501,7 +508,7 @@ public class DependencyTreePage extends FormPage implements IMavenProjectChanged
IToolBarManager toolBarManager = form.getForm().getToolBarManager();
toolBarManager.add(searchControl);
-
+
class ClasspathDropdown extends Action implements IMenuCreator {
private Menu menu;
@@ -510,39 +517,40 @@ public class DependencyTreePage extends FormPage implements IMavenProjectChanged
setImageDescriptor(MavenEditorImages.SCOPE);
setMenuCreator(this);
}
-
+
public Menu getMenu(Menu parent) {
return null;
}
public Menu getMenu(Control parent) {
- if (menu != null) {
+ if(menu != null) {
menu.dispose();
}
-
+
menu = new Menu(parent);
addToMenu(menu, Messages.DependencyTreePage_scope_all, Artifact.SCOPE_TEST, currentClasspath);
- addToMenu(menu, Messages.DependencyTreePage_scope_comp_runtime, Artifact.SCOPE_COMPILE_PLUS_RUNTIME, currentClasspath);
+ addToMenu(menu, Messages.DependencyTreePage_scope_comp_runtime, Artifact.SCOPE_COMPILE_PLUS_RUNTIME,
+ currentClasspath);
addToMenu(menu, Messages.DependencyTreePage_scope_compile, Artifact.SCOPE_COMPILE, currentClasspath);
addToMenu(menu, Messages.DependencyTreePage_scope_runtime, Artifact.SCOPE_RUNTIME, currentClasspath);
return menu;
}
-
+
protected void addToMenu(Menu parent, String text, String scope, String currentScope) {
ClasspathAction action = new ClasspathAction(text, scope);
action.setChecked(scope.equals(currentScope));
new ActionContributionItem(action).fill(parent, -1);
}
-
+
public void dispose() {
- if (menu != null) {
+ if(menu != null) {
menu.dispose();
menu = null;
}
}
}
toolBarManager.add(new ClasspathDropdown());
-
+
toolBarManager.add(new Separator());
toolBarManager.add(new Action(Messages.DependencyTreePage_action_refresh, MavenEditorImages.REFRESH) {
public void run() {
@@ -781,7 +789,7 @@ public class DependencyTreePage extends FormPage implements IMavenProjectChanged
if(!node.getAliases().isEmpty()) {
c = node.getAliases().iterator().next();
}
-
+
StringBuilder label = new StringBuilder(128);
if(showGroupId) {
@@ -993,9 +1001,9 @@ public class DependencyTreePage extends FormPage implements IMavenProjectChanged
}
super.dispose();
}
-
+
public void selectDepedency(ArtifactKey artifactKey) {
- if(dataLoadingJob!=null && dataLoadingJob.getState()==Job.RUNNING) {
+ if(dataLoadingJob != null && dataLoadingJob.getState() == Job.RUNNING) {
try {
dataLoadingJob.join();
} catch(InterruptedException ex) {
@@ -1003,9 +1011,9 @@ public class DependencyTreePage extends FormPage implements IMavenProjectChanged
}
}
- if(mavenProject!=null) {
+ if(mavenProject != null) {
Artifact artifact = getArtifact(artifactKey);
- if(artifact!=null) {
+ if(artifact != null) {
listViewer.getTable().setFocus();
listViewer.setSelection(new StructuredSelection(artifact), true);
}
@@ -1021,7 +1029,6 @@ public class DependencyTreePage extends FormPage implements IMavenProjectChanged
}
return null;
}
-
public class ClasspathAction extends Action {
@@ -1047,11 +1054,11 @@ public class DependencyTreePage extends FormPage implements IMavenProjectChanged
}
public void mavenProjectChanged(MavenProjectChangedEvent[] events, IProgressMonitor monitor) {
- if (getManagedForm() == null || getManagedForm().getForm() == null)
+ if(getManagedForm() == null || getManagedForm().getForm() == null)
return;
-
- for (int i=0; i<events.length; i++) {
- if (events[i].getSource().equals(((MavenPomEditor) getEditor()).getPomFile())) {
+
+ for(int i = 0; i < events.length; i++ ) {
+ if(events[i].getSource().equals(((MavenPomEditor) getEditor()).getPomFile())) {
// file has been changed. need to update graph
new UIJob(Messages.DependencyTreePage_job_reloading) {
public IStatus runInUIThread(IProgressMonitor monitor) {
@@ -1065,12 +1072,13 @@ public class DependencyTreePage extends FormPage implements IMavenProjectChanged
}
public void fileChanged() {
- if (getManagedForm() == null || getManagedForm().getForm() == null)
+ if(getManagedForm() == null || getManagedForm().getForm() == null)
return;
-
+
new UIJob(Messages.DependencyTreePage_job_reloading) {
public IStatus runInUIThread(IProgressMonitor monitor) {
- FormUtils.setMessage(getManagedForm().getForm(), Messages.DependencyTreePage_message_updating, IMessageProvider.WARNING);
+ FormUtils.setMessage(getManagedForm().getForm(), Messages.DependencyTreePage_message_updating,
+ IMessageProvider.WARNING);
return Status.OK_STATUS;
}
}.schedule();
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/ElementValueProvider.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/ElementValueProvider.java
index 930380b4..851ab71d 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/ElementValueProvider.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/ElementValueProvider.java
@@ -1,31 +1,36 @@
+
package org.eclipse.m2e.editor.pom;
-import org.eclipse.m2e.core.ui.internal.editing.PomEdits;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits;
+
+
public final class ElementValueProvider {
private String[] path;
+
private String defaultValue;
public ElementValueProvider(String... path) {
this.path = path;
}
-
+
public void setDefaultValue(String defaultValue) {
this.defaultValue = defaultValue;
}
+
public String getDefaultValue() {
return defaultValue;
}
-
+
public Element find(Document document) {
Element toRet = null;
Element parent = document.getDocumentElement();
- for (String pathEl : path) {
+ for(String pathEl : path) {
toRet = PomEdits.findChild(parent, pathEl);
- if (toRet == null) {
+ if(toRet == null) {
return null;
}
parent = toRet;
@@ -36,9 +41,9 @@ public final class ElementValueProvider {
public Element get(Document document) {
return PomEdits.getChild(document.getDocumentElement(), path);
}
-
+
public String getValue(Document document) {
return PomEdits.getTextValue(find(document));
}
-
+
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/FormUtils.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/FormUtils.java
index b811f621..06ce92ad 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/FormUtils.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/FormUtils.java
@@ -16,17 +16,11 @@ import java.net.URL;
import java.util.Arrays;
import java.util.Properties;
-import org.apache.maven.project.MavenProject;
-import org.codehaus.plexus.interpolation.InterpolationException;
-import org.codehaus.plexus.interpolation.PrefixedObjectValueSource;
-import org.codehaus.plexus.interpolation.PropertiesBasedValueSource;
-import org.codehaus.plexus.interpolation.RegexBasedInterpolator;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.jface.dialogs.IMessageProvider;
import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.m2e.core.ui.internal.dialogs.MavenMessageDialog;
-import org.eclipse.m2e.core.ui.internal.util.Util;
-import org.eclipse.m2e.editor.internal.Messages;
-import org.eclipse.m2e.editor.xml.internal.FormHoverProvider;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CCombo;
@@ -50,8 +44,18 @@ import org.eclipse.ui.forms.widgets.Form;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Hyperlink;
import org.eclipse.ui.forms.widgets.ScrolledForm;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
+import org.codehaus.plexus.interpolation.InterpolationException;
+import org.codehaus.plexus.interpolation.PrefixedObjectValueSource;
+import org.codehaus.plexus.interpolation.PropertiesBasedValueSource;
+import org.codehaus.plexus.interpolation.RegexBasedInterpolator;
+
+import org.apache.maven.project.MavenProject;
+
+import org.eclipse.m2e.core.ui.internal.dialogs.MavenMessageDialog;
+import org.eclipse.m2e.core.ui.internal.util.Util;
+import org.eclipse.m2e.editor.internal.Messages;
+import org.eclipse.m2e.editor.xml.internal.FormHoverProvider;
/**
@@ -59,6 +63,7 @@ import org.slf4j.LoggerFactory;
*/
public abstract class FormUtils {
private static final Logger log = LoggerFactory.getLogger(FormUtils.class);
+
public static final int MAX_MSG_LENGTH = 80;
/**
@@ -105,16 +110,15 @@ public abstract class FormUtils {
form.getForm().setMessage(message, severity);
addFormTitleListeners(createDefaultPerformer(form, message, ttip, severity), form);
}
-
+
/**
- *
* @param form
* @param message
* @param severity
* @param runnable something that will be "run" once the user clicks the message area.
*/
- static void setMessageWithPerformer(ScrolledForm form, String message,
- int severity, FormHoverProvider.Execute runnable) {
+ static void setMessageWithPerformer(ScrolledForm form, String message, int severity,
+ FormHoverProvider.Execute runnable) {
form.getForm().setMessage(message, severity);
addFormTitleListeners(runnable, form);
}
@@ -195,13 +199,14 @@ public abstract class FormUtils {
}
/**
- * be very careful when using this method, see MNGECLIPSE-2674
- * ideally this would be replaced by a distributed system where each component reacts to the
- * readonly or not-readonly event and with the knowledge of the inner state decides what gets enabled/disabled
- *
+ * be very careful when using this method, see MNGECLIPSE-2674 ideally this would be replaced by a distributed system
+ * where each component reacts to the readonly or not-readonly event and with the knowledge of the inner state decides
+ * what gets enabled/disabled
+ *
* @param composite
* @param readonly
- * @deprecated so that you think hard before using it. Using it for disabling all controls is probably fine. Enabling all is NOT.
+ * @deprecated so that you think hard before using it. Using it for disabling all controls is probably fine. Enabling
+ * all is NOT.
*/
public static void setReadonly(Composite composite, boolean readonly) {
if(composite != null) {
@@ -234,17 +239,18 @@ public abstract class FormUtils {
}
}
}
-
- private static FormHoverProvider.Execute createDefaultPerformer(final ScrolledForm form, final String message, final String ttip,
- final int severity) {
+
+ private static FormHoverProvider.Execute createDefaultPerformer(final ScrolledForm form, final String message,
+ final String ttip, final int severity) {
if(ttip != null && ttip.length() > 0 && message != null) {
- return new FormHoverProvider.Execute() {
+ return new FormHoverProvider.Execute() {
- public void run(Point point) {
- int dialogSev = IMessageProvider.ERROR == severity ? MessageDialog.ERROR : MessageDialog.WARNING;
- MavenMessageDialog.openWithSeverity(form.getShell(), Messages.FormUtils_error_info, Messages.FormUtils_pom_error, ttip, dialogSev);
- }
- };
+ public void run(Point point) {
+ int dialogSev = IMessageProvider.ERROR == severity ? MessageDialog.ERROR : MessageDialog.WARNING;
+ MavenMessageDialog.openWithSeverity(form.getShell(), Messages.FormUtils_error_info,
+ Messages.FormUtils_pom_error, ttip, dialogSev);
+ }
+ };
}
return null;
}
@@ -295,16 +301,17 @@ public abstract class FormUtils {
}
}
}
-
+
/**
* copy pas
+ *
* @param project
* @param text
* @return
*/
//TODO copy pasted from PomTemplateContext
static String simpleInterpolate(MavenProject project, String text) {
- if (text != null && text.contains("${")) { //$NON-NLS-1$
+ if(text != null && text.contains("${")) { //$NON-NLS-1$
//when expression is in the version but no project instance around
// just give up.
if(project == null) {
@@ -312,17 +319,18 @@ public abstract class FormUtils {
}
Properties props = project.getProperties();
RegexBasedInterpolator inter = new RegexBasedInterpolator();
- if (props != null) {
+ if(props != null) {
inter.addValueSource(new PropertiesBasedValueSource(props));
}
- inter.addValueSource(new PrefixedObjectValueSource(Arrays.asList( new String[]{ "pom.", "project." } ), project.getModel(), false)); //$NON-NLS-1$ //$NON-NLS-2$
+ inter.addValueSource(new PrefixedObjectValueSource(
+ Arrays.asList(new String[] {"pom.", "project."}), project.getModel(), false)); //$NON-NLS-1$ //$NON-NLS-2$
try {
text = inter.interpolate(text);
} catch(InterpolationException e) {
text = null;
}
- }
+ }
return text;
- }
+ }
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/Matcher.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/Matcher.java
index d321de46..baf634e0 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/Matcher.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/Matcher.java
@@ -19,5 +19,5 @@ public abstract class Matcher {
public abstract boolean isMatchingArtifact(String groupId, String artifactId);
public abstract boolean isEmpty();
-
+
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java
index 22480857..f3481c6f 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java
@@ -20,8 +20,9 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import org.apache.maven.model.io.xpp3.MavenXpp3Writer;
-import org.apache.maven.project.MavenProject;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IResource;
@@ -54,19 +55,6 @@ import org.eclipse.jface.text.TextEvent;
import org.eclipse.jface.text.source.IAnnotationModel;
import org.eclipse.jface.text.source.IOverviewRuler;
import org.eclipse.jface.text.source.IVerticalRuler;
-import org.eclipse.m2e.core.MavenPlugin;
-import org.eclipse.m2e.core.embedder.ArtifactKey;
-import org.eclipse.m2e.core.internal.IMavenConstants;
-import org.eclipse.m2e.core.internal.MavenPluginActivator;
-import org.eclipse.m2e.core.internal.preferences.MavenPreferenceConstants;
-import org.eclipse.m2e.core.project.IMavenProjectChangedListener;
-import org.eclipse.m2e.core.project.IMavenProjectFacade;
-import org.eclipse.m2e.core.project.MavenProjectChangedEvent;
-import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
-import org.eclipse.m2e.core.ui.internal.actions.OpenPomAction.MavenStorageEditorInput;
-import org.eclipse.m2e.core.ui.internal.actions.SelectionUtil;
-import org.eclipse.m2e.editor.MavenEditorPlugin;
-import org.eclipse.m2e.editor.internal.Messages;
import org.eclipse.search.ui.text.ISearchEditorAccess;
import org.eclipse.search.ui.text.Match;
import org.eclipse.swt.widgets.Composite;
@@ -101,10 +89,26 @@ import org.eclipse.wst.sse.ui.internal.StructuredTextViewer;
import org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSEAdapter;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
+import org.apache.maven.model.io.xpp3.MavenXpp3Writer;
+import org.apache.maven.project.MavenProject;
+
import org.sonatype.aether.graph.DependencyNode;
+import org.eclipse.m2e.core.MavenPlugin;
+import org.eclipse.m2e.core.embedder.ArtifactKey;
+import org.eclipse.m2e.core.internal.IMavenConstants;
+import org.eclipse.m2e.core.internal.MavenPluginActivator;
+import org.eclipse.m2e.core.internal.preferences.MavenPreferenceConstants;
+import org.eclipse.m2e.core.project.IMavenProjectChangedListener;
+import org.eclipse.m2e.core.project.IMavenProjectFacade;
+import org.eclipse.m2e.core.project.MavenProjectChangedEvent;
+import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
+import org.eclipse.m2e.core.ui.internal.actions.OpenPomAction.MavenStorageEditorInput;
+import org.eclipse.m2e.core.ui.internal.actions.SelectionUtil;
+import org.eclipse.m2e.editor.MavenEditorPlugin;
+import org.eclipse.m2e.editor.internal.Messages;
+
/**
* Maven POM editor
@@ -125,9 +129,9 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
private static final String EXTENSION_FACTORIES = MavenEditorPlugin.PLUGIN_ID + ".pageFactories"; //$NON-NLS-1$
private static final String ELEMENT_PAGE = "factory"; //$NON-NLS-1$
-
+
private static final String EFFECTIVE_POM = Messages.MavenPomEditor_effective_pom;
-
+
OverviewPage overviewPage;
DependenciesPage dependenciesPage;
@@ -135,9 +139,9 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
DependencyTreePage dependencyTreePage;
StructuredSourceTextEditor sourcePage;
-
+
StructuredTextEditor effectivePomSourcePage;
-
+
private List<MavenPomEditorPage> mavenpomEditorPages = new ArrayList<MavenPomEditorPage>();
private Map<String, org.sonatype.aether.graph.DependencyNode> rootNodes = new HashMap<String, org.sonatype.aether.graph.DependencyNode>();
@@ -165,7 +169,7 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
private boolean resourceChangeEventSkip = false;
private MavenStorageEditorInput effectivePomEditorInput;
-
+
private boolean disposed = false;
public MavenPomEditor() {
@@ -174,16 +178,19 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
/**
* the pom document being edited..
+ *
* @return
*/
public IDocument getDocument() {
- if (structuredModel == null) return null;
+ if(structuredModel == null)
+ return null;
return structuredModel.getStructuredDocument();
}
-
+
public IStructuredModel getModel() {
return structuredModel;
}
+
// IResourceChangeListener
/**
@@ -217,8 +224,9 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
}
return true;
}
- };
-
+ }
+ ;
+
try {
RemovedResourceDeltaVisitor visitor = new RemovedResourceDeltaVisitor();
event.getDelta().accept(visitor);
@@ -238,39 +246,37 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
// suppress a prompt to reload the pom if modifications were caused by workspace actions
//XXX: mkleint: why is this called outside of the ChangedResourceDeltaVisitor?
- if (sourcePage != null) {
+ if(sourcePage != null) {
sourcePage.updateModificationStamp();
}
class ChangedResourceDeltaVisitor implements IResourceDeltaVisitor {
public boolean visit(IResourceDelta delta) throws CoreException {
- if(delta.getResource().equals(pomFile)
- && (delta.getKind() & IResourceDelta.CHANGED) != 0 && delta.getResource().exists()) {
+ if(delta.getResource().equals(pomFile) && (delta.getKind() & IResourceDelta.CHANGED) != 0
+ && delta.getResource().exists()) {
int flags = delta.getFlags();
- if ((flags & IResourceDelta.CONTENT) != 0 || (flags & IResourceDelta.REPLACED) != 0) {
+ if((flags & IResourceDelta.CONTENT) != 0 || (flags & IResourceDelta.REPLACED) != 0) {
handleContentChanged();
return false;
}
- if ((flags & IResourceDelta.MARKERS) != 0) {
+ if((flags & IResourceDelta.MARKERS) != 0) {
handleMarkersChanged();
return false;
}
}
return true;
}
-
+
/**
- * this method never got called with the current editor changes/saves the file.
- * the doSave() method removed/added the resource listener when saving
- * it did get called however when external editor (txt/xml) saved the file..
- *
- * I've changed that behaviour to only avoid the reload() call when current editor saves the file.
- * we still want to attempt to reload the mavenproject instance.. please read <code>mavenProjectChanged</code> javadoc
- * for details on when this works and when not.
+ * this method never got called with the current editor changes/saves the file. the doSave() method removed/added
+ * the resource listener when saving it did get called however when external editor (txt/xml) saved the file..
+ * I've changed that behaviour to only avoid the reload() call when current editor saves the file. we still want
+ * to attempt to reload the mavenproject instance.. please read <code>mavenProjectChanged</code> javadoc for
+ * details on when this works and when not.
*/
private void handleContentChanged() {
reloadMavenProjectCache();
- if (!resourceChangeEventSkip) {
+ if(!resourceChangeEventSkip) {
Display.getDefault().asyncExec(new Runnable() {
public void run() {
/* MNGECLIPSE-1789: commented this out since forced model reload caused the XML editor to go crazy;
@@ -287,29 +293,32 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
}
});
}
-
+
}
-
+
private void handleMarkersChanged() {
try {
- IMarker[] markers = pomFile.findMarkers(IMavenConstants.MARKER_ID, true, IResource.DEPTH_ZERO);
- final String msg = markers != null && markers.length > 0 //
- ? markers[0].getAttribute(IMarker.MESSAGE, "Unknown error") : null;
- final int severity = markers != null && markers.length > 0 ? (markers[0].getAttribute(IMarker.SEVERITY, IMarker.SEVERITY_ERROR) == IMarker.SEVERITY_WARNING ? IMessageProvider.WARNING : IMessageProvider.ERROR) : IMessageProvider.NONE;
-
- Display.getDefault().asyncExec(new Runnable() {
- public void run() {
- for(MavenPomEditorPage page : getMavenPomEditorPages()) {
- page.setErrorMessage(msg, msg == null ? IMessageProvider.NONE : severity);
+ IMarker[] markers = pomFile.findMarkers(IMavenConstants.MARKER_ID, true, IResource.DEPTH_ZERO);
+ final String msg = markers != null && markers.length > 0 //
+ ? markers[0].getAttribute(IMarker.MESSAGE, "Unknown error") : null;
+ final int severity = markers != null && markers.length > 0 ? (markers[0].getAttribute(IMarker.SEVERITY,
+ IMarker.SEVERITY_ERROR) == IMarker.SEVERITY_WARNING ? IMessageProvider.WARNING : IMessageProvider.ERROR)
+ : IMessageProvider.NONE;
+
+ Display.getDefault().asyncExec(new Runnable() {
+ public void run() {
+ for(MavenPomEditorPage page : getMavenPomEditorPages()) {
+ page.setErrorMessage(msg, msg == null ? IMessageProvider.NONE : severity);
+ }
}
- }
- });
- } catch (CoreException ex ) {
+ });
+ } catch(CoreException ex) {
log.error("Error updating pom file markers.", ex); //$NON-NLS-1$
}
}
- };
-
+ }
+ ;
+
try {
ChangedResourceDeltaVisitor visitor = new ChangedResourceDeltaVisitor();
event.getDelta().accept(visitor);
@@ -324,27 +333,27 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
//this code assumes the MavenPomEditorPages are the first ones in the list..
//currenty the case, effective+xml editor are at the end..
//if this constraint changes, we need to find the active page in the super.pages list first and check for instanceof
- if (active > -1 && active < getMavenPomEditorPages().size()) {
+ if(active > -1 && active < getMavenPomEditorPages().size()) {
MavenPomEditorPage page = getMavenPomEditorPages().get(active);
page.loadData();
}
- if(isEffectiveActive()){
+ if(isEffectiveActive()) {
loadEffectivePOM();
}
flushCommandStack();
}
- private boolean isEffectiveActive(){
+ private boolean isEffectiveActive() {
int active = getActivePage();
String name = getPageText(active);
return EFFECTIVE_POM.equals(name);
}
-
+
void flushCommandStack() {
dirty = false;
- if (sseCommandStack != null)
+ if(sseCommandStack != null)
sseCommandStack.saveIsDone();
- if (getContainer() != null && !getContainer().isDisposed())
+ if(getContainer() != null && !getContainer().isDisposed())
getContainer().getDisplay().asyncExec(new Runnable() {
public void run() {
editorDirtyStateChanged();
@@ -353,7 +362,7 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
}
protected void addPages() {
-
+
overviewPage = new OverviewPage(this);
addPomPage(overviewPage);
@@ -364,30 +373,30 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
addPomPage(dependencyTreePage);
addSourcePage();
-
+
addEditorPageExtensions();
selectActivePage();
}
- protected void selectActivePage(){
+ protected void selectActivePage() {
boolean showXML = M2EUIPluginActivator.getDefault().getPreferenceStore()
.getBoolean(MavenPreferenceConstants.P_DEFAULT_POM_EDITOR_PAGE);
- if(showXML){
+ if(showXML) {
setActivePage(null);
- }
+ }
}
-
+
protected void pageChange(int newPageIndex) {
String name = getPageText(newPageIndex);
- if(EFFECTIVE_POM.equals(name)){
+ if(EFFECTIVE_POM.equals(name)) {
loadEffectivePOM();
}
//The editor occassionally doesn't get
//closed if the project gets deleted. In this case, the editor
//stays open and very bad things happen if you select it
- try{
+ try {
super.pageChange(newPageIndex);
- }catch(NullPointerException e){
+ } catch(NullPointerException e) {
MavenEditorPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, MavenEditorPlugin.PLUGIN_ID, "", e)); //$NON-NLS-1$
this.close(false);
}
@@ -419,65 +428,66 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
}
}
}
-
/**
* Load the effective POM in a job and then update the effective pom page when its done
+ *
* @author dyocum
- *
*/
- class LoadEffectivePomJob extends Job{
+ class LoadEffectivePomJob extends Job {
public LoadEffectivePomJob(String name) {
super(name);
}
-
+
private void showEffectivePomError(final String name) {
- if (disposed) {
+ if(disposed) {
return;
}
String error = Messages.MavenPomEditor_error_loading_effective_pom;
IDocument doc = effectivePomSourcePage.getDocumentProvider().getDocument(getEffectivePomEditorInput());
doc.set(error);
}
+
@Override
protected IStatus run(IProgressMonitor monitor) {
- try{
+ try {
StringWriter sw = new StringWriter();
final String name = getPartName() + Messages.MavenPomEditor_effective;
MavenProject mavenProject = SelectionUtil.getMavenProject(getEditorInput(), monitor);
- if(mavenProject == null){
+ if(mavenProject == null) {
showEffectivePomError(name);
return Status.CANCEL_STATUS;
}
new MavenXpp3Writer().write(sw, mavenProject.getModel());
final String content = sw.toString();
- if (disposed) {
+ if(disposed) {
return Status.OK_STATUS;
}
IDocument doc = effectivePomSourcePage.getDocumentProvider().getDocument(getEffectivePomEditorInput());
doc.set(content);
return Status.OK_STATUS;
- } catch(CoreException ce){
- return new Status(IStatus.ERROR, MavenEditorPlugin.PLUGIN_ID, -1, Messages.MavenPomEditor_error_failed_effective, ce);
- } catch(IOException ie){
- return new Status(IStatus.ERROR, MavenEditorPlugin.PLUGIN_ID, -1, Messages.MavenPomEditor_error_failed_effective, ie);
- }
+ } catch(CoreException ce) {
+ return new Status(IStatus.ERROR, MavenEditorPlugin.PLUGIN_ID, -1,
+ Messages.MavenPomEditor_error_failed_effective, ce);
+ } catch(IOException ie) {
+ return new Status(IStatus.ERROR, MavenEditorPlugin.PLUGIN_ID, -1,
+ Messages.MavenPomEditor_error_failed_effective, ie);
+ }
}
}
-
+
/**
- * Load the effective POM. Should only happen when tab is brought to front or tab
- * is in front when a reload happens.
+ * Load the effective POM. Should only happen when tab is brought to front or tab is in front when a reload happens.
*/
- private void loadEffectivePOM(){
- if (disposed) {
+ private void loadEffectivePOM() {
+ if(disposed) {
return;
}
String content = Messages.MavenPomEditor_loading;
IDocument doc = effectivePomSourcePage.getDocumentProvider().getDocument(getEffectivePomEditorInput());
doc.set(content);
-
+
//then start the load
LoadEffectivePomJob job = new LoadEffectivePomJob(Messages.MavenPomEditor_loading);
job.schedule();
@@ -499,9 +509,9 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
}
return effectivePomEditorInput;
}
-
+
protected class MavenStructuredTextViewer extends StructuredTextViewer implements IAdaptable {
-
+
public MavenStructuredTextViewer(Composite parent, IVerticalRuler verticalRuler, IOverviewRuler overviewRuler,
boolean showAnnotationsOverview, int styles) {
super(parent, verticalRuler, overviewRuler, showAnnotationsOverview, styles);
@@ -512,64 +522,63 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
}
public Object getAdapter(Class adapter) {
- if (MavenProject.class.equals(adapter)) {
+ if(MavenProject.class.equals(adapter)) {
return getMavenProject();
}
return null;
}
-
-
+
}
protected class StructuredSourceTextEditor extends StructuredTextEditor {
private long fModificationStamp = -1;
+
private MavenProject mvnprj;
protected void updateModificationStamp() {
- IDocumentProvider p= getDocumentProvider();
- if (p == null)
+ IDocumentProvider p = getDocumentProvider();
+ if(p == null)
return;
- if(p instanceof IDocumentProviderExtension3) {
- fModificationStamp= p.getModificationStamp(getEditorInput());
+ if(p instanceof IDocumentProviderExtension3) {
+ fModificationStamp = p.getModificationStamp(getEditorInput());
}
}
-
+
/**
- * we override the creation of StructuredTextViewer to have our own subclass created
- * that drags along an instance of resolved MavenProject via implementing IMavenProjectCache
- *
+ * we override the creation of StructuredTextViewer to have our own subclass created that drags along an instance of
+ * resolved MavenProject via implementing IMavenProjectCache
*/
protected StructuredTextViewer createStructedTextViewer(Composite parent, IVerticalRuler verticalRuler, int styles) {
return new MavenStructuredTextViewer(parent, verticalRuler, getOverviewRuler(), isOverviewRulerVisible(), styles);
}
-
+
protected void sanityCheckState(IEditorInput input) {
- IDocumentProvider p= getDocumentProvider();
- if (p == null)
+ IDocumentProvider p = getDocumentProvider();
+ if(p == null)
return;
- if (p instanceof IDocumentProviderExtension3) {
+ if(p instanceof IDocumentProviderExtension3) {
- IDocumentProviderExtension3 p3= (IDocumentProviderExtension3) p;
+ IDocumentProviderExtension3 p3 = (IDocumentProviderExtension3) p;
- long stamp= p.getModificationStamp(input);
- if (stamp != fModificationStamp) {
- fModificationStamp= stamp;
- if (!p3.isSynchronized(input))
+ long stamp = p.getModificationStamp(input);
+ if(stamp != fModificationStamp) {
+ fModificationStamp = stamp;
+ if(!p3.isSynchronized(input))
handleEditorInputChanged();
}
- } else {
+ } else {
- if (fModificationStamp == -1)
- fModificationStamp= p.getSynchronizationStamp(input);
+ if(fModificationStamp == -1)
+ fModificationStamp = p.getSynchronizationStamp(input);
- long stamp= p.getModificationStamp(input);
- if (stamp != fModificationStamp) {
- fModificationStamp= stamp;
- if (stamp != p.getSynchronizationStamp(input))
+ long stamp = p.getModificationStamp(input);
+ if(stamp != fModificationStamp) {
+ fModificationStamp = stamp;
+ if(stamp != p.getSynchronizationStamp(input))
handleEditorInputChanged();
}
}
@@ -577,6 +586,7 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
updateState(getEditorInput());
updateStatusField(ITextEditorActionConstants.STATUS_CATEGORY_ELEMENT_STATE);
}
+
public void doSave(IProgressMonitor monitor) {
// always save text editor
// ResourcesPlugin.getWorkspace().removeResourceChangeListener(MavenPomEditor.this);
@@ -589,15 +599,16 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
}
private boolean oldDirty;
+
public boolean isDirty() {
- if (oldDirty != dirty) {
- oldDirty = dirty;
+ if(oldDirty != dirty) {
+ oldDirty = dirty;
updatePropertyDependentActions();
}
return dirty;
}
}
-
+
private void addSourcePage() {
sourcePage = new StructuredSourceTextEditor();
sourcePage.setEditorPart(this);
@@ -607,22 +618,21 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
try {
int dex = addPage(effectivePomSourcePage, getEffectivePomEditorInput());
setPageText(dex, EFFECTIVE_POM);
-
+
sourcePageIndex = addPage(sourcePage, getEditorInput());
setPageText(sourcePageIndex, POM_XML);
sourcePage.update();
-
IDocument doc = sourcePage.getDocumentProvider().getDocument(getEditorInput());
-
- doc.addDocumentListener(new IDocumentListener(){
- public void documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent event) {
+ doc.addDocumentListener(new IDocumentListener() {
+
+ public void documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent event) {
}
public void documentChanged(org.eclipse.jface.text.DocumentEvent event) {
//recheck the read-only status if the document changes (will happen when xml page is edited)
- if(MavenPomEditor.this.checkedWritableStatus && MavenPomEditor.this.readOnly){
+ if(MavenPomEditor.this.checkedWritableStatus && MavenPomEditor.this.readOnly) {
MavenPomEditor.this.checkedWritableStatus = false;
}
}
@@ -635,13 +645,13 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
commandStackListener = new CommandStackListener() {
public void commandStackChanged(EventObject event) {
- boolean oldDirty = dirty;
+ boolean oldDirty = dirty;
dirty = sseCommandStack.isSaveNeeded();
- if (dirty != oldDirty)
+ if(dirty != oldDirty)
MavenPomEditor.this.editorDirtyStateChanged();
}
};
-
+
IStructuredTextUndoManager undoManager = structuredModel.getUndoManager();
//mkleint: it appears to me that the undomanager will only only be null
//for documents released from read/edit (which we do in dispose())
@@ -655,7 +665,7 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
flushCommandStack();
// TODO activate xml source page if model is empty or have errors
-
+
} catch(PartInitException ex) {
log.error(ex.getMessage(), ex);
}
@@ -664,13 +674,13 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
public boolean isReadOnly() {
return !(getEditorInput() instanceof IFileEditorInput);
}
-
+
private int addPomPage(IFormPage page) {
try {
if(page instanceof MavenPomEditorPage) {
mavenpomEditorPages.add((MavenPomEditorPage) page);
}
- if (page instanceof IPomFileChangedListener) {
+ if(page instanceof IPomFileChangedListener) {
fileChangeListeners.add((IPomFileChangedListener) page);
}
return addPage(page);
@@ -680,14 +690,13 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
}
}
-
public synchronized org.sonatype.aether.graph.DependencyNode readDependencyTree(boolean force, String classpath,
IProgressMonitor monitor) throws CoreException {
if(force || !rootNodes.containsKey(classpath)) {
monitor.setTaskName(Messages.MavenPomEditor_task_reading);
//mkleint: I'm wondering if the force parameter on dependencyTree is also applicable to the pom project method.
MavenProject mavenProject = readMavenProject(force, monitor);
- if(mavenProject == null){
+ if(mavenProject == null) {
log.error("Unable to read maven project. Dependencies not updated."); //$NON-NLS-1$
return null;
}
@@ -700,7 +709,7 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
DependencyNode root = MavenPlugin.getMavenModelManager().readDependencyTree(facade, mavenProject, classpath,
monitor);
root.setData("LEVEL", "ROOT");
- for (DependencyNode nd : root.getChildren()) {
+ for(DependencyNode nd : root.getChildren()) {
nd.setData("LEVEL", "DIRECT");
}
rootNodes.put(classpath, root);
@@ -708,10 +717,11 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
return rootNodes.get(classpath);
}
-
+
/**
- * this method is safer than readMavenProject for instances that shall return fast and don't mind
- * not having the MavenProject instance around.
+ * this method is safer than readMavenProject for instances that shall return fast and don't mind not having the
+ * MavenProject instance around.
+ *
* @return the cached MavenProject instance or null if not loaded.
*/
public MavenProject getMavenProject() {
@@ -719,10 +729,11 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
}
/**
- * either returns the cached MavenProject instance or reads it, please note that if you want your method to always return fast
- * getMavenProject() is preferable
- * please see <code>mavenProjectChanged()</code> for explanation why even force==true might not give you the latest uptodate
- * MavenProject instance matching the current saved file in some circumstances.
+ * either returns the cached MavenProject instance or reads it, please note that if you want your method to always
+ * return fast getMavenProject() is preferable please see <code>mavenProjectChanged()</code> for explanation why even
+ * force==true might not give you the latest uptodate MavenProject instance matching the current saved file in some
+ * circumstances.
+ *
* @param force
* @param monitor
* @return
@@ -730,18 +741,18 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
*/
public MavenProject readMavenProject(boolean force, IProgressMonitor monitor) throws CoreException {
if(force || mavenProject == null) {
-
+
IEditorInput input = getEditorInput();
-
+
if(input instanceof IFileEditorInput) {
IFileEditorInput fileInput = (IFileEditorInput) input;
pomFile = fileInput.getFile();
pomFile.refreshLocal(1, null);
}
-
+
//never overwrite by null, rather keep old value than null..
MavenProject prj = SelectionUtil.getMavenProject(input, monitor);
- if (prj != null) {
+ if(prj != null) {
mavenProject = prj;
}
}
@@ -803,7 +814,7 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
if(editorInput instanceof IFileEditorInput) {
ResourcesPlugin.getWorkspace().addResourceChangeListener(this);
}
-
+
reloadMavenProjectCache();
MavenPluginActivator.getDefault().getMavenProjectManager().addMavenProjectChangedListener(this);
@@ -863,16 +874,18 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
}
/**
- * returns only the pages that implement MavenPomEditorPage
- * will not return the effective pom and xml editor page for example..
+ * returns only the pages that implement MavenPomEditorPage will not return the effective pom and xml editor page for
+ * example..
+ *
* @return
*/
public List<MavenPomEditorPage> getMavenPomEditorPages() {
return mavenpomEditorPages;
}
-
+
/**
* use the <code>getMavenPomEditorPages()</code> method instead
+ *
* @return
*/
@Deprecated
@@ -884,25 +897,27 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
setActivePage(dependencyTreePage.getId());
dependencyTreePage.selectDepedency(artifactKey);
}
-
+
private boolean checkedWritableStatus;
+
private boolean readOnly;
- /** read/write check for read only pom files -- called when the file is opened
- * and will validateEdit -- so files will be checked out of src control, etc
- * Note: this is actually done separately from isReadOnly() because there are 2 notions of 'read only'
- * for a POM. The first is for a file downloaded from a repo, like maven central. That one
- * is never editable. The second is for a local file that is read only because its been marked
- * that way by an SCM, etc. This method will do a one-time check/validateEdit for the life of the POM
- * editor.
- **/
- protected boolean checkReadOnly(){
- if(checkedWritableStatus){
+
+ /**
+ * read/write check for read only pom files -- called when the file is opened and will validateEdit -- so files will
+ * be checked out of src control, etc Note: this is actually done separately from isReadOnly() because there are 2
+ * notions of 'read only' for a POM. The first is for a file downloaded from a repo, like maven central. That one is
+ * never editable. The second is for a local file that is read only because its been marked that way by an SCM, etc.
+ * This method will do a one-time check/validateEdit for the life of the POM editor.
+ **/
+ protected boolean checkReadOnly() {
+ if(checkedWritableStatus) {
return readOnly;
}
checkedWritableStatus = true;
- if(getPomFile() != null && getPomFile().isReadOnly()){
- IStatus validateEdit = ResourcesPlugin.getWorkspace().validateEdit(new IFile[]{getPomFile()}, getEditorSite().getShell());
- if(!validateEdit.isOK()){
+ if(getPomFile() != null && getPomFile().isReadOnly()) {
+ IStatus validateEdit = ResourcesPlugin.getWorkspace().validateEdit(new IFile[] {getPomFile()},
+ getEditorSite().getShell());
+ if(!validateEdit.isOK()) {
readOnly = true;
} else {
readOnly = isReadOnly();
@@ -912,7 +927,7 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
}
return readOnly;
}
-
+
/**
* Adapted from <code>org.eclipse.ui.texteditor.AbstractTextEditor.ActivationListener</code>
*/
@@ -922,7 +937,6 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
private boolean isHandlingActivation = false;
-
public MavenPomActivationListener(IPartService partService) {
partService.addPartListener(this);
PlatformUI.getWorkbench().addWindowListener(this);
@@ -933,7 +947,6 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
PlatformUI.getWorkbench().removeWindowListener(this);
}
-
// IPartListener
public void partActivated(IWorkbenchPart part) {
@@ -993,13 +1006,13 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
isHandlingActivation = true;
final boolean[] changed = new boolean[] {false};
try {
-
+
ITextListener listener = new ITextListener() {
public void textChanged(TextEvent event) {
changed[0] = true;
}
};
- if (sourcePage != null && sourcePage.getTextViewer() != null) {
+ if(sourcePage != null && sourcePage.getTextViewer() != null) {
sourcePage.getTextViewer().addTextListener(listener);
try {
sourcePage.safelySanityCheckState(getEditorInput());
@@ -1008,15 +1021,15 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
}
sourcePage.update();
}
-
+
if(changed[0]) {
try {
pomFile.refreshLocal(IResource.DEPTH_INFINITE, null);
} catch(CoreException e) {
log.error(e.getMessage(), e);
- }
+ }
}
-
+
} finally {
isHandlingActivation = false;
@@ -1042,7 +1055,7 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
public Object getAdapter(Class adapter) {
Object result = super.getAdapter(adapter);
if(result != null && Display.getCurrent() == null) {
- return result;
+ return result;
}
return sourcePage.getAdapter(adapter);
}
@@ -1073,41 +1086,37 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
}
/**
- * you may be asking why we have this method here.. sit back, relax and let me tell you the epic story of it..
- *
- * 1. we attempt to keep an instance of MavenProject instance around - to make queries from xml editor and elsewhere easy and *fast*.
- * 2. in init() we read it and store
- * 3. however how do we update the value when stuff changes?
- * 4. only IFileEditorInputs are really update-able, everything else is a read-only editor.
- * 5. so how do we listen on the resource being changed and update the value accordingly?
- * it appears that Selectionutil.getMavenProject(EditorInput) relies on MavenProjectManager.create() which
- * appears to have rather tricky behaviour. It either gives you the cached instance or if not around creates one on the fly.
- * 5a. The fly one is however not added to the cache. As a consequence the fly ones are always recreated each time you ask.
- * 5b. The cached ones react quite in opposite way, no matter when you ask (even if you know the file has changed) you always get the cached value until the registry gets updated.
- * 6. so to keep our MavenProject instance uptodate for both 5a and 5b cases, we need to:
- * 6a. listen on workspace resources and try loading the MavenProject. for 5a it will load the new instance but for 5b it will keep returning the old value.
- * 6b. so we also listen on MavenProjectChangedEvents and for 5b cases get the correct, fresh new MavenProject instance here.
- *
- * 7. please note that 6a comes before 6b and is done for both 5a and 5b as it's hard to tell those IMavenprojectfacade instances apart..
- *
- * Your storyteller for tonite was mkleint
+ * you may be asking why we have this method here.. sit back, relax and let me tell you the epic story of it.. 1. we
+ * attempt to keep an instance of MavenProject instance around - to make queries from xml editor and elsewhere easy
+ * and *fast*. 2. in init() we read it and store 3. however how do we update the value when stuff changes? 4. only
+ * IFileEditorInputs are really update-able, everything else is a read-only editor. 5. so how do we listen on the
+ * resource being changed and update the value accordingly? it appears that Selectionutil.getMavenProject(EditorInput)
+ * relies on MavenProjectManager.create() which appears to have rather tricky behaviour. It either gives you the
+ * cached instance or if not around creates one on the fly. 5a. The fly one is however not added to the cache. As a
+ * consequence the fly ones are always recreated each time you ask. 5b. The cached ones react quite in opposite way,
+ * no matter when you ask (even if you know the file has changed) you always get the cached value until the registry
+ * gets updated. 6. so to keep our MavenProject instance uptodate for both 5a and 5b cases, we need to: 6a. listen on
+ * workspace resources and try loading the MavenProject. for 5a it will load the new instance but for 5b it will keep
+ * returning the old value. 6b. so we also listen on MavenProjectChangedEvents and for 5b cases get the correct, fresh
+ * new MavenProject instance here. 7. please note that 6a comes before 6b and is done for both 5a and 5b as it's hard
+ * to tell those IMavenprojectfacade instances apart.. Your storyteller for tonite was mkleint
*/
-
+
public void mavenProjectChanged(MavenProjectChangedEvent[] events, IProgressMonitor monitor) {
IEditorInput input = getEditorInput();
- if (input instanceof IFileEditorInput) {
+ if(input instanceof IFileEditorInput) {
IFileEditorInput fileinput = (IFileEditorInput) input;
- for (MavenProjectChangedEvent event : events) {
- if (fileinput.getFile().equals(event.getSource())) {
+ for(MavenProjectChangedEvent event : events) {
+ if(fileinput.getFile().equals(event.getSource())) {
IMavenProjectFacade facade = event.getMavenProject();
- if (facade != null) {
- MavenProject mp = facade.getMavenProject();
- if (mp != null) {
+ if(facade != null) {
+ MavenProject mp = facade.getMavenProject();
+ if(mp != null) {
mavenProject = mp;
- if (getContainer() != null && !getContainer().isDisposed())
+ if(getContainer() != null && !getContainer().isDisposed())
getContainer().getDisplay().asyncExec(new Runnable() {
public void run() {
- for (MavenPomEditorPage page : getMavenPomEditorPages()) {
+ for(MavenPomEditorPage page : getMavenPomEditorPages()) {
page.mavenProjectHasChanged();
}
}
@@ -1119,5 +1128,4 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
}
}
-
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorContributor.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorContributor.java
index d10be490..bdb29f73 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorContributor.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorContributor.java
@@ -20,17 +20,17 @@ import org.eclipse.ui.part.MultiPageEditorActionBarContributor;
import org.eclipse.ui.texteditor.ITextEditor;
import org.eclipse.ui.texteditor.ITextEditorActionConstants;
+
/**
- * Manages the installation/deinstallation of global actions for multi-page
- * editors. Responsible for the redirection of global actions to the active
- * editor. Multi-page contributor replaces the contributors for the individual
- * editors in the multi-page editor.
+ * Manages the installation/deinstallation of global actions for multi-page editors. Responsible for the redirection of
+ * global actions to the active editor. Multi-page contributor replaces the contributors for the individual editors in
+ * the multi-page editor.
*/
public class MavenPomEditorContributor extends MultiPageEditorActionBarContributor {
private MavenPomEditor editorPart;
public void setActiveEditor(IEditorPart targetEditor) {
- if (targetEditor instanceof MavenPomEditor) {
+ if(targetEditor instanceof MavenPomEditor) {
editorPart = (MavenPomEditor) targetEditor;
setActivePage(editorPart.getActiveEditor());
}
@@ -39,18 +39,18 @@ public class MavenPomEditorContributor extends MultiPageEditorActionBarContribut
public void setActivePage(IEditorPart part) {
//set the text editor
IActionBars actionBars = getActionBars();
- if(editorPart !=null) {
- if (actionBars != null) {
+ if(editorPart != null) {
+ if(actionBars != null) {
actionBars.clearGlobalActionHandlers();
-
+
// undo/redo always enabled
actionBars.setGlobalActionHandler(ActionFactory.UNDO.getId(), //
getAction(ITextEditorActionConstants.UNDO));
actionBars.setGlobalActionHandler(ActionFactory.REDO.getId(), //
getAction(ITextEditorActionConstants.REDO));
-
+
// all other action, for text editor only (FormPage doesn't provide for these actions...)
- if (part instanceof ITextEditor) {
+ if(part instanceof ITextEditor) {
actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), //
getAction(ITextEditorActionConstants.DELETE));
actionBars.setGlobalActionHandler(ActionFactory.CUT.getId(), //
@@ -66,13 +66,13 @@ public class MavenPomEditorContributor extends MultiPageEditorActionBarContribut
actionBars.setGlobalActionHandler(IDEActionFactory.BOOKMARK.getId(), //
getAction(IDEActionFactory.BOOKMARK.getId()));
}
-
+
actionBars.updateActionBars();
}
}
}
-
+
/**
* Returns the action registered with the given text editor.
*
@@ -82,11 +82,11 @@ public class MavenPomEditorContributor extends MultiPageEditorActionBarContribut
if(editorPart != null) {
try {
return editorPart.getSourcePage().getAction(actionId);
- } catch (NullPointerException e) {
+ } catch(NullPointerException e) {
//editor has been disposed, ignore
}
}
return null;
}
-
+
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorPage.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorPage.java
index 3ca126af..7441dc4b 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorPage.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorPage.java
@@ -11,9 +11,25 @@
package org.eclipse.m2e.editor.pom;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.ARTIFACT_ID;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.GROUP_ID;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.PARENT;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.VERSION;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.findChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.getTextValue;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.performOnDOMDocument;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.removeChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.removeIfNoChildElement;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.setText;
import static org.eclipse.m2e.editor.pom.FormUtils.isEmpty;
-import org.apache.maven.project.MavenProject;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IProject;
@@ -34,21 +50,6 @@ import org.eclipse.jface.fieldassist.ControlDecoration;
import org.eclipse.jface.fieldassist.FieldDecoration;
import org.eclipse.jface.fieldassist.FieldDecorationRegistry;
import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.m2e.core.MavenPlugin;
-import org.eclipse.m2e.core.internal.IMavenConstants;
-import org.eclipse.m2e.core.project.IMavenProjectFacade;
-import org.eclipse.m2e.core.project.IMavenProjectRegistry;
-import org.eclipse.m2e.core.ui.internal.actions.OpenPomAction;
-import org.eclipse.m2e.core.ui.internal.dialogs.InputHistory;
-import org.eclipse.m2e.core.ui.internal.editing.PomEdits;
-import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
-import org.eclipse.m2e.core.ui.internal.editing.PomEdits.OperationTuple;
-
-import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.*;
-
-import org.eclipse.m2e.editor.MavenEditorImages;
-import org.eclipse.m2e.editor.internal.Messages;
-import org.eclipse.m2e.editor.xml.internal.FormHoverProvider;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CCombo;
@@ -68,11 +69,21 @@ import org.eclipse.ui.forms.editor.FormPage;
import org.eclipse.ui.forms.widgets.ScrolledForm;
import org.eclipse.wst.sse.core.internal.provisional.IModelStateListener;
import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
+
+import org.apache.maven.project.MavenProject;
+
+import org.eclipse.m2e.core.MavenPlugin;
+import org.eclipse.m2e.core.internal.IMavenConstants;
+import org.eclipse.m2e.core.project.IMavenProjectFacade;
+import org.eclipse.m2e.core.project.IMavenProjectRegistry;
+import org.eclipse.m2e.core.ui.internal.actions.OpenPomAction;
+import org.eclipse.m2e.core.ui.internal.dialogs.InputHistory;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits.OperationTuple;
+import org.eclipse.m2e.editor.MavenEditorImages;
+import org.eclipse.m2e.editor.internal.Messages;
+import org.eclipse.m2e.editor.xml.internal.FormHoverProvider;
/**
@@ -97,15 +108,13 @@ public abstract class MavenPomEditorPage extends FormPage {
private boolean dataLoaded;
private InputHistory inputHistory;
-
+
private Action selectParentAction;
private IModelStateListener listener;
-
+
private boolean alreadyShown = false;
-
-
public MavenPomEditorPage(MavenPomEditor pomEditor, String id, String title) {
super(pomEditor, id, title);
this.pomEditor = pomEditor;
@@ -113,31 +122,38 @@ public abstract class MavenPomEditorPage extends FormPage {
listener = new IModelStateListener() {
public void modelResourceMoved(IStructuredModel oldModel, IStructuredModel newModel) {
}
+
public void modelResourceDeleted(IStructuredModel model) {
}
+
public void modelReinitialized(IStructuredModel structuredModel) {
}
+
public void modelDirtyStateChanged(IStructuredModel model, boolean isDirty) {
}
+
public void modelChanged(IStructuredModel model) {
- if (!updatingModel2) {
+ if(!updatingModel2) {
loadData();
}
}
+
public void modelAboutToBeReinitialized(IStructuredModel structuredModel) {
}
+
public void modelAboutToBeChanged(IStructuredModel model) {
}
};
-
+
}
-
+
public MavenPomEditor getPomEditor() {
return pomEditor;
}
-
+
/**
* all edits in the editor to be channeled through this method..
+ *
* @param operation
* @param logger
* @param logMessage
@@ -159,7 +175,7 @@ public abstract class MavenPomEditorPage extends FormPage {
IToolBarManager toolBarManager = form.getToolBarManager();
// toolBarManager.add(pomEditor.showAdvancedTabsAction);
-
+
selectParentAction = new Action(Messages.MavenPomEditorPage_action_open, MavenEditorImages.PARENT_POM) {
public void run() {
final String[] ret = new String[3];
@@ -184,46 +200,45 @@ public abstract class MavenPomEditorPage extends FormPage {
} catch(Exception e) {
LOG.error("Error finding parent element", e);
}
-
+
}
};
toolBarManager.add(selectParentAction);
updateParentAction();
-
-
+
toolBarManager.add(new Action(Messages.MavenPomEditorPage_actio_refresh, MavenEditorImages.REFRESH) {
public void run() {
pomEditor.reload();
}
});
-
+
form.updateToolBar();
// compatibility proxy to support Eclipse 3.2
FormUtils.decorateHeader(managedForm.getToolkit(), form.getForm());
-
+
inputHistory.load();
}
-
+
public void setActive(boolean active) {
super.setActive(active);
-
+
doLoadData(active);
- if (active) {
- getPomEditor().getModel().addModelStateListener(listener);
+ if(active) {
+ getPomEditor().getModel().addModelStateListener(listener);
} else {
- getPomEditor().getModel().removeModelStateListener(listener);
+ getPomEditor().getModel().removeModelStateListener(listener);
}
- if (active && alreadyShown) {
+ if(active && alreadyShown) {
loadData();
updateParentAction();
- }
- alreadyShown = true;
-
+ }
+ alreadyShown = true;
+
//MNGECLIPSE-2674 checkreadonly is only calculated once, no need
// to update everytime this page gets active
boolean readOnly = pomEditor.checkReadOnly();
- if (readOnly) {
+ if(readOnly) {
// only perform when readonly==true, to prevent enabling all buttons on the page.
FormUtils.setReadonly((Composite) getPartControl(), readOnly);
}
@@ -232,30 +247,30 @@ public abstract class MavenPomEditorPage extends FormPage {
public boolean isReadOnly() {
return pomEditor.checkReadOnly();
}
-
+
private void doLoadData(boolean active) {
try {
if(active && !dataLoaded) {
dataLoaded = true;
- if(getPartControl() != null) {
- getPartControl().getDisplay().asyncExec(new Runnable() {
- public void run() {
- try {
- loadData();
- updateParentAction();
- } catch(Throwable e) {
- LOG.error("Error loading data", e); //$NON-NLS-1$
- }
+ if(getPartControl() != null) {
+ getPartControl().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ try {
+ loadData();
+ updateParentAction();
+ } catch(Throwable e) {
+ LOG.error("Error loading data", e); //$NON-NLS-1$
}
- });
- }
+ }
+ });
+ }
}
-
+
//error markers have to be always updated..
IFile pomFile = pomEditor.getPomFile();
if(pomFile != null) {
- String text = ""; //$NON-NLS-1$
+ String text = ""; //$NON-NLS-1$
IMarker[] markers = pomFile.findMarkers(IMavenConstants.MARKER_ID, true, IResource.DEPTH_ZERO);
IMarker max = null;
int maxSev = -1;
@@ -269,29 +284,31 @@ public abstract class MavenPomEditorPage extends FormPage {
} else {
toAdd = mark;
}
- if (toAdd != null) {
+ if(toAdd != null) {
//errors get prepended while warnings get appended.
- if (toAdd.getAttribute(IMarker.SEVERITY, -1) == IMarker.SEVERITY_ERROR) {
+ if(toAdd.getAttribute(IMarker.SEVERITY, -1) == IMarker.SEVERITY_ERROR) {
text = NLS.bind(Messages.MavenPomEditorPage_error_add, toAdd.getAttribute(IMarker.MESSAGE, "")) + text; //$NON-NLS-2$
} else {
- text = text + NLS.bind(Messages.MavenPomEditorPage_warning_add, toAdd.getAttribute(IMarker.MESSAGE, "")); //$NON-NLS-2$
+ text = text
+ + NLS.bind(Messages.MavenPomEditorPage_warning_add, toAdd.getAttribute(IMarker.MESSAGE, "")); //$NON-NLS-2$
}
}
}
}
if(max != null) {
- String head;
+ String head;
String maxText = max.getAttribute(IMarker.MESSAGE, Messages.MavenPomEditorPage_error_unknown);
- if (text.length() > 0) {
+ if(text.length() > 0) {
//if we have multiple errors
- text = NLS.bind(Messages.MavenPomEditorPage_add_desc,
- maxText, text);
- if (markers != null) {
+ text = NLS.bind(Messages.MavenPomEditorPage_add_desc, maxText, text);
+ if(markers != null) {
String number = new Integer(markers.length - 1).toString();
- head = NLS.bind(Messages.FormUtils_click_for_details2, maxText.length() > FormUtils.MAX_MSG_LENGTH ? maxText.substring(0, FormUtils.MAX_MSG_LENGTH) : maxText, number);
+ head = NLS.bind(Messages.FormUtils_click_for_details2,
+ maxText.length() > FormUtils.MAX_MSG_LENGTH ? maxText.substring(0, FormUtils.MAX_MSG_LENGTH)
+ : maxText, number);
} else {
head = maxText;
- if (head.length() > FormUtils.MAX_MSG_LENGTH) {
+ if(head.length() > FormUtils.MAX_MSG_LENGTH) {
head = NLS.bind(Messages.FormUtils_click_for_details, head.substring(0, FormUtils.MAX_MSG_LENGTH));
}
}
@@ -299,7 +316,7 @@ public abstract class MavenPomEditorPage extends FormPage {
//only this one
text = maxText;
head = maxText;
- if (head.length() > FormUtils.MAX_MSG_LENGTH) {
+ if(head.length() > FormUtils.MAX_MSG_LENGTH) {
head = NLS.bind(Messages.FormUtils_click_for_details, head.substring(0, FormUtils.MAX_MSG_LENGTH));
}
}
@@ -333,14 +350,15 @@ public abstract class MavenPomEditorPage extends FormPage {
}
}
-
+
private void setErrorMessageForMarkers(final String msg, final String tip, final int severity, final IMarker[] markers) {
- if (getPartControl() != null && !getPartControl().isDisposed()) {
+ if(getPartControl() != null && !getPartControl().isDisposed()) {
getPartControl().getDisplay().asyncExec(new Runnable() {
public void run() {
- if (!getManagedForm().getForm().isDisposed()) {
- FormHoverProvider.Execute runnable = FormHoverProvider.createHoverRunnable(getManagedForm().getForm().getShell(), markers, getPomEditor().getSourcePage().getTextViewer());
- if (runnable != null) {
+ if(!getManagedForm().getForm().isDisposed()) {
+ FormHoverProvider.Execute runnable = FormHoverProvider.createHoverRunnable(getManagedForm().getForm()
+ .getShell(), markers, getPomEditor().getSourcePage().getTextViewer());
+ if(runnable != null) {
FormUtils.setMessageWithPerformer(getManagedForm().getForm(), msg, severity, runnable);
} else {
FormUtils.setMessageAndTTip(getManagedForm().getForm(), msg, tip, severity);
@@ -352,10 +370,10 @@ public abstract class MavenPomEditorPage extends FormPage {
}
public void setErrorMessage(final String msg, final int severity) {
- if(getPartControl()!=null && !getPartControl().isDisposed()) {
+ if(getPartControl() != null && !getPartControl().isDisposed()) {
getPartControl().getDisplay().asyncExec(new Runnable() {
public void run() {
- if (!getManagedForm().getForm().isDisposed()) {
+ if(!getManagedForm().getForm().isDisposed()) {
FormUtils.setMessage(getManagedForm().getForm(), msg, severity);
}
}
@@ -363,13 +381,12 @@ public abstract class MavenPomEditorPage extends FormPage {
}
}
-
public boolean isAdapterForType(Object type) {
return false;
}
-
+
private void updateParentAction() {
- if (selectParentAction != null) {
+ if(selectParentAction != null) {
final boolean[] ret = new boolean[1];
try {
performOnDOMDocument(new OperationTuple(getPomEditor().getDocument(), new Operation() {
@@ -384,20 +401,21 @@ public abstract class MavenPomEditorPage extends FormPage {
} catch(Exception e) {
ret[0] = false;
}
- if (ret[0]) {
+ if(ret[0]) {
selectParentAction.setEnabled(true);
} else {
selectParentAction.setEnabled(false);
}
}
}
-
+
/**
- * creates a text field/Ccombo decoration that shows the evaluated value
+ * creates a text field/Ccombo decoration that shows the evaluated value
+ *
* @param control
*/
public final void createEvaluatorInfo(final Control control) {
- if (!(control instanceof Text || control instanceof CCombo)) {
+ if(!(control instanceof Text || control instanceof CCombo)) {
throw new IllegalArgumentException("Not a Text or CCombo");
}
FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
@@ -410,12 +428,13 @@ public abstract class MavenPomEditorPage extends FormPage {
@Override
public String getDescriptionText() {
MavenProject mp = getPomEditor().getMavenProject();
- if (mp != null) {
- return FormUtils.simpleInterpolate(mp, control instanceof Text ? ((Text)control).getText() : ((CCombo)control).getText());
+ if(mp != null) {
+ return FormUtils.simpleInterpolate(mp, control instanceof Text ? ((Text) control).getText()
+ : ((CCombo) control).getText());
}
return "Cannot interpolate expressions, not resolvable file.";
}
-
+
};
decoration.setShowOnlyOnFocus(false);
decoration.setImage(fieldDecoration.getImage());
@@ -428,83 +447,82 @@ public abstract class MavenPomEditorPage extends FormPage {
});
ModifyListener listener = new ModifyListener() {
public void modifyText(ModifyEvent e) {
- String text = control instanceof Text ? ((Text)control).getText() : ((CCombo)control).getText();
- if (text.indexOf("${") != -1 && text.indexOf("}") != -1) {
+ String text = control instanceof Text ? ((Text) control).getText() : ((CCombo) control).getText();
+ if(text.indexOf("${") != -1 && text.indexOf("}") != -1) {
decoration.show();
} else {
decoration.hide();
}
}
};
- if (control instanceof Text) {
- ((Text)control).addModifyListener(listener);
+ if(control instanceof Text) {
+ ((Text) control).addModifyListener(listener);
} else {
- ((CCombo)control).addModifyListener(listener);
+ ((CCombo) control).addModifyListener(listener);
}
control.addMouseTrackListener(new MouseTrackListener() {
public void mouseHover(MouseEvent e) {
decoration.showHoverText(decoration.getDescriptionText());
}
-
+
public void mouseExit(MouseEvent e) {
decoration.hideHover();
}
-
+
public void mouseEnter(MouseEvent e) {
}
});
- }
+ }
public void dispose() {
inputHistory.save();
MavenPomEditor pe = getPomEditor();
- if (pe != null && pe.getModel() != null) {
+ if(pe != null && pe.getModel() != null) {
pe.getModel().removeModelStateListener(listener);
}
-
+
super.dispose();
}
public abstract void loadData();
-
public void setElementValueProvider(Control control, ElementValueProvider provider) {
control.setData(VALUE_PROVIDER, provider);
}
-
+
public void setModifyListener(final Control control) {
Assert.isTrue(control instanceof CCombo || control instanceof Text || control instanceof Combo);
-
+
ModifyListener ml = new ModifyListener() {
String getText(Control control) {
- if (control instanceof Text) {
- return ((Text)control).getText();
+ if(control instanceof Text) {
+ return ((Text) control).getText();
}
- if (control instanceof Combo) {
- return ((Combo)control).getText();
+ if(control instanceof Combo) {
+ return ((Combo) control).getText();
}
- if (control instanceof CCombo) {
- return ((CCombo)control).getText();
+ if(control instanceof CCombo) {
+ return ((CCombo) control).getText();
}
throw new IllegalStateException();
}
-
+
public void modifyText(ModifyEvent e) {
final ElementValueProvider provider = (ElementValueProvider) control.getData(VALUE_PROVIDER);
- if (provider == null) {
+ if(provider == null) {
throw new IllegalStateException("no value provider for " + control);
}
performEditOperation(new Operation() {
public void process(Document document) {
String text = getText(control);
- if (isEmpty(text) || text.equals(provider.getDefaultValue())) {
+ if(isEmpty(text) || text.equals(provider.getDefaultValue())) {
//remove value
Element el = provider.find(document);
- if (el != null) {
+ if(el != null) {
Node parent = el.getParentNode();
- if (parent instanceof Element) {
- removeChild((Element)parent, el);
- removeIfNoChildElement((Element)parent);
+ if(parent instanceof Element) {
+ removeChild((Element) parent, el);
+ removeIfNoChildElement((Element) parent);
}
}
} else {
@@ -519,39 +537,37 @@ public abstract class MavenPomEditorPage extends FormPage {
control.setData(MODIFY_LISTENER, ml);
}
-
public void removeNotifyListener(Text control) {
if(!control.isDisposed()) {
ModifyListener listener = (ModifyListener) control.getData(MODIFY_LISTENER);
- if (listener != null) {
+ if(listener != null) {
control.removeModifyListener(listener);
}
}
}
-
+
public void addNotifyListener(Text control) {
if(!control.isDisposed()) {
ModifyListener listener = (ModifyListener) control.getData(MODIFY_LISTENER);
- if (listener != null) {
+ if(listener != null) {
control.addModifyListener(listener);
}
}
}
-
public void removeNotifyListener(CCombo control) {
if(!control.isDisposed()) {
ModifyListener listener = (ModifyListener) control.getData(MODIFY_LISTENER);
- if (listener != null) {
+ if(listener != null) {
control.removeModifyListener(listener);
}
}
}
-
+
public void addNotifyListener(CCombo control) {
if(!control.isDisposed()) {
ModifyListener listener = (ModifyListener) control.getData(MODIFY_LISTENER);
- if (listener != null) {
+ if(listener != null) {
control.addModifyListener(listener);
}
}
@@ -560,16 +576,16 @@ public abstract class MavenPomEditorPage extends FormPage {
public void removeNotifyListener(Combo control) {
if(!control.isDisposed()) {
ModifyListener listener = (ModifyListener) control.getData(MODIFY_LISTENER);
- if (listener != null) {
+ if(listener != null) {
control.removeModifyListener(listener);
}
}
}
-
+
public void addNotifyListener(Combo control) {
if(!control.isDisposed()) {
ModifyListener listener = (ModifyListener) control.getData(MODIFY_LISTENER);
- if (listener != null) {
+ if(listener != null) {
control.addModifyListener(listener);
}
}
@@ -585,10 +601,11 @@ public abstract class MavenPomEditorPage extends FormPage {
private IMavenProjectFacade findModuleProject(IFile pomFile, String module) {
IPath modulePath = pomFile.getParent().getLocation();
- if (modulePath == null) return null;
+ if(modulePath == null)
+ return null;
modulePath = modulePath.append(module);
//it's possible to have the pom file name in the module path..
- if (!modulePath.lastSegment().endsWith("pom.xml")) { //$NON-NLS-1$
+ if(!modulePath.lastSegment().endsWith("pom.xml")) { //$NON-NLS-1$
modulePath = modulePath.append("pom.xml"); //$NON-NLS-1$
}
IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry();
@@ -600,15 +617,16 @@ public abstract class MavenPomEditorPage extends FormPage {
}
return null;
}
-
+
public IFile findModuleFile(String moduleName) {
IFile pomFile = pomEditor.getPomFile();
- if(pomFile!=null) {
+ if(pomFile != null) {
IPath modulePath = pomFile.getParent().getLocation();
- if (modulePath == null) return null;
+ if(modulePath == null)
+ return null;
modulePath = modulePath.append(moduleName);
//it's possible to have the pom file name in the module path..
- if (!modulePath.lastSegment().endsWith("pom.xml")) { //$NON-NLS-1$
+ if(!modulePath.lastSegment().endsWith("pom.xml")) { //$NON-NLS-1$
modulePath = modulePath.append("pom.xml"); //$NON-NLS-1$
}
IFile file = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(modulePath);
@@ -616,30 +634,30 @@ public abstract class MavenPomEditorPage extends FormPage {
}
return null;
}
-
+
public void initPopupMenu(Viewer viewer, String id) {
MenuManager menuMgr = new MenuManager("#PopupMenu-" + id); //$NON-NLS-1$
menuMgr.setRemoveAllWhenShown(true);
-
+
Menu menu = menuMgr.createContextMenu(viewer.getControl());
-
+
viewer.getControl().setMenu(menu);
-
+
getEditorSite().registerContextMenu(MavenPomEditor.EDITOR_ID + id, menuMgr, viewer, false);
}
-
/**
- * Adapter for Text, Combo and CCombo widgets
+ * Adapter for Text, Combo and CCombo widgets
*/
public interface TextAdapter {
String getText();
+
void addModifyListener(ModifyListener listener);
}
public IProject getProject() {
IFile pomFile = pomEditor.getPomFile();
- return pomFile != null? pomFile.getProject(): null;
+ return pomFile != null ? pomFile.getProject() : null;
}
protected void addToHistory(Control control) {
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorPageFactory.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorPageFactory.java
index 1560d66c..2f5e2efe 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorPageFactory.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditorPageFactory.java
@@ -19,5 +19,5 @@ package org.eclipse.m2e.editor.pom;
public abstract class MavenPomEditorPageFactory {
public abstract void addPages(MavenPomEditor pomEditor);
-
+
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/OverviewPage.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/OverviewPage.java
index 97acc237..c27d2458 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/OverviewPage.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/OverviewPage.java
@@ -11,6 +11,39 @@
package org.eclipse.m2e.editor.pom;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.ARTIFACT_ID;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.CI_MANAGEMENT;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.CONNECTION;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.DESCRIPTION;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.DEV_CONNECTION;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.GROUP_ID;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.INCEPTION_YEAR;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.ISSUE_MANAGEMENT;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.MODULE;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.MODULES;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.NAME;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.ORGANIZATION;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.PACKAGING;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.PARENT;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.PROPERTIES;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.RELATIVE_PATH;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.SCM;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.SYSTEM;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.TAG;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.URL;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.VERSION;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.childAt;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.createElementWithText;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.findChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.findChilds;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.format;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.getChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.getTextValue;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.performOnDOMDocument;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.removeChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.removeIfNoChildElement;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.setText;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.textEquals;
import static org.eclipse.m2e.editor.pom.FormUtils.nvl;
import static org.eclipse.m2e.editor.pom.FormUtils.setText;
@@ -19,6 +52,12 @@ import java.util.HashSet;
import java.util.List;
import java.util.Set;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IPath;
@@ -36,25 +75,6 @@ import org.eclipse.jface.viewers.OpenEvent;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.window.Window;
import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.m2e.core.embedder.ArtifactKey;
-import org.eclipse.m2e.core.internal.IMavenConstants;
-import org.eclipse.m2e.core.internal.index.IndexedArtifactFile;
-import org.eclipse.m2e.core.project.IMavenProjectFacade;
-import org.eclipse.m2e.core.ui.internal.MavenImages;
-import org.eclipse.m2e.core.ui.internal.actions.OpenPomAction;
-import org.eclipse.m2e.core.ui.internal.dialogs.MavenRepositorySearchDialog;
-import org.eclipse.m2e.core.ui.internal.editing.PomEdits;
-import org.eclipse.m2e.core.ui.internal.search.util.Packaging;
-import org.eclipse.m2e.core.ui.internal.util.M2EUIUtils;
-import org.eclipse.m2e.core.ui.internal.util.ProposalUtil;
-import org.eclipse.m2e.core.ui.internal.wizards.MavenModuleWizard;
-import org.eclipse.m2e.core.ui.internal.wizards.WidthGroup;
-import org.eclipse.m2e.editor.MavenEditorImages;
-import org.eclipse.m2e.editor.composites.ListEditorComposite;
-import org.eclipse.m2e.editor.composites.ListEditorContentProvider;
-import org.eclipse.m2e.editor.composites.StringLabelProvider;
-import org.eclipse.m2e.editor.dialogs.MavenModuleSelectionDialog;
-import org.eclipse.m2e.editor.internal.Messages;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CCombo;
@@ -89,12 +109,28 @@ import org.eclipse.ui.forms.widgets.ScrolledForm;
import org.eclipse.ui.forms.widgets.Section;
import org.eclipse.ui.part.FileEditorInput;
import org.eclipse.ui.part.ResourceTransfer;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.*;
+import org.eclipse.m2e.core.embedder.ArtifactKey;
+import org.eclipse.m2e.core.internal.IMavenConstants;
+import org.eclipse.m2e.core.internal.index.IndexedArtifactFile;
+import org.eclipse.m2e.core.project.IMavenProjectFacade;
+import org.eclipse.m2e.core.ui.internal.MavenImages;
+import org.eclipse.m2e.core.ui.internal.actions.OpenPomAction;
+import org.eclipse.m2e.core.ui.internal.dialogs.MavenRepositorySearchDialog;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits.OperationTuple;
+import org.eclipse.m2e.core.ui.internal.search.util.Packaging;
+import org.eclipse.m2e.core.ui.internal.util.M2EUIUtils;
+import org.eclipse.m2e.core.ui.internal.util.ProposalUtil;
+import org.eclipse.m2e.core.ui.internal.wizards.MavenModuleWizard;
+import org.eclipse.m2e.core.ui.internal.wizards.WidthGroup;
+import org.eclipse.m2e.editor.MavenEditorImages;
+import org.eclipse.m2e.editor.composites.ListEditorComposite;
+import org.eclipse.m2e.editor.composites.ListEditorContentProvider;
+import org.eclipse.m2e.editor.composites.StringLabelProvider;
+import org.eclipse.m2e.editor.dialogs.MavenModuleSelectionDialog;
+import org.eclipse.m2e.editor.internal.Messages;
/**
@@ -107,16 +143,24 @@ public class OverviewPage extends MavenPomEditorPage {
//define more as the need arises
private static final int RELOAD_MODULES = 1;
+
private static final int RELOAD_BASE = 2;
+
private static final int RELOAD_CI = 4;
+
private static final int RELOAD_SCM = 8;
+
private static final int RELOAD_IM = 16;
+
private static final int RELOAD_PROPERTIES = 32;
+
private static final int RELOAD_PARENT = 64;
+
private static final int RELOAD_ORG = 128;
-
- private static final int RELOAD_ALL = RELOAD_MODULES + RELOAD_BASE + RELOAD_CI + RELOAD_SCM + RELOAD_IM + RELOAD_PROPERTIES + RELOAD_ORG + RELOAD_PARENT;
-
+
+ private static final int RELOAD_ALL = RELOAD_MODULES + RELOAD_BASE + RELOAD_CI + RELOAD_SCM + RELOAD_IM
+ + RELOAD_PROPERTIES + RELOAD_ORG + RELOAD_PARENT;
+
//controls
Text artifactIdText;
@@ -332,8 +376,6 @@ public class OverviewPage extends MavenPomEditorPage {
toolkit.paintBordersFor(artifactComposite);
}
-
-
private void createParentsection(FormToolkit toolkit, Composite composite, WidthGroup widthGroup) {
parentSection = toolkit.createSection(composite, //
@@ -349,11 +391,12 @@ public class OverviewPage extends MavenPomEditorPage {
String parentGroup = parentGroupIdText.getText();
String parentArtifact = parentArtifactIdText.getText();
String parentVersion = parentVersionText.getText();
- if (parentGroup != null && parentArtifact != null && parentVersion != null) {
+ if(parentGroup != null && parentArtifact != null && parentVersion != null) {
current.add(new ArtifactKey(parentGroup, parentArtifact, parentVersion, null));
}
- MavenRepositorySearchDialog dialog = MavenRepositorySearchDialog.createSearchParentDialog(
- getEditorSite().getShell(), Messages.OverviewPage_searchDialog_selectParent, getPomEditor().getMavenProject(), getProject());
+ MavenRepositorySearchDialog dialog = MavenRepositorySearchDialog.createSearchParentDialog(getEditorSite()
+ .getShell(), Messages.OverviewPage_searchDialog_selectParent, getPomEditor().getMavenProject(),
+ getProject());
if(parentGroup != null && parentGroup.trim().length() != 0) {
//chances are we will get good match by adding the groupid here..
dialog.setQuery(parentGroupIdText.getText());
@@ -435,7 +478,6 @@ public class OverviewPage extends MavenPomEditorPage {
createEvaluatorInfo(parentGroupIdText);
setElementValueProvider(parentGroupIdText, new ElementValueProvider(PomEdits.PARENT, PomEdits.GROUP_ID));
setModifyListener(parentGroupIdText);
-
final Label parentArtifactIdLabel = toolkit.createLabel(parentComposite, Messages.OverviewPage_lblArtifactId,
SWT.NONE);
@@ -450,7 +492,6 @@ public class OverviewPage extends MavenPomEditorPage {
createEvaluatorInfo(parentArtifactIdText);
setElementValueProvider(parentArtifactIdText, new ElementValueProvider(PomEdits.PARENT, PomEdits.ARTIFACT_ID));
setModifyListener(parentArtifactIdText);
-
Label parentVersionLabel = toolkit.createLabel(parentComposite, Messages.OverviewPage_lblVersion2, SWT.NONE);
parentVersionLabel.setLayoutData(new GridData());
@@ -461,14 +502,12 @@ public class OverviewPage extends MavenPomEditorPage {
parentVersionTextData.widthHint = 200;
parentVersionText.setLayoutData(parentVersionTextData);
parentVersionText.setData("name", "parentVersion"); //$NON-NLS-1$ //$NON-NLS-2$
- ProposalUtil.addVersionProposal(getProject(), null/** null because we don't want expressions from parent pom here */,
- parentGroupIdText, parentArtifactIdText, parentVersionText,
- Packaging.POM);
+ ProposalUtil.addVersionProposal(getProject(), null/** null because we don't want expressions from parent pom here */
+ , parentGroupIdText, parentArtifactIdText, parentVersionText, Packaging.POM);
M2EUIUtils.addRequiredDecoration(parentVersionText);
createEvaluatorInfo(parentVersionText);
setElementValueProvider(parentVersionText, new ElementValueProvider(PomEdits.PARENT, PomEdits.VERSION));
setModifyListener(parentVersionText);
-
ModifyListener ml = new ModifyListener() {
public void modifyText(ModifyEvent e) {
@@ -575,9 +614,9 @@ public class OverviewPage extends MavenPomEditorPage {
performOnDOMDocument(new OperationTuple(getPomEditor().getDocument(), new Operation() {
public void process(Document document) {
Element modsEl = findChild(document.getDocumentElement(), MODULES);
- for (Element el : findChilds(modsEl, MODULE)) {
+ for(Element el : findChilds(modsEl, MODULE)) {
String m = getTextValue(el);
- if (m != null) {
+ if(m != null) {
modules.add(m);
}
}
@@ -586,7 +625,7 @@ public class OverviewPage extends MavenPomEditorPage {
} catch(Exception e1) {
LOG.error("Cannot load modules", e1);
}
-
+
for(String module : modules) {
IMavenProjectFacade facade = findModuleProject(module);
if(facade != null) {
@@ -625,14 +664,14 @@ public class OverviewPage extends MavenPomEditorPage {
modulesEditor.setRemoveButtonListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
try {
- performEditOperation( new Operation() {
+ performEditOperation(new Operation() {
public void process(Document document) {
Element root = document.getDocumentElement();
Element modules = findChild(root, MODULES);
- if (modules != null) {
- for (String module : modulesEditor.getSelection()) {
+ if(modules != null) {
+ for(String module : modulesEditor.getSelection()) {
Element modEl = findChild(modules, MODULE, textEquals(module));
- if (modEl != null) {
+ if(modEl != null) {
modules.removeChild(modEl);
}
}
@@ -658,20 +697,20 @@ public class OverviewPage extends MavenPomEditorPage {
public void modify(Object element, String property, final Object value) {
final int n = modulesEditor.getViewer().getTable().getSelectionIndex();
- try {
- performEditOperation( new Operation() {
- public void process(Document document) {
- Element root = document.getDocumentElement();
- Element module = findChild(findChild(root, MODULES), MODULE, childAt(n));
- if (module != null && !value.equals(getTextValue(module))) {
- setText(module, value.toString());
- }
+ try {
+ performEditOperation(new Operation() {
+ public void process(Document document) {
+ Element root = document.getDocumentElement();
+ Element module = findChild(findChild(root, MODULES), MODULE, childAt(n));
+ if(module != null && !value.equals(getTextValue(module))) {
+ setText(module, value.toString());
}
- }, LOG, "error changing module entry");
- } finally {
- loadThis(RELOAD_MODULES);
- }
+ }
+ }, LOG, "error changing module entry");
+ } finally {
+ loadThis(RELOAD_MODULES);
}
+ }
});
modulesEditor.getViewer().addDropSupport(DND.DROP_COPY | DND.DROP_LINK | DND.DROP_MOVE,
@@ -911,7 +950,7 @@ public class OverviewPage extends MavenPomEditorPage {
createEvaluatorInfo(scmDevConnectionText);
setElementValueProvider(scmDevConnectionText, new ElementValueProvider(PomEdits.SCM, PomEdits.DEV_CONNECTION));
setModifyListener(scmDevConnectionText);
-
+
Label scmTagLabel = toolkit.createLabel(scmComposite, Messages.OverviewPage_lblTag, SWT.NONE);
scmTagText = toolkit.createText(scmComposite, null, SWT.NONE);
@@ -922,7 +961,7 @@ public class OverviewPage extends MavenPomEditorPage {
createEvaluatorInfo(scmTagText);
setElementValueProvider(scmTagText, new ElementValueProvider(PomEdits.SCM, PomEdits.TAG));
setModifyListener(scmTagText);
-
+
widthGroup.addControl(scmUrlLabel);
widthGroup.addControl(scmConnectionLabel);
widthGroup.addControl(scmDevConnectionLabel);
@@ -955,7 +994,8 @@ public class OverviewPage extends MavenPomEditorPage {
toolkit.paintBordersFor(issueManagementSystemCombo);
toolkit.adapt(issueManagementSystemCombo, true, true);
createEvaluatorInfo(issueManagementSystemCombo);
- setElementValueProvider(issueManagementSystemCombo, new ElementValueProvider(PomEdits.ISSUE_MANAGEMENT, PomEdits.SYSTEM));
+ setElementValueProvider(issueManagementSystemCombo, new ElementValueProvider(PomEdits.ISSUE_MANAGEMENT,
+ PomEdits.SYSTEM));
setModifyListener(issueManagementSystemCombo);
Hyperlink issueManagementUrlLabel = toolkit.createHyperlink(issueManagementComposite, Messages.OverviewPage_lblUrl,
@@ -1033,7 +1073,6 @@ public class OverviewPage extends MavenPomEditorPage {
createEvaluatorInfo(ciManagementUrlCombo);
setElementValueProvider(ciManagementUrlCombo, new ElementValueProvider(PomEdits.CI_MANAGEMENT, PomEdits.URL));
setModifyListener(ciManagementUrlCombo);
-
widthGroup.addControl(ciManagementSystemLabel);
widthGroup.addControl(ciManagementUrlLabel);
@@ -1042,7 +1081,6 @@ public class OverviewPage extends MavenPomEditorPage {
ciManagementComposite.setTabList(new Control[] {ciManagementSystemCombo, ciManagementUrlCombo});
}
-
public void updateView(final Notification notification) {
//noop now
}
@@ -1057,7 +1095,7 @@ public class OverviewPage extends MavenPomEditorPage {
private void loadThis(final int mask) {
Display.getDefault().asyncExec(new Runnable() {
public void run() {
-
+
removeNotifyListener(parentGroupIdText);
removeNotifyListener(parentArtifactIdText);
removeNotifyListener(parentVersionText);
@@ -1071,7 +1109,7 @@ public class OverviewPage extends MavenPomEditorPage {
removeNotifyListener(projectDescriptionText);
removeNotifyListener(projectUrlText);
removeNotifyListener(inceptionYearText);
-
+
removeNotifyListener(organizationNameText);
removeNotifyListener(organizationUrlText);
@@ -1085,34 +1123,32 @@ public class OverviewPage extends MavenPomEditorPage {
removeNotifyListener(issueManagementUrlCombo);
removeNotifyListener(issueManagementSystemCombo);
-
-
+
try {
performOnDOMDocument(new OperationTuple(getPomEditor().getDocument(), new Operation() {
public void process(Document document) {
Element root = document.getDocumentElement();
String pack = nvl(getTextValue(findChild(root, PACKAGING)));
pack = "".equals(pack) ? "jar" : pack; //$NON-NLS-1$ //$NON-NLS-2$
- if ((mask & RELOAD_BASE) != 0) {
+ if((mask & RELOAD_BASE) != 0) {
setText(artifactGroupIdText, nvl(getTextValue(findChild(root, GROUP_ID))));
setText(artifactIdText, nvl(getTextValue(findChild(root, ARTIFACT_ID))));
setText(artifactVersionText, nvl(getTextValue(findChild(root, VERSION))));
setText(artifactPackagingCombo, pack);
-
+
String name = getTextValue(findChild(root, NAME));
setText(projectNameText, nvl(name));
String desc = getTextValue(findChild(root, DESCRIPTION));
setText(projectDescriptionText, nvl(desc));
- String url = getTextValue(findChild(root, URL));
+ String url = getTextValue(findChild(root, URL));
setText(projectUrlText, nvl(url));
String incep = getTextValue(findChild(root, INCEPTION_YEAR));
setText(inceptionYearText, nvl(incep));
- boolean expandProjectSection = name != null || desc != null
- || url != null || incep != null;
+ boolean expandProjectSection = name != null || desc != null || url != null || incep != null;
projectSectionData.grabExcessVerticalSpace = expandProjectSection;
projectSection.setExpanded(expandProjectSection);
}
- if ((mask & RELOAD_PARENT) != 0) {
+ if((mask & RELOAD_PARENT) != 0) {
//parent section
Element parent = findChild(root, PARENT);
String parentGrId = getTextValue(findChild(parent, GROUP_ID));
@@ -1122,20 +1158,21 @@ public class OverviewPage extends MavenPomEditorPage {
setText(parentArtifactIdText, nvl(parentArtId));
setText(parentVersionText, nvl(parentVers));
setText(parentRelativePathText, nvl(getTextValue(findChild(parent, RELATIVE_PATH))));
-
+
parentSelectAction.setEnabled(!isReadOnly());
// only enable when all 3 coordinates are actually present.
- parentOpenAction.setEnabled(root != null && parentGrId != null && parentArtId != null && parentVers != null);
+ parentOpenAction.setEnabled(root != null && parentGrId != null && parentArtId != null
+ && parentVers != null);
parentSection.setExpanded(parent != null);
}
- if ((mask & RELOAD_ORG) != 0) {
+ if((mask & RELOAD_ORG) != 0) {
//organization section
Element org = findChild(root, ORGANIZATION);
setText(organizationNameText, nvl(getTextValue(findChild(org, NAME))));
setText(organizationUrlText, nvl(getTextValue(findChild(org, URL))));
organizationSection.setExpanded(org != null);
}
- if ((mask & RELOAD_SCM) != 0) {
+ if((mask & RELOAD_SCM) != 0) {
//scm section
Element scm = findChild(root, SCM);
setText(scmUrlText, nvl(getTextValue(findChild(scm, URL))));
@@ -1144,52 +1181,52 @@ public class OverviewPage extends MavenPomEditorPage {
setText(scmTagText, nvl(getTextValue(findChild(scm, TAG))));
scmSection.setExpanded(scm != null);
}
- if ((mask & RELOAD_CI) != 0) {
+ if((mask & RELOAD_CI) != 0) {
//ci section
Element ci = findChild(root, CI_MANAGEMENT);
setText(ciManagementSystemCombo, nvl(getTextValue(findChild(ci, SYSTEM))));
setText(ciManagementUrlCombo, nvl(getTextValue(findChild(ci, URL))));
ciManagementSection.setExpanded(ci != null);
}
- if ((mask & RELOAD_IM) != 0) {
+ if((mask & RELOAD_IM) != 0) {
// issue management
Element im = findChild(root, ISSUE_MANAGEMENT);
setText(issueManagementSystemCombo, nvl(getTextValue(findChild(im, SYSTEM))));
setText(issueManagementUrlCombo, nvl(getTextValue(findChild(im, URL))));
issueManagementSection.setExpanded(im != null);
}
-
- if ((mask & RELOAD_MODULES) != 0) {
- //modules section..
+
+ if((mask & RELOAD_MODULES) != 0) {
+ //modules section..
List<Element> moduleEls = findChilds(findChild(root, MODULES), MODULE);
List<String> modules = new ArrayList<String>();
- for (Element moduleEl : moduleEls) {
+ for(Element moduleEl : moduleEls) {
String text = getTextValue(moduleEl);
- if (text != null) {
+ if(text != null) {
modules.add(text);
}
}
loadModules(modules, pack);
//#335337 no editing of packaging when there are modules, results in error anyway
- if (modules.size() > 0) {
+ if(modules.size() > 0) {
artifactPackagingCombo.setEnabled(false);
} else {
artifactPackagingCombo.setEnabled(true);
}
}
-
- if ((mask & RELOAD_PROPERTIES) != 0) {
+
+ if((mask & RELOAD_PROPERTIES) != 0) {
propertiesSection.refresh();
Element props = findChild(root, PROPERTIES);
propertiesSection.getSection().setExpanded(props != null);
- //TODO used to check teh model's empty state as well, not done now..
+ //TODO used to check teh model's empty state as well, not done now..
}
}
}, true));
} catch(Exception e) {
LOG.error("Failed to populate overview panel", e);
}
-
+
addNotifyListener(artifactGroupIdText);
addNotifyListener(artifactIdText);
addNotifyListener(artifactVersionText);
@@ -1198,7 +1235,7 @@ public class OverviewPage extends MavenPomEditorPage {
addNotifyListener(projectDescriptionText);
addNotifyListener(projectUrlText);
addNotifyListener(inceptionYearText);
-
+
addNotifyListener(parentGroupIdText);
addNotifyListener(parentArtifactIdText);
addNotifyListener(parentVersionText);
@@ -1206,15 +1243,15 @@ public class OverviewPage extends MavenPomEditorPage {
addNotifyListener(organizationNameText);
addNotifyListener(organizationUrlText);
-
+
addNotifyListener(scmUrlText);
addNotifyListener(scmConnectionText);
addNotifyListener(scmDevConnectionText);
addNotifyListener(scmTagText);
-
+
addNotifyListener(ciManagementUrlCombo);
addNotifyListener(ciManagementSystemCombo);
-
+
addNotifyListener(issueManagementUrlCombo);
addNotifyListener(issueManagementSystemCombo);
}
@@ -1246,7 +1283,7 @@ public class OverviewPage extends MavenPomEditorPage {
public void process(Document document) {
Element root = document.getDocumentElement();
Element modules = getChild(root, MODULES);
- if (findChild(modules, MODULE, textEquals(moduleName)) == null) {
+ if(findChild(modules, MODULE, textEquals(moduleName)) == null) {
format(createElementWithText(modules, MODULE, moduleName));
}
}
@@ -1264,19 +1301,19 @@ public class OverviewPage extends MavenPomEditorPage {
Element root = document.getDocumentElement();
String grid = getTextValue(findChild(root, GROUP_ID));
Element parent = findChild(root, PARENT);
- if (grid == null) {
+ if(grid == null) {
grid = getTextValue(findChild(parent, GROUP_ID));
}
String artifactId = getTextValue(findChild(root, ARTIFACT_ID));
String version = getTextValue(findChild(root, VERSION));
- if (version == null) {
+ if(version == null) {
version = getTextValue(findChild(parent, VERSION));
}
vals[0] = grid;
vals[1] = artifactId;
vals[2] = version;
}
- },true));
+ }, true));
} catch(Exception ex) {
LOG.error("Error getting values from document", ex);
}
@@ -1307,40 +1344,40 @@ public class OverviewPage extends MavenPomEditorPage {
IPath resultPath = container.getLocation();
String path = resultPath.makeRelativeTo(projectPath).toString();
- if (updateParentSection) {
- final String relativePath = projectPath.makeRelativeTo(resultPath).toString();
- try {
- performOnDOMDocument(new OperationTuple(pomFile, new Operation() {
- public void process(Document document) {
- Element root = document.getDocumentElement();
- Element parent = getChild(root, PARENT);
- setText(getChild(parent, GROUP_ID), parentGroupId);
- setText(getChild(parent, ARTIFACT_ID), parentArtifactId);
- setText(getChild(parent, VERSION), parentVersion);
- setText(getChild(parent, RELATIVE_PATH), relativePath);
- Element grId = findChild(root, GROUP_ID);
- String grIdText = getTextValue(grId);
- if (grIdText != null && grIdText.equals(parentGroupId)) {
- removeChild(root, grId);
- }
- Element ver = findChild(root, VERSION);
- String verText = getTextValue(ver);
- if (verText != null && verText.equals(parentVersion)) {
- removeChild(root, ver);
- }
+ if(updateParentSection) {
+ final String relativePath = projectPath.makeRelativeTo(resultPath).toString();
+ try {
+ performOnDOMDocument(new OperationTuple(pomFile, new Operation() {
+ public void process(Document document) {
+ Element root = document.getDocumentElement();
+ Element parent = getChild(root, PARENT);
+ setText(getChild(parent, GROUP_ID), parentGroupId);
+ setText(getChild(parent, ARTIFACT_ID), parentArtifactId);
+ setText(getChild(parent, VERSION), parentVersion);
+ setText(getChild(parent, RELATIVE_PATH), relativePath);
+ Element grId = findChild(root, GROUP_ID);
+ String grIdText = getTextValue(grId);
+ if(grIdText != null && grIdText.equals(parentGroupId)) {
+ removeChild(root, grId);
}
- }));
- } catch(Exception e) {
- LOG.error("Error updating parent reference in file:" + pomFile, e);
- }
+ Element ver = findChild(root, VERSION);
+ String verText = getTextValue(ver);
+ if(verText != null && verText.equals(parentVersion)) {
+ removeChild(root, ver);
+ }
+ }
+ }));
+ } catch(Exception e) {
+ LOG.error("Error updating parent reference in file:" + pomFile, e);
}
+ }
- createNewModule(path);
+ createNewModule(path);
}
}
public class ModulesLabelProvider extends StringLabelProvider {
-
+
private final MavenPomEditorPage editorPage;
public ModulesLabelProvider(MavenPomEditorPage editorPage) {
@@ -1353,16 +1390,16 @@ public class OverviewPage extends MavenPomEditorPage {
if(element instanceof String) {
String moduleName = (String) element;
IMavenProjectFacade projectFacade = editorPage.findModuleProject(moduleName);
- if(projectFacade!=null) {
+ if(projectFacade != null) {
return MavenEditorImages.IMG_PROJECT;
}
-
+
IFile moduleFile = editorPage.findModuleFile(moduleName);
- if(moduleFile!=null && moduleFile.isAccessible()) {
+ if(moduleFile != null && moduleFile.isAccessible()) {
return MavenEditorImages.IMG_PROJECT;
}
}
return super.getImage(element);
}
- }
+ }
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/PropertiesSection.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/PropertiesSection.java
index a8073dac..25237339 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/PropertiesSection.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/PropertiesSection.java
@@ -11,23 +11,31 @@
package org.eclipse.m2e.editor.pom;
-import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.*;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.PROPERTIES;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.findChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.getChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.getTextValue;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.performOnDOMDocument;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.removeChild;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.removeIfNoChildElement;
+import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.setText;
import java.util.ArrayList;
import java.util.List;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
import org.eclipse.emf.ecore.xml.type.internal.DataValue.XMLChar;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.viewers.DoubleClickEvent;
import org.eclipse.jface.viewers.IDoubleClickListener;
import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.m2e.core.ui.internal.dialogs.MavenPropertyDialog;
-import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
-import org.eclipse.m2e.core.ui.internal.editing.PomEdits.OperationTuple;
-import org.eclipse.m2e.editor.MavenEditorImages;
-import org.eclipse.m2e.editor.composites.ListEditorComposite;
-import org.eclipse.m2e.editor.composites.ListEditorContentProvider;
-import org.eclipse.m2e.editor.internal.Messages;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
@@ -40,12 +48,15 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.forms.widgets.ExpandableComposite;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
+
+import org.eclipse.m2e.core.ui.internal.dialogs.MavenPropertyDialog;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
+import org.eclipse.m2e.core.ui.internal.editing.PomEdits.OperationTuple;
+import org.eclipse.m2e.editor.MavenEditorImages;
+import org.eclipse.m2e.editor.composites.ListEditorComposite;
+import org.eclipse.m2e.editor.composites.ListEditorContentProvider;
+import org.eclipse.m2e.editor.internal.Messages;
+
/**
* This is properties editor (double click edits the property)
@@ -53,15 +64,19 @@ import org.w3c.dom.NodeList;
* @author Anton Kraev, Milos Kleint
*/
public class PropertiesSection {
-
+
private static Logger LOG = LoggerFactory.getLogger(PropertiesSection.class);
-
+
private final MavenPomEditorPage page;
+
private FormToolkit toolkit;
+
private Composite composite;
+
private Section propertiesSection;
+
ListEditorComposite<PropertyElement> propertiesEditor;
-
+
private VerifyListener listener = new VerifyListener() {
public void verifyText(VerifyEvent e) {
e.doit = XMLChar.isValidName(e.text);
@@ -74,19 +89,19 @@ public class PropertiesSection {
this.page = page;
createSection();
}
-
+
private List<PropertyElement> getProperties() {
final List<PropertyElement> toRet = new ArrayList<PropertyElement>();
-
+
try {
performOnDOMDocument(new OperationTuple(page.getPomEditor().getDocument(), new Operation() {
public void process(Document document) {
Element properties = findChild(document.getDocumentElement(), PROPERTIES);
- if (properties != null) {
+ if(properties != null) {
NodeList nl = properties.getChildNodes();
- for (int i = 0; i < nl.getLength(); i++) {
+ for(int i = 0; i < nl.getLength(); i++ ) {
Node child = nl.item(i);
- if (child instanceof Element) {
+ if(child instanceof Element) {
toRet.add(new PropertyElement(child.getNodeName(), getTextValue(child)));
}
}
@@ -98,7 +113,7 @@ public class PropertiesSection {
}
return toRet;
}
-
+
private Section createSection() {
propertiesSection = toolkit.createSection(composite, //
ExpandableComposite.TITLE_BAR | ExpandableComposite.EXPANDED | ExpandableComposite.TWISTIE);
@@ -110,7 +125,7 @@ public class PropertiesSection {
propertiesEditor = new ListEditorComposite<PropertyElement>(propertiesSection, SWT.NONE);
propertiesSection.setClient(propertiesEditor);
propertiesEditor.getViewer().getTable().setData("name", "properties"); //$NON-NLS-1$ //$NON-NLS-2$
-
+
propertiesEditor.setContentProvider(new ListEditorContentProvider<PropertyElement>());
propertiesEditor.setLabelProvider(new PropertyPairLabelProvider());
@@ -128,47 +143,47 @@ public class PropertiesSection {
public void doubleClick(DoubleClickEvent event) {
editProperty(propertiesEditor.getSelection());
}
- }) ;
-
+ });
+
toolkit.paintBordersFor(propertiesEditor);
toolkit.adapt(propertiesEditor);
-
+
return propertiesSection;
}
-
+
public void refresh() {
propertiesEditor.setInput(getProperties());
propertiesEditor.refresh();
}
-
+
void editProperty(List<PropertyElement> list) {
- if (list.size() != 1) {
+ if(list.size() != 1) {
return;
}
-
+
final PropertyElement pp = list.get(0);
-
+
MavenPropertyDialog dialog = new MavenPropertyDialog(propertiesSection.getShell(), //
Messages.PropertiesSection_title_editProperty, pp.getName(), pp.getValue(), listener);
if(dialog.open() == IDialogConstants.OK_ID) {
final String key = dialog.getName();
final String value = dialog.getValue();
try {
- page.performEditOperation( new Operation() {
+ page.performEditOperation(new Operation() {
public void process(Document document) {
Element properties = getChild(document.getDocumentElement(), PROPERTIES);
Element old = findChild(properties, pp.getName());
- if (old == null) {
+ if(old == null) {
//should never happen..
old = getChild(properties, pp.getName());
}
- if (!pp.getName().equals(key)) {
+ if(!pp.getName().equals(key)) {
Element newElement = document.createElement(key);
properties.replaceChild(newElement, old);
setText(newElement, pp.getValue());
old = newElement;
}
- if (!pp.getValue().equals(value)) {
+ if(!pp.getValue().equals(value)) {
setText(old, value);
}
}
@@ -181,12 +196,12 @@ public class PropertiesSection {
void createNewProperty() {
MavenPropertyDialog dialog = new MavenPropertyDialog(propertiesSection.getShell(), //
- Messages.PropertiesSection_title_addProperty, "", "", listener); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
+ Messages.PropertiesSection_title_addProperty, "", "", listener); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
if(dialog.open() == IDialogConstants.OK_ID) {
final String key = dialog.getName();
final String value = dialog.getValue();
try {
- page.performEditOperation( new Operation() {
+ page.performEditOperation(new Operation() {
public void process(Document document) {
Element prop = getChild(document.getDocumentElement(), PROPERTIES, key);
setText(prop, value);
@@ -203,9 +218,9 @@ public class PropertiesSection {
page.performEditOperation(new Operation() {
public void process(Document document) {
Element props = findChild(document.getDocumentElement(), PROPERTIES);
- if (props != null) {
+ if(props != null) {
//now what if we don't find the props? profile or parent? or out of sync?
- for (PropertyElement el : selection) {
+ for(PropertyElement el : selection) {
Element prop = findChild(props, el.getName());
removeChild(props, prop);
}
@@ -221,7 +236,7 @@ public class PropertiesSection {
public ExpandableComposite getSection() {
return propertiesSection;
}
-
+
static class PropertyPairLabelProvider extends LabelProvider {
public String getText(Object element) {
@@ -231,14 +246,15 @@ public class PropertiesSection {
}
return super.getText(element);
}
-
+
public Image getImage(Object element) {
return MavenEditorImages.IMG_PROPERTY;
}
}
-
+
static class PropertyElement {
private final String name;
+
private final String value;
public PropertyElement(String name, String value) {
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/ScopeArtifactFilter.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/ScopeArtifactFilter.java
index 124e90a1..54123441 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/ScopeArtifactFilter.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/ScopeArtifactFilter.java
@@ -14,6 +14,7 @@ package org.eclipse.m2e.editor.pom;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
+
/**
* An artifact filter supporting all dependency scopes
*
@@ -21,9 +22,13 @@ import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
*/
public class ScopeArtifactFilter implements ArtifactFilter {
private final boolean compileScope;
+
private final boolean runtimeScope;
+
private final boolean testScope;
+
private final boolean providedScope;
+
private final boolean systemScope;
public ScopeArtifactFilter(String scope) {
@@ -80,6 +85,5 @@ public class ScopeArtifactFilter implements ArtifactFilter {
}
return true;
}
-
-}
+}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/SearchControl.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/SearchControl.java
index d74b39b0..e71b2429 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/SearchControl.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/SearchControl.java
@@ -12,8 +12,6 @@
package org.eclipse.m2e.editor.pom;
import org.eclipse.jface.action.ControlContribution;
-import org.eclipse.m2e.editor.MavenEditorImages;
-import org.eclipse.m2e.editor.internal.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
@@ -29,6 +27,9 @@ import org.eclipse.swt.widgets.ToolItem;
import org.eclipse.ui.forms.IManagedForm;
import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.m2e.editor.MavenEditorImages;
+import org.eclipse.m2e.editor.internal.Messages;
+
/**
* @author Eugene Kuleshov
@@ -47,11 +48,11 @@ public class SearchControl extends ControlContribution {
return searchText;
}
- private boolean isMac(){
- String os =System.getProperty("os.name"); //$NON-NLS-1$
+ private boolean isMac() {
+ String os = System.getProperty("os.name"); //$NON-NLS-1$
return os != null && os.startsWith("Mac"); //$NON-NLS-1$
}
-
+
protected Control createControl(Composite parent) {
if(parent instanceof ToolBar) {
// the FormHeading class sets the toolbar cursor to hand for some reason,
@@ -66,7 +67,7 @@ public class SearchControl extends ControlContribution {
layout.marginWidth = 0;
//gross, but on the Mac the search controls are cut off on the bottom,
//so they need to be bumped up a little. other OSs are fine.
- if(isMac()){
+ if(isMac()) {
layout.marginHeight = -1;
}
layout.verticalSpacing = 0;
@@ -78,7 +79,7 @@ public class SearchControl extends ControlContribution {
searchText = toolkit.createText(composite, "", SWT.FLAT | SWT.SEARCH); //$NON-NLS-1$
searchText.setData(FormToolkit.TEXT_BORDER, Boolean.TRUE);
-
+
searchText.setLayoutData(new GridData(200, -1));
ToolBar cancelBar = new ToolBar(composite, SWT.FLAT);
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/SearchMatcher.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/SearchMatcher.java
index 2e244fea..d7e35675 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/SearchMatcher.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/SearchMatcher.java
@@ -11,7 +11,6 @@
package org.eclipse.m2e.editor.pom;
-
/**
* @author Eugene Kuleshov
*/
@@ -28,7 +27,7 @@ public class SearchMatcher extends Matcher {
return (groupId != null && groupId.indexOf(text) > -1) //
|| (artifactId != null && artifactId.indexOf(text) > -1);
}
-
+
public boolean isEmpty() {
return searchControl.getSearchText().getText() == null //
|| searchControl.getSearchText().getText().trim().length() == 0;
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/ValueProvider.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/ValueProvider.java
index ea56306a..3d428e34 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/ValueProvider.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/ValueProvider.java
@@ -11,7 +11,6 @@
package org.eclipse.m2e.editor.pom;
-
/**
* Value provider for retrieving and creating holder element values
*
@@ -20,10 +19,9 @@ package org.eclipse.m2e.editor.pom;
public abstract class ValueProvider<T> {
public abstract T getValue();
-
+
public boolean isEmpty() {
return false;
}
-
}
diff --git a/org.eclipse.m2e.jdt/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.jdt/.settings/org.eclipse.jdt.core.prefs
index adf868eb..80d9c54b 100644
--- a/org.eclipse.m2e.jdt/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.m2e.jdt/.settings/org.eclipse.jdt.core.prefs
@@ -1,4 +1,3 @@
-#Sat Jul 30 19:02:00 MSD 2011
eclipse.preferences.version=1
org.eclipse.jdt.core.builder.cleanOutputFolder=clean
org.eclipse.jdt.core.builder.duplicateResourceTask=warning
@@ -16,6 +15,8 @@ org.eclipse.jdt.core.codeComplete.localPrefixes=
org.eclipse.jdt.core.codeComplete.localSuffixes=
org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
@@ -27,7 +28,7 @@ org.eclipse.jdt.core.compiler.doc.comment.support=enabled
org.eclipse.jdt.core.compiler.maxProblemPerUnit=100
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.autoboxing=warning
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
org.eclipse.jdt.core.compiler.problem.deadCode=warning
org.eclipse.jdt.core.compiler.problem.deprecation=warning
@@ -93,7 +94,7 @@ org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=error
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
@@ -110,6 +111,7 @@ org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH
org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
@@ -120,15 +122,18 @@ org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=2
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
org.eclipse.jdt.core.formatter.blank_lines_before_field=1
@@ -164,10 +169,16 @@ org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert
org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=2
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
@@ -185,6 +196,7 @@ org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert
org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
@@ -251,12 +263,14 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invoca
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
@@ -280,6 +294,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
@@ -335,6 +350,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
@@ -344,6 +360,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=inser
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
@@ -353,6 +370,8 @@ org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
@@ -365,7 +384,10 @@ org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
org.eclipse.jdt.core.formatter.tabulation.char=space
org.eclipse.jdt.core.formatter.tabulation.size=2
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
org.eclipse.jdt.core.incompatibleJDKLevel=ignore
org.eclipse.jdt.core.incompleteClasspath=error
diff --git a/org.eclipse.m2e.jdt/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.m2e.jdt/.settings/org.eclipse.jdt.ui.prefs
index a09d06cb..595d9975 100644
--- a/org.eclipse.m2e.jdt/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.m2e.jdt/.settings/org.eclipse.jdt.ui.prefs
@@ -1,6 +1,7 @@
eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_m2 plugin
-formatter_settings_version=11
+formatter_settings_version=12
org.eclipse.jdt.ui.exception.name=ex
org.eclipse.jdt.ui.gettersetter.use.is=true
org.eclipse.jdt.ui.ignorelowercasenames=true
@@ -10,4 +11,56 @@ org.eclipse.jdt.ui.keywordthis=true
org.eclipse.jdt.ui.ondemandthreshold=99
org.eclipse.jdt.ui.overrideannotation=false
org.eclipse.jdt.ui.staticondemandthreshold=99
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nMavenLogger.log(${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nMavenLogger.log(${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/AbstractJavaProjectConfigurator.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/AbstractJavaProjectConfigurator.java
index 19ff406b..b0de1358 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/AbstractJavaProjectConfigurator.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/AbstractJavaProjectConfigurator.java
@@ -10,77 +10,67 @@ package org.eclipse.m2e.jdt;
import java.io.File;
-import org.apache.maven.plugin.MojoExecution;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.core.JavaCore;
+
+import org.apache.maven.plugin.MojoExecution;
+
import org.eclipse.m2e.core.project.IMavenProjectFacade;
import org.eclipse.m2e.core.project.MavenProjectUtils;
import org.eclipse.m2e.core.project.configurator.AbstractProjectConfigurator;
import org.eclipse.m2e.core.project.configurator.ProjectConfigurationRequest;
-public abstract class AbstractJavaProjectConfigurator
- extends AbstractProjectConfigurator
- implements IJavaProjectConfigurator
-{
- @Override
- public void configure( ProjectConfigurationRequest request, IProgressMonitor monitor )
- throws CoreException
- {
- // TODO Auto-generated method stub
- }
+public abstract class AbstractJavaProjectConfigurator extends AbstractProjectConfigurator implements
+ IJavaProjectConfigurator {
+ @Override
+ public void configure(ProjectConfigurationRequest request, IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
- public void configureClasspath( IMavenProjectFacade facade, IClasspathDescriptor classpath, IProgressMonitor monitor )
- throws CoreException
- {
- // TODO Auto-generated method stub
+ }
- }
+ public void configureClasspath(IMavenProjectFacade facade, IClasspathDescriptor classpath, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
- public void configureRawClasspath( ProjectConfigurationRequest request, IClasspathDescriptor classpath,
- IProgressMonitor monitor )
- throws CoreException
- {
- IMavenProjectFacade facade = request.getMavenProjectFacade();
+ }
- assertHasNature( request.getProject(), JavaCore.NATURE_ID );
+ public void configureRawClasspath(ProjectConfigurationRequest request, IClasspathDescriptor classpath,
+ IProgressMonitor monitor) throws CoreException {
+ IMavenProjectFacade facade = request.getMavenProjectFacade();
- for ( MojoExecution mojoExecution : getMojoExecutions( request, monitor ) )
- {
- File[] sources = getSourceFolders( request, mojoExecution );
+ assertHasNature(request.getProject(), JavaCore.NATURE_ID);
- for ( File source : sources )
- {
- IPath sourcePath = getFullPath( facade, source );
+ for(MojoExecution mojoExecution : getMojoExecutions(request, monitor)) {
+ File[] sources = getSourceFolders(request, mojoExecution);
- if ( sourcePath != null )
- {
- classpath.addSourceEntry( sourcePath, facade.getOutputLocation(), true );
- }
- }
- }
- }
-
- protected IPath getFullPath( IMavenProjectFacade facade, File file )
- {
- IProject project = facade.getProject();
- IPath path = MavenProjectUtils.getProjectRelativePath( project, file.getAbsolutePath() );
- return project.getFullPath().append( path );
- }
+ for(File source : sources) {
+ IPath sourcePath = getFullPath(facade, source);
- protected File[] getSourceFolders( ProjectConfigurationRequest request, MojoExecution mojoExecution )
- throws CoreException
- {
- return new File[] { getParameterValue( getOutputFolderParameterName(), File.class, request.getMavenSession(),
- mojoExecution ) };
- }
-
- protected String getOutputFolderParameterName()
- {
- return "outputDirectory";
+ if(sourcePath != null) {
+ classpath.addSourceEntry(sourcePath, facade.getOutputLocation(), true);
+ }
+ }
}
+ }
+
+ protected IPath getFullPath(IMavenProjectFacade facade, File file) {
+ IProject project = facade.getProject();
+ IPath path = MavenProjectUtils.getProjectRelativePath(project, file.getAbsolutePath());
+ return project.getFullPath().append(path);
+ }
+
+ protected File[] getSourceFolders(ProjectConfigurationRequest request, MojoExecution mojoExecution)
+ throws CoreException {
+ return new File[] {getParameterValue(getOutputFolderParameterName(), File.class, request.getMavenSession(),
+ mojoExecution)};
+ }
+
+ protected String getOutputFolderParameterName() {
+ return "outputDirectory";
+ }
}
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IClasspathDescriptor.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IClasspathDescriptor.java
index 9633121d..4f033224 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IClasspathDescriptor.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IClasspathDescriptor.java
@@ -47,7 +47,7 @@ public interface IClasspathDescriptor {
/**
* Adds project source folder to the classpath. The source folder must exist in the workspace unless generated is
- * true. In the latter case, the source classpath entry will be marked as optional.
+ * true. In the latter case, the source classpath entry will be marked as optional.
*/
public IClasspathEntryDescriptor addSourceEntry(IPath sourcePath, IPath outputLocation, IPath[] inclusion,
IPath[] exclusion, boolean generated);
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IClasspathEntryDescriptor.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IClasspathEntryDescriptor.java
index c3710db7..b505651f 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IClasspathEntryDescriptor.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IClasspathEntryDescriptor.java
@@ -133,7 +133,7 @@ public interface IClasspathEntryDescriptor {
* All new classpath entries are marked as derived by default, however value of this flag is preserved when entry
* descriptor is read from .classpath file. The intend is to make sure that custom classpath entries are not removed
* automatically. Clients of IClasspathDescriptor API who prefer to manage cleanup of stale class classpath entries
- * explicitly may set derived flag to <code>false</code>.
+ * explicitly may set derived flag to <code>false</code>.
* <p>
* Although not enforced, derived flag only applies to project 'raw' classpath entries. The flag is silently ignored
* for classpath container entries.
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IClasspathManagerDelegate.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IClasspathManagerDelegate.java
index 91f9fae3..2a1f80c4 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IClasspathManagerDelegate.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IClasspathManagerDelegate.java
@@ -16,6 +16,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
+
public interface IClasspathManagerDelegate {
public void populateClasspath(IClasspathDescriptor classpath, IMavenProjectFacade projectFacade, int kind,
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IJavaProjectConfigurator.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IJavaProjectConfigurator.java
index bcbb8bc2..a29591b1 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IJavaProjectConfigurator.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/IJavaProjectConfigurator.java
@@ -28,7 +28,8 @@ public interface IJavaProjectConfigurator {
/**
* Configures *Maven* project classpath, i.e. content of Maven Dependencies classpath container.
*/
- public void configureClasspath(IMavenProjectFacade facade, IClasspathDescriptor classpath, IProgressMonitor monitor) throws CoreException;
+ public void configureClasspath(IMavenProjectFacade facade, IClasspathDescriptor classpath, IProgressMonitor monitor)
+ throws CoreException;
/**
* Configures *JDT* project classpath, i.e. project-level entries like source folders, JRE and Maven Dependencies
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java
index 43d7ead7..ec911e88 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java
@@ -392,7 +392,7 @@ public abstract class AbstractJavaProjectConfigurator extends AbstractProjectCon
for(Resource resource : resources) {
String directory = resource.getDirectory();
- if (directory == null) {
+ if(directory == null) {
continue;
}
File resourceDirectory = new File(directory);
@@ -440,9 +440,9 @@ public abstract class AbstractJavaProjectConfigurator extends AbstractProjectCon
private boolean isResourceDescriptor(IClasspathEntryDescriptor cped) {
//How can we know for sure this is a resource folder?
- if (cped != null) {
+ if(cped != null) {
IPath[] exclusionPatterns = cped.getExclusionPatterns();
- if (exclusionPatterns != null && exclusionPatterns.length == 1) {
+ if(exclusionPatterns != null && exclusionPatterns.length == 1) {
IPath excludeAllPattern = new Path("**");
return excludeAllPattern.equals(exclusionPatterns[0]);
}
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/BuildPathManager.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/BuildPathManager.java
index 6377a4ce..4ea415a2 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/BuildPathManager.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/BuildPathManager.java
@@ -85,6 +85,7 @@ import org.eclipse.m2e.jdt.IClasspathManager;
import org.eclipse.m2e.jdt.IClasspathManagerDelegate;
import org.eclipse.m2e.jdt.MavenJdtPlugin;
+
/**
* This class is responsible for mapping Maven classpath to JDT and back.
*/
@@ -129,8 +130,8 @@ public class BuildPathManager implements IMavenProjectChangedListener, IResource
private final DefaultClasspathManagerDelegate defaultDelegate;
- public BuildPathManager(IMavenProjectRegistry projectManager, IndexManager indexManager,
- BundleContext bundleContext, File stateLocationDir) {
+ public BuildPathManager(IMavenProjectRegistry projectManager, IndexManager indexManager, BundleContext bundleContext,
+ File stateLocationDir) {
this.projectManager = projectManager;
this.indexManager = indexManager;
this.mavenConfiguration = MavenPlugin.getMavenConfiguration();
@@ -160,7 +161,8 @@ public class BuildPathManager implements IMavenProjectChangedListener, IResource
IClasspathEntry[] entries = project.getRawClasspath();
for(int i = 0; i < entries.length; i++ ) {
IClasspathEntry entry = entries[i];
- if(entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER && MavenClasspathHelpers.isMaven2ClasspathContainer(entry.getPath())) {
+ if(entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER
+ && MavenClasspathHelpers.isMaven2ClasspathContainer(entry.getPath())) {
return JavaCore.getClasspathContainer(entry.getPath(), project);
}
}
@@ -308,12 +310,12 @@ public class BuildPathManager implements IMavenProjectChangedListener, IResource
desc.setJavadocUrl(javaDocUrl);
ArtifactKey aKey = desc.getArtifactKey();
- if (aKey != null) { // maybe we should try to find artifactKey little harder here?
+ if(aKey != null) { // maybe we should try to find artifactKey little harder here?
boolean downloadSources = desc.getSourceAttachmentPath() == null && srcPath == null
&& mavenConfiguration.isDownloadSources();
boolean downloadJavaDoc = desc.getJavadocUrl() == null && javaDocUrl == null
&& mavenConfiguration.isDownloadJavaDoc();
-
+
scheduleDownload(facade.getProject(), facade.getMavenProject(), aKey, downloadSources, downloadJavaDoc);
}
}
@@ -321,7 +323,8 @@ public class BuildPathManager implements IMavenProjectChangedListener, IResource
}
private boolean isUnavailable(ArtifactKey a, List<ArtifactRepository> repositories) throws CoreException {
- return maven.isUnavailable(a.getGroupId(), a.getArtifactId(), a.getVersion(), "jar" /*type*/, a.getClassifier(), repositories); //$NON-NLS-1$
+ return maven.isUnavailable(a.getGroupId(), a.getArtifactId(), a.getVersion(),
+ "jar" /*type*/, a.getClassifier(), repositories); //$NON-NLS-1$
}
// public void downloadSources(IProject project, ArtifactKey artifact, boolean downloadSources, boolean downloadJavaDoc) throws CoreException {
@@ -340,7 +343,8 @@ public class BuildPathManager implements IMavenProjectChangedListener, IResource
return getClasspath(project, scope, true, monitor);
}
- public IClasspathEntry[] getClasspath(IProject project, int scope, boolean uniquePaths, IProgressMonitor monitor) throws CoreException {
+ public IClasspathEntry[] getClasspath(IProject project, int scope, boolean uniquePaths, IProgressMonitor monitor)
+ throws CoreException {
IMavenProjectFacade facade = projectManager.create(project, monitor);
if(facade == null) {
return new IClasspathEntry[0];
@@ -368,22 +372,16 @@ public class BuildPathManager implements IMavenProjectChangedListener, IResource
}
/**
- * Downloads artifact sources using background job.
- *
- * If path is null, downloads sources for all classpath entries of the project,
- * otherwise downloads sources for the first classpath entry with the
- * given path.
+ * Downloads artifact sources using background job. If path is null, downloads sources for all classpath entries of
+ * the project, otherwise downloads sources for the first classpath entry with the given path.
*/
// public void downloadSources(IProject project, IPath path) throws CoreException {
// downloadSourcesJob.scheduleDownload(project, path, findArtifacts(project, path), true, false);
// }
/**
- * Downloads artifact JavaDocs using background job.
- *
- * If path is null, downloads sources for all classpath entries of the project,
- * otherwise downloads sources for the first classpath entry with the
- * given path.
+ * Downloads artifact JavaDocs using background job. If path is null, downloads sources for all classpath entries of
+ * the project, otherwise downloads sources for the first classpath entry with the given path.
*/
// public void downloadJavaDoc(IProject project, IPath path) throws CoreException {
// downloadSourcesJob.scheduleDownload(project, path, findArtifacts(project, path), false, true);
@@ -451,7 +449,8 @@ public class BuildPathManager implements IMavenProjectChangedListener, IResource
private ArtifactKey findArtifactInIndex(IProject project, IClasspathEntry entry) throws CoreException {
IFile jarFile = project.getWorkspace().getRoot().getFile(entry.getPath());
- File file = jarFile==null || jarFile.getLocation()==null ? entry.getPath().toFile() : jarFile.getLocation().toFile();
+ File file = jarFile == null || jarFile.getLocation() == null ? entry.getPath().toFile() : jarFile.getLocation()
+ .toFile();
IndexedArtifactFile iaf = indexManager.getIndex(project).identify(file);
if(iaf != null) {
@@ -521,11 +520,13 @@ public class BuildPathManager implements IMavenProjectChangedListener, IResource
if(IClasspathEntry.CPE_LIBRARY == entry.getEntryKind()) {
String path = entry.getPath().toPortableString();
String value = (String) props.get(path + PROPERTY_SRC_PATH);
- if (value != null && entry.getSourceAttachmentPath() != null && value.equals(entry.getSourceAttachmentPath().toPortableString())) {
+ if(value != null && entry.getSourceAttachmentPath() != null
+ && value.equals(entry.getSourceAttachmentPath().toPortableString())) {
props.remove(path + PROPERTY_SRC_PATH);
}
value = (String) props.get(path + PROPERTY_SRC_ROOT);
- if (value != null && entry.getSourceAttachmentRootPath() != null && value.equals(entry.getSourceAttachmentRootPath().toPortableString())) {
+ if(value != null && entry.getSourceAttachmentRootPath() != null
+ && value.equals(entry.getSourceAttachmentRootPath().toPortableString())) {
props.remove(path + PROPERTY_SRC_ROOT);
}
}
@@ -541,7 +542,8 @@ public class BuildPathManager implements IMavenProjectChangedListener, IResource
os.close();
}
} catch(IOException e) {
- throw new CoreException(new Status(IStatus.ERROR, MavenJdtPlugin.PLUGIN_ID, -1, "Can't save classpath container changes", e));
+ throw new CoreException(new Status(IStatus.ERROR, MavenJdtPlugin.PLUGIN_ID, -1,
+ "Can't save classpath container changes", e));
}
// update classpath container. suboptimal as this will re-calculate classpath
@@ -642,7 +644,7 @@ public class BuildPathManager implements IMavenProjectChangedListener, IResource
}
/**
- * Resolves artifact from local repository. Returns null if the artifact is not available locally
+ * Resolves artifact from local repository. Returns null if the artifact is not available locally
*/
private File getAttachedArtifactFile(ArtifactKey a, String classifier) {
// can't use Maven resolve methods since they mark artifacts as not-found even if they could be resolved remotely
@@ -755,7 +757,8 @@ public class BuildPathManager implements IMavenProjectChangedListener, IResource
MavenProject mavenProject = facade != null ? facade.getMavenProject() : null;
if(mavenProject != null) {
for(Artifact artifact : mavenProject.getArtifacts()) {
- ArtifactKey artifactKey = new ArtifactKey(artifact.getGroupId(), artifact.getArtifactId(), artifact.getBaseVersion(), artifact.getClassifier());
+ ArtifactKey artifactKey = new ArtifactKey(artifact.getGroupId(), artifact.getArtifactId(),
+ artifact.getBaseVersion(), artifact.getClassifier());
scheduleDownload(project, mavenProject, artifactKey, downloadSources, downloadJavadoc);
}
} else {
@@ -768,16 +771,20 @@ public class BuildPathManager implements IMavenProjectChangedListener, IResource
}
}
- private void scheduleDownload(IProject project, MavenProject mavenProject, ArtifactKey artifact, boolean downloadSources, boolean downloadJavadoc) throws CoreException {
- ArtifactKey[] attached = getAttachedSourcesAndJavadoc(artifact, mavenProject.getRemoteArtifactRepositories(), downloadSources, downloadJavadoc);
+ private void scheduleDownload(IProject project, MavenProject mavenProject, ArtifactKey artifact,
+ boolean downloadSources, boolean downloadJavadoc) throws CoreException {
+ ArtifactKey[] attached = getAttachedSourcesAndJavadoc(artifact, mavenProject.getRemoteArtifactRepositories(),
+ downloadSources, downloadJavadoc);
if(attached[0] != null || attached[1] != null) {
downloadSourcesJob.scheduleDownload(project, artifact, downloadSources, downloadJavadoc);
}
}
- ArtifactKey[] getAttachedSourcesAndJavadoc(ArtifactKey a, List<ArtifactRepository> repositories, boolean downloadSources, boolean downloadJavaDoc) throws CoreException {
- ArtifactKey sourcesArtifact = new ArtifactKey(a.getGroupId(), a.getArtifactId(), a.getVersion(), getSourcesClassifier(a.getClassifier()));
+ ArtifactKey[] getAttachedSourcesAndJavadoc(ArtifactKey a, List<ArtifactRepository> repositories,
+ boolean downloadSources, boolean downloadJavaDoc) throws CoreException {
+ ArtifactKey sourcesArtifact = new ArtifactKey(a.getGroupId(), a.getArtifactId(), a.getVersion(),
+ getSourcesClassifier(a.getClassifier()));
ArtifactKey javadocArtifact = new ArtifactKey(a.getGroupId(), a.getArtifactId(), a.getVersion(), CLASSIFIER_JAVADOC);
if(repositories != null) {
@@ -809,7 +816,8 @@ public class BuildPathManager implements IMavenProjectChangedListener, IResource
for(int i = 0; i < cp.length; i++ ) {
IClasspathEntry entry = cp[i];
if(IClasspathEntry.CPE_LIBRARY == entry.getEntryKind() && entry.equals(fragment.getRawClasspathEntry())) {
- List<IClasspathAttribute> attributes = new ArrayList<IClasspathAttribute>(Arrays.asList(entry.getExtraAttributes()));
+ List<IClasspathAttribute> attributes = new ArrayList<IClasspathAttribute>(Arrays.asList(entry
+ .getExtraAttributes()));
if(srcPath == null) {
// configure javadocs if available
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DefaultClasspathManagerDelegate.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DefaultClasspathManagerDelegate.java
index 10188276..c3aacaef 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DefaultClasspathManagerDelegate.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DefaultClasspathManagerDelegate.java
@@ -27,8 +27,8 @@ import org.apache.maven.project.MavenProject;
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.embedder.ArtifactKey;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
-import org.eclipse.m2e.core.project.IProjectConfigurationManager;
import org.eclipse.m2e.core.project.IMavenProjectRegistry;
+import org.eclipse.m2e.core.project.IProjectConfigurationManager;
import org.eclipse.m2e.core.project.configurator.AbstractProjectConfigurator;
import org.eclipse.m2e.core.project.configurator.ILifecycleMapping;
import org.eclipse.m2e.jdt.IClasspathDescriptor;
@@ -106,8 +106,8 @@ public class DefaultClasspathManagerDelegate implements IClasspathManagerDelegat
}
// project
- IMavenProjectFacade dependency = projectManager
- .getMavenProject(a.getGroupId(), a.getArtifactId(), a.getBaseVersion());
+ IMavenProjectFacade dependency = projectManager.getMavenProject(a.getGroupId(), a.getArtifactId(),
+ a.getBaseVersion());
if(dependency != null && dependency.getProject().equals(facade.getProject())) {
continue;
}
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DownloadSourcesActionDelegate.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DownloadSourcesActionDelegate.java
index 1b8e6eb9..47fda096 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DownloadSourcesActionDelegate.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DownloadSourcesActionDelegate.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.jdt.internal;
import org.slf4j.Logger;
@@ -24,10 +25,10 @@ import org.eclipse.ui.IEditorPart;
import org.eclipse.m2e.jdt.IClasspathManager;
import org.eclipse.m2e.jdt.MavenJdtPlugin;
+
/**
- *
* DownloadSourcesActionDelegate
- *
+ *
* @author Anton Kraev
*/
@@ -37,18 +38,18 @@ public class DownloadSourcesActionDelegate implements IEditorActionDelegate {
public void setActiveEditor(IAction action, IEditorPart part) {
- if (part != null) {
+ if(part != null) {
try {
- IClasspathManager buildpathManager = MavenJdtPlugin .getDefault().getBuildpathManager();
+ IClasspathManager buildpathManager = MavenJdtPlugin.getDefault().getBuildpathManager();
IClassFileEditorInput input = (IClassFileEditorInput) part.getEditorInput();
IJavaElement element = input.getClassFile();
- while (element.getParent() != null) {
+ while(element.getParent() != null) {
element = element.getParent();
- if (element instanceof IPackageFragmentRoot) {
+ if(element instanceof IPackageFragmentRoot) {
IPackageFragmentRoot root = (IPackageFragmentRoot) element;
- if (root.getSourceAttachmentPath() != null) {
+ if(root.getSourceAttachmentPath() != null) {
// do nothing if sources attached already
break;
}
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DownloadSourcesJob.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DownloadSourcesJob.java
index ffee461a..63c2a06e 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DownloadSourcesJob.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DownloadSourcesJob.java
@@ -54,6 +54,7 @@ import org.eclipse.m2e.jdt.MavenJdtPlugin;
*/
class DownloadSourcesJob extends Job implements IBackgroundProcessingQueue {
private static Logger log = LoggerFactory.getLogger(DownloadSourcesJob.class);
+
private static final long SCHEDULE_INTERVAL = 1000L;
private static class DownloadRequest {
@@ -67,8 +68,8 @@ class DownloadSourcesJob extends Job implements IBackgroundProcessingQueue {
final boolean downloadJavaDoc;
- public DownloadRequest(IProject project, IPackageFragmentRoot fragment, ArtifactKey artifact, boolean downloadSources,
- boolean downloadJavaDoc) {
+ public DownloadRequest(IProject project, IPackageFragmentRoot fragment, ArtifactKey artifact,
+ boolean downloadSources, boolean downloadJavaDoc) {
this.project = project;
this.fragment = fragment;
this.artifact = artifact;
@@ -79,27 +80,26 @@ class DownloadSourcesJob extends Job implements IBackgroundProcessingQueue {
public int hashCode() {
int hash = 17;
hash = hash * 31 + project.hashCode();
- hash = hash * 31 + (fragment != null? fragment.hashCode(): 0);
- hash = hash * 31 + (artifact != null? artifact.hashCode(): 0);
+ hash = hash * 31 + (fragment != null ? fragment.hashCode() : 0);
+ hash = hash * 31 + (artifact != null ? artifact.hashCode() : 0);
hash = hash * 31 + (downloadSources ? 1 : 0);
hash = hash * 31 + (downloadJavaDoc ? 1 : 0);
return hash;
}
-
+
public boolean equals(Object o) {
- if (this == o) {
+ if(this == o) {
return true;
}
- if (!(o instanceof DownloadRequest)) {
+ if(!(o instanceof DownloadRequest)) {
return false;
}
DownloadRequest other = (DownloadRequest) o;
return project.equals(other.project)
- && (fragment != null? fragment.equals(other.fragment): other.fragment == null)
- && (artifact != null? artifact.equals(other.artifact): other.artifact == null)
- && downloadSources == other.downloadSources
- && downloadJavaDoc == other.downloadJavaDoc;
+ && (fragment != null ? fragment.equals(other.fragment) : other.fragment == null)
+ && (artifact != null ? artifact.equals(other.artifact) : other.artifact == null)
+ && downloadSources == other.downloadSources && downloadJavaDoc == other.downloadJavaDoc;
}
}
@@ -134,33 +134,35 @@ class DownloadSourcesJob extends Job implements IBackgroundProcessingQueue {
Map<IPackageFragmentRoot, File[]> nonMavenProjects = new LinkedHashMap<IPackageFragmentRoot, File[]>();
for(DownloadRequest request : downloadRequests) {
- if ( request.artifact != null ) try {
- IMavenProjectFacade projectFacade = projectManager.create(request.project, monitor);
-
- if (projectFacade != null) {
- downloadMaven(projectFacade, request.artifact, request.downloadSources, request.downloadJavaDoc, monitor);
- mavenProjects.add(request.project);
- } else {
- List<ArtifactRepository> repositories = maven.getArtifactRepositories();
-
- File[] files = downloadAttachments(request.artifact, repositories, request.downloadSources, request.downloadJavaDoc, monitor);
-
- nonMavenProjects.put(request.fragment, files);
+ if(request.artifact != null)
+ try {
+ IMavenProjectFacade projectFacade = projectManager.create(request.project, monitor);
+
+ if(projectFacade != null) {
+ downloadMaven(projectFacade, request.artifact, request.downloadSources, request.downloadJavaDoc, monitor);
+ mavenProjects.add(request.project);
+ } else {
+ List<ArtifactRepository> repositories = maven.getArtifactRepositories();
+
+ File[] files = downloadAttachments(request.artifact, repositories, request.downloadSources,
+ request.downloadJavaDoc, monitor);
+
+ nonMavenProjects.put(request.fragment, files);
+ }
+ } catch(CoreException ex) {
+ exceptions.add(ex.getStatus());
}
- } catch(CoreException ex) {
- exceptions.add(ex.getStatus());
- }
}
if(!mavenProjects.isEmpty() || !nonMavenProjects.isEmpty()) {
ISchedulingRule schedulingRule = ResourcesPlugin.getWorkspace().getRuleFactory().buildRule();
getJobManager().beginRule(schedulingRule, monitor);
try {
- for (IProject mavenProject : mavenProjects) {
+ for(IProject mavenProject : mavenProjects) {
manager.updateClasspath(mavenProject, monitor);
}
- for (Map.Entry<IPackageFragmentRoot, File[]> entry : nonMavenProjects.entrySet()) {
+ for(Map.Entry<IPackageFragmentRoot, File[]> entry : nonMavenProjects.entrySet()) {
File[] files = entry.getValue();
manager.attachSourcesAndJavadoc(entry.getKey(), files[0], files[1], monitor);
}
@@ -168,7 +170,7 @@ class DownloadSourcesJob extends Job implements IBackgroundProcessingQueue {
getJobManager().endRule(schedulingRule);
}
}
-
+
if(!exceptions.isEmpty()) {
IStatus[] problems = exceptions.toArray(new IStatus[exceptions.size()]);
return new MultiStatus(MavenJdtPlugin.PLUGIN_ID, -1, problems, "Could not download sources or javadoc", null);
@@ -177,22 +179,23 @@ class DownloadSourcesJob extends Job implements IBackgroundProcessingQueue {
return Status.OK_STATUS;
}
- private void downloadMaven(IMavenProjectFacade projectFacade, ArtifactKey artifact, boolean downloadSources, boolean downloadJavadoc, IProgressMonitor monitor) throws CoreException {
+ private void downloadMaven(IMavenProjectFacade projectFacade, ArtifactKey artifact, boolean downloadSources,
+ boolean downloadJavadoc, IProgressMonitor monitor) throws CoreException {
MavenProject mavenProject = projectFacade.getMavenProject(monitor);
List<ArtifactRepository> repositories = mavenProject.getRemoteArtifactRepositories();
-
- if (artifact != null) {
+
+ if(artifact != null) {
downloadAttachments(artifact, repositories, downloadSources, downloadJavadoc, monitor);
} else {
- for (Artifact a : mavenProject.getArtifacts()) {
+ for(Artifact a : mavenProject.getArtifacts()) {
ArtifactKey aKey = new ArtifactKey(a.getGroupId(), a.getArtifactId(), a.getBaseVersion(), a.getClassifier());
downloadAttachments(aKey, repositories, downloadSources, downloadJavadoc, monitor);
}
}
}
- private File[] downloadAttachments(ArtifactKey artifact, List<ArtifactRepository> repositories, boolean downloadSources,
- boolean downloadJavadoc, IProgressMonitor monitor) throws CoreException {
+ private File[] downloadAttachments(ArtifactKey artifact, List<ArtifactRepository> repositories,
+ boolean downloadSources, boolean downloadJavadoc, IProgressMonitor monitor) throws CoreException {
if(monitor != null && monitor.isCanceled()) {
String message = "Downloading of sources/javadocs was canceled"; //$NON-NLS-1$
log.debug(message);
@@ -201,24 +204,25 @@ class DownloadSourcesJob extends Job implements IBackgroundProcessingQueue {
}
throw new OperationCanceledException(message);
}
- ArtifactKey[] attached = manager.getAttachedSourcesAndJavadoc(artifact, repositories, downloadSources, downloadJavadoc);
+ ArtifactKey[] attached = manager.getAttachedSourcesAndJavadoc(artifact, repositories, downloadSources,
+ downloadJavadoc);
- File[] files = new File[2];
+ File[] files = new File[2];
- if (attached[0] != null) {
+ if(attached[0] != null) {
try {
files[0] = download(attached[0], repositories, monitor);
log.info("Downloaded sources for " + artifact.toString());
- } catch (CoreException e) {
+ } catch(CoreException e) {
log.error("Could not download sources for " + artifact.toString(), e); //$NON-NLS-1$
}
}
- if (attached[1] != null) {
+ if(attached[1] != null) {
try {
files[1] = download(attached[1], repositories, monitor);
log.info("Downloaded javadoc for " + artifact.toString());
- } catch (CoreException e) {
+ } catch(CoreException e) {
log.error("Could not download sources for " + artifact.toString(), e); //$NON-NLS-1$
}
}
@@ -226,7 +230,8 @@ class DownloadSourcesJob extends Job implements IBackgroundProcessingQueue {
return files;
}
- private File download(ArtifactKey artifact, List<ArtifactRepository> repositories, IProgressMonitor monitor) throws CoreException {
+ private File download(ArtifactKey artifact, List<ArtifactRepository> repositories, IProgressMonitor monitor)
+ throws CoreException {
Artifact resolved = maven.resolve(artifact.getGroupId(), //
artifact.getArtifactId(), //
artifact.getVersion(), //
@@ -237,8 +242,9 @@ class DownloadSourcesJob extends Job implements IBackgroundProcessingQueue {
return resolved.getFile();
}
- private void scheduleDownload(IProject project, IPackageFragmentRoot fragment, ArtifactKey artifact, boolean downloadSources, boolean downloadJavadoc) {
- if (project == null || !project.isAccessible()) {
+ private void scheduleDownload(IProject project, IPackageFragmentRoot fragment, ArtifactKey artifact,
+ boolean downloadSources, boolean downloadJavadoc) {
+ if(project == null || !project.isAccessible()) {
return;
}
@@ -250,16 +256,16 @@ class DownloadSourcesJob extends Job implements IBackgroundProcessingQueue {
}
/**
- * If artifact is not null, download sources and/or javadoc of this artifact.
- * If artifact is null, download sources and/or javadoc of all project dependencies.
- * Entire project classpath is updated after download.
- * Does nothing if both downloadSources and downloadJavadoc are false.
+ * If artifact is not null, download sources and/or javadoc of this artifact. If artifact is null, download sources
+ * and/or javadoc of all project dependencies. Entire project classpath is updated after download. Does nothing if
+ * both downloadSources and downloadJavadoc are false.
*/
public void scheduleDownload(IProject project, ArtifactKey artifact, boolean downloadSources, boolean downloadJavadoc) {
scheduleDownload(project, null, artifact, downloadSources, downloadJavadoc);
}
- public void scheduleDownload(IPackageFragmentRoot fragment, ArtifactKey artifact, boolean downloadSources, boolean downloadJavadoc) {
+ public void scheduleDownload(IPackageFragmentRoot fragment, ArtifactKey artifact, boolean downloadSources,
+ boolean downloadJavadoc) {
IProject project = fragment.getJavaProject().getProject();
scheduleDownload(project, fragment, artifact, downloadSources, downloadJavadoc);
}
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JarLifecycleMapping.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JarLifecycleMapping.java
index c999344c..45690b94 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JarLifecycleMapping.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JarLifecycleMapping.java
@@ -10,6 +10,7 @@ package org.eclipse.m2e.jdt.internal;
import org.eclipse.m2e.core.project.configurator.AbstractCustomizableLifecycleMapping;
+
/**
* @author igor
*/
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaElementsAdapterFactory.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaElementsAdapterFactory.java
index bded57f0..1a7a30fb 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaElementsAdapterFactory.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaElementsAdapterFactory.java
@@ -39,7 +39,7 @@ import org.eclipse.m2e.jdt.MavenJdtPlugin;
* @author Igor Fedorenko
* @author Eugene Kuleshov
*/
-@SuppressWarnings({"restriction","rawtypes"})
+@SuppressWarnings({"restriction", "rawtypes"})
public class JavaElementsAdapterFactory implements IAdapterFactory {
private static final Logger log = LoggerFactory.getLogger(JavaElementsAdapterFactory.class);
@@ -62,16 +62,16 @@ public class JavaElementsAdapterFactory implements IAdapterFactory {
return null;
}
}
-
+
} else if(adaptableObject instanceof RequiredProjectWrapper) {
IMavenProjectFacade projectFacade = getProjectFacade(adaptableObject);
- if(projectFacade!=null) {
+ if(projectFacade != null) {
return projectFacade.getArtifactKey();
}
-
+
} else if(adaptableObject instanceof IJavaProject) {
return ((IJavaProject) adaptableObject).getProject().getAdapter(ArtifactKey.class);
-
+
}
} else if(adapterType == IPath.class) {
@@ -81,7 +81,7 @@ public class JavaElementsAdapterFactory implements IAdapterFactory {
return resource.getLocation();
}
}
-
+
} else if(adapterType == IMavenProjectFacade.class) {
if(adaptableObject instanceof IJavaElement) {
IProject project = ((IJavaElement) adaptableObject).getJavaProject().getProject();
@@ -116,5 +116,5 @@ public class JavaElementsAdapterFactory implements IAdapterFactory {
IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry();
return projectManager.create(project, new NullProgressMonitor());
}
-
+
}
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaProjectConversionParticipant.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaProjectConversionParticipant.java
index 11ed21ae..44384887 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaProjectConversionParticipant.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaProjectConversionParticipant.java
@@ -8,6 +8,7 @@
* Contributors:
* Red Hat, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.jdt.internal;
import java.util.Arrays;
@@ -40,29 +41,30 @@ import org.apache.maven.model.Resource;
import org.eclipse.m2e.core.project.conversion.AbstractProjectConversionParticipant;
+
/**
- * Converts existing Eclipse Java projects by setting the maven compiler source and target values.
- * It also tries to best match existing Java source directories with the corresponding
- * source, test source, resource and test resource directories of the Maven model.
- *
+ * Converts existing Eclipse Java projects by setting the maven compiler source and target values. It also tries to best
+ * match existing Java source directories with the corresponding source, test source, resource and test resource
+ * directories of the Maven model.
+ *
* @author Fred Bricon
*/
public class JavaProjectConversionParticipant extends AbstractProjectConversionParticipant {
private static final Logger log = LoggerFactory.getLogger(JavaProjectConversionParticipant.class);
-
+
private static final String DEFAULT_JAVA_SOURCE = "src/main/java"; //$NON-NLS-1$
-
+
private static final String DEFAULT_RESOURCES = "src/main/resources"; //$NON-NLS-1$
-
+
private static final String DEFAULT_JAVA_TEST_SOURCE = "src/test/java"; //$NON-NLS-1$
-
+
private static final String DEFAULT_TEST_RESOURCES = "src/test/resources"; //$NON-NLS-1$
-
+
private static final String DEFAULT_JAVA_VERSION = "1.5"; //$NON-NLS-1$
private static final String COMPILER_GROUP_ID = "org.apache.maven.plugins"; //$NON-NLS-1$
-
+
private static final String COMPILER_ARTIFACT_ID = "maven-compiler-plugin"; //$NON-NLS-1$
private static final String COMPILER_VERSION = "2.3.2"; //$NON-NLS-1$
@@ -74,47 +76,46 @@ public class JavaProjectConversionParticipant extends AbstractProjectConversionP
private static final String CONFIGURATION_KEY = "configuration"; //$NON-NLS-1$
public boolean accept(IProject project) throws CoreException {
- boolean accepts = project != null && project.isAccessible()
- && project.hasNature(JavaCore.NATURE_ID);
+ boolean accepts = project != null && project.isAccessible() && project.hasNature(JavaCore.NATURE_ID);
return accepts;
}
public void convert(IProject project, Model model, IProgressMonitor monitor) throws CoreException {
- if (!accept(project)) {
+ if(!accept(project)) {
return;
}
IJavaProject javaProject = JavaCore.create(project);
- if (javaProject == null) {
+ if(javaProject == null) {
return;
}
log.debug("Applying Java conversion to " + project.getName()); //$NON-NLS-1$
-
+
configureBuildSourceDirectories(model, javaProject);
//Read existing Eclipse compiler settings
String source = javaProject.getOption(JavaCore.COMPILER_SOURCE, false);
- String target= javaProject.getOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, false);
+ String target = javaProject.getOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, false);
//We want to keep pom.xml configuration to a minimum so we rely on convention. If the java version == 1.5,
//we shouldn't need to add anything as recent maven-compiler-plugin versions target Java 1.5 by default
- if (DEFAULT_JAVA_VERSION.equals(source) && DEFAULT_JAVA_VERSION.equals(target)) {
+ if(DEFAULT_JAVA_VERSION.equals(source) && DEFAULT_JAVA_VERSION.equals(target)) {
return;
}
-
+
//Configure Java version
boolean useProperties = false;//TODO Use preferences
- if (useProperties) {
+ if(useProperties) {
configureProperties(model, source, target);
} else {
configureCompilerPlugin(model, source, target);
}
-
+
}
private void configureProperties(Model model, String source, String target) {
Properties properties = model.getProperties();
- if (properties == null) {
+ if(properties == null) {
properties = new Properties();
model.setProperties(properties);
}
@@ -123,47 +124,47 @@ public class JavaProjectConversionParticipant extends AbstractProjectConversionP
}
private void configureCompilerPlugin(Model model, String source, String target) {
- Build build= getOrCreateBuild(model);
+ Build build = getOrCreateBuild(model);
model.setBuild(build);
-
+
Plugin compiler = getOrCreateCompilerPlugin(build);
-
- Xpp3Dom configuration = (Xpp3Dom)compiler.getConfiguration();
- if (configuration == null) {
+
+ Xpp3Dom configuration = (Xpp3Dom) compiler.getConfiguration();
+ if(configuration == null) {
configuration = new Xpp3Dom(CONFIGURATION_KEY);
compiler.setConfiguration(configuration);
}
-
+
Xpp3Dom sourceDom = configuration.getChild(SOURCE_KEY);
- if (sourceDom == null) {
+ if(sourceDom == null) {
sourceDom = new Xpp3Dom(SOURCE_KEY);
configuration.addChild(sourceDom);
}
- sourceDom.setValue(source);
-
+ sourceDom.setValue(source);
+
Xpp3Dom targetDom = configuration.getChild(TARGET_KEY);
- if (targetDom == null) {
+ if(targetDom == null) {
targetDom = new Xpp3Dom(TARGET_KEY);
configuration.addChild(targetDom);
}
- targetDom.setValue(target);
+ targetDom.setValue(target);
compiler.setConfiguration(configuration);
}
private Plugin getOrCreateCompilerPlugin(Build build) {
build.flushPluginMap();//We need to force the re-generation of the plugin map as it may be stale
- Plugin compiler = build.getPluginsAsMap().get(COMPILER_GROUP_ID+":"+COMPILER_ARTIFACT_ID); //$NON-NLS-1$
- if (compiler == null) {
+ Plugin compiler = build.getPluginsAsMap().get(COMPILER_GROUP_ID + ":" + COMPILER_ARTIFACT_ID); //$NON-NLS-1$
+ if(compiler == null) {
compiler = build.getPluginsAsMap().get(COMPILER_ARTIFACT_ID);
}
- if (compiler == null) {
+ if(compiler == null) {
compiler = new Plugin();
compiler.setGroupId(COMPILER_GROUP_ID);
compiler.setArtifactId(COMPILER_ARTIFACT_ID);
compiler.setVersion(COMPILER_VERSION);
build.addPlugin(compiler);
}
-
+
return compiler;
}
@@ -174,37 +175,37 @@ public class JavaProjectConversionParticipant extends AbstractProjectConversionP
Set<String> potentialResourceDirectories = new LinkedHashSet<String>();
Set<String> potentialTestResourceDirectories = new LinkedHashSet<String>();
IPath projectPath = javaProject.getPath();
-
- for (int i = 0; i < entries.length; i++) {
- if (entries[i].getEntryKind() == IClasspathEntry.CPE_SOURCE) {
+
+ for(int i = 0; i < entries.length; i++ ) {
+ if(entries[i].getEntryKind() == IClasspathEntry.CPE_SOURCE) {
IPath path = entries[i].getPath().makeRelativeTo(projectPath);
- if (path.isAbsolute()) {
+ if(path.isAbsolute()) {
//We only support paths relative to the project root, so we skip this one
continue;
}
String portablePath = path.toPortableString();
boolean isPotentialTestSource = isPotentialTestSource(path);
boolean isResource = false;
- if (isPotentialTestSource) {
- if (DEFAULT_TEST_RESOURCES.equals(portablePath)) {
+ if(isPotentialTestSource) {
+ if(DEFAULT_TEST_RESOURCES.equals(portablePath)) {
isResource = potentialTestResourceDirectories.add(portablePath);
} else {
potentialTestSources.add(portablePath);
}
} else {
- if (DEFAULT_RESOURCES.equals(portablePath)) {
+ if(DEFAULT_RESOURCES.equals(portablePath)) {
isResource = potentialResourceDirectories.add(portablePath);
} else {
sources.add(portablePath);
}
}
-
- if (!isResource) {
+
+ if(!isResource) {
//For source folders not already flagged as resource folder, check if
// they contain non-java sources, so we can add them as resources too
boolean hasNonJavaResources = false;
- IFolder folder = javaProject.getProject().getFolder(path);
- if (folder.isAccessible()) {
+ IFolder folder = javaProject.getProject().getFolder(path);
+ if(folder.isAccessible()) {
NonJavaResourceVisitor nonJavaResourceVisitor = new NonJavaResourceVisitor();
try {
folder.accept(nonJavaResourceVisitor);
@@ -213,16 +214,16 @@ public class JavaProjectConversionParticipant extends AbstractProjectConversionP
hasNonJavaResources = true;
} catch(CoreException ex) {
//385666 ResourceException is thrown in Helios
- if (ex.getCause() instanceof NonJavaResourceFoundException) {
+ if(ex.getCause() instanceof NonJavaResourceFoundException) {
hasNonJavaResources = true;
} else {
log.error("An error occured while analysing {} : {}", folder, ex.getMessage());
}
}
}
-
- if (hasNonJavaResources) {
- if (isPotentialTestSource) {
+
+ if(hasNonJavaResources) {
+ if(isPotentialTestSource) {
potentialTestResourceDirectories.add(portablePath);
} else {
potentialResourceDirectories.add(portablePath);
@@ -231,46 +232,46 @@ public class JavaProjectConversionParticipant extends AbstractProjectConversionP
}
}
}
-
+
Build build = getOrCreateBuild(model);
-
- if (!sources.isEmpty()) {
- if (sources.size() > 1) {
+
+ if(!sources.isEmpty()) {
+ if(sources.size() > 1) {
//We don't know how to handle multiple sources, i.e. how to map to a resource or test source directory
//That should be dealt by setting the build-helper-plugin config (http://mojo.codehaus.org/build-helper-maven-plugin/usage.html)
- log.warn("{} has multiple source entries, this is not supported yet", model.getArtifactId()); //$NON-NLS-1$
+ log.warn("{} has multiple source entries, this is not supported yet", model.getArtifactId()); //$NON-NLS-1$
}
String sourceDirectory = sources.iterator().next();
- if (!DEFAULT_JAVA_SOURCE.equals(sourceDirectory)) {
+ if(!DEFAULT_JAVA_SOURCE.equals(sourceDirectory)) {
build.setSourceDirectory(sourceDirectory);
}
-
- for (String resourceDirectory : potentialResourceDirectories) {
- if (!DEFAULT_RESOURCES.equals(resourceDirectory) || potentialResourceDirectories.size() > 1) {
+
+ for(String resourceDirectory : potentialResourceDirectories) {
+ if(!DEFAULT_RESOURCES.equals(resourceDirectory) || potentialResourceDirectories.size() > 1) {
build.addResource(createResource(resourceDirectory));
}
}
}
- if (!potentialTestSources.isEmpty()) {
- if (potentialTestSources.size() > 1) {
- log.warn("{} has multiple test source entries, this is not supported yet", model.getArtifactId()); //$NON-NLS-1$
+ if(!potentialTestSources.isEmpty()) {
+ if(potentialTestSources.size() > 1) {
+ log.warn("{} has multiple test source entries, this is not supported yet", model.getArtifactId()); //$NON-NLS-1$
}
String testSourceDirectory = potentialTestSources.iterator().next();
- if (!DEFAULT_JAVA_TEST_SOURCE.equals(testSourceDirectory)) {
+ if(!DEFAULT_JAVA_TEST_SOURCE.equals(testSourceDirectory)) {
build.setTestSourceDirectory(testSourceDirectory);
}
- for (String resourceDirectory : potentialTestResourceDirectories) {
- if (!DEFAULT_TEST_RESOURCES.equals(resourceDirectory) || potentialTestResourceDirectories.size() > 1) {
+ for(String resourceDirectory : potentialTestResourceDirectories) {
+ if(!DEFAULT_TEST_RESOURCES.equals(resourceDirectory) || potentialTestResourceDirectories.size() > 1) {
build.addTestResource(createResource(resourceDirectory));
}
}
}
//Ensure we don't attach a new empty build definition to the model
- if (build.getSourceDirectory() != null || build.getTestSourceDirectory() != null
- || !build.getResources().isEmpty() || !build.getTestResources().isEmpty()) {
- model.setBuild(build);
+ if(build.getSourceDirectory() != null || build.getTestSourceDirectory() != null || !build.getResources().isEmpty()
+ || !build.getTestResources().isEmpty()) {
+ model.setBuild(build);
}
}
@@ -285,9 +286,9 @@ public class JavaProjectConversionParticipant extends AbstractProjectConversionP
* Checks if a given path has one of its segment ending with test or tests
*/
private boolean isPotentialTestSource(IPath path) {
- for (String segment : path.segments()) {
- String folderName = segment.toLowerCase();
- if (folderName.matches(".*tests?")) { //$NON-NLS-1$
+ for(String segment : path.segments()) {
+ String folderName = segment.toLowerCase();
+ if(folderName.matches(".*tests?")) { //$NON-NLS-1$
return true;
}
}
@@ -297,35 +298,34 @@ public class JavaProjectConversionParticipant extends AbstractProjectConversionP
private Build getOrCreateBuild(Model model) {
Build build = model.getBuild();
- if (build == null) {
+ if(build == null) {
build = new Build();
}
return build;
}
-
/**
- * Visitor implementation looking for non-Java resources. as soon as such resource is found,
- * a {@link NonJavaResourceFoundException} is thrown.
+ * Visitor implementation looking for non-Java resources. as soon as such resource is found, a
+ * {@link NonJavaResourceFoundException} is thrown.
*/
private static class NonJavaResourceVisitor implements IResourceVisitor {
-
+
//TODO either declare a complete list of extensions or switch to
// a different "ignore resource" strategy
private static final List<String> IGNORED_EXTENSIONS = Arrays.asList(".svn"); //$NON-NLS-1$
-
+
public NonJavaResourceVisitor() {
}
@SuppressWarnings("unused")
public boolean visit(IResource resource) throws CoreException {
String resourceName = resource.getProjectRelativePath().lastSegment();
- if (resource.isHidden() || isIgnored(resourceName)) {
+ if(resource.isHidden() || isIgnored(resourceName)) {
return false;
}
if(resource instanceof IFile) {
IFile file = (IFile) resource;
- if (!"java".equals(file.getFileExtension())) {
+ if(!"java".equals(file.getFileExtension())) {
throw new NonJavaResourceFoundException();
}
}
@@ -333,8 +333,8 @@ public class JavaProjectConversionParticipant extends AbstractProjectConversionP
}
private boolean isIgnored(String resourceName) {
- for (String extension : IGNORED_EXTENSIONS) {
- if (resourceName.endsWith(extension)) {
+ for(String extension : IGNORED_EXTENSIONS) {
+ if(resourceName.endsWith(extension)) {
return true;
}
}
@@ -346,8 +346,9 @@ public class JavaProjectConversionParticipant extends AbstractProjectConversionP
private static final long serialVersionUID = 1L;
- public NonJavaResourceFoundException() {}
-
+ public NonJavaResourceFoundException() {
+ }
+
@Override
public Throwable fillInStackTrace() {
//Overriding fillInStackTrace() reduces the stacktrace creation overhead,
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainer.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainer.java
index 62ceedfe..134209e3 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainer.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainer.java
@@ -17,34 +17,36 @@ import org.eclipse.core.runtime.IPath;
import org.eclipse.jdt.core.IClasspathContainer;
import org.eclipse.jdt.core.IClasspathEntry;
+
/**
* Maven classpath container
*/
public class MavenClasspathContainer implements IClasspathContainer, Serializable {
private static final long serialVersionUID = -5976726121300869771L;
-
+
private final IClasspathEntry[] entries;
+
private final IPath path;
public MavenClasspathContainer(IPath path, IClasspathEntry[] entries) {
this.path = path;
this.entries = entries;
}
-
+
public String getDescription() {
- return Messages.MavenClasspathContainer_description;
+ return Messages.MavenClasspathContainer_description;
}
-
+
public int getKind() {
return IClasspathContainer.K_APPLICATION;
}
-
+
public synchronized IClasspathEntry[] getClasspathEntries() {
return entries;
}
public IPath getPath() {
- return path;
+ return path;
}
-
+
}
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainerInitializer.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainerInitializer.java
index 658bdb14..ab0362ab 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainerInitializer.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainerInitializer.java
@@ -75,7 +75,8 @@ public class MavenClasspathContainerInitializer extends ClasspathContainerInitia
getBuildPathManager().persistAttachedSourcesAndJavadoc(project, containerSuggestion, monitor);
} catch(CoreException ex) {
log.error(ex.getMessage(), ex);
- return new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, 0, Messages.MavenClasspathContainerInitializer_error_cannot_persist, ex);
+ return new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, 0,
+ Messages.MavenClasspathContainerInitializer_error_cannot_persist, ex);
}
return Status.OK_STATUS;
}
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainerSaveHelper.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainerSaveHelper.java
index c82fb60a..38823d87 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainerSaveHelper.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainerSaveHelper.java
@@ -31,7 +31,7 @@ import org.eclipse.jdt.core.JavaCore;
/**
* BuildPath save helper
- *
+ *
* @author Eugene Kuleshov
*/
public class MavenClasspathContainerSaveHelper {
@@ -41,6 +41,7 @@ public class MavenClasspathContainerSaveHelper {
{
enableResolveObject(true);
}
+
protected Object resolveObject(Object o) throws IOException {
if(o instanceof ProjectEntryReplace) {
return ((ProjectEntryReplace) o).getEntry();
@@ -58,19 +59,19 @@ public class MavenClasspathContainerSaveHelper {
};
return (IClasspathContainer) is.readObject();
}
-
+
public void writeContainer(IClasspathContainer container, OutputStream output) throws IOException {
ObjectOutputStream os = new ObjectOutputStream(new BufferedOutputStream(output)) {
{
enableReplaceObject(true);
}
-
+
protected Object replaceObject(Object o) throws IOException {
if(o instanceof IClasspathEntry) {
IClasspathEntry e = (IClasspathEntry) o;
- if(e.getEntryKind()==IClasspathEntry.CPE_PROJECT) {
+ if(e.getEntryKind() == IClasspathEntry.CPE_PROJECT) {
return new ProjectEntryReplace(e);
- } else if(e.getEntryKind()==IClasspathEntry.CPE_LIBRARY) {
+ } else if(e.getEntryKind() == IClasspathEntry.CPE_LIBRARY) {
return new LibraryEntryReplace(e);
}
} else if(o instanceof IClasspathAttribute) {
@@ -86,18 +87,23 @@ public class MavenClasspathContainerSaveHelper {
os.writeObject(container);
os.flush();
}
-
+
/**
* A library IClasspathEntry replacement used for object serialization
*/
static final class LibraryEntryReplace implements Serializable {
private static final long serialVersionUID = 3901667379326978799L;
-
+
private final IPath path;
+
private final IPath sourceAttachmentPath;
+
private final IPath sourceAttachmentRootPath;
+
private final IClasspathAttribute[] extraAttributes;
+
private final boolean exported;
+
private final IAccessRule[] accessRules;
LibraryEntryReplace(IClasspathEntry entry) {
@@ -108,23 +114,27 @@ public class MavenClasspathContainerSaveHelper {
this.extraAttributes = entry.getExtraAttributes();
this.exported = entry.isExported();
}
-
+
IClasspathEntry getEntry() {
return JavaCore.newLibraryEntry(path, sourceAttachmentPath, sourceAttachmentRootPath, //
accessRules, extraAttributes, exported);
}
}
-
+
/**
* A project IClasspathEntry replacement used for object serialization
*/
static final class ProjectEntryReplace implements Serializable {
private static final long serialVersionUID = -2397483865904288762L;
-
+
private final IPath path;
+
private final IClasspathAttribute[] extraAttributes;
+
private final IAccessRule[] accessRules;
+
private final boolean exported;
+
private final boolean combineAccessRules;
ProjectEntryReplace(IClasspathEntry entry) {
@@ -146,8 +156,9 @@ public class MavenClasspathContainerSaveHelper {
*/
static final class ClasspathAttributeReplace implements Serializable {
private static final long serialVersionUID = 6370039352012628029L;
-
+
private final String name;
+
private final String value;
ClasspathAttributeReplace(IClasspathAttribute attribute) {
@@ -159,38 +170,39 @@ public class MavenClasspathContainerSaveHelper {
return JavaCore.newClasspathAttribute(name, value);
}
}
-
+
/**
* An IAccessRule replacement used for object serialization
*/
static final class AccessRuleReplace implements Serializable {
private static final long serialVersionUID = 7315582893941374715L;
-
+
private final IPath pattern;
+
private final int kind;
-
+
AccessRuleReplace(IAccessRule accessRule) {
pattern = accessRule.getPattern();
kind = accessRule.getKind();
}
-
+
IAccessRule getAccessRule() {
return JavaCore.newAccessRule(pattern, kind);
}
}
-
+
/**
* An IPath replacement used for object serialization
*/
static final class PathReplace implements Serializable {
private static final long serialVersionUID = -2361259525684491181L;
-
+
private final String path;
PathReplace(IPath path) {
this.path = path.toPortableString();
}
-
+
IPath getPath() {
return Path.fromPortableString(path);
}
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathVariableInitializer.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathVariableInitializer.java
index adda6229..2a6f1f8c 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathVariableInitializer.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathVariableInitializer.java
@@ -11,14 +11,14 @@
package org.eclipse.m2e.jdt.internal;
-
import org.eclipse.jdt.core.ClasspathVariableInitializer;
import org.eclipse.m2e.jdt.MavenJdtPlugin;
+
/**
* Maven classpath variable initializer is used to handle M2_REPO variable.
- *
+ *
* @author Eugene Kuleshov
*/
public class MavenClasspathVariableInitializer extends ClasspathVariableInitializer {
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenJdtImages.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenJdtImages.java
index 3fc01b02..d461778b 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenJdtImages.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenJdtImages.java
@@ -31,18 +31,17 @@ public class MavenJdtImages {
// object images
// public static final Image IMG_CLEAR = createImage("clear.gif");
-
+
// descriptors
-
+
public static final ImageDescriptor JAVA_DOC = create("javadoc.gif"); //$NON-NLS-1$
-
-
+
private static ImageDescriptor create(String key) {
try {
ImageRegistry imageRegistry = getImageRegistry();
if(imageRegistry != null) {
ImageDescriptor imageDescriptor = imageRegistry.getDescriptor(key);
- if(imageDescriptor==null) {
+ if(imageDescriptor == null) {
imageDescriptor = createDescriptor(key);
imageRegistry.put(key, imageDescriptor);
}
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/Messages.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/Messages.java
index ff330305..4438062c 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/Messages.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/Messages.java
@@ -16,7 +16,7 @@ import org.eclipse.osgi.util.NLS;
/**
* Messages
- *
+ *
* @author mkleint
*/
public class Messages extends NLS {
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/actions/DownloadSourcesAction.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/actions/DownloadSourcesAction.java
index 3004402c..01e1e437 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/actions/DownloadSourcesAction.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/actions/DownloadSourcesAction.java
@@ -29,22 +29,22 @@ import org.eclipse.m2e.jdt.IClasspathManager;
import org.eclipse.m2e.jdt.MavenJdtPlugin;
-
public class DownloadSourcesAction implements IObjectActionDelegate, IExecutableExtension {
//TODO private
public static final String ID_SOURCES = "downloadSources"; //$NON-NLS-1$
+
//TODO private
public static final String ID_JAVADOC = "downloadJavaDoc"; //$NON-NLS-1$
-
+
private IStructuredSelection selection;
private String id;
-
+
public DownloadSourcesAction() {
this(ID_SOURCES);
}
-
+
public DownloadSourcesAction(String id) {
this.id = id;
}
@@ -53,11 +53,11 @@ public class DownloadSourcesAction implements IObjectActionDelegate, IExecutable
* @see org.eclipse.core.runtime.IExecutableExtension#setInitializationData(org.eclipse.core.runtime.IConfigurationElement, java.lang.String, java.lang.Object)
*/
public void setInitializationData(IConfigurationElement config, String propertyName, Object data) {
- if (data != null) {
- id = (String)data;
+ if(data != null) {
+ id = (String) data;
}
- }
-
+ }
+
public void run(IAction action) {
if(selection != null) {
IClasspathManager buildpathManager = MavenJdtPlugin.getDefault().getBuildpathManager();
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/actions/OpenJavaDocAction.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/actions/OpenJavaDocAction.java
index c0f28d51..e44a01e0 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/actions/OpenJavaDocAction.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/actions/OpenJavaDocAction.java
@@ -44,16 +44,17 @@ import org.eclipse.m2e.core.embedder.IMaven;
import org.eclipse.m2e.core.ui.internal.actions.SelectionUtil;
import org.eclipse.m2e.jdt.internal.Messages;
+
/**
* Open JavaDoc action
- *
+ *
* @author Eugene Kuleshov
*/
public class OpenJavaDocAction extends ActionDelegate {
private static final Logger log = LoggerFactory.getLogger(OpenJavaDocAction.class);
public static final String ID = "org.eclipse.m2e.openJavaDocAction"; //$NON-NLS-1$
-
+
private IStructuredSelection selection;
public void selectionChanged(IAction action, ISelection selection) {
@@ -63,7 +64,7 @@ public class OpenJavaDocAction extends ActionDelegate {
this.selection = null;
}
}
-
+
public void run(IAction action) {
if(selection != null) {
try {
@@ -73,13 +74,13 @@ public class OpenJavaDocAction extends ActionDelegate {
return;
}
- new Job(NLS.bind(Messages.OpenJavaDocAction_job_open_javadoc,ak)) {
+ new Job(NLS.bind(Messages.OpenJavaDocAction_job_open_javadoc, ak)) {
protected IStatus run(IProgressMonitor monitor) {
openJavaDoc(ak.getGroupId(), ak.getArtifactId(), ak.getVersion(), monitor);
return Status.OK_STATUS;
}
}.schedule();
-
+
} catch(CoreException ex) {
log.error(ex.getMessage(), ex);
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
@@ -99,9 +100,10 @@ public class OpenJavaDocAction extends ActionDelegate {
IMaven maven = MavenPlugin.getMaven();
List<ArtifactRepository> artifactRepositories = maven.getArtifactRepositories();
-
- Artifact artifact = maven.resolve(groupId, artifactId, version, "javadoc", "javadoc", artifactRepositories, monitor); //$NON-NLS-1$ //$NON-NLS-2$
-
+
+ Artifact artifact = maven.resolve(groupId, artifactId, version,
+ "javadoc", "javadoc", artifactRepositories, monitor); //$NON-NLS-1$ //$NON-NLS-2$
+
final File file = artifact.getFile();
if(file == null) {
openDialog(NLS.bind(Messages.OpenJavaDocAction_error_download, name));
@@ -113,7 +115,7 @@ public class OpenJavaDocAction extends ActionDelegate {
try {
String url = "jar:" + file.toURI().toString() + "!/index.html"; //$NON-NLS-1$ //$NON-NLS-2$
URL helpUrl = PlatformUI.getWorkbench().getHelpSystem().resolve(url, true);
-
+
IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();
IWebBrowser browser = browserSupport.createBrowser(IWorkbenchBrowserSupport.NAVIGATION_BAR, //
name, name, name);
@@ -123,12 +125,12 @@ public class OpenJavaDocAction extends ActionDelegate {
}
}
});
-
+
} catch(CoreException ex) {
log.error("Can't download JavaDoc for " + name, ex);
- openDialog(NLS.bind(Messages.OpenJavaDocAction_error_download,name));
+ openDialog(NLS.bind(Messages.OpenJavaDocAction_error_download, name));
// TODO search index and offer to select other version
- }
+ }
}
@@ -140,5 +142,5 @@ public class OpenJavaDocAction extends ActionDelegate {
}
});
}
-
+
}
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/launch/MavenLaunchConfigurationListener.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/launch/MavenLaunchConfigurationListener.java
index 1d3e73fb..108294f3 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/launch/MavenLaunchConfigurationListener.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/launch/MavenLaunchConfigurationListener.java
@@ -26,6 +26,7 @@ import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.core.project.IMavenProjectChangedListener;
import org.eclipse.m2e.core.project.MavenProjectChangedEvent;
+
public class MavenLaunchConfigurationListener implements ILaunchConfigurationListener, IMavenProjectChangedListener {
private static final Logger log = LoggerFactory.getLogger(MavenLaunchConfigurationListener.class);
@@ -43,14 +44,14 @@ public class MavenLaunchConfigurationListener implements ILaunchConfigurationLis
private void updateLaunchConfiguration(ILaunchConfiguration configuration) {
try {
- if (!MavenRuntimeClasspathProvider.isSupportedType(configuration.getType().getIdentifier())) {
+ if(!MavenRuntimeClasspathProvider.isSupportedType(configuration.getType().getIdentifier())) {
return;
}
- if (configuration.getAttributes().containsKey(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH_PROVIDER)) {
+ if(configuration.getAttributes().containsKey(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH_PROVIDER)) {
return;
}
IJavaProject javaProject = JavaRuntime.getJavaProject(configuration);
- if (javaProject != null && javaProject.getProject().hasNature(IMavenConstants.NATURE_ID)) {
+ if(javaProject != null && javaProject.getProject().hasNature(IMavenConstants.NATURE_ID)) {
MavenRuntimeClasspathProvider.enable(configuration);
}
} catch(CoreException ex) {
@@ -58,22 +59,22 @@ public class MavenLaunchConfigurationListener implements ILaunchConfigurationLis
}
}
- public void mavenProjectChanged(MavenProjectChangedEvent[] events, IProgressMonitor monitor) {
- for (MavenProjectChangedEvent event : events) {
- try {
- switch (event.getKind()) {
- case MavenProjectChangedEvent.KIND_ADDED:
- MavenRuntimeClasspathProvider.enable(event.getMavenProject().getProject());
- break;
- case MavenProjectChangedEvent.KIND_REMOVED:
- MavenRuntimeClasspathProvider.disable(event.getOldMavenProject().getProject());
- break;
- default:
- break;
- }
- } catch (Exception e) {
- log.error("Could not update launch configuration", e);
- }
- }
- }
+ public void mavenProjectChanged(MavenProjectChangedEvent[] events, IProgressMonitor monitor) {
+ for(MavenProjectChangedEvent event : events) {
+ try {
+ switch(event.getKind()) {
+ case MavenProjectChangedEvent.KIND_ADDED:
+ MavenRuntimeClasspathProvider.enable(event.getMavenProject().getProject());
+ break;
+ case MavenProjectChangedEvent.KIND_REMOVED:
+ MavenRuntimeClasspathProvider.disable(event.getOldMavenProject().getProject());
+ break;
+ default:
+ break;
+ }
+ } catch(Exception e) {
+ log.error("Could not update launch configuration", e);
+ }
+ }
+ }
}
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/launch/MavenRuntimeClasspathProvider.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/launch/MavenRuntimeClasspathProvider.java
index 938ec521..9516ba11 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/launch/MavenRuntimeClasspathProvider.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/launch/MavenRuntimeClasspathProvider.java
@@ -59,7 +59,7 @@ import org.eclipse.m2e.jdt.internal.Messages;
public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
-
+
public static final String MAVEN_SOURCEPATH_PROVIDER = "org.eclipse.m2e.launchconfig.sourcepathProvider"; //$NON-NLS-1$
public static final String MAVEN_CLASSPATH_PROVIDER = "org.eclipse.m2e.launchconfig.classpathProvider"; //$NON-NLS-1$
@@ -71,7 +71,7 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
public static final String JDT_JUNIT_TEST = "org.eclipse.jdt.junit.launchconfig"; //$NON-NLS-1$
public static final String JDT_JAVA_APPLICATION = "org.eclipse.jdt.launching.localJavaApplication"; //$NON-NLS-1$
-
+
public static final String JDT_TESTNG_TEST = "org.testng.eclipse.launchconfig"; //$NON-NLS-1$
private static final Set<String> supportedTypes = new HashSet<String>();
@@ -84,13 +84,15 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry();
- public IRuntimeClasspathEntry[] computeUnresolvedClasspath(final ILaunchConfiguration configuration) throws CoreException {
+ public IRuntimeClasspathEntry[] computeUnresolvedClasspath(final ILaunchConfiguration configuration)
+ throws CoreException {
boolean useDefault = configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_DEFAULT_CLASSPATH, true);
- if (useDefault) {
+ if(useDefault) {
IJavaProject javaProject = JavaRuntime.getJavaProject(configuration);
IRuntimeClasspathEntry jreEntry = JavaRuntime.computeJREEntry(configuration);
IRuntimeClasspathEntry projectEntry = JavaRuntime.newProjectRuntimeClasspathEntry(javaProject);
- IRuntimeClasspathEntry mavenEntry = JavaRuntime.newRuntimeContainerClasspathEntry(new Path(IClasspathManager.CONTAINER_ID), IRuntimeClasspathEntry.USER_CLASSES);
+ IRuntimeClasspathEntry mavenEntry = JavaRuntime.newRuntimeContainerClasspathEntry(new Path(
+ IClasspathManager.CONTAINER_ID), IRuntimeClasspathEntry.USER_CLASSES);
if(jreEntry == null) {
return new IRuntimeClasspathEntry[] {projectEntry, mavenEntry};
@@ -98,7 +100,7 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
return new IRuntimeClasspathEntry[] {jreEntry, projectEntry, mavenEntry};
}
-
+
return recoverRuntimePath(configuration, IJavaLaunchConfigurationConstants.ATTR_CLASSPATH);
}
@@ -108,11 +110,12 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
int scope = getArtifactScope(configuration);
Set<IRuntimeClasspathEntry> all = new LinkedHashSet<IRuntimeClasspathEntry>(entries.length);
for(IRuntimeClasspathEntry entry : entries) {
- if (entry.getType() == IRuntimeClasspathEntry.CONTAINER && MavenClasspathHelpers.isMaven2ClasspathContainer(entry.getPath())) {
+ if(entry.getType() == IRuntimeClasspathEntry.CONTAINER
+ && MavenClasspathHelpers.isMaven2ClasspathContainer(entry.getPath())) {
addMavenClasspathEntries(all, entry, configuration, scope, monitor);
- } else if (entry.getType() == IRuntimeClasspathEntry.PROJECT) {
+ } else if(entry.getType() == IRuntimeClasspathEntry.PROJECT) {
IJavaProject javaProject = JavaRuntime.getJavaProject(configuration);
- if (javaProject.getPath().equals(entry.getPath())) {
+ if(javaProject.getPath().equals(entry.getPath())) {
addProjectEntries(all, entry.getPath(), scope, THIS_PROJECT_CLASSIFIER, configuration, monitor);
} else {
addStandardClasspathEntries(all, entry, configuration);
@@ -124,24 +127,23 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
return all.toArray(new IRuntimeClasspathEntry[all.size()]);
}
- private void addStandardClasspathEntries(Set<IRuntimeClasspathEntry> all, IRuntimeClasspathEntry entry, ILaunchConfiguration configuration)
- throws CoreException
- {
+ private void addStandardClasspathEntries(Set<IRuntimeClasspathEntry> all, IRuntimeClasspathEntry entry,
+ ILaunchConfiguration configuration) throws CoreException {
IRuntimeClasspathEntry[] resolved = JavaRuntime.resolveRuntimeClasspathEntry(entry, configuration);
- for (int j = 0; j < resolved.length; j++) {
+ for(int j = 0; j < resolved.length; j++ ) {
all.add(resolved[j]);
}
}
- private void addMavenClasspathEntries(Set<IRuntimeClasspathEntry> resolved, IRuntimeClasspathEntry runtimeClasspathEntry,
- ILaunchConfiguration configuration, int scope, IProgressMonitor monitor) throws CoreException
- {
+ private void addMavenClasspathEntries(Set<IRuntimeClasspathEntry> resolved,
+ IRuntimeClasspathEntry runtimeClasspathEntry, ILaunchConfiguration configuration, int scope,
+ IProgressMonitor monitor) throws CoreException {
IJavaProject javaProject = JavaRuntime.getJavaProject(configuration);
MavenJdtPlugin plugin = MavenJdtPlugin.getDefault();
IClasspathManager buildpathManager = plugin.getBuildpathManager();
IClasspathEntry[] cp = buildpathManager.getClasspath(javaProject.getProject(), scope, false, monitor);
for(IClasspathEntry entry : cp) {
- switch (entry.getEntryKind()) {
+ switch(entry.getEntryKind()) {
case IClasspathEntry.CPE_PROJECT:
addProjectEntries(resolved, entry.getPath(), scope, getArtifactClassifier(entry), configuration, monitor);
break;
@@ -157,11 +159,11 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
protected int getArtifactScope(ILaunchConfiguration configuration) throws CoreException {
String typeid = configuration.getType().getAttribute("id"); //$NON-NLS-1$
- if (JDT_JAVA_APPLICATION.equals(typeid)) {
+ if(JDT_JAVA_APPLICATION.equals(typeid)) {
IResource[] resources = configuration.getMappedResources();
// MNGECLIPSE-530: NPE starting openarchitecture workflow
- if (resources == null || resources.length == 0) {
+ if(resources == null || resources.length == 0) {
return IClasspathManager.CLASSPATH_RUNTIME;
}
@@ -169,15 +171,15 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
final Set<IPath> testSources = new HashSet<IPath>();
IJavaProject javaProject = JavaRuntime.getJavaProject(configuration);
IMavenProjectFacade facade = projectManager.create(javaProject.getProject(), new NullProgressMonitor());
- if (facade == null) {
+ if(facade == null) {
return IClasspathManager.CLASSPATH_RUNTIME;
}
-
+
testSources.addAll(Arrays.asList(facade.getTestCompileSourceLocations()));
- for (int i = 0; i < resources.length; i++) {
- for (IPath testPath : testSources) {
- if (testPath.isPrefixOf(resources[i].getProjectRelativePath())) {
+ for(int i = 0; i < resources.length; i++ ) {
+ for(IPath testPath : testSources) {
+ if(testPath.isPrefixOf(resources[i].getProjectRelativePath())) {
return IClasspathManager.CLASSPATH_TEST;
}
}
@@ -186,12 +188,13 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
} else if(JDT_JUNIT_TEST.equals(typeid) || JDT_TESTNG_TEST.equals(typeid)) {
return IClasspathManager.CLASSPATH_TEST;
} else {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, 0,
- NLS.bind(Messages.MavenRuntimeClasspathProvider_error_unsupported, typeid), null));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, 0, NLS.bind(
+ Messages.MavenRuntimeClasspathProvider_error_unsupported, typeid), null));
}
}
- protected void addProjectEntries(Set<IRuntimeClasspathEntry> resolved, IPath path, int scope, String classifier, ILaunchConfiguration launchConfiguration, final IProgressMonitor monitor) throws CoreException {
+ protected void addProjectEntries(Set<IRuntimeClasspathEntry> resolved, IPath path, int scope, String classifier,
+ ILaunchConfiguration launchConfiguration, final IProgressMonitor monitor) throws CoreException {
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IProject project = root.getProject(path.segment(0));
@@ -201,7 +204,7 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
}
ResolverConfiguration configuration = projectFacade.getResolverConfiguration();
- if (configuration == null) {
+ if(configuration == null) {
return;
}
@@ -217,14 +220,14 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
boolean projectResolved = false;
for(IClasspathEntry entry : javaProject.getRawClasspath()) {
IRuntimeClasspathEntry rce = null;
- switch (entry.getEntryKind()) {
+ switch(entry.getEntryKind()) {
case IClasspathEntry.CPE_SOURCE:
- if (!projectResolved) {
- if (IClasspathManager.CLASSPATH_TEST == scope && isTestClassifier(classifier)) {
+ if(!projectResolved) {
+ if(IClasspathManager.CLASSPATH_TEST == scope && isTestClassifier(classifier)) {
// ECLIPSE-19: test classes come infront on the rest
addFolders(resolved, project, allTestClasses);
}
- if (isMainClassifier(classifier)) {
+ if(isMainClassifier(classifier)) {
addFolders(resolved, project, allClasses);
}
projectResolved = true;
@@ -232,10 +235,11 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
break;
case IClasspathEntry.CPE_CONTAINER:
IClasspathContainer container = JavaCore.getClasspathContainer(entry.getPath(), javaProject);
- if (container != null && !MavenClasspathHelpers.isMaven2ClasspathContainer(entry.getPath())) {
- switch (container.getKind()) {
+ if(container != null && !MavenClasspathHelpers.isMaven2ClasspathContainer(entry.getPath())) {
+ switch(container.getKind()) {
case IClasspathContainer.K_APPLICATION:
- rce = JavaRuntime.newRuntimeContainerClasspathEntry(container.getPath(), IRuntimeClasspathEntry.USER_CLASSES, javaProject);
+ rce = JavaRuntime.newRuntimeContainerClasspathEntry(container.getPath(),
+ IRuntimeClasspathEntry.USER_CLASSES, javaProject);
break;
// case IClasspathContainer.K_DEFAULT_SYSTEM:
// unresolved.add(JavaRuntime.newRuntimeContainerClasspathEntry(container.getPath(), IRuntimeClasspathEntry.STANDARD_CLASSES, javaProject));
@@ -250,15 +254,15 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
rce = JavaRuntime.newArchiveRuntimeClasspathEntry(entry.getPath());
break;
case IClasspathEntry.CPE_VARIABLE:
- if (!JavaRuntime.JRELIB_VARIABLE.equals(entry.getPath().segment(0))) {
+ if(!JavaRuntime.JRELIB_VARIABLE.equals(entry.getPath().segment(0))) {
rce = JavaRuntime.newVariableRuntimeClasspathEntry(entry.getPath());
}
break;
case IClasspathEntry.CPE_PROJECT:
IProject res = root.getProject(entry.getPath().segment(0));
- if (res != null) {
+ if(res != null) {
IJavaProject otherProject = JavaCore.create(res);
- if (otherProject != null) {
+ if(otherProject != null) {
rce = JavaRuntime.newDefaultProjectClasspathEntry(otherProject);
}
}
@@ -266,7 +270,7 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
default:
break;
}
- if (rce != null) {
+ if(rce != null) {
addStandardClasspathEntries(resolved, rce, launchConfiguration);
}
}
@@ -297,7 +301,7 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
}
public static void enable(ILaunchConfiguration config) throws CoreException {
- if (config instanceof ILaunchConfigurationWorkingCopy) {
+ if(config instanceof ILaunchConfigurationWorkingCopy) {
enable((ILaunchConfigurationWorkingCopy) config);
} else {
ILaunchConfigurationWorkingCopy wc = config.getWorkingCopy();
@@ -317,7 +321,7 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_SOURCE_PATH_PROVIDER, (String) null);
wc.doSave();
}
-
+
private static String getArtifactClassifier(IClasspathEntry entry) {
IClasspathAttribute[] attributes = entry.getExtraAttributes();
for(IClasspathAttribute attribute : attributes) {
@@ -335,7 +339,7 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
}
}
}
-
+
public static void disable(IProject project) throws CoreException {
for(ILaunchConfiguration config : getLaunchConfiguration(project)) {
if(isSupportedType(config.getType().getIdentifier())) {
@@ -350,8 +354,8 @@ public class MavenRuntimeClasspathProvider extends StandardClasspathProvider {
ILaunchConfiguration[] configurations = launchManager.getLaunchConfigurations();
for(ILaunchConfiguration config : configurations) {
String projectName = config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, (String) null);
- if (project.getName().equals(projectName)) {
- result.add(config);
+ if(project.getName().equals(projectName)) {
+ result.add(config);
}
}
return result;
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/launch/MavenSourcePathProvider.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/launch/MavenSourcePathProvider.java
index d13145ab..7d728745 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/launch/MavenSourcePathProvider.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/launch/MavenSourcePathProvider.java
@@ -27,7 +27,6 @@ import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
import org.eclipse.jdt.launching.JavaRuntime;
-
public class MavenSourcePathProvider extends MavenRuntimeClasspathProvider {
public IRuntimeClasspathEntry[] computeUnresolvedClasspath(ILaunchConfiguration configuration) throws CoreException {
@@ -41,7 +40,8 @@ public class MavenSourcePathProvider extends MavenRuntimeClasspathProvider {
}
@Override
- protected void addProjectEntries(Set<IRuntimeClasspathEntry> resolved, IPath path, int scope, String classifier, ILaunchConfiguration launchConfiguration, final IProgressMonitor monitor) {
+ protected void addProjectEntries(Set<IRuntimeClasspathEntry> resolved, IPath path, int scope, String classifier,
+ ILaunchConfiguration launchConfiguration, final IProgressMonitor monitor) {
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IProject project = root.getProject(path.segment(0));
IJavaProject javaProject = JavaCore.create(project);
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/ui/MavenClasspathContainerPage.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/ui/MavenClasspathContainerPage.java
index cd393214..82dc69b7 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/ui/MavenClasspathContainerPage.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/ui/MavenClasspathContainerPage.java
@@ -40,7 +40,7 @@ public class MavenClasspathContainerPage extends WizardPage implements IClasspat
IJavaProject javaProject;
private IClasspathEntry containerEntry;
-
+
public MavenClasspathContainerPage() {
super(Messages.MavenClasspathContainerPage_title);
}
@@ -66,7 +66,6 @@ public class MavenClasspathContainerPage extends WizardPage implements IClasspat
setTitle(Messages.MavenClasspathContainerPage_control_title);
setDescription(Messages.MavenClasspathContainerPage_control_desc);
-
Composite composite = new Composite(parent, SWT.NONE);
composite.setLayout(new GridLayout());
setControl(composite);
@@ -78,7 +77,7 @@ public class MavenClasspathContainerPage extends WizardPage implements IClasspat
public void widgetSelected(SelectionEvent e) {
// IWorkbenchPreferenceContainer container= (IWorkbenchPreferenceContainer) getContainer();
// container.openPage(MavenProjectPreferencePage.ID, javaProject.getProject());
-
+
PreferencesUtil.createPropertyDialogOn(getShell(), javaProject.getProject(), //
IMavenConstants.PREFERENCE_PAGE_ID, new String[] {IMavenConstants.PREFERENCE_PAGE_ID}, null).open();
}
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/ui/filter/MavenModuleFilter.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/ui/filter/MavenModuleFilter.java
index c5b300b3..e2099f6d 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/ui/filter/MavenModuleFilter.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/ui/filter/MavenModuleFilter.java
@@ -28,9 +28,10 @@ import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
import org.eclipse.m2e.core.project.IMavenProjectRegistry;
+
/**
* MavenModuleFilter
- *
+ *
* @author Eugene Kuleshov
*/
public class MavenModuleFilter extends ViewerFilter {
@@ -64,10 +65,9 @@ public class MavenModuleFilter extends ViewerFilter {
} catch(CoreException ex) {
log.error(ex.getMessage(), ex);
}
-
+
}
return true;
}
}
-
diff --git a/org.eclipse.m2e.launching/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.launching/.settings/org.eclipse.jdt.core.prefs
index d80fc6eb..80d9c54b 100644
--- a/org.eclipse.m2e.launching/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.m2e.launching/.settings/org.eclipse.jdt.core.prefs
@@ -1,5 +1,12 @@
-#Sat Jul 30 19:02:00 MSD 2011
eclipse.preferences.version=1
+org.eclipse.jdt.core.builder.cleanOutputFolder=clean
+org.eclipse.jdt.core.builder.duplicateResourceTask=warning
+org.eclipse.jdt.core.builder.invalidClasspath=abort
+org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder=ignore
+org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch
+org.eclipse.jdt.core.circularClasspath=error
+org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
+org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
org.eclipse.jdt.core.codeComplete.argumentPrefixes=
org.eclipse.jdt.core.codeComplete.argumentSuffixes=
org.eclipse.jdt.core.codeComplete.fieldPrefixes=
@@ -8,6 +15,8 @@ org.eclipse.jdt.core.codeComplete.localPrefixes=
org.eclipse.jdt.core.codeComplete.localSuffixes=
org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
@@ -15,14 +24,16 @@ org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.doc.comment.support=enabled
+org.eclipse.jdt.core.compiler.maxProblemPerUnit=100
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
org.eclipse.jdt.core.compiler.problem.deadCode=warning
org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
@@ -31,16 +42,29 @@ org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
+org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
@@ -49,39 +73,45 @@ org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
org.eclipse.jdt.core.compiler.problem.nullReference=warning
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=error
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=enabled
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled
+org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH
+org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
@@ -92,15 +122,18 @@ org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=2
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
org.eclipse.jdt.core.formatter.blank_lines_before_field=1
@@ -136,10 +169,16 @@ org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert
org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=2
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
@@ -157,6 +196,7 @@ org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert
org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
@@ -223,12 +263,14 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invoca
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
@@ -252,6 +294,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
@@ -307,6 +350,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
@@ -316,6 +360,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=inser
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
@@ -325,6 +370,8 @@ org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
@@ -337,5 +384,10 @@ org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
org.eclipse.jdt.core.formatter.tabulation.char=space
org.eclipse.jdt.core.formatter.tabulation.size=2
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
+org.eclipse.jdt.core.incompatibleJDKLevel=ignore
+org.eclipse.jdt.core.incompleteClasspath=error
diff --git a/org.eclipse.m2e.launching/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.m2e.launching/.settings/org.eclipse.jdt.ui.prefs
index 3860940c..595d9975 100644
--- a/org.eclipse.m2e.launching/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.m2e.launching/.settings/org.eclipse.jdt.ui.prefs
@@ -1,9 +1,66 @@
eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_m2 plugin
-formatter_settings_version=11
+formatter_settings_version=12
org.eclipse.jdt.ui.exception.name=ex
org.eclipse.jdt.ui.gettersetter.use.is=true
-org.eclipse.jdt.ui.javadoc=false
-org.eclipse.jdt.ui.keywordthis=false
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=java;javax;org;org.w3c;org.xml;org.apache;com;junit;org.eclipse;org.codehaus;org.apache.lucene;org.apache.maven;org.sonatype;org.eclipse.m2e;
+org.eclipse.jdt.ui.javadoc=true
+org.eclipse.jdt.ui.keywordthis=true
+org.eclipse.jdt.ui.ondemandthreshold=99
org.eclipse.jdt.ui.overrideannotation=false
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************\n * Copyright (c) 2010 Sonatype, Inc.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http\://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors\:\n * Sonatype, Inc. - initial API and implementation\n *******************************************************************************/</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+org.eclipse.jdt.ui.staticondemandthreshold=99
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/ExecutePomAction.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/ExecutePomAction.java
index 7a30696c..d94eeab3 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/ExecutePomAction.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/ExecutePomAction.java
@@ -13,6 +13,9 @@ package org.eclipse.m2e.actions;
import java.util.ArrayList;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
@@ -45,6 +48,14 @@ import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.window.Window;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IFileEditorInput;
+import org.eclipse.ui.dialogs.ElementListSelectionDialog;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
@@ -54,15 +65,6 @@ import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
import org.eclipse.m2e.internal.launch.LaunchingUtils;
import org.eclipse.m2e.internal.launch.Messages;
import org.eclipse.m2e.ui.internal.launch.MavenLaunchMainTab;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IFileEditorInput;
-import org.eclipse.ui.dialogs.ElementListSelectionDialog;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
@@ -130,7 +132,7 @@ public class ExecutePomAction implements ILaunchShortcut, IExecutableExtension {
if(basecon == null) {
return;
}
-
+
IContainer basedir = findPomXmlBasedir(basecon);
ILaunchConfiguration launchConfiguration = getLaunchConfiguration(basedir, mode);
@@ -195,24 +197,26 @@ public class ExecutePomAction implements ILaunchShortcut, IExecutableExtension {
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
ILaunchConfigurationType launchConfigurationType = launchManager
.getLaunchConfigurationType(MavenLaunchConstants.LAUNCH_CONFIGURATION_TYPE_ID);
-
+
String launchSafeGoalName = goal.replace(':', '-');
- ILaunchConfigurationWorkingCopy workingCopy = launchConfigurationType.newInstance(null, //
- NLS.bind(Messages.ExecutePomAction_executing, launchSafeGoalName, basedir.getLocation().toString().replace('/', '-')));
+ ILaunchConfigurationWorkingCopy workingCopy = launchConfigurationType.newInstance(
+ null, //
+ NLS.bind(Messages.ExecutePomAction_executing, launchSafeGoalName,
+ basedir.getLocation().toString().replace('/', '-')));
workingCopy.setAttribute(MavenLaunchConstants.ATTR_POM_DIR, basedir.getLocation().toOSString());
workingCopy.setAttribute(MavenLaunchConstants.ATTR_GOALS, goal);
workingCopy.setAttribute(IDebugUIConstants.ATTR_PRIVATE, true);
workingCopy.setAttribute(RefreshTab.ATTR_REFRESH_SCOPE, "${project}"); //$NON-NLS-1$
workingCopy.setAttribute(RefreshTab.ATTR_REFRESH_RECURSIVE, true);
-
+
setProjectConfiguration(workingCopy, basedir);
IPath path = getJREContainerPath(basedir);
if(path != null) {
workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_JRE_CONTAINER_PATH, path.toPortableString());
}
-
+
// TODO when launching Maven with debugger consider to add the following property
// -Dmaven.surefire.debug="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE"
@@ -284,7 +288,8 @@ public class ExecutePomAction implements ILaunchShortcut, IExecutableExtension {
ArrayList<ILaunchConfiguration> matchingConfigs = new ArrayList<ILaunchConfiguration>();
for(ILaunchConfiguration configuration : launchConfigurations) {
// substitute variables
- String workDir = LaunchingUtils.substituteVar(configuration.getAttribute(MavenLaunchConstants.ATTR_POM_DIR, (String) null));
+ String workDir = LaunchingUtils.substituteVar(configuration.getAttribute(MavenLaunchConstants.ATTR_POM_DIR,
+ (String) null));
if(workDir == null) {
continue;
}
@@ -293,11 +298,11 @@ public class ExecutePomAction implements ILaunchShortcut, IExecutableExtension {
matchingConfigs.add(configuration);
}
}
-
- if(matchingConfigs.size()==1) {
+
+ if(matchingConfigs.size() == 1) {
log.info("Using existing launch configuration");
return matchingConfigs.get(0);
- } else if(matchingConfigs.size()>1) {
+ } else if(matchingConfigs.size() > 1) {
final IDebugModelPresentation labelProvider = DebugUITools.newDebugModelPresentation();
ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), //
new ILabelProvider() {
@@ -336,7 +341,7 @@ public class ExecutePomAction implements ILaunchShortcut, IExecutableExtension {
});
dialog.setElements(matchingConfigs.toArray(new ILaunchConfiguration[matchingConfigs.size()]));
dialog.setTitle(Messages.ExecutePomAction_dialog_title);
- if (mode.equals(ILaunchManager.DEBUG_MODE)) {
+ if(mode.equals(ILaunchManager.DEBUG_MODE)) {
dialog.setMessage(Messages.ExecutePomAction_dialog_debug_message);
} else {
dialog.setMessage(Messages.ExecutePomAction_dialog_run_message);
@@ -346,7 +351,7 @@ public class ExecutePomAction implements ILaunchShortcut, IExecutableExtension {
labelProvider.dispose();
return result == Window.OK ? (ILaunchConfiguration) dialog.getFirstResult() : null;
}
-
+
} catch(CoreException ex) {
log.error(ex.getMessage(), ex);
}
@@ -360,7 +365,7 @@ public class ExecutePomAction implements ILaunchShortcut, IExecutableExtension {
workingCopy.setAttribute(MavenLaunchConstants.ATTR_POM_DIR, basedirLocation.toString());
setProjectConfiguration(workingCopy, basedir);
-
+
// set other defaults if needed
// MavenLaunchMainTab maintab = new MavenLaunchMainTab();
// maintab.setDefaults(workingCopy);
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/MavenLaunchConstants.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/MavenLaunchConstants.java
index 88565093..535f61c0 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/MavenLaunchConstants.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/MavenLaunchConstants.java
@@ -13,38 +13,50 @@ package org.eclipse.m2e.actions;
import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
+
public interface MavenLaunchConstants {
- public final String PLUGIN_ID = "org.eclipse.m2e.launching";
-
- // this should correspond with launchConfigurationType.id attribute in plugin.xml!
- public final String LAUNCH_CONFIGURATION_TYPE_ID = "org.eclipse.m2e.Maven2LaunchConfigurationType"; //$NON-NLS-1$
- public final String BUILDER_CONFIGURATION_TYPE_ID = "org.eclipse.m2e.Maven2BuilderConfigurationType"; //$NON-NLS-1$
-
- // pom directory automatically became working directory for maven embedder launch
- public final String ATTR_POM_DIR = IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY;
-
- public final String ATTR_GOALS = "M2_GOALS"; //$NON-NLS-1$
- public final String ATTR_GOALS_AUTO_BUILD = "M2_GOALS_AUTO_BUILD"; //$NON-NLS-1$
- public final String ATTR_GOALS_MANUAL_BUILD = "M2_GOALS_MANUAL_BUILD"; //$NON-NLS-1$
- public final String ATTR_GOALS_CLEAN = "M2_GOALS_CLEAN"; //$NON-NLS-1$
- public final String ATTR_GOALS_AFTER_CLEAN = "M2_GOALS_AFTER_CLEAN"; //$NON-NLS-1$
-
- public final String ATTR_PROFILES = "M2_PROFILES"; //$NON-NLS-1$
- public final String ATTR_PROPERTIES = "M2_PROPERTIES"; //$NON-NLS-1$
-
- public final String ATTR_OFFLINE = "M2_OFFLINE"; //$NON-NLS-1$
- public final String ATTR_UPDATE_SNAPSHOTS = "M2_UPDATE_SNAPSHOTS"; //$NON-NLS-1$
- public final String ATTR_DEBUG_OUTPUT = "M2_DEBUG_OUTPUT"; //$NON-NLS-1$
- public final String ATTR_SKIP_TESTS = "M2_SKIP_TESTS"; //$NON-NLS-1$
- public final String ATTR_NON_RECURSIVE = "M2_NON_RECURSIVE"; //$NON-NLS-1$
- public final String ATTR_WORKSPACE_RESOLUTION = "M2_WORKSPACE_RESOLUTION"; //$NON-NLS-1$
-
- public final String ATTR_USER_SETTINGS = "M2_USER_SETTINGS"; //$NON-NLS-1$
-
- public final String ATTR_RUNTIME = "M2_RUNTIME"; //$NON-NLS-1$
-
- // hidden (for now) list of workspace components to be pushed into maven runtime
- public final String ATTR_FORCED_COMPONENTS_LIST = "M2_FORCED_COMPONENTS_LIST"; //$NON-NLS-1$
-
- public final String ATTR_DISABLED_EXTENSIONS = "M2_DISABLED_EXTENSIONS";
+ public final String PLUGIN_ID = "org.eclipse.m2e.launching";
+
+ // this should correspond with launchConfigurationType.id attribute in plugin.xml!
+ public final String LAUNCH_CONFIGURATION_TYPE_ID = "org.eclipse.m2e.Maven2LaunchConfigurationType"; //$NON-NLS-1$
+
+ public final String BUILDER_CONFIGURATION_TYPE_ID = "org.eclipse.m2e.Maven2BuilderConfigurationType"; //$NON-NLS-1$
+
+ // pom directory automatically became working directory for maven embedder launch
+ public final String ATTR_POM_DIR = IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY;
+
+ public final String ATTR_GOALS = "M2_GOALS"; //$NON-NLS-1$
+
+ public final String ATTR_GOALS_AUTO_BUILD = "M2_GOALS_AUTO_BUILD"; //$NON-NLS-1$
+
+ public final String ATTR_GOALS_MANUAL_BUILD = "M2_GOALS_MANUAL_BUILD"; //$NON-NLS-1$
+
+ public final String ATTR_GOALS_CLEAN = "M2_GOALS_CLEAN"; //$NON-NLS-1$
+
+ public final String ATTR_GOALS_AFTER_CLEAN = "M2_GOALS_AFTER_CLEAN"; //$NON-NLS-1$
+
+ public final String ATTR_PROFILES = "M2_PROFILES"; //$NON-NLS-1$
+
+ public final String ATTR_PROPERTIES = "M2_PROPERTIES"; //$NON-NLS-1$
+
+ public final String ATTR_OFFLINE = "M2_OFFLINE"; //$NON-NLS-1$
+
+ public final String ATTR_UPDATE_SNAPSHOTS = "M2_UPDATE_SNAPSHOTS"; //$NON-NLS-1$
+
+ public final String ATTR_DEBUG_OUTPUT = "M2_DEBUG_OUTPUT"; //$NON-NLS-1$
+
+ public final String ATTR_SKIP_TESTS = "M2_SKIP_TESTS"; //$NON-NLS-1$
+
+ public final String ATTR_NON_RECURSIVE = "M2_NON_RECURSIVE"; //$NON-NLS-1$
+
+ public final String ATTR_WORKSPACE_RESOLUTION = "M2_WORKSPACE_RESOLUTION"; //$NON-NLS-1$
+
+ public final String ATTR_USER_SETTINGS = "M2_USER_SETTINGS"; //$NON-NLS-1$
+
+ public final String ATTR_RUNTIME = "M2_RUNTIME"; //$NON-NLS-1$
+
+ // hidden (for now) list of workspace components to be pushed into maven runtime
+ public final String ATTR_FORCED_COMPONENTS_LIST = "M2_FORCED_COMPONENTS_LIST"; //$NON-NLS-1$
+
+ public final String ATTR_DISABLED_EXTENSIONS = "M2_DISABLED_EXTENSIONS";
}
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/LaunchingUtils.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/LaunchingUtils.java
index ea553e23..92878457 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/LaunchingUtils.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/LaunchingUtils.java
@@ -8,17 +8,20 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.internal.launch;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.variables.VariablesPlugin;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.variables.VariablesPlugin;
+
+
public class LaunchingUtils {
-
+
private static Logger log = LoggerFactory.getLogger(LaunchingUtils.class);
-
+
/**
* Substitute any variable
*/
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenConsoleLineTracker.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenConsoleLineTracker.java
index 9443260a..15fc655a 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenConsoleLineTracker.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenConsoleLineTracker.java
@@ -17,7 +17,9 @@ import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-import org.codehaus.plexus.util.DirectoryScanner;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
@@ -34,10 +36,6 @@ import org.eclipse.debug.ui.console.IConsoleLineTracker;
import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IRegion;
-import org.eclipse.m2e.actions.MavenLaunchConstants;
-import org.eclipse.m2e.core.MavenPlugin;
-import org.eclipse.m2e.core.project.IMavenProjectFacade;
-import org.eclipse.m2e.core.project.IMavenProjectRegistry;
import org.eclipse.ui.IEditorDescriptor;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
@@ -46,8 +44,13 @@ import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.console.IHyperlink;
import org.eclipse.ui.ide.IDE;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
+import org.codehaus.plexus.util.DirectoryScanner;
+
+import org.eclipse.m2e.actions.MavenLaunchConstants;
+import org.eclipse.m2e.core.MavenPlugin;
+import org.eclipse.m2e.core.project.IMavenProjectFacade;
+import org.eclipse.m2e.core.project.IMavenProjectRegistry;
/**
@@ -61,13 +64,13 @@ public class MavenConsoleLineTracker implements IConsoleLineTracker {
private static final String PLUGIN_ID = "org.eclipse.m2e.launching"; //$NON-NLS-1$
private static final String LISTENING_MARKER = "Listening for transport dt_socket at address: ";
-
+
private static final String RUNNING_MARKER = "Running ";
private static final String TEST_TEMPLATE = "(?: )test.+\\(([\\w\\.]+)\\)"; //$NON-NLS-1$
-
+
private static final Pattern PATTERN2 = Pattern.compile(TEST_TEMPLATE);
-
+
private IConsole console;
public void init(IConsole console) {
@@ -79,15 +82,15 @@ public class MavenConsoleLineTracker implements IConsoleLineTracker {
ILaunch launch = process.getLaunch();
ILaunchConfiguration launchConfiguration = launch.getLaunchConfiguration();
- if(launchConfiguration!=null && isMavenProcess(launchConfiguration)) {
+ if(launchConfiguration != null && isMavenProcess(launchConfiguration)) {
try {
int offset = line.getOffset();
int length = line.getLength();
String text = console.getDocument().get(offset, length);
-
+
String testName = null;
-
+
int index = text.indexOf(RUNNING_MARKER);
if(index > -1) {
testName = text.substring(RUNNING_MARKER.length());
@@ -96,24 +99,24 @@ public class MavenConsoleLineTracker implements IConsoleLineTracker {
} else if(text.startsWith(LISTENING_MARKER)) {
// create and start remote Java app launch configuration
String baseDir = getBaseDir(launchConfiguration);
- if(baseDir!=null) {
+ if(baseDir != null) {
String portString = text.substring(LISTENING_MARKER.length()).trim();
MavenDebugHyperLink link = new MavenDebugHyperLink(baseDir, portString);
console.addLink(link, offset, LISTENING_MARKER.length() + portString.length());
// launchRemoteJavaApp(baseDir, portString);
}
-
+
} else {
Matcher m = PATTERN2.matcher(text);
if(m.find()) {
testName = m.group(1);
offset += m.start(1);
- }
+ }
}
if(testName != null) {
String baseDir = getBaseDir(launchConfiguration);
- if(baseDir!=null) {
+ if(baseDir != null) {
MavenConsoleHyperLink link = new MavenConsoleHyperLink(baseDir, testName);
console.addLink(link, offset, testName.length());
}
@@ -170,19 +173,20 @@ public class MavenConsoleLineTracker implements IConsoleLineTracker {
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
</listAttribute>
*/
-
+
ILaunchConfigurationWorkingCopy workingCopy = launchConfigurationType.newInstance(null, //
"Connecting debugger to port " + portString);
workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_ALLOW_TERMINATE, false);
- workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_CONNECTOR, IJavaLaunchConfigurationConstants.ID_SOCKET_ATTACH_VM_CONNECTOR);
-
+ workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_CONNECTOR,
+ IJavaLaunchConfigurationConstants.ID_SOCKET_ATTACH_VM_CONNECTOR);
+
Map<String, String> connectMap = new HashMap<String, String>();
connectMap.put("port", portString); //$NON-NLS-1$
connectMap.put("hostname", "localhost"); //$NON-NLS-1$ //$NON-NLS-2$
workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_CONNECT_MAP, connectMap);
IProject project = getProject(baseDir);
- if(project!=null) {
+ if(project != null) {
workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, project.getName());
}
@@ -200,14 +204,14 @@ public class MavenConsoleLineTracker implements IConsoleLineTracker {
}
return null;
}
-
-
+
/**
- * Opens a text editor for Maven test report
+ * Opens a text editor for Maven test report
*/
public class MavenConsoleHyperLink implements IHyperlink {
private final String baseDir;
+
private final String testName;
public MavenConsoleHyperLink(String baseDir, String testName) {
@@ -227,11 +231,11 @@ public class MavenConsoleLineTracker implements IConsoleLineTracker {
IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
IWorkbenchPage page = window.getActivePage();
-
+
IEditorDescriptor desc = PlatformUI.getWorkbench().getEditorRegistry().getDefaultEditor("foo.txt"); //$NON-NLS-1$
-
+
File reportFile = new File(baseDir, includedFiles[0]);
-
+
try {
IDE.openEditor(page, new MavenFileEditorInput(reportFile.getAbsolutePath()), desc.getId());
} catch(PartInitException ex) {
@@ -249,24 +253,25 @@ public class MavenConsoleLineTracker implements IConsoleLineTracker {
}
/**
- * Creates debug launch configuration for remote Java application. For example,
- * with surefire plugin the following property can be specified:
- * -Dmaven.surefire.debug="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE"
+ * Creates debug launch configuration for remote Java application. For example, with surefire plugin the following
+ * property can be specified: -Dmaven.surefire.debug=
+ * "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE"
*/
public class MavenDebugHyperLink implements IHyperlink {
private final String baseDir;
+
private final String portString;
public MavenDebugHyperLink(String baseDir, String portString) {
this.baseDir = baseDir;
this.portString = portString;
}
-
+
public void linkActivated() {
try {
launchRemoteJavaApp(baseDir, portString);
- } catch (CoreException ex) {
+ } catch(CoreException ex) {
log.error(ex.getMessage(), ex);
}
}
@@ -276,8 +281,7 @@ public class MavenConsoleLineTracker implements IConsoleLineTracker {
public void linkExited() {
}
-
+
}
-
-}
+}
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenFileEditorInput.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenFileEditorInput.java
index d6829ab6..0bb3b970 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenFileEditorInput.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenFileEditorInput.java
@@ -23,15 +23,17 @@ import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.osgi.util.NLS;
import org.eclipse.ui.IPersistableElement;
import org.eclipse.ui.IStorageEditorInput;
import org.eclipse.ui.editors.text.ILocationProvider;
+import org.eclipse.m2e.core.internal.IMavenConstants;
+
+
/**
* Maven file editor input
- *
+ *
* @author Eugene Kuleshov
*/
public class MavenFileEditorInput implements IStorageEditorInput {
@@ -104,7 +106,7 @@ public class MavenFileEditorInput implements IStorageEditorInput {
@SuppressWarnings("rawtypes")
public Object getAdapter(Class adapter) {
- if(adapter==ILocationProvider.class) {
+ if(adapter == ILocationProvider.class) {
return new ILocationProvider() {
public IPath getPath(Object element) {
return Path.fromOSString(fileName);
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchDelegate.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchDelegate.java
index 7596906b..38dec65f 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchDelegate.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchDelegate.java
@@ -20,6 +20,9 @@ import java.util.Collections;
import java.util.List;
import java.util.Set;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
@@ -37,15 +40,14 @@ import org.eclipse.jdt.launching.IVMRunner;
import org.eclipse.jdt.launching.JavaLaunchDelegate;
import org.eclipse.jdt.launching.VMRunnerConfiguration;
import org.eclipse.jdt.launching.sourcelookup.containers.JavaSourceLookupParticipant;
+import org.eclipse.osgi.util.NLS;
+
import org.eclipse.m2e.actions.MavenLaunchConstants;
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.embedder.IMavenConfiguration;
import org.eclipse.m2e.core.embedder.IMavenLauncherConfiguration;
import org.eclipse.m2e.core.embedder.MavenRuntime;
import org.eclipse.m2e.core.internal.MavenPluginActivator;
-import org.eclipse.osgi.util.NLS;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
public class MavenLaunchDelegate extends JavaLaunchDelegate implements MavenLaunchConstants {
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchPlugin.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchPlugin.java
index 17fb637e..82e5dabb 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchPlugin.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchPlugin.java
@@ -13,8 +13,9 @@ package org.eclipse.m2e.internal.launch;
import org.eclipse.core.runtime.Plugin;
+
public class MavenLaunchPlugin extends Plugin {
-
+
private static MavenLaunchPlugin instance;
public MavenLaunchPlugin() {
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchUtils.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchUtils.java
index ed51974d..0418c7ac 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchUtils.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchUtils.java
@@ -17,12 +17,21 @@ import java.net.URL;
import java.util.ArrayList;
import java.util.List;
-import org.apache.maven.artifact.Artifact;
+import org.osgi.framework.Bundle;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import com.ibm.icu.util.StringTokenizer;
+
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.osgi.util.NLS;
+
+import org.apache.maven.artifact.Artifact;
+
import org.eclipse.m2e.actions.MavenLaunchConstants;
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.embedder.IMaven;
@@ -31,12 +40,6 @@ import org.eclipse.m2e.core.embedder.MavenRuntime;
import org.eclipse.m2e.core.embedder.MavenRuntimeManager;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
import org.eclipse.m2e.core.project.IMavenProjectRegistry;
-import org.eclipse.osgi.util.NLS;
-import org.osgi.framework.Bundle;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import com.ibm.icu.util.StringTokenizer;
/**
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLauncherConfigurationHandler.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLauncherConfigurationHandler.java
index 2bc6b171..8bcb34c2 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLauncherConfigurationHandler.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLauncherConfigurationHandler.java
@@ -23,9 +23,11 @@ import java.util.Map;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.osgi.util.NLS;
+
import org.eclipse.m2e.core.embedder.IMavenLauncherConfiguration;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
-import org.eclipse.osgi.util.NLS;
+
/**
* MavenLauncherConfigurationHandler
@@ -35,9 +37,13 @@ import org.eclipse.osgi.util.NLS;
public class MavenLauncherConfigurationHandler implements IMavenLauncherConfiguration {
private String mainType;
+
private String mainRealm;
+
private LinkedHashMap<String, List<String>> realms = new LinkedHashMap<String, List<String>>();
+
private List<String> forcedEntries = new ArrayList<String>();
+
private List<String> curEntries = forcedEntries;
public void addArchiveEntry(String entry) {
@@ -47,13 +53,13 @@ public class MavenLauncherConfigurationHandler implements IMavenLauncherConfigur
public void addProjectEntry(IMavenProjectFacade facade) {
final IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IFolder output = root.getFolder(facade.getOutputLocation());
- if (output.isAccessible()) {
+ if(output.isAccessible()) {
addArchiveEntry(output.getLocation().toFile().getAbsolutePath());
}
}
public void addRealm(String realm) {
- if (!realms.containsKey(realm)) {
+ if(!realms.containsKey(realm)) {
curEntries = new ArrayList<String>();
realms.put(realm, curEntries);
}
@@ -67,17 +73,17 @@ public class MavenLauncherConfigurationHandler implements IMavenLauncherConfigur
public void save(OutputStream os) throws IOException {
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(os, "UTF-8")); //$NON-NLS-1$
out.write(NLS.bind("main is {0} from {1}\n", mainType, mainRealm));
- for (Map.Entry<String, List<String>> realm : realms.entrySet()) {
- if (LAUNCHER_REALM.equals(realm.getKey())) {
+ for(Map.Entry<String, List<String>> realm : realms.entrySet()) {
+ if(LAUNCHER_REALM.equals(realm.getKey())) {
continue;
}
out.write(NLS.bind("[{0}]\n", realm.getKey()));
- if (mainRealm.equals(realm.getKey())) {
- for (String entry : forcedEntries) {
+ if(mainRealm.equals(realm.getKey())) {
+ for(String entry : forcedEntries) {
out.write(NLS.bind("load {0}\n", entry));
}
}
- for (String entry : realm.getValue()) {
+ for(String entry : realm.getValue()) {
out.write(NLS.bind("load {0}\n", entry));
}
}
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenSourcePathComputer.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenSourcePathComputer.java
index 8f3916cf..7475edb7 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenSourcePathComputer.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenSourcePathComputer.java
@@ -23,8 +23,6 @@ import java.util.Properties;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
-import org.apache.maven.artifact.Artifact;
-import org.codehaus.plexus.util.DirectoryScanner;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Path;
@@ -35,6 +33,11 @@ import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
import org.eclipse.jdt.launching.JavaRuntime;
+
+import org.codehaus.plexus.util.DirectoryScanner;
+
+import org.apache.maven.artifact.Artifact;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.embedder.IMaven;
import org.eclipse.m2e.core.embedder.IMavenLauncherConfiguration;
@@ -43,11 +46,8 @@ import org.eclipse.m2e.core.project.IMavenProjectFacade;
/**
- * Computes Maven launch configuration default source lookup path.
- *
- * Default source lookup includes Maven core libraries only.
- * It does not (and cannot) include entries for any Maven plugins
- * which are loaded dynamically at runtime.
+ * Computes Maven launch configuration default source lookup path. Default source lookup includes Maven core libraries
+ * only. It does not (and cannot) include entries for any Maven plugins which are loaded dynamically at runtime.
*
* @author Eugene Kuleshov
*/
@@ -74,14 +74,17 @@ public class MavenSourcePathComputer implements ISourcePathComputer {
public void addArchiveEntry(String entry) throws CoreException {
addArchiveRuntimeClasspathEntry(entries, entry);
}
+
public void addProjectEntry(IMavenProjectFacade facade) {
IJavaProject javaProject = JavaCore.create(facade.getProject());
if(javaProject != null) {
entries.add(JavaRuntime.newDefaultProjectClasspathEntry(javaProject));
}
}
+
public void addRealm(String world) {
}
+
public void setMainType(String type, String world) {
}
};
@@ -95,22 +98,22 @@ public class MavenSourcePathComputer implements ISourcePathComputer {
return JavaRuntime.getSourceContainers(resolved);
}
- protected void addArchiveRuntimeClasspathEntry(List<IRuntimeClasspathEntry> entries, String entryPath) throws CoreException {
+ protected void addArchiveRuntimeClasspathEntry(List<IRuntimeClasspathEntry> entries, String entryPath)
+ throws CoreException {
File entryFile = new File(entryPath);
-
- if (!entryFile.exists()) {
+
+ if(!entryFile.exists()) {
return;
}
-
- if (entryFile.isDirectory()) {
+
+ if(entryFile.isDirectory()) {
DirectoryScanner ds = new DirectoryScanner();
ds.setBasedir(entryFile);
- ds.setIncludes(new String[] {
- "META-INF/maven/*/*/pom.properties", //$NON-NLS-1$
+ ds.setIncludes(new String[] {"META-INF/maven/*/*/pom.properties", //$NON-NLS-1$
});
ds.scan();
String[] files = ds.getIncludedFiles();
- for (String file : files) {
+ for(String file : files) {
try {
BufferedInputStream is = new BufferedInputStream(new FileInputStream(new File(entryFile, file)));
try {
@@ -118,7 +121,7 @@ public class MavenSourcePathComputer implements ISourcePathComputer {
} finally {
is.close();
}
- } catch (IOException e) {
+ } catch(IOException e) {
// ignore it
}
@@ -128,24 +131,25 @@ public class MavenSourcePathComputer implements ISourcePathComputer {
JarFile jar = new JarFile(entryFile);
try {
Enumeration<JarEntry> zes = jar.entries();
- while (zes.hasMoreElements()) {
+ while(zes.hasMoreElements()) {
JarEntry ze = zes.nextElement();
String name = ze.getName();
- if (!ze.isDirectory() && name.startsWith("META-INF/maven/") && name.endsWith("pom.properties")) { //$NON-NLS-1$ //$NON-NLS-2$
+ if(!ze.isDirectory() && name.startsWith("META-INF/maven/") && name.endsWith("pom.properties")) { //$NON-NLS-1$ //$NON-NLS-2$
addArchiveRuntimeClasspathEntry(entries, entryPath, jar.getInputStream(ze));
}
}
} finally {
jar.close();
}
- } catch (IOException e) {
+ } catch(IOException e) {
// ignore it
}
}
-
+
}
-
- private void addArchiveRuntimeClasspathEntry(List<IRuntimeClasspathEntry> entries, String entryPath, InputStream is) throws IOException, CoreException {
+
+ private void addArchiveRuntimeClasspathEntry(List<IRuntimeClasspathEntry> entries, String entryPath, InputStream is)
+ throws IOException, CoreException {
Properties p = new Properties();
p.load(is);
@@ -154,8 +158,8 @@ public class MavenSourcePathComputer implements ISourcePathComputer {
String version = p.getProperty("version"); //$NON-NLS-1$
File sourcesJar = getSourcesJar(groupId, artifactId, version);
- if (sourcesJar != null) {
- IRuntimeClasspathEntry entry = null;
+ if(sourcesJar != null) {
+ IRuntimeClasspathEntry entry = null;
entry = JavaRuntime.newArchiveRuntimeClasspathEntry(Path.fromOSString(entryPath));
entry.setSourceAttachmentPath(Path.fromOSString(sourcesJar.getAbsolutePath()));
entries.add(entry);
@@ -163,14 +167,14 @@ public class MavenSourcePathComputer implements ISourcePathComputer {
}
private File getSourcesJar(String groupId, String artifactId, String version) {
- if (groupId != null && artifactId != null && version != null) {
+ if(groupId != null && artifactId != null && version != null) {
IMaven maven = MavenPlugin.getMaven();
try {
Artifact artifact = maven.resolve(groupId, artifactId, version, "jar", "sources", null, null); //$NON-NLS-1$ //$NON-NLS-2$
File file = artifact.getFile();
-
- if (file != null && file.exists() && file.canRead()) {
+
+ if(file != null && file.exists() && file.canRead()) {
return file;
}
} catch(CoreException ex) {
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchConfigurationTabGroup.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchConfigurationTabGroup.java
index 2128066e..a1197898 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchConfigurationTabGroup.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchConfigurationTabGroup.java
@@ -21,6 +21,7 @@ import org.eclipse.debug.ui.ILaunchConfigurationDialog;
import org.eclipse.debug.ui.ILaunchConfigurationTab;
import org.eclipse.debug.ui.RefreshTab;
import org.eclipse.debug.ui.sourcelookup.SourceLookupTab;
+
import org.eclipse.m2e.internal.launch.MavenLaunchParticipantInfo;
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchExtensionsTab.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchExtensionsTab.java
index 3bc9a981..e42a5e44 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchExtensionsTab.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchExtensionsTab.java
@@ -29,9 +29,6 @@ import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.m2e.actions.MavenLaunchConstants;
-import org.eclipse.m2e.internal.launch.MavenLaunchParticipantInfo;
-import org.eclipse.m2e.internal.launch.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
@@ -40,6 +37,10 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Table;
+import org.eclipse.m2e.actions.MavenLaunchConstants;
+import org.eclipse.m2e.internal.launch.MavenLaunchParticipantInfo;
+import org.eclipse.m2e.internal.launch.Messages;
+
public class MavenLaunchExtensionsTab extends AbstractLaunchConfigurationTab {
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java
index 827fd5e7..83115dd1 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java
@@ -16,6 +16,9 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
@@ -35,16 +38,6 @@ import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.m2e.actions.MavenLaunchConstants;
-import org.eclipse.m2e.core.MavenPlugin;
-import org.eclipse.m2e.core.embedder.IMavenConfiguration;
-import org.eclipse.m2e.core.embedder.MavenRuntime;
-import org.eclipse.m2e.core.embedder.MavenRuntimeManager;
-import org.eclipse.m2e.core.ui.internal.MavenImages;
-import org.eclipse.m2e.core.ui.internal.dialogs.MavenGoalSelectionDialog;
-import org.eclipse.m2e.core.ui.internal.dialogs.MavenPropertyDialog;
-import org.eclipse.m2e.internal.launch.LaunchingUtils;
-import org.eclipse.m2e.internal.launch.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.FocusAdapter;
import org.eclipse.swt.events.FocusEvent;
@@ -69,12 +62,21 @@ import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.dialogs.ContainerSelectionDialog;
import org.eclipse.ui.dialogs.PreferencesUtil;
import org.eclipse.ui.externaltools.internal.model.IExternalToolConstants;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
+import org.eclipse.m2e.actions.MavenLaunchConstants;
+import org.eclipse.m2e.core.MavenPlugin;
+import org.eclipse.m2e.core.embedder.IMavenConfiguration;
+import org.eclipse.m2e.core.embedder.MavenRuntime;
+import org.eclipse.m2e.core.embedder.MavenRuntimeManager;
+import org.eclipse.m2e.core.ui.internal.MavenImages;
+import org.eclipse.m2e.core.ui.internal.dialogs.MavenGoalSelectionDialog;
+import org.eclipse.m2e.core.ui.internal.dialogs.MavenPropertyDialog;
+import org.eclipse.m2e.internal.launch.LaunchingUtils;
+import org.eclipse.m2e.internal.launch.Messages;
/**
- * Maven Launch dialog Main tab
+ * Maven Launch dialog Main tab
*
* @author Dmitri Maximovich
* @author Eugene Kuleshov
@@ -86,16 +88,21 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
public static final String ID_EXTERNAL_TOOLS_LAUNCH_GROUP = "org.eclipse.ui.externaltools.launchGroup"; //$NON-NLS-1$
private final boolean isBuilder;
-
+
protected Text pomDirNameText;
protected Text goalsText;
+
protected Text goalsAutoBuildText;
+
protected Text goalsManualBuildText;
+
protected Text goalsCleanText;
+
protected Text goalsAfterCleanText;
-
+
protected Text profilesText;
+
protected Table propsTable;
private Button offlineButton;
@@ -105,17 +112,16 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
private Button debugOutputButton;
private Button skipTestsButton;
-
+
private Button nonRecursiveButton;
-
+
private Button enableWorkspaceResolution;
private Button removePropButton;
-
+
private Button editPropButton;
-
- ComboViewer runtimeComboViewer;
+ ComboViewer runtimeComboViewer;
public MavenLaunchMainTab(boolean isBuilder) {
this.isBuilder = isBuilder;
@@ -174,13 +180,13 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), //
ResourcesPlugin.getWorkspace().getRoot(), false, Messages.launchChoosePomDir); //$NON-NLS-1$
dialog.showClosedProjects(false);
-
+
int buttonId = dialog.open();
if(buttonId == IDialogConstants.OK_ID) {
Object[] resource = dialog.getResult();
if(resource != null && resource.length > 0) {
- String fileLoc = VariablesPlugin.getDefault().getStringVariableManager().generateVariableExpression(
- "workspace_loc", ((IPath) resource[0]).toString()); //$NON-NLS-1$
+ String fileLoc = VariablesPlugin.getDefault().getStringVariableManager()
+ .generateVariableExpression("workspace_loc", ((IPath) resource[0]).toString()); //$NON-NLS-1$
pomDirNameText.setText(fileLoc);
entriesChanged();
}
@@ -214,7 +220,7 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
}
}
});
-
+
// pom file
// goals
@@ -248,7 +254,7 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
goalsManualBuildButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
goalsManualBuildButton.setText(org.eclipse.m2e.internal.launch.Messages.MavenLaunchMainTab_btnManualBuild);
goalsManualBuildButton.addSelectionListener(new GoalSelectionAdapter(goalsManualBuildText));
-
+
Label cleanBuildGoalsLabel = new Label(mainComposite, SWT.NONE);
cleanBuildGoalsLabel.setText(org.eclipse.m2e.internal.launch.Messages.MavenLaunchMainTab_lblCleanBuild);
goalsCleanText = new Text(mainComposite, SWT.BORDER);
@@ -259,7 +265,7 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
goalsCleanButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
goalsCleanButton.setText(org.eclipse.m2e.internal.launch.Messages.MavenLaunchMainTab_btnCleanBuild);
goalsCleanButton.addSelectionListener(new GoalSelectionAdapter(goalsCleanText));
-
+
Label afterCleanGoalsLabel = new Label(mainComposite, SWT.NONE);
afterCleanGoalsLabel.setText(org.eclipse.m2e.internal.launch.Messages.MavenLaunchMainTab_lblAfterClean);
goalsAfterCleanText = new Text(mainComposite, SWT.BORDER);
@@ -270,7 +276,7 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
goalsAfterCleanButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
goalsAfterCleanButton.setText(org.eclipse.m2e.internal.launch.Messages.MavenLaunchMainTab_btnAfterClean);
goalsAfterCleanButton.addSelectionListener(new GoalSelectionAdapter(goalsAfterCleanText));
-
+
} else {
Label goalsLabel = new Label(mainComposite, SWT.NONE);
GridData gd_goalsLabel = new GridData();
@@ -358,14 +364,14 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
}
}
});
- tableViewer.addSelectionChangedListener(new ISelectionChangedListener(){
+ tableViewer.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
TableItem[] items = propsTable.getSelection();
- if(items == null || items.length == 0){
+ if(items == null || items.length == 0) {
editPropButton.setEnabled(false);
removePropButton.setEnabled(false);
- } else if(items.length == 1){
+ } else if(items.length == 1) {
editPropButton.setEnabled(true);
removePropButton.setEnabled(true);
} else {
@@ -373,12 +379,12 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
removePropButton.setEnabled(true);
}
}
-
+
});
-
+
this.propsTable = tableViewer.getTable();
//this.tProps.setItemCount(10);
- this.propsTable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 4, 3));
+ this.propsTable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 4, 3));
this.propsTable.setLinesVisible(true);
this.propsTable.setHeaderVisible(true);
@@ -458,12 +464,12 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
entriesChanged();
}
});
-
+
MavenRuntimeManager runtimeManager = MavenPlugin.getMavenRuntimeManager();
runtimeComboViewer.setInput(runtimeManager.getMavenRuntimes());
runtimeComboViewer.setSelection(new StructuredSelection(runtimeManager.getDefaultRuntime()));
}
-
+
Button configureRuntimesButton = new Button(mainComposite, SWT.NONE);
GridData gd_configureRuntimesButton = new GridData(SWT.FILL, SWT.CENTER, false, false);
configureRuntimesButton.setLayoutData(gd_configureRuntimesButton);
@@ -477,20 +483,21 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
runtimeComboViewer.setSelection(new StructuredSelection(runtimeManager.getDefaultRuntime()));
}
});
-
+
if(isBuilder) {
goalsAutoBuildText.setFocus();
} else {
goalsText.setFocus();
}
}
-
+
protected Shell getShell() {
return super.getShell();
}
void addProperty() {
- MavenPropertyDialog dialog = getMavenPropertyDialog(org.eclipse.m2e.internal.launch.Messages.MavenLaunchMainTab_property_dialog_title, "", ""); //$NON-NLS-2$ //$NON-NLS-3$
+ MavenPropertyDialog dialog = getMavenPropertyDialog(
+ org.eclipse.m2e.internal.launch.Messages.MavenLaunchMainTab_property_dialog_title, "", ""); //$NON-NLS-2$ //$NON-NLS-3$
if(dialog.open() == IDialogConstants.OK_ID) {
TableItem item = new TableItem(propsTable, SWT.NONE);
item.setText(0, dialog.getName());
@@ -500,7 +507,8 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
}
void editProperty(String name, String value) {
- MavenPropertyDialog dialog = getMavenPropertyDialog(org.eclipse.m2e.internal.launch.Messages.MavenLaunchMainTab_property_dialog_edit_title, name, value);
+ MavenPropertyDialog dialog = getMavenPropertyDialog(
+ org.eclipse.m2e.internal.launch.Messages.MavenLaunchMainTab_property_dialog_edit_title, name, value);
if(dialog.open() == IDialogConstants.OK_ID) {
TableItem[] item = propsTable.getSelection();
item[0].setText(0, dialog.getName());
@@ -522,7 +530,7 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
variablesButton.setLayoutData(gd);
variablesButton.setFont(comp.getFont());
variablesButton.setText(Messages.launchPropertyDialogBrowseVariables); //$NON-NLS-1$;
-
+
variablesButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent se) {
StringVariableSelectionDialog variablesDialog = new StringVariableSelectionDialog(getShell());
@@ -534,19 +542,19 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
}
}
});
-
+
return comp;
}
};
}
-
+
public void initializeFrom(ILaunchConfiguration configuration) {
String pomDirName = getAttribute(configuration, ATTR_POM_DIR, ""); //$NON-NLS-1$
- if(isBuilder && pomDirName.length()==0) {
+ if(isBuilder && pomDirName.length() == 0) {
pomDirName = "${workspace_loc:/" + configuration.getFile().getProject().getName() + "}"; //$NON-NLS-1$ //$NON-NLS-2$
}
this.pomDirNameText.setText(pomDirName);
-
+
if(isBuilder) {
this.goalsAutoBuildText.setText(getAttribute(configuration, ATTR_GOALS_AUTO_BUILD, "install")); //$NON-NLS-1$
this.goalsManualBuildText.setText(getAttribute(configuration, ATTR_GOALS_MANUAL_BUILD, "install")); //$NON-NLS-1$
@@ -555,28 +563,29 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
} else {
this.goalsText.setText(getAttribute(configuration, ATTR_GOALS, "")); //$NON-NLS-1$
}
-
+
this.profilesText.setText(getAttribute(configuration, ATTR_PROFILES, "")); //$NON-NLS-1$
try {
-
+
MavenRuntimeManager runtimeManager = MavenPlugin.getMavenRuntimeManager();
IMavenConfiguration mavenConfiguration = MavenPlugin.getMavenConfiguration();
-
+
this.offlineButton.setSelection(getAttribute(configuration, ATTR_OFFLINE, mavenConfiguration.isOffline()));
- this.debugOutputButton.setSelection(getAttribute(configuration, ATTR_DEBUG_OUTPUT, mavenConfiguration.isDebugOutput()));
-
+ this.debugOutputButton.setSelection(getAttribute(configuration, ATTR_DEBUG_OUTPUT,
+ mavenConfiguration.isDebugOutput()));
+
this.updateSnapshotsButton.setSelection(getAttribute(configuration, ATTR_UPDATE_SNAPSHOTS, false));
this.skipTestsButton.setSelection(getAttribute(configuration, ATTR_SKIP_TESTS, false));
this.nonRecursiveButton.setSelection(getAttribute(configuration, ATTR_NON_RECURSIVE, false));
this.enableWorkspaceResolution.setSelection(getAttribute(configuration, ATTR_WORKSPACE_RESOLUTION, false));
-
+
String location = getAttribute(configuration, ATTR_RUNTIME, ""); //$NON-NLS-1$
MavenRuntime runtime = runtimeManager.getRuntime(location);
- if(runtime != null){
+ if(runtime != null) {
this.runtimeComboViewer.setSelection(new StructuredSelection(runtime));
- }
+ }
propsTable.removeAll();
-
+
@SuppressWarnings("unchecked")
List<String> properties = configuration.getAttribute(ATTR_PROPERTIES, Collections.EMPTY_LIST);
for(String property : properties) {
@@ -589,7 +598,7 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
value = property.substring(n + 1);
}
}
-
+
TableItem item = new TableItem(propsTable, SWT.NONE);
item.setText(0, name);
item.setText(1, value);
@@ -599,7 +608,7 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
}
setDirty(false);
}
-
+
private String getAttribute(ILaunchConfiguration configuration, String name, String defaultValue) {
try {
return configuration.getAttribute(name, defaultValue);
@@ -616,38 +625,38 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
return defaultValue;
}
}
-
+
public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
}
public void performApply(ILaunchConfigurationWorkingCopy configuration) {
configuration.setAttribute(ATTR_POM_DIR, this.pomDirNameText.getText());
-
+
if(isBuilder) {
configuration.setAttribute(ATTR_GOALS_AUTO_BUILD, goalsAutoBuildText.getText());
configuration.setAttribute(ATTR_GOALS_MANUAL_BUILD, this.goalsManualBuildText.getText());
configuration.setAttribute(ATTR_GOALS_CLEAN, this.goalsCleanText.getText());
configuration.setAttribute(ATTR_GOALS_AFTER_CLEAN, this.goalsAfterCleanText.getText());
-
+
StringBuffer sb = new StringBuffer();
- if(goalsAfterCleanText.getText().trim().length()>0) {
+ if(goalsAfterCleanText.getText().trim().length() > 0) {
sb.append(IExternalToolConstants.BUILD_TYPE_FULL).append(',');
}
- if(goalsManualBuildText.getText().trim().length()>0) {
+ if(goalsManualBuildText.getText().trim().length() > 0) {
sb.append(IExternalToolConstants.BUILD_TYPE_INCREMENTAL).append(',');
}
- if(goalsAutoBuildText.getText().trim().length()>0) {
+ if(goalsAutoBuildText.getText().trim().length() > 0) {
sb.append(IExternalToolConstants.BUILD_TYPE_AUTO).append(',');
}
- if(goalsCleanText.getText().trim().length()>0) {
+ if(goalsCleanText.getText().trim().length() > 0) {
sb.append(IExternalToolConstants.BUILD_TYPE_CLEAN);
}
configuration.setAttribute(IExternalToolConstants.ATTR_RUN_BUILD_KINDS, sb.toString());
-
+
} else {
configuration.setAttribute(ATTR_GOALS, this.goalsText.getText());
}
-
+
configuration.setAttribute(ATTR_PROFILES, this.profilesText.getText());
configuration.setAttribute(ATTR_OFFLINE, this.offlineButton.getSelection());
@@ -716,21 +725,19 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
updateLaunchConfigurationDialog();
}
-
private static final class GoalsFocusListener extends FocusAdapter {
private Text text;
public GoalsFocusListener(Text text) {
this.text = text;
}
-
+
public void focusGained(FocusEvent e) {
super.focusGained(e);
text.setData("focus"); //$NON-NLS-1$
}
}
-
private final class GoalSelectionAdapter extends SelectionAdapter {
private Text text;
@@ -748,12 +755,12 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
MavenGoalSelectionDialog dialog = new MavenGoalSelectionDialog(getShell());
int rc = dialog.open();
if(rc == IDialogConstants.OK_ID) {
- text.insert(""); // clear selected text //$NON-NLS-1$
-
+ text.insert(""); // clear selected text //$NON-NLS-1$
+
String txt = text.getText();
int len = txt.length();
int pos = text.getCaretPosition();
-
+
StringBuffer sb = new StringBuffer();
if((pos > 0 && txt.charAt(pos - 1) != ' ')) {
sb.append(' ');
@@ -771,16 +778,16 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement
}
sep = " "; //$NON-NLS-1$
}
-
+
if(pos < len && txt.charAt(pos) != ' ') {
sb.append(' ');
}
-
+
text.insert(sb.toString());
text.setFocus();
entriesChanged();
}
}
}
-
+
}
diff --git a/org.eclipse.m2e.logback.appender/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.logback.appender/.settings/org.eclipse.jdt.core.prefs
index 7108a8bd..80d9c54b 100644
--- a/org.eclipse.m2e.logback.appender/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.m2e.logback.appender/.settings/org.eclipse.jdt.core.prefs
@@ -1,4 +1,3 @@
-#Sat Jul 30 19:02:00 MSD 2011
eclipse.preferences.version=1
org.eclipse.jdt.core.builder.cleanOutputFolder=clean
org.eclipse.jdt.core.builder.duplicateResourceTask=warning
@@ -45,6 +44,7 @@ org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
@@ -111,6 +111,7 @@ org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH
org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
@@ -121,15 +122,18 @@ org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=2
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
org.eclipse.jdt.core.formatter.blank_lines_before_field=1
@@ -165,10 +169,16 @@ org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert
org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=2
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
@@ -186,6 +196,7 @@ org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert
org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
@@ -252,12 +263,14 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invoca
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
@@ -281,6 +294,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
@@ -336,6 +350,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
@@ -345,6 +360,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=inser
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
@@ -354,6 +370,8 @@ org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
@@ -366,7 +384,10 @@ org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
org.eclipse.jdt.core.formatter.tabulation.char=space
org.eclipse.jdt.core.formatter.tabulation.size=2
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
org.eclipse.jdt.core.incompatibleJDKLevel=ignore
org.eclipse.jdt.core.incompleteClasspath=error
diff --git a/org.eclipse.m2e.logback.appender/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.m2e.logback.appender/.settings/org.eclipse.jdt.ui.prefs
index a09d06cb..595d9975 100644
--- a/org.eclipse.m2e.logback.appender/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.m2e.logback.appender/.settings/org.eclipse.jdt.ui.prefs
@@ -1,6 +1,7 @@
eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_m2 plugin
-formatter_settings_version=11
+formatter_settings_version=12
org.eclipse.jdt.ui.exception.name=ex
org.eclipse.jdt.ui.gettersetter.use.is=true
org.eclipse.jdt.ui.ignorelowercasenames=true
@@ -10,4 +11,56 @@ org.eclipse.jdt.ui.keywordthis=true
org.eclipse.jdt.ui.ondemandthreshold=99
org.eclipse.jdt.ui.overrideannotation=false
org.eclipse.jdt.ui.staticondemandthreshold=99
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nMavenLogger.log(${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nMavenLogger.log(${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.m2e.logback.appender/src/main/java/org/eclipse/m2e/logback/appender/ConsoleAppenderFilter.java b/org.eclipse.m2e.logback.appender/src/main/java/org/eclipse/m2e/logback/appender/ConsoleAppenderFilter.java
index ad680b4a..c7011093 100644
--- a/org.eclipse.m2e.logback.appender/src/main/java/org/eclipse/m2e/logback/appender/ConsoleAppenderFilter.java
+++ b/org.eclipse.m2e.logback.appender/src/main/java/org/eclipse/m2e/logback/appender/ConsoleAppenderFilter.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.logback.appender;
import ch.qos.logback.classic.spi.ILoggingEvent;
diff --git a/org.eclipse.m2e.logback.appender/src/main/java/org/eclipse/m2e/logback/appender/MavenConsoleAppenderImpl.java b/org.eclipse.m2e.logback.appender/src/main/java/org/eclipse/m2e/logback/appender/MavenConsoleAppenderImpl.java
index 6c698507..806270d2 100644
--- a/org.eclipse.m2e.logback.appender/src/main/java/org/eclipse/m2e/logback/appender/MavenConsoleAppenderImpl.java
+++ b/org.eclipse.m2e.logback.appender/src/main/java/org/eclipse/m2e/logback/appender/MavenConsoleAppenderImpl.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.logback.appender;
import ch.qos.logback.classic.Level;
@@ -16,6 +17,7 @@ import ch.qos.logback.classic.spi.ILoggingEvent;
import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
import org.eclipse.m2e.core.ui.internal.console.MavenConsole;
+
@SuppressWarnings("restriction")
public class MavenConsoleAppenderImpl {
protected void append(ILoggingEvent logEvent) {
diff --git a/org.eclipse.m2e.logback.configuration/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.logback.configuration/.settings/org.eclipse.jdt.core.prefs
index 7108a8bd..80d9c54b 100644
--- a/org.eclipse.m2e.logback.configuration/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.m2e.logback.configuration/.settings/org.eclipse.jdt.core.prefs
@@ -1,4 +1,3 @@
-#Sat Jul 30 19:02:00 MSD 2011
eclipse.preferences.version=1
org.eclipse.jdt.core.builder.cleanOutputFolder=clean
org.eclipse.jdt.core.builder.duplicateResourceTask=warning
@@ -45,6 +44,7 @@ org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
@@ -111,6 +111,7 @@ org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH
org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
@@ -121,15 +122,18 @@ org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=2
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
org.eclipse.jdt.core.formatter.blank_lines_before_field=1
@@ -165,10 +169,16 @@ org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert
org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=2
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
@@ -186,6 +196,7 @@ org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert
org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
@@ -252,12 +263,14 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invoca
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
@@ -281,6 +294,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
@@ -336,6 +350,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
@@ -345,6 +360,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=inser
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
@@ -354,6 +370,8 @@ org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
@@ -366,7 +384,10 @@ org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
org.eclipse.jdt.core.formatter.tabulation.char=space
org.eclipse.jdt.core.formatter.tabulation.size=2
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
org.eclipse.jdt.core.incompatibleJDKLevel=ignore
org.eclipse.jdt.core.incompleteClasspath=error
diff --git a/org.eclipse.m2e.logback.configuration/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.m2e.logback.configuration/.settings/org.eclipse.jdt.ui.prefs
index a09d06cb..595d9975 100644
--- a/org.eclipse.m2e.logback.configuration/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.m2e.logback.configuration/.settings/org.eclipse.jdt.ui.prefs
@@ -1,6 +1,7 @@
eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_m2 plugin
-formatter_settings_version=11
+formatter_settings_version=12
org.eclipse.jdt.ui.exception.name=ex
org.eclipse.jdt.ui.gettersetter.use.is=true
org.eclipse.jdt.ui.ignorelowercasenames=true
@@ -10,4 +11,56 @@ org.eclipse.jdt.ui.keywordthis=true
org.eclipse.jdt.ui.ondemandthreshold=99
org.eclipse.jdt.ui.overrideannotation=false
org.eclipse.jdt.ui.staticondemandthreshold=99
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nMavenLogger.log(${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nMavenLogger.log(${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.m2e.logback.configuration/src/org/eclipse/m2e/logback/configuration/LogPlugin.java b/org.eclipse.m2e.logback.configuration/src/org/eclipse/m2e/logback/configuration/LogPlugin.java
index 5ca34831..afc6b6da 100644
--- a/org.eclipse.m2e.logback.configuration/src/org/eclipse/m2e/logback/configuration/LogPlugin.java
+++ b/org.eclipse.m2e.logback.configuration/src/org/eclipse/m2e/logback/configuration/LogPlugin.java
@@ -70,7 +70,7 @@ public class LogPlugin extends Plugin {
if(!Platform.isRunning()) {
return false;
}
-
+
Bundle resourcesBundle = Platform.getBundle(RESOURCES_PLUGIN_ID);
if(resourcesBundle == null) {
return false;
diff --git a/org.eclipse.m2e.model.edit/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.model.edit/.settings/org.eclipse.jdt.core.prefs
index 36d23c2a..80d9c54b 100644
--- a/org.eclipse.m2e.model.edit/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.m2e.model.edit/.settings/org.eclipse.jdt.core.prefs
@@ -1,5 +1,12 @@
-#Sat Jul 30 19:02:00 MSD 2011
eclipse.preferences.version=1
+org.eclipse.jdt.core.builder.cleanOutputFolder=clean
+org.eclipse.jdt.core.builder.duplicateResourceTask=warning
+org.eclipse.jdt.core.builder.invalidClasspath=abort
+org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder=ignore
+org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch
+org.eclipse.jdt.core.circularClasspath=error
+org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
+org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
org.eclipse.jdt.core.codeComplete.argumentPrefixes=
org.eclipse.jdt.core.codeComplete.argumentSuffixes=
org.eclipse.jdt.core.codeComplete.fieldPrefixes=
@@ -8,6 +15,8 @@ org.eclipse.jdt.core.codeComplete.localPrefixes=
org.eclipse.jdt.core.codeComplete.localSuffixes=
org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
@@ -15,12 +24,16 @@ org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.doc.comment.support=enabled
+org.eclipse.jdt.core.compiler.maxProblemPerUnit=100
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
+org.eclipse.jdt.core.compiler.problem.deadCode=warning
org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
@@ -29,58 +42,76 @@ org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
+org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
org.eclipse.jdt.core.compiler.problem.nullReference=warning
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=enabled
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.5
org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled
-org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,NORMAL
+org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH
org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
@@ -91,15 +122,18 @@ org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=2
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
org.eclipse.jdt.core.formatter.blank_lines_before_field=1
@@ -135,10 +169,16 @@ org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert
org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=2
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
@@ -156,6 +196,7 @@ org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert
org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
@@ -222,12 +263,14 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invoca
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
@@ -251,6 +294,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
@@ -306,6 +350,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
@@ -315,6 +360,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=inser
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
@@ -324,6 +370,8 @@ org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
@@ -336,5 +384,10 @@ org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
org.eclipse.jdt.core.formatter.tabulation.char=space
org.eclipse.jdt.core.formatter.tabulation.size=2
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
+org.eclipse.jdt.core.incompatibleJDKLevel=ignore
+org.eclipse.jdt.core.incompleteClasspath=error
diff --git a/org.eclipse.m2e.model.edit/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.m2e.model.edit/.settings/org.eclipse.jdt.ui.prefs
index 3860940c..595d9975 100644
--- a/org.eclipse.m2e.model.edit/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.m2e.model.edit/.settings/org.eclipse.jdt.ui.prefs
@@ -1,9 +1,66 @@
eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_m2 plugin
-formatter_settings_version=11
+formatter_settings_version=12
org.eclipse.jdt.ui.exception.name=ex
org.eclipse.jdt.ui.gettersetter.use.is=true
-org.eclipse.jdt.ui.javadoc=false
-org.eclipse.jdt.ui.keywordthis=false
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=java;javax;org;org.w3c;org.xml;org.apache;com;junit;org.eclipse;org.codehaus;org.apache.lucene;org.apache.maven;org.sonatype;org.eclipse.m2e;
+org.eclipse.jdt.ui.javadoc=true
+org.eclipse.jdt.ui.keywordthis=true
+org.eclipse.jdt.ui.ondemandthreshold=99
org.eclipse.jdt.ui.overrideannotation=false
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************\n * Copyright (c) 2010 Sonatype, Inc.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http\://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors\:\n * Sonatype, Inc. - initial API and implementation\n *******************************************************************************/</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+org.eclipse.jdt.ui.staticondemandthreshold=99
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Activation.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Activation.java
index 22647170..f9148e85 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Activation.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Activation.java
@@ -13,26 +13,18 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Activation</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0
- *
- * The conditions within the build runtime environment which will trigger the
- * automatic inclusion of the build profile.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Activation</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 The conditions within the build runtime environment which will trigger the automatic
+ * inclusion of the build profile. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Activation#getActiveByDefault <em>
- * Active By Default</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Activation#getActiveByDefault <em> Active By Default</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Activation#getJdk <em>Jdk</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Activation#getOs <em>Os</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Activation#getProperty <em>Property
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Activation#getProperty <em>Property </em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Activation#getFile <em>File</em>}</li>
* </ul>
* </p>
@@ -42,285 +34,233 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Activation extends EObject {
- /**
- * Returns the value of the '<em><b>Active By Default</b></em>' attribute.
- * The default value is <code>"false"</code>. <!-- begin-user-doc --> <!--
- * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Flag specifying whether
- * this profile is active by default. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Active By Default</em>' attribute.
- * @see #isSetActiveByDefault()
- * @see #unsetActiveByDefault()
- * @see #setActiveByDefault(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivation_ActiveByDefault()
- * @model default="false" unsettable="true"
- * dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='activeByDefault' namespace='##targetNamespace'"
- * @generated
- */
- String getActiveByDefault();
+ /**
+ * Returns the value of the '<em><b>Active By Default</b></em>' attribute. The default value is <code>"false"</code>.
+ * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Flag specifying whether this profile
+ * is active by default. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Active By Default</em>' attribute.
+ * @see #isSetActiveByDefault()
+ * @see #unsetActiveByDefault()
+ * @see #setActiveByDefault(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivation_ActiveByDefault()
+ * @model default="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='activeByDefault' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getActiveByDefault();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Activation#getActiveByDefault
- * <em>Active By Default</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Active By Default</em>' attribute.
- * @see #isSetActiveByDefault()
- * @see #unsetActiveByDefault()
- * @see #getActiveByDefault()
- * @generated
- */
- void setActiveByDefault(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Activation#getActiveByDefault
+ * <em>Active By Default</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Active By Default</em>' attribute.
+ * @see #isSetActiveByDefault()
+ * @see #unsetActiveByDefault()
+ * @see #getActiveByDefault()
+ * @generated
+ */
+ void setActiveByDefault(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Activation#getActiveByDefault
- * <em>Active By Default</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetActiveByDefault()
- * @see #getActiveByDefault()
- * @see #setActiveByDefault(String)
- * @generated
- */
- void unsetActiveByDefault();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Activation#getActiveByDefault
+ * <em>Active By Default</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetActiveByDefault()
+ * @see #getActiveByDefault()
+ * @see #setActiveByDefault(String)
+ * @generated
+ */
+ void unsetActiveByDefault();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Activation#getActiveByDefault
- * <em>Active By Default</em>}' attribute is set. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Active By Default</em>' attribute
- * is set.
- * @see #unsetActiveByDefault()
- * @see #getActiveByDefault()
- * @see #setActiveByDefault(String)
- * @generated
- */
- boolean isSetActiveByDefault();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Activation#getActiveByDefault
+ * <em>Active By Default</em>}' attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Active By Default</em>' attribute is set.
+ * @see #unsetActiveByDefault()
+ * @see #getActiveByDefault()
+ * @see #setActiveByDefault(String)
+ * @generated
+ */
+ boolean isSetActiveByDefault();
- /**
- * Returns the value of the '<em><b>Jdk</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * Specifies that this profile will be activated when a matching JDK is
- * detected. For example, &lt;code&gt;1.4&lt;/code&gt; only activates on
- * JDKs versioned 1.4, while &lt;code&gt;!1.4&lt;/code&gt; matches any JDK
- * that is not version 1.4.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Jdk</em>' attribute.
- * @see #setJdk(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivation_Jdk()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='jdk' namespace='##targetNamespace'"
- * @generated
- */
- String getJdk();
+ /**
+ * Returns the value of the '<em><b>Jdk</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Specifies that this profile will be activated when a matching JDK is detected. For
+ * example, &lt;code&gt;1.4&lt;/code&gt; only activates on JDKs versioned 1.4, while &lt;code&gt;!1.4&lt;/code&gt;
+ * matches any JDK that is not version 1.4. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Jdk</em>' attribute.
+ * @see #setJdk(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivation_Jdk()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='jdk' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getJdk();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Activation#getJdk <em>Jdk</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Jdk</em>' attribute.
- * @see #getJdk()
- * @generated
- */
- void setJdk(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Activation#getJdk <em>Jdk</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Jdk</em>' attribute.
+ * @see #getJdk()
+ * @generated
+ */
+ void setJdk(String value);
- /**
- * Returns the value of the '<em><b>Os</b></em>' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * Specifies that this profile will be activated when matching operating
- * system attributes are detected.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Os</em>' containment reference.
- * @see #isSetOs()
- * @see #unsetOs()
- * @see #setOs(ActivationOS)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivation_Os()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='os' namespace='##targetNamespace'"
- * @generated
- */
- ActivationOS getOs();
+ /**
+ * Returns the value of the '<em><b>Os</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 Specifies that this profile will be activated when matching operating system
+ * attributes are detected. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Os</em>' containment reference.
+ * @see #isSetOs()
+ * @see #unsetOs()
+ * @see #setOs(ActivationOS)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivation_Os()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='os' namespace='##targetNamespace'"
+ * @generated
+ */
+ ActivationOS getOs();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Activation#getOs <em>Os</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Os</em>' containment reference.
- * @see #isSetOs()
- * @see #unsetOs()
- * @see #getOs()
- * @generated
- */
- void setOs(ActivationOS value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Activation#getOs <em>Os</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Os</em>' containment reference.
+ * @see #isSetOs()
+ * @see #unsetOs()
+ * @see #getOs()
+ * @generated
+ */
+ void setOs(ActivationOS value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Activation#getOs <em>Os</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetOs()
- * @see #getOs()
- * @see #setOs(ActivationOS)
- * @generated
- */
- void unsetOs();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Activation#getOs <em>Os</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetOs()
+ * @see #getOs()
+ * @see #setOs(ActivationOS)
+ * @generated
+ */
+ void unsetOs();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Activation#getOs <em>Os</em>}'
- * containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return whether the value of the '<em>Os</em>' containment reference is
- * set.
- * @see #unsetOs()
- * @see #getOs()
- * @see #setOs(ActivationOS)
- * @generated
- */
- boolean isSetOs();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Activation#getOs <em>Os</em>}' containment
+ * reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Os</em>' containment reference is set.
+ * @see #unsetOs()
+ * @see #getOs()
+ * @see #setOs(ActivationOS)
+ * @generated
+ */
+ boolean isSetOs();
- /**
- * Returns the value of the '<em><b>Property</b></em>' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0
- *
- * Specifies that this profile will be activated when this system property
- * is specified.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Property</em>' containment reference.
- * @see #isSetProperty()
- * @see #unsetProperty()
- * @see #setProperty(ActivationProperty)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivation_Property()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='property' namespace='##targetNamespace'"
- * @generated
- */
- ActivationProperty getProperty();
+ /**
+ * Returns the value of the '<em><b>Property</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Specifies that this profile will be activated when this system
+ * property is specified. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Property</em>' containment reference.
+ * @see #isSetProperty()
+ * @see #unsetProperty()
+ * @see #setProperty(ActivationProperty)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivation_Property()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='property' namespace='##targetNamespace'"
+ * @generated
+ */
+ ActivationProperty getProperty();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Activation#getProperty
- * <em>Property</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Property</em>' containment
- * reference.
- * @see #isSetProperty()
- * @see #unsetProperty()
- * @see #getProperty()
- * @generated
- */
- void setProperty(ActivationProperty value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Activation#getProperty <em>Property</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Property</em>' containment reference.
+ * @see #isSetProperty()
+ * @see #unsetProperty()
+ * @see #getProperty()
+ * @generated
+ */
+ void setProperty(ActivationProperty value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Activation#getProperty
- * <em>Property</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetProperty()
- * @see #getProperty()
- * @see #setProperty(ActivationProperty)
- * @generated
- */
- void unsetProperty();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Activation#getProperty <em>Property</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetProperty()
+ * @see #getProperty()
+ * @see #setProperty(ActivationProperty)
+ * @generated
+ */
+ void unsetProperty();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Activation#getProperty
- * <em>Property</em>}' containment reference is set. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Property</em>' containment
- * reference is set.
- * @see #unsetProperty()
- * @see #getProperty()
- * @see #setProperty(ActivationProperty)
- * @generated
- */
- boolean isSetProperty();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Activation#getProperty <em>Property</em>}'
+ * containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Property</em>' containment reference is set.
+ * @see #unsetProperty()
+ * @see #getProperty()
+ * @see #setProperty(ActivationProperty)
+ * @generated
+ */
+ boolean isSetProperty();
- /**
- * Returns the value of the '<em><b>File</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc -->
- * 4.0.0
- *
- * Specifies that this profile will be activated based on existence of a
- * file.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>File</em>' containment reference.
- * @see #isSetFile()
- * @see #unsetFile()
- * @see #setFile(ActivationFile)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivation_File()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='file' namespace='##targetNamespace'"
- * @generated
- */
- ActivationFile getFile();
+ /**
+ * Returns the value of the '<em><b>File</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 4.0.0 Specifies that this profile will be activated based on existence of a file. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>File</em>' containment reference.
+ * @see #isSetFile()
+ * @see #unsetFile()
+ * @see #setFile(ActivationFile)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivation_File()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='file' namespace='##targetNamespace'"
+ * @generated
+ */
+ ActivationFile getFile();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Activation#getFile <em>File</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>File</em>' containment reference.
- * @see #isSetFile()
- * @see #unsetFile()
- * @see #getFile()
- * @generated
- */
- void setFile(ActivationFile value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Activation#getFile <em>File</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>File</em>' containment reference.
+ * @see #isSetFile()
+ * @see #unsetFile()
+ * @see #getFile()
+ * @generated
+ */
+ void setFile(ActivationFile value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Activation#getFile <em>File</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetFile()
- * @see #getFile()
- * @see #setFile(ActivationFile)
- * @generated
- */
- void unsetFile();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Activation#getFile <em>File</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetFile()
+ * @see #getFile()
+ * @see #setFile(ActivationFile)
+ * @generated
+ */
+ void unsetFile();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Activation#getFile <em>File</em>}'
- * containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return whether the value of the '<em>File</em>' containment reference is
- * set.
- * @see #unsetFile()
- * @see #getFile()
- * @see #setFile(ActivationFile)
- * @generated
- */
- boolean isSetFile();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Activation#getFile <em>File</em>}'
+ * containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>File</em>' containment reference is set.
+ * @see #unsetFile()
+ * @see #getFile()
+ * @see #setFile(ActivationFile)
+ * @generated
+ */
+ boolean isSetFile();
} // Activation
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ActivationFile.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ActivationFile.java
index 6eb8426f..ca6a9728 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ActivationFile.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ActivationFile.java
@@ -13,26 +13,18 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Activation File</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0
- *
- * This is the file specification used to activate the profile. The missing
- * value will be the location of a file that needs to exist, and if it doesn't
- * the profile will be activated. On the other hand exists will test for the
- * existence of the file and if it is there the profile will be activated.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Activation File</b></em>'. <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 4.0.0 This is the file specification used to activate the profile. The missing value
+ * will be the location of a file that needs to exist, and if it doesn't the profile will be activated. On the other
+ * hand exists will test for the existence of the file and if it is there the profile will be activated. <!--
+ * end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.ActivationFile#getMissing <em>Missing
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.ActivationFile#getExists <em>Exists
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.ActivationFile#getMissing <em>Missing </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.ActivationFile#getExists <em>Exists </em>}</li>
* </ul>
* </p>
*
@@ -41,60 +33,50 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface ActivationFile extends EObject {
- /**
- * Returns the value of the '<em><b>Missing</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The name of the file that must be missing to activate the profile. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Missing</em>' attribute.
- * @see #setMissing(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationFile_Missing()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='missing' namespace='##targetNamespace'"
- * @generated
- */
- String getMissing();
+ /**
+ * Returns the value of the '<em><b>Missing</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The name of the file that must be missing to activate the profile. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Missing</em>' attribute.
+ * @see #setMissing(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationFile_Missing()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='missing' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getMissing();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ActivationFile#getMissing
- * <em>Missing</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Missing</em>' attribute.
- * @see #getMissing()
- * @generated
- */
- void setMissing(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ActivationFile#getMissing <em>Missing</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Missing</em>' attribute.
+ * @see #getMissing()
+ * @generated
+ */
+ void setMissing(String value);
- /**
- * Returns the value of the '<em><b>Exists</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The name of the file that must exist to activate the profile. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Exists</em>' attribute.
- * @see #setExists(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationFile_Exists()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='exists' namespace='##targetNamespace'"
- * @generated
- */
- String getExists();
+ /**
+ * Returns the value of the '<em><b>Exists</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The name of the file that must exist to activate the profile. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Exists</em>' attribute.
+ * @see #setExists(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationFile_Exists()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='exists' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getExists();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ActivationFile#getExists
- * <em>Exists</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Exists</em>' attribute.
- * @see #getExists()
- * @generated
- */
- void setExists(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ActivationFile#getExists <em>Exists</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Exists</em>' attribute.
+ * @see #getExists()
+ * @generated
+ */
+ void setExists(String value);
} // ActivationFile
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ActivationOS.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ActivationOS.java
index 44cb43bb..7716552a 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ActivationOS.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ActivationOS.java
@@ -13,26 +13,18 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Activation OS</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0
- *
- * This is an activator which will detect an operating system's attributes in
- * order to activate its profile.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Activation OS</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 This is an activator which will detect an operating system's attributes in order to
+ * activate its profile. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.m2e.model.edit.pom.ActivationOS#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.ActivationOS#getFamily <em>Family
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.ActivationOS#getFamily <em>Family </em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.ActivationOS#getArch <em>Arch</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.ActivationOS#getVersion <em>Version
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.ActivationOS#getVersion <em>Version </em>}</li>
* </ul>
* </p>
*
@@ -41,118 +33,101 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface ActivationOS extends EObject {
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The name of the operating system to be used to activate the profile. This
- * must be an exact match of the &lt;code&gt;${os.name}&lt;/code&gt; Java
- * property, such as &lt;code&gt;Windows XP&lt;/code&gt;. <!-- end-model-doc
- * -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationOS_Name()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='name' namespace='##targetNamespace'"
- * @generated
- */
- String getName();
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The name of the operating system to be used to activate the profile. This must be an
+ * exact match of the &lt;code&gt;${os.name}&lt;/code&gt; Java property, such as &lt;code&gt;Windows XP&lt;/code&gt;.
+ * <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationOS_Name()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='name' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getName();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ActivationOS#getName <em>Name</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ActivationOS#getName <em>Name</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
- /**
- * Returns the value of the '<em><b>Family</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The general family of the OS to be used to activate the profile, such as
- * &lt;code&gt;windows&lt;/code&gt; or &lt;code&gt;unix&lt;/code&gt;. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Family</em>' attribute.
- * @see #setFamily(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationOS_Family()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='family' namespace='##targetNamespace'"
- * @generated
- */
- String getFamily();
+ /**
+ * Returns the value of the '<em><b>Family</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The general family of the OS to be used to activate the profile, such as
+ * &lt;code&gt;windows&lt;/code&gt; or &lt;code&gt;unix&lt;/code&gt;. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Family</em>' attribute.
+ * @see #setFamily(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationOS_Family()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='family' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getFamily();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ActivationOS#getFamily
- * <em>Family</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Family</em>' attribute.
- * @see #getFamily()
- * @generated
- */
- void setFamily(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ActivationOS#getFamily <em>Family</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Family</em>' attribute.
+ * @see #getFamily()
+ * @generated
+ */
+ void setFamily(String value);
- /**
- * Returns the value of the '<em><b>Arch</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The architecture of the operating system to be used to activate the
- * profile. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Arch</em>' attribute.
- * @see #setArch(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationOS_Arch()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='arch' namespace='##targetNamespace'"
- * @generated
- */
- String getArch();
+ /**
+ * Returns the value of the '<em><b>Arch</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The architecture of the operating system to be used to activate the profile. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Arch</em>' attribute.
+ * @see #setArch(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationOS_Arch()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='arch' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getArch();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ActivationOS#getArch <em>Arch</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Arch</em>' attribute.
- * @see #getArch()
- * @generated
- */
- void setArch(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ActivationOS#getArch <em>Arch</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Arch</em>' attribute.
+ * @see #getArch()
+ * @generated
+ */
+ void setArch(String value);
- /**
- * Returns the value of the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The version of the operating system to be used to activate the profile.
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Version</em>' attribute.
- * @see #setVersion(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationOS_Version()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='version' namespace='##targetNamespace'"
- * @generated
- */
- String getVersion();
+ /**
+ * Returns the value of the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The version of the operating system to be used to activate the profile. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Version</em>' attribute.
+ * @see #setVersion(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationOS_Version()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='version' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getVersion();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ActivationOS#getVersion
- * <em>Version</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Version</em>' attribute.
- * @see #getVersion()
- * @generated
- */
- void setVersion(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ActivationOS#getVersion <em>Version</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Version</em>' attribute.
+ * @see #getVersion()
+ * @generated
+ */
+ void setVersion(String value);
} // ActivationOS
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ActivationProperty.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ActivationProperty.java
index c90e5db9..aae4d564 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ActivationProperty.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ActivationProperty.java
@@ -13,26 +13,17 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Activation Property</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0
- *
- * This is the property specification used to activate a profile. If the value
- * field is empty, then the existence of the named property will activate the
- * profile, otherwise it does a case-sensitive match against the property value
- * as well.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Activation Property</b></em>'. <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 This is the property specification used to activate a profile. If the
+ * value field is empty, then the existence of the named property will activate the profile, otherwise it does a
+ * case-sensitive match against the property value as well. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.ActivationProperty#getName <em>Name
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.ActivationProperty#getValue <em>Value
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.ActivationProperty#getName <em>Name </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.ActivationProperty#getValue <em>Value </em>}</li>
* </ul>
* </p>
*
@@ -41,58 +32,50 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface ActivationProperty extends EObject {
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The name of the property to be used to activate a profile. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationProperty_Name()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='name' namespace='##targetNamespace'"
- * @generated
- */
- String getName();
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The name of the property to be used to activate a profile. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationProperty_Name()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='name' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getName();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ActivationProperty#getName
- * <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ActivationProperty#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
- /**
- * Returns the value of the '<em><b>Value</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The value of the property required to activate a profile. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Value</em>' attribute.
- * @see #setValue(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationProperty_Value()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='value' namespace='##targetNamespace'"
- * @generated
- */
- String getValue();
+ /**
+ * Returns the value of the '<em><b>Value</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The value of the property required to activate a profile. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Value</em>' attribute.
+ * @see #setValue(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getActivationProperty_Value()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='value' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getValue();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ActivationProperty#getValue
- * <em>Value</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Value</em>' attribute.
- * @see #getValue()
- * @generated
- */
- void setValue(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ActivationProperty#getValue <em>Value</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Value</em>' attribute.
+ * @see #getValue()
+ * @generated
+ */
+ void setValue(String value);
} // ActivationProperty
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Build.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Build.java
index 7abb1fb8..e7d2a229 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Build.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Build.java
@@ -13,27 +13,19 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Build</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 3.0.0+ <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Build</b></em>'. <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Build#getSourceDirectory <em>Source
- * Directory</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Build#getScriptSourceDirectory <em>
- * Script Source Directory</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Build#getTestSourceDirectory <em>Test
- * Source Directory</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Build#getOutputDirectory <em>Output
- * Directory</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Build#getTestOutputDirectory <em>Test
- * Output Directory</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Build#getExtensions <em>Extensions
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Build#getSourceDirectory <em>Source Directory</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Build#getScriptSourceDirectory <em> Script Source Directory</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Build#getTestSourceDirectory <em>Test Source Directory</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Build#getOutputDirectory <em>Output Directory</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Build#getTestOutputDirectory <em>Test Output Directory</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Build#getExtensions <em>Extensions </em>}</li>
* </ul>
* </p>
*
@@ -42,216 +34,163 @@ import org.eclipse.emf.common.util.EList;
* @generated
*/
public interface Build extends BuildBase {
- /**
- * Returns the value of the '<em><b>Source Directory</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc -->
- * 3.0.0+
- *
- * This element specifies a directory containing the source of the project.
- * The generated build system will compile the source in this directory when
- * the project is built. The path given is relative to the project
- * descriptor.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Source Directory</em>' attribute.
- * @see #setSourceDirectory(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuild_SourceDirectory()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='sourceDirectory' namespace='##targetNamespace'"
- * @generated
- */
- String getSourceDirectory();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Build#getSourceDirectory
- * <em>Source Directory</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Source Directory</em>' attribute.
- * @see #getSourceDirectory()
- * @generated
- */
- void setSourceDirectory(String value);
-
- /**
- * Returns the value of the '<em><b>Script Source Directory</b></em>'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0
- *
- * This element specifies a directory containing the script sources of the
- * project. This directory is meant to be different from the
- * sourceDirectory, in that its contents will be copied to the output
- * directory in most cases (since scripts are interpreted rather than
- * compiled).
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Script Source Directory</em>' attribute.
- * @see #setScriptSourceDirectory(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuild_ScriptSourceDirectory()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='scriptSourceDirectory' namespace='##targetNamespace'"
- * @generated
- */
- String getScriptSourceDirectory();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Build#getScriptSourceDirectory
- * <em>Script Source Directory</em>}' attribute. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Script Source Directory</em>'
- * attribute.
- * @see #getScriptSourceDirectory()
- * @generated
- */
- void setScriptSourceDirectory(String value);
-
- /**
- * Returns the value of the '<em><b>Test Source Directory</b></em>'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0
- *
- * This element specifies a directory containing the unit test source of the
- * project. The generated build system will compile these directories when
- * the project is being tested. The path given is relative to the project
- * descriptor.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Test Source Directory</em>' attribute.
- * @see #setTestSourceDirectory(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuild_TestSourceDirectory()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='testSourceDirectory' namespace='##targetNamespace'"
- * @generated
- */
- String getTestSourceDirectory();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Build#getTestSourceDirectory
- * <em>Test Source Directory</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Test Source Directory</em>'
- * attribute.
- * @see #getTestSourceDirectory()
- * @generated
- */
- void setTestSourceDirectory(String value);
-
- /**
- * Returns the value of the '<em><b>Output Directory</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc -->
- * 4.0.0
- *
- * The directory where compiled application classes are placed.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Output Directory</em>' attribute.
- * @see #setOutputDirectory(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuild_OutputDirectory()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='outputDirectory' namespace='##targetNamespace'"
- * @generated
- */
- String getOutputDirectory();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Build#getOutputDirectory
- * <em>Output Directory</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Output Directory</em>' attribute.
- * @see #getOutputDirectory()
- * @generated
- */
- void setOutputDirectory(String value);
-
- /**
- * Returns the value of the '<em><b>Test Output Directory</b></em>'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0
- *
- * The directory where compiled test classes are placed.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Test Output Directory</em>' attribute.
- * @see #setTestOutputDirectory(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuild_TestOutputDirectory()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='testOutputDirectory' namespace='##targetNamespace'"
- * @generated
- */
- String getTestOutputDirectory();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Build#getTestOutputDirectory
- * <em>Test Output Directory</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Test Output Directory</em>'
- * attribute.
- * @see #getTestOutputDirectory()
- * @generated
- */
- void setTestOutputDirectory(String value);
-
- /**
- * Returns the value of the '<em><b>Extensions</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Extension}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 A set of build
- * extensions to use from this project. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Extensions</em>' containment reference
- * list.
- * @see #isSetExtensions()
- * @see #unsetExtensions()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuild_Extensions()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='extensions' namespace='##targetNamespace'"
- * @generated
- */
- EList<Extension> getExtensions();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Build#getExtensions
- * <em>Extensions</em>}' containment reference list. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isSetExtensions()
- * @see #getExtensions()
- * @generated
- */
- void unsetExtensions();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Build#getExtensions
- * <em>Extensions</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Extensions</em>' containment
- * reference list is set.
- * @see #unsetExtensions()
- * @see #getExtensions()
- * @generated
- */
- boolean isSetExtensions();
+ /**
+ * Returns the value of the '<em><b>Source Directory</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 3.0.0+ This element specifies a directory containing the source of the project. The
+ * generated build system will compile the source in this directory when the project is built. The path given is
+ * relative to the project descriptor. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Source Directory</em>' attribute.
+ * @see #setSourceDirectory(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuild_SourceDirectory()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='sourceDirectory' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getSourceDirectory();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Build#getSourceDirectory <em>Source Directory</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Source Directory</em>' attribute.
+ * @see #getSourceDirectory()
+ * @generated
+ */
+ void setSourceDirectory(String value);
+
+ /**
+ * Returns the value of the '<em><b>Script Source Directory</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 This element specifies a directory containing the script sources of
+ * the project. This directory is meant to be different from the sourceDirectory, in that its contents will be copied
+ * to the output directory in most cases (since scripts are interpreted rather than compiled). <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Script Source Directory</em>' attribute.
+ * @see #setScriptSourceDirectory(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuild_ScriptSourceDirectory()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='scriptSourceDirectory' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getScriptSourceDirectory();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Build#getScriptSourceDirectory
+ * <em>Script Source Directory</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Script Source Directory</em>' attribute.
+ * @see #getScriptSourceDirectory()
+ * @generated
+ */
+ void setScriptSourceDirectory(String value);
+
+ /**
+ * Returns the value of the '<em><b>Test Source Directory</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 This element specifies a directory containing the unit test source
+ * of the project. The generated build system will compile these directories when the project is being tested. The
+ * path given is relative to the project descriptor. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Test Source Directory</em>' attribute.
+ * @see #setTestSourceDirectory(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuild_TestSourceDirectory()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='testSourceDirectory' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getTestSourceDirectory();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Build#getTestSourceDirectory
+ * <em>Test Source Directory</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Test Source Directory</em>' attribute.
+ * @see #getTestSourceDirectory()
+ * @generated
+ */
+ void setTestSourceDirectory(String value);
+
+ /**
+ * Returns the value of the '<em><b>Output Directory</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 4.0.0 The directory where compiled application classes are placed. <!-- end-model-doc
+ * -->
+ *
+ * @return the value of the '<em>Output Directory</em>' attribute.
+ * @see #setOutputDirectory(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuild_OutputDirectory()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='outputDirectory' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getOutputDirectory();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Build#getOutputDirectory <em>Output Directory</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Output Directory</em>' attribute.
+ * @see #getOutputDirectory()
+ * @generated
+ */
+ void setOutputDirectory(String value);
+
+ /**
+ * Returns the value of the '<em><b>Test Output Directory</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 The directory where compiled test classes are placed. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Test Output Directory</em>' attribute.
+ * @see #setTestOutputDirectory(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuild_TestOutputDirectory()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='testOutputDirectory' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getTestOutputDirectory();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Build#getTestOutputDirectory
+ * <em>Test Output Directory</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Test Output Directory</em>' attribute.
+ * @see #getTestOutputDirectory()
+ * @generated
+ */
+ void setTestOutputDirectory(String value);
+
+ /**
+ * Returns the value of the '<em><b>Extensions</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Extension}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 A set of build extensions to use from this project. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Extensions</em>' containment reference list.
+ * @see #isSetExtensions()
+ * @see #unsetExtensions()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuild_Extensions()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='extensions' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Extension> getExtensions();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Build#getExtensions <em>Extensions</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetExtensions()
+ * @see #getExtensions()
+ * @generated
+ */
+ void unsetExtensions();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Build#getExtensions <em>Extensions</em>}'
+ * containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Extensions</em>' containment reference list is set.
+ * @see #unsetExtensions()
+ * @see #getExtensions()
+ * @generated
+ */
+ boolean isSetExtensions();
} // Build
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/BuildBase.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/BuildBase.java
index 3c3580f3..554c11f0 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/BuildBase.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/BuildBase.java
@@ -12,34 +12,23 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Build Base</b></em>'. <!-- end-user-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Build Base</b></em>'. <!-- end-user-doc -->
* <!-- begin-model-doc --> 3.0.0+ <!-- end-model-doc -->
- *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getDefaultGoal <em>Default
- * Goal</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getResources <em>Resources
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getTestResources <em>Test
- * Resources</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getDirectory <em>Directory
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getFinalName <em>Final Name
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getPluginManagement <em>
- * Plugin Management</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getPlugins <em>Plugins
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getFilters <em>Filters
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getDefaultGoal <em>Default Goal</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getResources <em>Resources </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getTestResources <em>Test Resources</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getDirectory <em>Directory </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getFinalName <em>Final Name </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getPluginManagement <em> Plugin Management</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getPlugins <em>Plugins </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.BuildBase#getFilters <em>Filters </em>}</li>
* </ul>
* </p>
*
@@ -48,324 +37,255 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface BuildBase extends EObject {
- /**
- * Returns the value of the '<em><b>Default Goal</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * The default goal (or phase in Maven 2) to execute when none is specified
- * for the project.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Default Goal</em>' attribute.
- * @see #setDefaultGoal(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_DefaultGoal()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='defaultGoal' namespace='##targetNamespace'"
- * @generated
- */
- String getDefaultGoal();
+ /**
+ * Returns the value of the '<em><b>Default Goal</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 3.0.0+ The default goal (or phase in Maven 2) to execute when none is specified for the
+ * project. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Default Goal</em>' attribute.
+ * @see #setDefaultGoal(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_DefaultGoal()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='defaultGoal' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getDefaultGoal();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getDefaultGoal
- * <em>Default Goal</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Default Goal</em>' attribute.
- * @see #getDefaultGoal()
- * @generated
- */
- void setDefaultGoal(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.BuildBase#getDefaultGoal <em>Default Goal</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Default Goal</em>' attribute.
+ * @see #getDefaultGoal()
+ * @generated
+ */
+ void setDefaultGoal(String value);
- /**
- * Returns the value of the '<em><b>Resources</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Resource}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * This element describes all of the classpath resources such as properties
- * files associated with a project. These resources are often included in
- * the final package.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Resources</em>' containment reference list.
- * @see #isSetResources()
- * @see #unsetResources()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_Resources()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='resources' namespace='##targetNamespace'"
- * @generated
- */
- EList<Resource> getResources();
+ /**
+ * Returns the value of the '<em><b>Resources</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Resource}. <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc
+ * --> 3.0.0+ This element describes all of the classpath resources such as properties files associated with a
+ * project. These resources are often included in the final package. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Resources</em>' containment reference list.
+ * @see #isSetResources()
+ * @see #unsetResources()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_Resources()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='resources' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Resource> getResources();
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getResources
- * <em>Resources</em>}' containment reference list. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isSetResources()
- * @see #getResources()
- * @generated
- */
- void unsetResources();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.BuildBase#getResources <em>Resources</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetResources()
+ * @see #getResources()
+ * @generated
+ */
+ void unsetResources();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getResources
- * <em>Resources</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Resources</em>' containment
- * reference list is set.
- * @see #unsetResources()
- * @see #getResources()
- * @generated
- */
- boolean isSetResources();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.BuildBase#getResources <em>Resources</em>}
+ * ' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Resources</em>' containment reference list is set.
+ * @see #unsetResources()
+ * @see #getResources()
+ * @generated
+ */
+ boolean isSetResources();
- /**
- * Returns the value of the '<em><b>Test Resources</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Resource}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * This element describes all of the classpath resources such as properties
- * files associated with a project's unit tests.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Test Resources</em>' containment reference
- * list.
- * @see #isSetTestResources()
- * @see #unsetTestResources()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_TestResources()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='testResources' namespace='##targetNamespace'"
- * @generated
- */
- EList<Resource> getTestResources();
+ /**
+ * Returns the value of the '<em><b>Test Resources</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Resource}. <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc
+ * --> 4.0.0 This element describes all of the classpath resources such as properties files associated with a
+ * project's unit tests. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Test Resources</em>' containment reference list.
+ * @see #isSetTestResources()
+ * @see #unsetTestResources()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_TestResources()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='testResources' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Resource> getTestResources();
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getTestResources
- * <em>Test Resources</em>}' containment reference list. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #isSetTestResources()
- * @see #getTestResources()
- * @generated
- */
- void unsetTestResources();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.BuildBase#getTestResources <em>Test Resources</em>}
+ * ' containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetTestResources()
+ * @see #getTestResources()
+ * @generated
+ */
+ void unsetTestResources();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getTestResources
- * <em>Test Resources</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Test Resources</em>' containment
- * reference list is set.
- * @see #unsetTestResources()
- * @see #getTestResources()
- * @generated
- */
- boolean isSetTestResources();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.BuildBase#getTestResources
+ * <em>Test Resources</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Test Resources</em>' containment reference list is set.
+ * @see #unsetTestResources()
+ * @see #getTestResources()
+ * @generated
+ */
+ boolean isSetTestResources();
- /**
- * Returns the value of the '<em><b>Directory</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The directory where all files generated by the build are placed.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Directory</em>' attribute.
- * @see #setDirectory(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_Directory()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='directory' namespace='##targetNamespace'"
- * @generated
- */
- String getDirectory();
+ /**
+ * Returns the value of the '<em><b>Directory</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The directory where all files generated by the build are placed. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Directory</em>' attribute.
+ * @see #setDirectory(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_Directory()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='directory' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getDirectory();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getDirectory
- * <em>Directory</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Directory</em>' attribute.
- * @see #getDirectory()
- * @generated
- */
- void setDirectory(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.BuildBase#getDirectory <em>Directory</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Directory</em>' attribute.
+ * @see #getDirectory()
+ * @generated
+ */
+ void setDirectory(String value);
- /**
- * Returns the value of the '<em><b>Final Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The filename (excluding the extension, and with no path information) that
- * the produced artifact will be called. The default value is
- * &lt;code&gt;${artifactId}-${version}&lt;/code&gt;.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Final Name</em>' attribute.
- * @see #setFinalName(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_FinalName()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='finalName' namespace='##targetNamespace'"
- * @generated
- */
- String getFinalName();
+ /**
+ * Returns the value of the '<em><b>Final Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The filename (excluding the extension, and with no path information) that the produced
+ * artifact will be called. The default value is &lt;code&gt;${artifactId}-${version}&lt;/code&gt;. <!-- end-model-doc
+ * -->
+ *
+ * @return the value of the '<em>Final Name</em>' attribute.
+ * @see #setFinalName(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_FinalName()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='finalName' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getFinalName();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getFinalName
- * <em>Final Name</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Final Name</em>' attribute.
- * @see #getFinalName()
- * @generated
- */
- void setFinalName(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.BuildBase#getFinalName <em>Final Name</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Final Name</em>' attribute.
+ * @see #getFinalName()
+ * @generated
+ */
+ void setFinalName(String value);
- /**
- * Returns the value of the '<em><b>Plugin Management</b></em>' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0
- *
- * Default plugin information to be made available for reference by projects
- * derived from this one. This plugin configuration will not be resolved or
- * bound to the lifecycle unless referenced. Any local configuration for a
- * given plugin will override the plugin's entire definition here.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Plugin Management</em>' containment
- * reference.
- * @see #isSetPluginManagement()
- * @see #unsetPluginManagement()
- * @see #setPluginManagement(PluginManagement)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_PluginManagement()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='pluginManagement' namespace='##targetNamespace'"
- * @generated
- */
- PluginManagement getPluginManagement();
+ /**
+ * Returns the value of the '<em><b>Plugin Management</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Default plugin information to be made available for reference by
+ * projects derived from this one. This plugin configuration will not be resolved or bound to the lifecycle unless
+ * referenced. Any local configuration for a given plugin will override the plugin's entire definition here. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Plugin Management</em>' containment reference.
+ * @see #isSetPluginManagement()
+ * @see #unsetPluginManagement()
+ * @see #setPluginManagement(PluginManagement)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_PluginManagement()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='pluginManagement' namespace='##targetNamespace'"
+ * @generated
+ */
+ PluginManagement getPluginManagement();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getPluginManagement
- * <em>Plugin Management</em>}' containment reference. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Plugin Management</em>' containment
- * reference.
- * @see #isSetPluginManagement()
- * @see #unsetPluginManagement()
- * @see #getPluginManagement()
- * @generated
- */
- void setPluginManagement(PluginManagement value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.BuildBase#getPluginManagement
+ * <em>Plugin Management</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Plugin Management</em>' containment reference.
+ * @see #isSetPluginManagement()
+ * @see #unsetPluginManagement()
+ * @see #getPluginManagement()
+ * @generated
+ */
+ void setPluginManagement(PluginManagement value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getPluginManagement
- * <em>Plugin Management</em>}' containment reference. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #isSetPluginManagement()
- * @see #getPluginManagement()
- * @see #setPluginManagement(PluginManagement)
- * @generated
- */
- void unsetPluginManagement();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.BuildBase#getPluginManagement
+ * <em>Plugin Management</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetPluginManagement()
+ * @see #getPluginManagement()
+ * @see #setPluginManagement(PluginManagement)
+ * @generated
+ */
+ void unsetPluginManagement();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getPluginManagement
- * <em>Plugin Management</em>}' containment reference is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Plugin Management</em>' containment
- * reference is set.
- * @see #unsetPluginManagement()
- * @see #getPluginManagement()
- * @see #setPluginManagement(PluginManagement)
- * @generated
- */
- boolean isSetPluginManagement();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.BuildBase#getPluginManagement
+ * <em>Plugin Management</em>}' containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Plugin Management</em>' containment reference is set.
+ * @see #unsetPluginManagement()
+ * @see #getPluginManagement()
+ * @see #setPluginManagement(PluginManagement)
+ * @generated
+ */
+ boolean isSetPluginManagement();
- /**
- * Returns the value of the '<em><b>Plugins</b></em>' containment reference
- * list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Plugin}. <!-- begin-user-doc --> <!--
- * end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The list of plugins to use.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Plugins</em>' containment reference list.
- * @see #isSetPlugins()
- * @see #unsetPlugins()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_Plugins()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='plugins' namespace='##targetNamespace'"
- * @generated
- */
- EList<Plugin> getPlugins();
+ /**
+ * Returns the value of the '<em><b>Plugins</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Plugin}. <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc
+ * --> 4.0.0 The list of plugins to use. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Plugins</em>' containment reference list.
+ * @see #isSetPlugins()
+ * @see #unsetPlugins()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_Plugins()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='plugins' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Plugin> getPlugins();
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getPlugins
- * <em>Plugins</em>}' containment reference list. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isSetPlugins()
- * @see #getPlugins()
- * @generated
- */
- void unsetPlugins();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.BuildBase#getPlugins <em>Plugins</em>}' containment
+ * reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetPlugins()
+ * @see #getPlugins()
+ * @generated
+ */
+ void unsetPlugins();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getPlugins
- * <em>Plugins</em>}' containment reference list is set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Plugins</em>' containment reference
- * list is set.
- * @see #unsetPlugins()
- * @see #getPlugins()
- * @generated
- */
- boolean isSetPlugins();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.BuildBase#getPlugins <em>Plugins</em>}'
+ * containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Plugins</em>' containment reference list is set.
+ * @see #unsetPlugins()
+ * @see #getPlugins()
+ * @generated
+ */
+ boolean isSetPlugins();
- /**
- * Returns the value of the '<em><b>Filters</b></em>' attribute list. The
- * list contents are of type {@link java.lang.String}. <!-- begin-user-doc
- * -->
- * <p>
- * If the meaning of the '<em>Filters</em>' attribute list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Filters</em>' attribute list.
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_Filters()
- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
- * @generated
- */
- EList<String> getFilters();
+ /**
+ * Returns the value of the '<em><b>Filters</b></em>' attribute list. The list contents are of type
+ * {@link java.lang.String}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Filters</em>' attribute list isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Filters</em>' attribute list.
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getBuildBase_Filters()
+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
+ * @generated
+ */
+ EList<String> getFilters();
} // BuildBase
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/CiManagement.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/CiManagement.java
index 2557f80e..00236133 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/CiManagement.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/CiManagement.java
@@ -12,23 +12,18 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Ci Management</b></em>'. <!-- end-user-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Ci Management</b></em>'. <!-- end-user-doc -->
* <!-- begin-model-doc --> 4.0.0 <!-- end-model-doc -->
- *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.CiManagement#getSystem <em>System
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.CiManagement#getSystem <em>System </em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.CiManagement#getUrl <em>Url</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.CiManagement#getNotifiers <em>
- * Notifiers</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.CiManagement#getNotifiers <em> Notifiers</em>}</li>
* </ul>
* </p>
*
@@ -37,108 +32,89 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface CiManagement extends EObject {
- /**
- * Returns the value of the '<em><b>System</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The name of the continuous integration system, e.g.
- * &lt;code&gt;continuum&lt;/code&gt;. <!-- end-model-doc -->
- *
- * @return the value of the '<em>System</em>' attribute.
- * @see #setSystem(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getCiManagement_System()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='system' namespace='##targetNamespace'"
- * @generated
- */
- String getSystem();
+ /**
+ * Returns the value of the '<em><b>System</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The name of the continuous integration system, e.g. &lt;code&gt;continuum&lt;/code&gt;.
+ * <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>System</em>' attribute.
+ * @see #setSystem(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getCiManagement_System()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='system' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getSystem();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.CiManagement#getSystem
- * <em>System</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>System</em>' attribute.
- * @see #getSystem()
- * @generated
- */
- void setSystem(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.CiManagement#getSystem <em>System</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>System</em>' attribute.
+ * @see #getSystem()
+ * @generated
+ */
+ void setSystem(String value);
- /**
- * Returns the value of the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * URL for the continuous integration system used by the project if it has a
- * web interface. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Url</em>' attribute.
- * @see #setUrl(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getCiManagement_Url()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='url' namespace='##targetNamespace'"
- * @generated
- */
- String getUrl();
+ /**
+ * Returns the value of the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 URL for the continuous integration system used by the project if it has a web interface.
+ * <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Url</em>' attribute.
+ * @see #setUrl(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getCiManagement_Url()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='url' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getUrl();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.CiManagement#getUrl <em>Url</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Url</em>' attribute.
- * @see #getUrl()
- * @generated
- */
- void setUrl(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.CiManagement#getUrl <em>Url</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Url</em>' attribute.
+ * @see #getUrl()
+ * @generated
+ */
+ void setUrl(String value);
- /**
- * Returns the value of the '<em><b>Notifiers</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Notifier}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * Configuration for notifying developers/users when a build is
- * unsuccessful, including user information and notification mode.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Notifiers</em>' containment reference list.
- * @see #isSetNotifiers()
- * @see #unsetNotifiers()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getCiManagement_Notifiers()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='notifiers' namespace='##targetNamespace'"
- * @generated
- */
- EList<Notifier> getNotifiers();
+ /**
+ * Returns the value of the '<em><b>Notifiers</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Notifier}. <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc
+ * --> 4.0.0 Configuration for notifying developers/users when a build is unsuccessful, including user information and
+ * notification mode. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Notifiers</em>' containment reference list.
+ * @see #isSetNotifiers()
+ * @see #unsetNotifiers()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getCiManagement_Notifiers()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='notifiers' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Notifier> getNotifiers();
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.CiManagement#getNotifiers
- * <em>Notifiers</em>}' containment reference list. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isSetNotifiers()
- * @see #getNotifiers()
- * @generated
- */
- void unsetNotifiers();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.CiManagement#getNotifiers <em>Notifiers</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetNotifiers()
+ * @see #getNotifiers()
+ * @generated
+ */
+ void unsetNotifiers();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.CiManagement#getNotifiers
- * <em>Notifiers</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Notifiers</em>' containment
- * reference list is set.
- * @see #unsetNotifiers()
- * @see #getNotifiers()
- * @generated
- */
- boolean isSetNotifiers();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.CiManagement#getNotifiers
+ * <em>Notifiers</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Notifiers</em>' containment reference list is set.
+ * @see #unsetNotifiers()
+ * @see #getNotifiers()
+ * @generated
+ */
+ boolean isSetNotifiers();
} // CiManagement
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Configuration.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Configuration.java
index 56441884..b0d9f542 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Configuration.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Configuration.java
@@ -13,13 +13,13 @@ package org.eclipse.m2e.model.edit.pom;
import java.util.List;
-import org.eclipse.emf.ecore.EObject;
import org.w3c.dom.Node;
+import org.eclipse.emf.ecore.EObject;
+
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Configuration</b></em>'. <!-- end-user-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Configuration</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are supported:
* <ul>
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Contributor.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Contributor.java
index 3f1b6aa0..933880a0 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Contributor.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Contributor.java
@@ -12,35 +12,23 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Contributor</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 3.0.0+
- *
- * Description of a person who has contributed to the project, but who does not
- * have commit privileges. Usually, these contributions come in the form of
- * patches submitted.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Contributor</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 3.0.0+ Description of a person who has contributed to the project, but who does not have
+ * commit privileges. Usually, these contributions come in the form of patches submitted. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.m2e.model.edit.pom.Contributor#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Contributor#getEmail <em>Email</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Contributor#getUrl <em>Url</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Contributor#getOrganization <em>
- * Organization</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Contributor#getOrganizationUrl <em>
- * Organization Url</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Contributor#getTimezone <em>Timezone
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Contributor#getProperties <em>
- * Properties</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Contributor#getOrganization <em> Organization</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Contributor#getOrganizationUrl <em> Organization Url</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Contributor#getTimezone <em>Timezone </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Contributor#getProperties <em> Properties</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Contributor#getRoles <em>Roles</em>}</li>
* </ul>
* </p>
@@ -50,256 +38,219 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Contributor extends EObject {
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- * The full name of the contributor. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_Name()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='name' namespace='##targetNamespace'"
- * @generated
- */
- String getName();
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The full name of the contributor. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_Name()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='name' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getName();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Contributor#getName <em>Name</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Contributor#getName <em>Name</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
- /**
- * Returns the value of the '<em><b>Email</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- * The email address of the contributor. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Email</em>' attribute.
- * @see #setEmail(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_Email()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='email' namespace='##targetNamespace'"
- * @generated
- */
- String getEmail();
+ /**
+ * Returns the value of the '<em><b>Email</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The email address of the contributor. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Email</em>' attribute.
+ * @see #setEmail(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_Email()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='email' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getEmail();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Contributor#getEmail <em>Email</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Email</em>' attribute.
- * @see #getEmail()
- * @generated
- */
- void setEmail(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Contributor#getEmail <em>Email</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Email</em>' attribute.
+ * @see #getEmail()
+ * @generated
+ */
+ void setEmail(String value);
- /**
- * Returns the value of the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- * The URL for the homepage of the contributor. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Url</em>' attribute.
- * @see #setUrl(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_Url()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='url' namespace='##targetNamespace'"
- * @generated
- */
- String getUrl();
+ /**
+ * Returns the value of the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The URL for the homepage of the contributor. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Url</em>' attribute.
+ * @see #setUrl(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_Url()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='url' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getUrl();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Contributor#getUrl <em>Url</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Url</em>' attribute.
- * @see #getUrl()
- * @generated
- */
- void setUrl(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Contributor#getUrl <em>Url</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Url</em>' attribute.
+ * @see #getUrl()
+ * @generated
+ */
+ void setUrl(String value);
- /**
- * Returns the value of the '<em><b>Organization</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- * The organization to which the contributor belongs. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Organization</em>' attribute.
- * @see #setOrganization(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_Organization()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='organization' namespace='##targetNamespace'"
- * @generated
- */
- String getOrganization();
+ /**
+ * Returns the value of the '<em><b>Organization</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 3.0.0+ The organization to which the contributor belongs. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Organization</em>' attribute.
+ * @see #setOrganization(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_Organization()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='organization' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getOrganization();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Contributor#getOrganization
- * <em>Organization</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Organization</em>' attribute.
- * @see #getOrganization()
- * @generated
- */
- void setOrganization(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Contributor#getOrganization <em>Organization</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Organization</em>' attribute.
+ * @see #getOrganization()
+ * @generated
+ */
+ void setOrganization(String value);
- /**
- * Returns the value of the '<em><b>Organization Url</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc -->
- * 3.0.0+ The URL of the organization. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Organization Url</em>' attribute.
- * @see #setOrganizationUrl(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_OrganizationUrl()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='organizationUrl' namespace='##targetNamespace'"
- * @generated
- */
- String getOrganizationUrl();
+ /**
+ * Returns the value of the '<em><b>Organization Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 3.0.0+ The URL of the organization. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Organization Url</em>' attribute.
+ * @see #setOrganizationUrl(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_OrganizationUrl()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='organizationUrl' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getOrganizationUrl();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Contributor#getOrganizationUrl
- * <em>Organization Url</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Organization Url</em>' attribute.
- * @see #getOrganizationUrl()
- * @generated
- */
- void setOrganizationUrl(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Contributor#getOrganizationUrl
+ * <em>Organization Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Organization Url</em>' attribute.
+ * @see #getOrganizationUrl()
+ * @generated
+ */
+ void setOrganizationUrl(String value);
- /**
- * Returns the value of the '<em><b>Timezone</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * The timezone the contributor is in. This is a number in the range -11 to
- * 12.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Timezone</em>' attribute.
- * @see #setTimezone(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_Timezone()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='timezone' namespace='##targetNamespace'"
- * @generated
- */
- String getTimezone();
+ /**
+ * Returns the value of the '<em><b>Timezone</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The timezone the contributor is in. This is a number in the range -11 to 12. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Timezone</em>' attribute.
+ * @see #setTimezone(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_Timezone()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='timezone' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getTimezone();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Contributor#getTimezone
- * <em>Timezone</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Timezone</em>' attribute.
- * @see #getTimezone()
- * @generated
- */
- void setTimezone(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Contributor#getTimezone <em>Timezone</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Timezone</em>' attribute.
+ * @see #getTimezone()
+ * @generated
+ */
+ void setTimezone(String value);
- /**
- * Returns the value of the '<em><b>Properties</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.PropertyElement}. <!-- begin-user-doc
- * --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * Properties about the contributor, such as an instant messenger handle.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Properties</em>' containment reference
- * list.
- * @see #isSetProperties()
- * @see #unsetProperties()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_Properties()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='properties' namespace='##targetNamespace'"
- * @generated
- */
- EList<PropertyElement> getProperties();
+ /**
+ * Returns the value of the '<em><b>Properties</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.PropertyElement}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ Properties about the contributor, such as an instant messenger handle. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Properties</em>' containment reference list.
+ * @see #isSetProperties()
+ * @see #unsetProperties()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_Properties()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='properties' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<PropertyElement> getProperties();
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Contributor#getProperties
- * <em>Properties</em>}' containment reference list. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isSetProperties()
- * @see #getProperties()
- * @generated
- */
- void unsetProperties();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Contributor#getProperties <em>Properties</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetProperties()
+ * @see #getProperties()
+ * @generated
+ */
+ void unsetProperties();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Contributor#getProperties
- * <em>Properties</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Properties</em>' containment
- * reference list is set.
- * @see #unsetProperties()
- * @see #getProperties()
- * @generated
- */
- boolean isSetProperties();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Contributor#getProperties
+ * <em>Properties</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Properties</em>' containment reference list is set.
+ * @see #unsetProperties()
+ * @see #getProperties()
+ * @generated
+ */
+ boolean isSetProperties();
- /**
- * Returns the value of the '<em><b>Roles</b></em>' attribute list. The list
- * contents are of type {@link java.lang.String}. <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Roles</em>' attribute list isn't clear, there
- * really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Roles</em>' attribute list.
- * @see #isSetRoles()
- * @see #unsetRoles()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_Roles()
- * @model unique="false" unsettable="true"
- * dataType="org.eclipse.emf.ecore.xml.type.String"
- * @generated
- */
- EList<String> getRoles();
+ /**
+ * Returns the value of the '<em><b>Roles</b></em>' attribute list. The list contents are of type
+ * {@link java.lang.String}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Roles</em>' attribute list isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Roles</em>' attribute list.
+ * @see #isSetRoles()
+ * @see #unsetRoles()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getContributor_Roles()
+ * @model unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
+ * @generated
+ */
+ EList<String> getRoles();
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Contributor#getRoles <em>Roles</em>}'
- * attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetRoles()
- * @see #getRoles()
- * @generated
- */
- void unsetRoles();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Contributor#getRoles <em>Roles</em>}' attribute
+ * list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetRoles()
+ * @see #getRoles()
+ * @generated
+ */
+ void unsetRoles();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Contributor#getRoles <em>Roles</em>}'
- * attribute list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Roles</em>' attribute list is set.
- * @see #unsetRoles()
- * @see #getRoles()
- * @generated
- */
- boolean isSetRoles();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Contributor#getRoles <em>Roles</em>}'
+ * attribute list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Roles</em>' attribute list is set.
+ * @see #unsetRoles()
+ * @see #getRoles()
+ * @generated
+ */
+ boolean isSetRoles();
} // Contributor
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Dependency.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Dependency.java
index 348c07cd..f52548fb 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Dependency.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Dependency.java
@@ -12,34 +12,24 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Dependency</b></em>'. <!-- end-user-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Dependency</b></em>'. <!-- end-user-doc -->
* <!-- begin-model-doc --> 3.0.0+ <!-- end-model-doc -->
- *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getGroupId <em>Group Id
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getArtifactId <em>Artifact
- * Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getVersion <em>Version
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getGroupId <em>Group Id </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getArtifactId <em>Artifact Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getVersion <em>Version </em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getType <em>Type</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getClassifier <em>
- * Classifier</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getClassifier <em> Classifier</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getScope <em>Scope</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getSystemPath <em>System
- * Path</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getExclusions <em>
- * Exclusions</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getOptional <em>Optional
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getSystemPath <em>System Path</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getExclusions <em> Exclusions</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Dependency#getOptional <em>Optional </em>}</li>
* </ul>
* </p>
*
@@ -48,382 +38,300 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Dependency extends EObject {
- /**
- * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * The project group that produced the dependency, e.g.
- * &lt;code&gt;org.apache.maven&lt;/code&gt;.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Group Id</em>' attribute.
- * @see #setGroupId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_GroupId()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='groupId' namespace='##targetNamespace'"
- * @generated
- */
- String getGroupId();
+ /**
+ * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The project group that produced the dependency, e.g.
+ * &lt;code&gt;org.apache.maven&lt;/code&gt;. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Group Id</em>' attribute.
+ * @see #setGroupId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_GroupId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='groupId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getGroupId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Dependency#getGroupId
- * <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Group Id</em>' attribute.
- * @see #getGroupId()
- * @generated
- */
- void setGroupId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Dependency#getGroupId <em>Group Id</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Group Id</em>' attribute.
+ * @see #getGroupId()
+ * @generated
+ */
+ void setGroupId(String value);
- /**
- * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * The unique id for an artifact produced by the project group, e.g.
- * &lt;code&gt;maven-artifact&lt;/code&gt;.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Artifact Id</em>' attribute.
- * @see #setArtifactId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_ArtifactId()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='artifactId' namespace='##targetNamespace'"
- * @generated
- */
- String getArtifactId();
+ /**
+ * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 3.0.0+ The unique id for an artifact produced by the project group, e.g.
+ * &lt;code&gt;maven-artifact&lt;/code&gt;. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Artifact Id</em>' attribute.
+ * @see #setArtifactId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_ArtifactId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='artifactId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getArtifactId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Dependency#getArtifactId
- * <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Artifact Id</em>' attribute.
- * @see #getArtifactId()
- * @generated
- */
- void setArtifactId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Dependency#getArtifactId <em>Artifact Id</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Artifact Id</em>' attribute.
+ * @see #getArtifactId()
+ * @generated
+ */
+ void setArtifactId(String value);
- /**
- * Returns the value of the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * The version of the dependency, e.g. &lt;code&gt;3.2.1&lt;/code&gt;. In
- * Maven 2, this can also be specified as a range of versions.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Version</em>' attribute.
- * @see #setVersion(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_Version()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='version' namespace='##targetNamespace'"
- * @generated
- */
- String getVersion();
+ /**
+ * Returns the value of the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The version of the dependency, e.g. &lt;code&gt;3.2.1&lt;/code&gt;. In Maven 2, this can
+ * also be specified as a range of versions. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Version</em>' attribute.
+ * @see #setVersion(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_Version()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='version' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getVersion();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Dependency#getVersion
- * <em>Version</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Version</em>' attribute.
- * @see #getVersion()
- * @generated
- */
- void setVersion(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Dependency#getVersion <em>Version</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Version</em>' attribute.
+ * @see #getVersion()
+ * @generated
+ */
+ void setVersion(String value);
- /**
- * Returns the value of the '<em><b>Type</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The type of dependency. This defaults to &lt;code&gt;jar&lt;/code&gt;.
- * While it usually represents the extension on the filename of the
- * dependency, that is not always the case. A type can be mapped to a
- * different extension and a classifier. The type often correspongs to the
- * packaging used, though this is also not always the case. Some examples
- * are &lt;code&gt;jar&lt;/code&gt;, &lt;code&gt;war&lt;/code&gt;,
- * &lt;code&gt;ejb-client&lt;/code&gt; and
- * &lt;code&gt;test-jar&lt;/code&gt;. New types can be defined by plugins
- * that set &lt;code&gt;extensions&lt;/code&gt; to
- * &lt;code&gt;true&lt;/code&gt;, so this is not a complete list.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Type</em>' attribute.
- * @see #isSetType()
- * @see #unsetType()
- * @see #setType(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_Type()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
- * extendedMetaData
- * ="kind='element' name='type' namespace='##targetNamespace'"
- * @generated
- */
- String getType();
+ /**
+ * Returns the value of the '<em><b>Type</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The type of dependency. This defaults to &lt;code&gt;jar&lt;/code&gt;. While it usually
+ * represents the extension on the filename of the dependency, that is not always the case. A type can be mapped to a
+ * different extension and a classifier. The type often correspongs to the packaging used, though this is also not
+ * always the case. Some examples are &lt;code&gt;jar&lt;/code&gt;, &lt;code&gt;war&lt;/code&gt;,
+ * &lt;code&gt;ejb-client&lt;/code&gt; and &lt;code&gt;test-jar&lt;/code&gt;. New types can be defined by plugins that
+ * set &lt;code&gt;extensions&lt;/code&gt; to &lt;code&gt;true&lt;/code&gt;, so this is not a complete list. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Type</em>' attribute.
+ * @see #isSetType()
+ * @see #unsetType()
+ * @see #setType(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_Type()
+ * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData
+ * ="kind='element' name='type' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getType();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Dependency#getType <em>Type</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Type</em>' attribute.
- * @see #isSetType()
- * @see #unsetType()
- * @see #getType()
- * @generated
- */
- void setType(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Dependency#getType <em>Type</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Type</em>' attribute.
+ * @see #isSetType()
+ * @see #unsetType()
+ * @see #getType()
+ * @generated
+ */
+ void setType(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Dependency#getType <em>Type</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetType()
- * @see #getType()
- * @see #setType(String)
- * @generated
- */
- void unsetType();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Dependency#getType <em>Type</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetType()
+ * @see #getType()
+ * @see #setType(String)
+ * @generated
+ */
+ void unsetType();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Dependency#getType <em>Type</em>}'
- * attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Type</em>' attribute is set.
- * @see #unsetType()
- * @see #getType()
- * @see #setType(String)
- * @generated
- */
- boolean isSetType();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Dependency#getType <em>Type</em>}'
+ * attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Type</em>' attribute is set.
+ * @see #unsetType()
+ * @see #getType()
+ * @see #setType(String)
+ * @generated
+ */
+ boolean isSetType();
- /**
- * Returns the value of the '<em><b>Classifier</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The classifier of the dependency. This allows distinguishing two
- * artifacts that belong to the same POM but were built differently, and is
- * appended to the filename after the version. For example,
- * &lt;code&gt;jdk14&lt;/code&gt; and &lt;code&gt;jdk15&lt;/code&gt;.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Classifier</em>' attribute.
- * @see #setClassifier(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_Classifier()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='classifier' namespace='##targetNamespace'"
- * @generated
- */
- String getClassifier();
+ /**
+ * Returns the value of the '<em><b>Classifier</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The classifier of the dependency. This allows distinguishing two artifacts that belong to
+ * the same POM but were built differently, and is appended to the filename after the version. For example,
+ * &lt;code&gt;jdk14&lt;/code&gt; and &lt;code&gt;jdk15&lt;/code&gt;. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Classifier</em>' attribute.
+ * @see #setClassifier(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_Classifier()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='classifier' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getClassifier();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Dependency#getClassifier
- * <em>Classifier</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Classifier</em>' attribute.
- * @see #getClassifier()
- * @generated
- */
- void setClassifier(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Dependency#getClassifier <em>Classifier</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Classifier</em>' attribute.
+ * @see #getClassifier()
+ * @generated
+ */
+ void setClassifier(String value);
- /**
- * Returns the value of the '<em><b>Scope</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The scope of the dependency - &lt;code&gt;compile&lt;/code&gt;,
- * &lt;code&gt;runtime&lt;/code&gt;, &lt;code&gt;test&lt;/code&gt;,
- * &lt;code&gt;system&lt;/code&gt;, and &lt;code&gt;provided&lt;/code&gt;.
- * Used to calculate the various classpaths used for compilation, testing,
- * and so on. It also assists in determining which artifacts to include in a
- * distribution of this project. For more information, see &lt;a href="http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html"
- * &gt;the dependency mechanism&lt;/a&gt;.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Scope</em>' attribute.
- * @see #setScope(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_Scope()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='scope' namespace='##targetNamespace'"
- * @generated
- */
- String getScope();
+ /**
+ * Returns the value of the '<em><b>Scope</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The scope of the dependency - &lt;code&gt;compile&lt;/code&gt;,
+ * &lt;code&gt;runtime&lt;/code&gt;, &lt;code&gt;test&lt;/code&gt;, &lt;code&gt;system&lt;/code&gt;, and
+ * &lt;code&gt;provided&lt;/code&gt;. Used to calculate the various classpaths used for compilation, testing, and so
+ * on. It also assists in determining which artifacts to include in a distribution of this project. For more
+ * information, see &lt;a href="http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html"
+ * &gt;the dependency mechanism&lt;/a&gt;. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Scope</em>' attribute.
+ * @see #setScope(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_Scope()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='scope' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getScope();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Dependency#getScope <em>Scope</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Scope</em>' attribute.
- * @see #getScope()
- * @generated
- */
- void setScope(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Dependency#getScope <em>Scope</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Scope</em>' attribute.
+ * @see #getScope()
+ * @generated
+ */
+ void setScope(String value);
- /**
- * Returns the value of the '<em><b>System Path</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * FOR SYSTEM SCOPE ONLY. Note that use of this property is
- * &lt;b&gt;discouraged&lt;/b&gt; and may be replaced in later versions.
- * This specifies the path on the filesystem for this dependency. Requires
- * an absolute path for the value, not relative. Use a property that gives
- * the machine specific absolute path, e.g.
- * &lt;code&gt;${java.home}&lt;/code&gt;.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>System Path</em>' attribute.
- * @see #setSystemPath(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_SystemPath()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='systemPath' namespace='##targetNamespace'"
- * @generated
- */
- String getSystemPath();
+ /**
+ * Returns the value of the '<em><b>System Path</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 FOR SYSTEM SCOPE ONLY. Note that use of this property is
+ * &lt;b&gt;discouraged&lt;/b&gt; and may be replaced in later versions. This specifies the path on the filesystem for
+ * this dependency. Requires an absolute path for the value, not relative. Use a property that gives the machine
+ * specific absolute path, e.g. &lt;code&gt;${java.home}&lt;/code&gt;. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>System Path</em>' attribute.
+ * @see #setSystemPath(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_SystemPath()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='systemPath' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getSystemPath();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Dependency#getSystemPath
- * <em>System Path</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>System Path</em>' attribute.
- * @see #getSystemPath()
- * @generated
- */
- void setSystemPath(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Dependency#getSystemPath <em>System Path</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>System Path</em>' attribute.
+ * @see #getSystemPath()
+ * @generated
+ */
+ void setSystemPath(String value);
- /**
- * Returns the value of the '<em><b>Exclusions</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Exclusion}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * Lists a set of artifacts that should be excluded from this dependency's
- * artifact list when it comes to calculating transitive dependencies.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Exclusions</em>' containment reference
- * list.
- * @see #isSetExclusions()
- * @see #unsetExclusions()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_Exclusions()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='exclusions' namespace='##targetNamespace'"
- * @generated
- */
- EList<Exclusion> getExclusions();
+ /**
+ * Returns the value of the '<em><b>Exclusions</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Exclusion}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Lists a set of artifacts that should be excluded from this dependency's artifact list
+ * when it comes to calculating transitive dependencies. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Exclusions</em>' containment reference list.
+ * @see #isSetExclusions()
+ * @see #unsetExclusions()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_Exclusions()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='exclusions' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Exclusion> getExclusions();
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Dependency#getExclusions
- * <em>Exclusions</em>}' containment reference list. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isSetExclusions()
- * @see #getExclusions()
- * @generated
- */
- void unsetExclusions();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Dependency#getExclusions <em>Exclusions</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetExclusions()
+ * @see #getExclusions()
+ * @generated
+ */
+ void unsetExclusions();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Dependency#getExclusions
- * <em>Exclusions</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Exclusions</em>' containment
- * reference list is set.
- * @see #unsetExclusions()
- * @see #getExclusions()
- * @generated
- */
- boolean isSetExclusions();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Dependency#getExclusions
+ * <em>Exclusions</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Exclusions</em>' containment reference list is set.
+ * @see #unsetExclusions()
+ * @see #getExclusions()
+ * @generated
+ */
+ boolean isSetExclusions();
- /**
- * Returns the value of the '<em><b>Optional</b></em>' attribute. The
- * default value is <code>"false"</code>. <!-- begin-user-doc --> <!--
- * end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * Indicates the dependency is optional for use of this library. While the
- * version of the dependency will be taken into account for dependency
- * calculation if the library is used elsewhere, it will not be passed on
- * transitively.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Optional</em>' attribute.
- * @see #isSetOptional()
- * @see #unsetOptional()
- * @see #setOptional(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_Optional()
- * @model default="false" unsettable="true"
- * dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='optional' namespace='##targetNamespace'"
- * @generated
- */
- String getOptional();
+ /**
+ * Returns the value of the '<em><b>Optional</b></em>' attribute. The default value is <code>"false"</code>. <!--
+ * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Indicates the dependency is optional for
+ * use of this library. While the version of the dependency will be taken into account for dependency calculation if
+ * the library is used elsewhere, it will not be passed on transitively. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Optional</em>' attribute.
+ * @see #isSetOptional()
+ * @see #unsetOptional()
+ * @see #setOptional(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependency_Optional()
+ * @model default="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='optional' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getOptional();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Dependency#getOptional
- * <em>Optional</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Optional</em>' attribute.
- * @see #isSetOptional()
- * @see #unsetOptional()
- * @see #getOptional()
- * @generated
- */
- void setOptional(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Dependency#getOptional <em>Optional</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Optional</em>' attribute.
+ * @see #isSetOptional()
+ * @see #unsetOptional()
+ * @see #getOptional()
+ * @generated
+ */
+ void setOptional(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Dependency#getOptional
- * <em>Optional</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #isSetOptional()
- * @see #getOptional()
- * @see #setOptional(String)
- * @generated
- */
- void unsetOptional();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Dependency#getOptional <em>Optional</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetOptional()
+ * @see #getOptional()
+ * @see #setOptional(String)
+ * @generated
+ */
+ void unsetOptional();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Dependency#getOptional
- * <em>Optional</em>}' attribute is set. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return whether the value of the '<em>Optional</em>' attribute is set.
- * @see #unsetOptional()
- * @see #getOptional()
- * @see #setOptional(String)
- * @generated
- */
- boolean isSetOptional();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Dependency#getOptional <em>Optional</em>}'
+ * attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Optional</em>' attribute is set.
+ * @see #unsetOptional()
+ * @see #getOptional()
+ * @see #setOptional(String)
+ * @generated
+ */
+ boolean isSetOptional();
} // Dependency
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DependencyManagement.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DependencyManagement.java
index 20c84d8a..1a7e7354 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DependencyManagement.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DependencyManagement.java
@@ -12,25 +12,17 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Dependency Management</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0
- *
- * Section for management of default dependency information for use in a group
- * of POMs.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Dependency Management</b></em>'. <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Section for management of default dependency information for use in a
+ * group of POMs. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.DependencyManagement#getDependencies
- * <em>Dependencies</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.DependencyManagement#getDependencies <em>Dependencies</em>}</li>
* </ul>
* </p>
*
@@ -39,53 +31,42 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface DependencyManagement extends EObject {
- /**
- * Returns the value of the '<em><b>Dependencies</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Dependency}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The dependencies specified here are not used until they are referenced in
- * a POM within the group. This allows the specification of a "standard"
- * version for a particular dependency.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Dependencies</em>' containment reference
- * list.
- * @see #isSetDependencies()
- * @see #unsetDependencies()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependencyManagement_Dependencies()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='dependencies' namespace='##targetNamespace'"
- * @generated
- */
- EList<Dependency> getDependencies();
+ /**
+ * Returns the value of the '<em><b>Dependencies</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Dependency}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The dependencies specified here are not used until they are referenced in a POM within
+ * the group. This allows the specification of a "standard" version for a particular dependency. <!-- end-model-doc
+ * -->
+ *
+ * @return the value of the '<em>Dependencies</em>' containment reference list.
+ * @see #isSetDependencies()
+ * @see #unsetDependencies()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDependencyManagement_Dependencies()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='dependencies' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Dependency> getDependencies();
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DependencyManagement#getDependencies
- * <em>Dependencies</em>}' containment reference list. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #isSetDependencies()
- * @see #getDependencies()
- * @generated
- */
- void unsetDependencies();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DependencyManagement#getDependencies
+ * <em>Dependencies</em>}' containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetDependencies()
+ * @see #getDependencies()
+ * @generated
+ */
+ void unsetDependencies();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DependencyManagement#getDependencies
- * <em>Dependencies</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Dependencies</em>' containment
- * reference list is set.
- * @see #unsetDependencies()
- * @see #getDependencies()
- * @generated
- */
- boolean isSetDependencies();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.DependencyManagement#getDependencies
+ * <em>Dependencies</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Dependencies</em>' containment reference list is set.
+ * @see #unsetDependencies()
+ * @see #getDependencies()
+ * @generated
+ */
+ boolean isSetDependencies();
} // DependencyManagement
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DeploymentRepository.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DeploymentRepository.java
index 14569bc0..ce5f9317 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DeploymentRepository.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DeploymentRepository.java
@@ -13,31 +13,20 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Deployment Repository</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0
- *
- * Repository contains the information needed for deploying to the remote
- * repoistory.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Deployment Repository</b></em>'. <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Repository contains the information needed for deploying to the
+ * remote repoistory. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUniqueVersion
- * <em>Unique Version</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getId <em>Id
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getName <em>Name
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUrl <em>Url
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getLayout <em>
- * Layout</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUniqueVersion <em>Unique Version</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getId <em>Id </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getName <em>Name </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUrl <em>Url </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getLayout <em> Layout</em>}</li>
* </ul>
* </p>
*
@@ -46,220 +35,177 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface DeploymentRepository extends EObject {
- /**
- * Returns the value of the '<em><b>Unique Version</b></em>' attribute. The
- * default value is <code>"true"</code>. <!-- begin-user-doc --> <!--
- * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Whether to assign
- * snapshots a unique version comprised of the timestamp and build number,
- * or to use the same version each time <!-- end-model-doc -->
- *
- * @return the value of the '<em>Unique Version</em>' attribute.
- * @see #isSetUniqueVersion()
- * @see #unsetUniqueVersion()
- * @see #setUniqueVersion(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeploymentRepository_UniqueVersion()
- * @model default="true" unsettable="true"
- * dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='uniqueVersion' namespace='##targetNamespace'"
- * @generated
- */
- String getUniqueVersion();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUniqueVersion
- * <em>Unique Version</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Unique Version</em>' attribute.
- * @see #isSetUniqueVersion()
- * @see #unsetUniqueVersion()
- * @see #getUniqueVersion()
- * @generated
- */
- void setUniqueVersion(String value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUniqueVersion
- * <em>Unique Version</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetUniqueVersion()
- * @see #getUniqueVersion()
- * @see #setUniqueVersion(String)
- * @generated
- */
- void unsetUniqueVersion();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUniqueVersion
- * <em>Unique Version</em>}' attribute is set. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return whether the value of the '<em>Unique Version</em>' attribute is
- * set.
- * @see #unsetUniqueVersion()
- * @see #getUniqueVersion()
- * @see #setUniqueVersion(String)
- * @generated
- */
- boolean isSetUniqueVersion();
-
- /**
- * Returns the value of the '<em><b>Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * A unique identifier for a repository. This is used to match the
- * repository to configuration in the &lt;code&gt;settings.xml&lt;/code&gt;
- * file, for example.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Id</em>' attribute.
- * @see #setId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeploymentRepository_Id()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='id' namespace='##targetNamespace'"
- * @generated
- */
- String getId();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getId
- * <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Id</em>' attribute.
- * @see #getId()
- * @generated
- */
- void setId(String value);
-
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * Human readable name of the repository.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeploymentRepository_Name()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='name' namespace='##targetNamespace'"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getName
- * <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The url of the repository, in the form
- * &lt;code&gt;protocol://hostname/path&lt;/code&gt;.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Url</em>' attribute.
- * @see #setUrl(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeploymentRepository_Url()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='url' namespace='##targetNamespace'"
- * @generated
- */
- String getUrl();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUrl
- * <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Url</em>' attribute.
- * @see #getUrl()
- * @generated
- */
- void setUrl(String value);
-
- /**
- * Returns the value of the '<em><b>Layout</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The type of layout this repository uses for locating and storing
- * artifacts - can be &lt;code&gt;legacy&lt;/code&gt; or
- * &lt;code&gt;default&lt;/code&gt;.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Layout</em>' attribute.
- * @see #isSetLayout()
- * @see #unsetLayout()
- * @see #setLayout(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeploymentRepository_Layout()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
- * extendedMetaData
- * ="kind='element' name='layout' namespace='##targetNamespace'"
- * @generated
- */
- String getLayout();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getLayout
- * <em>Layout</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Layout</em>' attribute.
- * @see #isSetLayout()
- * @see #unsetLayout()
- * @see #getLayout()
- * @generated
- */
- void setLayout(String value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getLayout
- * <em>Layout</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #isSetLayout()
- * @see #getLayout()
- * @see #setLayout(String)
- * @generated
- */
- void unsetLayout();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getLayout
- * <em>Layout</em>}' attribute is set. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return whether the value of the '<em>Layout</em>' attribute is set.
- * @see #unsetLayout()
- * @see #getLayout()
- * @see #setLayout(String)
- * @generated
- */
- boolean isSetLayout();
+ /**
+ * Returns the value of the '<em><b>Unique Version</b></em>' attribute. The default value is <code>"true"</code>. <!--
+ * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Whether to assign snapshots a unique
+ * version comprised of the timestamp and build number, or to use the same version each time <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Unique Version</em>' attribute.
+ * @see #isSetUniqueVersion()
+ * @see #unsetUniqueVersion()
+ * @see #setUniqueVersion(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeploymentRepository_UniqueVersion()
+ * @model default="true" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='uniqueVersion' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getUniqueVersion();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUniqueVersion
+ * <em>Unique Version</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Unique Version</em>' attribute.
+ * @see #isSetUniqueVersion()
+ * @see #unsetUniqueVersion()
+ * @see #getUniqueVersion()
+ * @generated
+ */
+ void setUniqueVersion(String value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUniqueVersion
+ * <em>Unique Version</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetUniqueVersion()
+ * @see #getUniqueVersion()
+ * @see #setUniqueVersion(String)
+ * @generated
+ */
+ void unsetUniqueVersion();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUniqueVersion
+ * <em>Unique Version</em>}' attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Unique Version</em>' attribute is set.
+ * @see #unsetUniqueVersion()
+ * @see #getUniqueVersion()
+ * @see #setUniqueVersion(String)
+ * @generated
+ */
+ boolean isSetUniqueVersion();
+
+ /**
+ * Returns the value of the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 A unique identifier for a repository. This is used to match the repository to
+ * configuration in the &lt;code&gt;settings.xml&lt;/code&gt; file, for example. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Id</em>' attribute.
+ * @see #setId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeploymentRepository_Id()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='id' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getId();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getId <em>Id</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Id</em>' attribute.
+ * @see #getId()
+ * @generated
+ */
+ void setId(String value);
+
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Human readable name of the repository. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeploymentRepository_Name()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='name' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getName <em>Name</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The url of the repository, in the form &lt;code&gt;protocol://hostname/path&lt;/code&gt;.
+ * <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Url</em>' attribute.
+ * @see #setUrl(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeploymentRepository_Url()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='url' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getUrl();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUrl <em>Url</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Url</em>' attribute.
+ * @see #getUrl()
+ * @generated
+ */
+ void setUrl(String value);
+
+ /**
+ * Returns the value of the '<em><b>Layout</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The type of layout this repository uses for locating and storing artifacts - can be
+ * &lt;code&gt;legacy&lt;/code&gt; or &lt;code&gt;default&lt;/code&gt;. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Layout</em>' attribute.
+ * @see #isSetLayout()
+ * @see #unsetLayout()
+ * @see #setLayout(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeploymentRepository_Layout()
+ * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData
+ * ="kind='element' name='layout' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getLayout();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getLayout <em>Layout</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Layout</em>' attribute.
+ * @see #isSetLayout()
+ * @see #unsetLayout()
+ * @see #getLayout()
+ * @generated
+ */
+ void setLayout(String value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getLayout <em>Layout</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetLayout()
+ * @see #getLayout()
+ * @see #setLayout(String)
+ * @generated
+ */
+ void unsetLayout();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getLayout
+ * <em>Layout</em>}' attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Layout</em>' attribute is set.
+ * @see #unsetLayout()
+ * @see #getLayout()
+ * @see #setLayout(String)
+ * @generated
+ */
+ boolean isSetLayout();
} // DeploymentRepository
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Developer.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Developer.java
index 6c22b137..8c1f9789 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Developer.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Developer.java
@@ -12,19 +12,12 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Developer</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 3.0.0+
- *
- * Information about one of the committers on this project.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Developer</b></em>'. <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ Information about one of the committers on this project. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
@@ -32,14 +25,10 @@ import org.eclipse.emf.ecore.EObject;
* <li>{@link org.eclipse.m2e.model.edit.pom.Developer#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Developer#getEmail <em>Email</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Developer#getUrl <em>Url</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Developer#getOrganization <em>
- * Organization</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Developer#getOrganizationUrl <em>
- * Organization Url</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Developer#getTimezone <em>Timezone
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Developer#getProperties <em>
- * Properties</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Developer#getOrganization <em> Organization</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Developer#getOrganizationUrl <em> Organization Url</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Developer#getTimezone <em>Timezone </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Developer#getProperties <em> Properties</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Developer#getRoles <em>Roles</em>}</li>
* </ul>
* </p>
@@ -49,282 +38,242 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Developer extends EObject {
- /**
- * Returns the value of the '<em><b>Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- * The unique ID of the developer in the SCM. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Id</em>' attribute.
- * @see #setId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Id()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='id' namespace='##targetNamespace'"
- * @generated
- */
- String getId();
+ /**
+ * Returns the value of the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The unique ID of the developer in the SCM. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Id</em>' attribute.
+ * @see #setId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Id()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='id' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Developer#getId <em>Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Id</em>' attribute.
- * @see #getId()
- * @generated
- */
- void setId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Developer#getId <em>Id</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Id</em>' attribute.
+ * @see #getId()
+ * @generated
+ */
+ void setId(String value);
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- * The full name of the contributor. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Name()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='name' namespace='##targetNamespace'"
- * @generated
- */
- String getName();
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The full name of the contributor. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Name()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='name' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getName();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Developer#getName <em>Name</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Developer#getName <em>Name</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
- /**
- * Returns the value of the '<em><b>Email</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- * The email address of the contributor. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Email</em>' attribute.
- * @see #setEmail(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Email()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='email' namespace='##targetNamespace'"
- * @generated
- */
- String getEmail();
+ /**
+ * Returns the value of the '<em><b>Email</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The email address of the contributor. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Email</em>' attribute.
+ * @see #setEmail(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Email()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='email' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getEmail();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Developer#getEmail <em>Email</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Email</em>' attribute.
- * @see #getEmail()
- * @generated
- */
- void setEmail(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Developer#getEmail <em>Email</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Email</em>' attribute.
+ * @see #getEmail()
+ * @generated
+ */
+ void setEmail(String value);
- /**
- * Returns the value of the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- * The URL for the homepage of the contributor. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Url</em>' attribute.
- * @see #setUrl(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Url()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='url' namespace='##targetNamespace'"
- * @generated
- */
- String getUrl();
+ /**
+ * Returns the value of the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The URL for the homepage of the contributor. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Url</em>' attribute.
+ * @see #setUrl(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Url()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='url' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getUrl();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Developer#getUrl <em>Url</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Url</em>' attribute.
- * @see #getUrl()
- * @generated
- */
- void setUrl(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Developer#getUrl <em>Url</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Url</em>' attribute.
+ * @see #getUrl()
+ * @generated
+ */
+ void setUrl(String value);
- /**
- * Returns the value of the '<em><b>Organization</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- * The organization to which the contributor belongs. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Organization</em>' attribute.
- * @see #setOrganization(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Organization()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='organization' namespace='##targetNamespace'"
- * @generated
- */
- String getOrganization();
+ /**
+ * Returns the value of the '<em><b>Organization</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 3.0.0+ The organization to which the contributor belongs. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Organization</em>' attribute.
+ * @see #setOrganization(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Organization()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='organization' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getOrganization();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Developer#getOrganization
- * <em>Organization</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Organization</em>' attribute.
- * @see #getOrganization()
- * @generated
- */
- void setOrganization(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Developer#getOrganization <em>Organization</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Organization</em>' attribute.
+ * @see #getOrganization()
+ * @generated
+ */
+ void setOrganization(String value);
- /**
- * Returns the value of the '<em><b>Organization Url</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc -->
- * 3.0.0+ The URL of the organization. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Organization Url</em>' attribute.
- * @see #setOrganizationUrl(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_OrganizationUrl()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='organizationUrl' namespace='##targetNamespace'"
- * @generated
- */
- String getOrganizationUrl();
+ /**
+ * Returns the value of the '<em><b>Organization Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 3.0.0+ The URL of the organization. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Organization Url</em>' attribute.
+ * @see #setOrganizationUrl(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_OrganizationUrl()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='organizationUrl' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getOrganizationUrl();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Developer#getOrganizationUrl
- * <em>Organization Url</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Organization Url</em>' attribute.
- * @see #getOrganizationUrl()
- * @generated
- */
- void setOrganizationUrl(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Developer#getOrganizationUrl
+ * <em>Organization Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Organization Url</em>' attribute.
+ * @see #getOrganizationUrl()
+ * @generated
+ */
+ void setOrganizationUrl(String value);
- /**
- * Returns the value of the '<em><b>Timezone</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * The timezone the contributor is in. This is a number in the range -11 to
- * 12.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Timezone</em>' attribute.
- * @see #setTimezone(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Timezone()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='timezone' namespace='##targetNamespace'"
- * @generated
- */
- String getTimezone();
+ /**
+ * Returns the value of the '<em><b>Timezone</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The timezone the contributor is in. This is a number in the range -11 to 12. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Timezone</em>' attribute.
+ * @see #setTimezone(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Timezone()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='timezone' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getTimezone();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Developer#getTimezone
- * <em>Timezone</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Timezone</em>' attribute.
- * @see #getTimezone()
- * @generated
- */
- void setTimezone(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Developer#getTimezone <em>Timezone</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Timezone</em>' attribute.
+ * @see #getTimezone()
+ * @generated
+ */
+ void setTimezone(String value);
- /**
- * Returns the value of the '<em><b>Properties</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.PropertyElement}. <!-- begin-user-doc
- * --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * Properties about the contributor, such as an instant messenger handle.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Properties</em>' containment reference
- * list.
- * @see #isSetProperties()
- * @see #unsetProperties()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Properties()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='properties' namespace='##targetNamespace'"
- * @generated
- */
- EList<PropertyElement> getProperties();
+ /**
+ * Returns the value of the '<em><b>Properties</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.PropertyElement}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ Properties about the contributor, such as an instant messenger handle. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Properties</em>' containment reference list.
+ * @see #isSetProperties()
+ * @see #unsetProperties()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Properties()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='properties' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<PropertyElement> getProperties();
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Developer#getProperties
- * <em>Properties</em>}' containment reference list. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isSetProperties()
- * @see #getProperties()
- * @generated
- */
- void unsetProperties();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Developer#getProperties <em>Properties</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetProperties()
+ * @see #getProperties()
+ * @generated
+ */
+ void unsetProperties();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Developer#getProperties
- * <em>Properties</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Properties</em>' containment
- * reference list is set.
- * @see #unsetProperties()
- * @see #getProperties()
- * @generated
- */
- boolean isSetProperties();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Developer#getProperties
+ * <em>Properties</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Properties</em>' containment reference list is set.
+ * @see #unsetProperties()
+ * @see #getProperties()
+ * @generated
+ */
+ boolean isSetProperties();
- /**
- * Returns the value of the '<em><b>Roles</b></em>' attribute list. The list
- * contents are of type {@link java.lang.String}. <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Roles</em>' attribute list isn't clear, there
- * really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Roles</em>' attribute list.
- * @see #isSetRoles()
- * @see #unsetRoles()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Roles()
- * @model unique="false" unsettable="true"
- * dataType="org.eclipse.emf.ecore.xml.type.String"
- * @generated
- */
- EList<String> getRoles();
+ /**
+ * Returns the value of the '<em><b>Roles</b></em>' attribute list. The list contents are of type
+ * {@link java.lang.String}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Roles</em>' attribute list isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Roles</em>' attribute list.
+ * @see #isSetRoles()
+ * @see #unsetRoles()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDeveloper_Roles()
+ * @model unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
+ * @generated
+ */
+ EList<String> getRoles();
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Developer#getRoles <em>Roles</em>}'
- * attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetRoles()
- * @see #getRoles()
- * @generated
- */
- void unsetRoles();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Developer#getRoles <em>Roles</em>}' attribute list.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetRoles()
+ * @see #getRoles()
+ * @generated
+ */
+ void unsetRoles();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Developer#getRoles <em>Roles</em>}'
- * attribute list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Roles</em>' attribute list is set.
- * @see #unsetRoles()
- * @see #getRoles()
- * @generated
- */
- boolean isSetRoles();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Developer#getRoles <em>Roles</em>}'
+ * attribute list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Roles</em>' attribute list is set.
+ * @see #unsetRoles()
+ * @see #getRoles()
+ * @generated
+ */
+ boolean isSetRoles();
} // Developer
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DistributionManagement.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DistributionManagement.java
index 0c0cfa52..f48aec14 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DistributionManagement.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DistributionManagement.java
@@ -13,35 +13,22 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Distribution Management</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0
- *
- * This elements describes all that pertains to distribution for a project. It
- * is primarily used for deployment of artifacts and the site produced by the
- * build.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Distribution Management</b></em>'. <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 This elements describes all that pertains to distribution for a
+ * project. It is primarily used for deployment of artifacts and the site produced by the build. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRepository
- * <em>Repository</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRepository <em>Repository</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSnapshotRepository
- * <em>Snapshot Repository</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSite <em>
- * Site</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSnapshotRepository <em>Snapshot Repository</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSite <em> Site</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getDownloadUrl
- * <em>Download Url</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRelocation
- * <em>Relocation</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getStatus <em>
- * Status</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getDownloadUrl <em>Download Url</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRelocation <em>Relocation</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getStatus <em> Status</em>}</li>
* </ul>
* </p>
*
@@ -50,333 +37,262 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface DistributionManagement extends EObject {
- /**
- * Returns the value of the '<em><b>Repository</b></em>' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0
- *
- * Information needed to deploy the artifacts generated by the project to a
- * remote repository.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Repository</em>' containment reference.
- * @see #isSetRepository()
- * @see #unsetRepository()
- * @see #setRepository(DeploymentRepository)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDistributionManagement_Repository()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='repository' namespace='##targetNamespace'"
- * @generated
- */
- DeploymentRepository getRepository();
+ /**
+ * Returns the value of the '<em><b>Repository</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Information needed to deploy the artifacts generated by the project
+ * to a remote repository. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Repository</em>' containment reference.
+ * @see #isSetRepository()
+ * @see #unsetRepository()
+ * @see #setRepository(DeploymentRepository)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDistributionManagement_Repository()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='repository' namespace='##targetNamespace'"
+ * @generated
+ */
+ DeploymentRepository getRepository();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRepository
- * <em>Repository</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Repository</em>' containment
- * reference.
- * @see #isSetRepository()
- * @see #unsetRepository()
- * @see #getRepository()
- * @generated
- */
- void setRepository(DeploymentRepository value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRepository
+ * <em>Repository</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Repository</em>' containment reference.
+ * @see #isSetRepository()
+ * @see #unsetRepository()
+ * @see #getRepository()
+ * @generated
+ */
+ void setRepository(DeploymentRepository value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRepository
- * <em>Repository</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetRepository()
- * @see #getRepository()
- * @see #setRepository(DeploymentRepository)
- * @generated
- */
- void unsetRepository();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRepository
+ * <em>Repository</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetRepository()
+ * @see #getRepository()
+ * @see #setRepository(DeploymentRepository)
+ * @generated
+ */
+ void unsetRepository();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRepository
- * <em>Repository</em>}' containment reference is set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Repository</em>' containment
- * reference is set.
- * @see #unsetRepository()
- * @see #getRepository()
- * @see #setRepository(DeploymentRepository)
- * @generated
- */
- boolean isSetRepository();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRepository
+ * <em>Repository</em>}' containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Repository</em>' containment reference is set.
+ * @see #unsetRepository()
+ * @see #getRepository()
+ * @see #setRepository(DeploymentRepository)
+ * @generated
+ */
+ boolean isSetRepository();
- /**
- * Returns the value of the '<em><b>Snapshot Repository</b></em>'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0
- *
- * Where to deploy snapshots of artifacts to. If not given, it defaults to
- * the &lt;code&gt;repository&lt;/code&gt; element.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Snapshot Repository</em>' containment
- * reference.
- * @see #isSetSnapshotRepository()
- * @see #unsetSnapshotRepository()
- * @see #setSnapshotRepository(DeploymentRepository)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDistributionManagement_SnapshotRepository()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='snapshotRepository' namespace='##targetNamespace'"
- * @generated
- */
- DeploymentRepository getSnapshotRepository();
+ /**
+ * Returns the value of the '<em><b>Snapshot Repository</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Where to deploy snapshots of artifacts to. If not given, it
+ * defaults to the &lt;code&gt;repository&lt;/code&gt; element. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Snapshot Repository</em>' containment reference.
+ * @see #isSetSnapshotRepository()
+ * @see #unsetSnapshotRepository()
+ * @see #setSnapshotRepository(DeploymentRepository)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDistributionManagement_SnapshotRepository()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='snapshotRepository' namespace='##targetNamespace'"
+ * @generated
+ */
+ DeploymentRepository getSnapshotRepository();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSnapshotRepository
- * <em>Snapshot Repository</em>}' containment reference. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Snapshot Repository</em>'
- * containment reference.
- * @see #isSetSnapshotRepository()
- * @see #unsetSnapshotRepository()
- * @see #getSnapshotRepository()
- * @generated
- */
- void setSnapshotRepository(DeploymentRepository value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSnapshotRepository
+ * <em>Snapshot Repository</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Snapshot Repository</em>' containment reference.
+ * @see #isSetSnapshotRepository()
+ * @see #unsetSnapshotRepository()
+ * @see #getSnapshotRepository()
+ * @generated
+ */
+ void setSnapshotRepository(DeploymentRepository value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSnapshotRepository
- * <em>Snapshot Repository</em>}' containment reference. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #isSetSnapshotRepository()
- * @see #getSnapshotRepository()
- * @see #setSnapshotRepository(DeploymentRepository)
- * @generated
- */
- void unsetSnapshotRepository();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSnapshotRepository
+ * <em>Snapshot Repository</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetSnapshotRepository()
+ * @see #getSnapshotRepository()
+ * @see #setSnapshotRepository(DeploymentRepository)
+ * @generated
+ */
+ void unsetSnapshotRepository();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSnapshotRepository
- * <em>Snapshot Repository</em>}' containment reference is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Snapshot Repository</em>'
- * containment reference is set.
- * @see #unsetSnapshotRepository()
- * @see #getSnapshotRepository()
- * @see #setSnapshotRepository(DeploymentRepository)
- * @generated
- */
- boolean isSetSnapshotRepository();
+ /**
+ * Returns whether the value of the '
+ * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSnapshotRepository <em>Snapshot Repository</em>}'
+ * containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Snapshot Repository</em>' containment reference is set.
+ * @see #unsetSnapshotRepository()
+ * @see #getSnapshotRepository()
+ * @see #setSnapshotRepository(DeploymentRepository)
+ * @generated
+ */
+ boolean isSetSnapshotRepository();
- /**
- * Returns the value of the '<em><b>Site</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc -->
- * 4.0.0
- *
- * Information needed for deploying the web site of the project.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Site</em>' containment reference.
- * @see #isSetSite()
- * @see #unsetSite()
- * @see #setSite(Site)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDistributionManagement_Site()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='site' namespace='##targetNamespace'"
- * @generated
- */
- Site getSite();
+ /**
+ * Returns the value of the '<em><b>Site</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 4.0.0 Information needed for deploying the web site of the project. <!-- end-model-doc
+ * -->
+ *
+ * @return the value of the '<em>Site</em>' containment reference.
+ * @see #isSetSite()
+ * @see #unsetSite()
+ * @see #setSite(Site)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDistributionManagement_Site()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='site' namespace='##targetNamespace'"
+ * @generated
+ */
+ Site getSite();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSite
- * <em>Site</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Site</em>' containment reference.
- * @see #isSetSite()
- * @see #unsetSite()
- * @see #getSite()
- * @generated
- */
- void setSite(Site value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSite <em>Site</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Site</em>' containment reference.
+ * @see #isSetSite()
+ * @see #unsetSite()
+ * @see #getSite()
+ * @generated
+ */
+ void setSite(Site value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSite
- * <em>Site</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetSite()
- * @see #getSite()
- * @see #setSite(Site)
- * @generated
- */
- void unsetSite();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSite <em>Site</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetSite()
+ * @see #getSite()
+ * @see #setSite(Site)
+ * @generated
+ */
+ void unsetSite();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSite
- * <em>Site</em>}' containment reference is set. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Site</em>' containment reference is
- * set.
- * @see #unsetSite()
- * @see #getSite()
- * @see #setSite(Site)
- * @generated
- */
- boolean isSetSite();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSite
+ * <em>Site</em>}' containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Site</em>' containment reference is set.
+ * @see #unsetSite()
+ * @see #getSite()
+ * @see #setSite(Site)
+ * @generated
+ */
+ boolean isSetSite();
- /**
- * Returns the value of the '<em><b>Download Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0+
- *
- * The URL of the project's download page. If not given users will be
- * referred to the homepage given by &lt;code&gt;url&lt;/code&gt;. This is
- * given to assist in locating artifacts that are not in the repository due
- * to licensing restrictions.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Download Url</em>' attribute.
- * @see #setDownloadUrl(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDistributionManagement_DownloadUrl()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='downloadUrl' namespace='##targetNamespace'"
- * @generated
- */
- String getDownloadUrl();
+ /**
+ * Returns the value of the '<em><b>Download Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0+ The URL of the project's download page. If not given users will be referred to the
+ * homepage given by &lt;code&gt;url&lt;/code&gt;. This is given to assist in locating artifacts that are not in the
+ * repository due to licensing restrictions. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Download Url</em>' attribute.
+ * @see #setDownloadUrl(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDistributionManagement_DownloadUrl()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='downloadUrl' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getDownloadUrl();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getDownloadUrl
- * <em>Download Url</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Download Url</em>' attribute.
- * @see #getDownloadUrl()
- * @generated
- */
- void setDownloadUrl(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getDownloadUrl
+ * <em>Download Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Download Url</em>' attribute.
+ * @see #getDownloadUrl()
+ * @generated
+ */
+ void setDownloadUrl(String value);
- /**
- * Returns the value of the '<em><b>Relocation</b></em>' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0
- *
- * Relocation information of the artifact if it has been moved to a new
- * group ID and/or artifact ID.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Relocation</em>' containment reference.
- * @see #isSetRelocation()
- * @see #unsetRelocation()
- * @see #setRelocation(Relocation)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDistributionManagement_Relocation()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='relocation' namespace='##targetNamespace'"
- * @generated
- */
- Relocation getRelocation();
+ /**
+ * Returns the value of the '<em><b>Relocation</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Relocation information of the artifact if it has been moved to a
+ * new group ID and/or artifact ID. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Relocation</em>' containment reference.
+ * @see #isSetRelocation()
+ * @see #unsetRelocation()
+ * @see #setRelocation(Relocation)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDistributionManagement_Relocation()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='relocation' namespace='##targetNamespace'"
+ * @generated
+ */
+ Relocation getRelocation();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRelocation
- * <em>Relocation</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Relocation</em>' containment
- * reference.
- * @see #isSetRelocation()
- * @see #unsetRelocation()
- * @see #getRelocation()
- * @generated
- */
- void setRelocation(Relocation value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRelocation
+ * <em>Relocation</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Relocation</em>' containment reference.
+ * @see #isSetRelocation()
+ * @see #unsetRelocation()
+ * @see #getRelocation()
+ * @generated
+ */
+ void setRelocation(Relocation value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRelocation
- * <em>Relocation</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetRelocation()
- * @see #getRelocation()
- * @see #setRelocation(Relocation)
- * @generated
- */
- void unsetRelocation();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRelocation
+ * <em>Relocation</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetRelocation()
+ * @see #getRelocation()
+ * @see #setRelocation(Relocation)
+ * @generated
+ */
+ void unsetRelocation();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRelocation
- * <em>Relocation</em>}' containment reference is set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Relocation</em>' containment
- * reference is set.
- * @see #unsetRelocation()
- * @see #getRelocation()
- * @see #setRelocation(Relocation)
- * @generated
- */
- boolean isSetRelocation();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRelocation
+ * <em>Relocation</em>}' containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Relocation</em>' containment reference is set.
+ * @see #unsetRelocation()
+ * @see #getRelocation()
+ * @see #setRelocation(Relocation)
+ * @generated
+ */
+ boolean isSetRelocation();
- /**
- * Returns the value of the '<em><b>Status</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * Gives the status of this artifact in the remote repository. This must not
- * be set in your local project, as it is updated by tools placing it in the
- * reposiory. Valid values are: &lt;code&gt;none&lt;/code&gt; (default),
- * &lt;code&gt;converted&lt;/code&gt; (repository manager converted this
- * from an Maven 1 POM), &lt;code&gt;partner&lt;/code&gt; (directly synced
- * from a partner Maven 2 repository), &lt;code&gt;deployed&lt;/code&gt;
- * (was deployed from a Maven 2 instance), &lt;code&gt;verified&lt;/code&gt;
- * (has been hand verified as correct and final).
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Status</em>' attribute.
- * @see #setStatus(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDistributionManagement_Status()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='status' namespace='##targetNamespace'"
- * @generated
- */
- String getStatus();
+ /**
+ * Returns the value of the '<em><b>Status</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Gives the status of this artifact in the remote repository. This must not be set in your
+ * local project, as it is updated by tools placing it in the reposiory. Valid values are:
+ * &lt;code&gt;none&lt;/code&gt; (default), &lt;code&gt;converted&lt;/code&gt; (repository manager converted this from
+ * an Maven 1 POM), &lt;code&gt;partner&lt;/code&gt; (directly synced from a partner Maven 2 repository),
+ * &lt;code&gt;deployed&lt;/code&gt; (was deployed from a Maven 2 instance), &lt;code&gt;verified&lt;/code&gt; (has
+ * been hand verified as correct and final). <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Status</em>' attribute.
+ * @see #setStatus(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDistributionManagement_Status()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='status' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getStatus();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getStatus
- * <em>Status</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Status</em>' attribute.
- * @see #getStatus()
- * @generated
- */
- void setStatus(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getStatus <em>Status</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Status</em>' attribute.
+ * @see #getStatus()
+ * @generated
+ */
+ void setStatus(String value);
} // DistributionManagement
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DocumentRoot.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DocumentRoot.java
index f7cb524d..9c108d81 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DocumentRoot.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/DocumentRoot.java
@@ -12,26 +12,19 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EMap;
-
import org.eclipse.emf.ecore.EObject;
-
import org.eclipse.emf.ecore.util.FeatureMap;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Document Root</b></em>'. <!-- end-user-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Document Root</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getMixed <em>Mixed</em>}
- * </li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getXMLNSPrefixMap <em>
- * XMLNS Prefix Map</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getXSISchemaLocation
- * <em>XSI Schema Location</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getProject <em>Project
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getMixed <em>Mixed</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getXMLNSPrefixMap <em> XMLNS Prefix Map</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getProject <em>Project </em>}</li>
* </ul>
* </p>
*
@@ -40,95 +33,81 @@ import org.eclipse.emf.ecore.util.FeatureMap;
* @generated
*/
public interface DocumentRoot extends EObject {
- /**
- * Returns the value of the '<em><b>Mixed</b></em>' attribute list. The list
- * contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, there
- * really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Mixed</em>' attribute list.
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDocumentRoot_Mixed()
- * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry"
- * many="true"
- * extendedMetaData="kind='elementWildcard' name=':mixed'"
- * @generated
- */
- FeatureMap getMixed();
+ /**
+ * Returns the value of the '<em><b>Mixed</b></em>' attribute list. The list contents are of type
+ * {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Mixed</em>' attribute list.
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDocumentRoot_Mixed()
+ * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
+ * extendedMetaData="kind='elementWildcard' name=':mixed'"
+ * @generated
+ */
+ FeatureMap getMixed();
- /**
- * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map. The key
- * is of type {@link java.lang.String}, and the value is of type
- * {@link java.lang.String}, <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear, there
- * really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>XMLNS Prefix Map</em>' map.
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDocumentRoot_XMLNSPrefixMap()
- * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>"
- * transient="true"
- * extendedMetaData="kind='attribute' name='xmlns:prefix'"
- * @generated
- */
- EMap<String, String> getXMLNSPrefixMap();
+ /**
+ * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map. The key is of type {@link java.lang.String}, and
+ * the value is of type {@link java.lang.String}, <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>XMLNS Prefix Map</em>' map.
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDocumentRoot_XMLNSPrefixMap()
+ * @model mapType=
+ * "org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>"
+ * transient="true" extendedMetaData="kind='attribute' name='xmlns:prefix'"
+ * @generated
+ */
+ EMap<String, String> getXMLNSPrefixMap();
- /**
- * Returns the value of the '<em><b>XSI Schema Location</b></em>' map. The
- * key is of type {@link java.lang.String}, and the value is of type
- * {@link java.lang.String}, <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>XSI Schema Location</em>' map.
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDocumentRoot_XSISchemaLocation()
- * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>"
- * transient="true"
- * extendedMetaData="kind='attribute' name='xsi:schemaLocation'"
- * @generated
- */
- EMap<String, String> getXSISchemaLocation();
+ /**
+ * Returns the value of the '<em><b>XSI Schema Location</b></em>' map. The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String}, <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>XSI Schema Location</em>' map.
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDocumentRoot_XSISchemaLocation()
+ * @model mapType=
+ * "org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>"
+ * transient="true" extendedMetaData="kind='attribute' name='xsi:schemaLocation'"
+ * @generated
+ */
+ EMap<String, String> getXSISchemaLocation();
- /**
- * Returns the value of the '<em><b>Project</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc -->
- * 3.0.0+
- *
- * The &lt;code&gt;&amp;lt;project&amp;gt;&lt;/code&gt; element is the root
- * of the descriptor. The following table lists all of the possible child
- * elements.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Project</em>' containment reference.
- * @see #setProject(Model)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDocumentRoot_Project()
- * @model containment="true" upper="-2" transient="true" volatile="true"
- * derived="true" extendedMetaData=
- * "kind='element' name='project' namespace='##targetNamespace'"
- * @generated
- */
- Model getProject();
+ /**
+ * Returns the value of the '<em><b>Project</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 3.0.0+ The &lt;code&gt;&amp;lt;project&amp;gt;&lt;/code&gt; element is the root of the
+ * descriptor. The following table lists all of the possible child elements. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Project</em>' containment reference.
+ * @see #setProject(Model)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getDocumentRoot_Project()
+ * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" extendedMetaData=
+ * "kind='element' name='project' namespace='##targetNamespace'"
+ * @generated
+ */
+ Model getProject();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getProject
- * <em>Project</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Project</em>' containment reference.
- * @see #getProject()
- * @generated
- */
- void setProject(Model value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getProject <em>Project</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Project</em>' containment reference.
+ * @see #getProject()
+ * @generated
+ */
+ void setProject(Model value);
} // DocumentRoot
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Exclusion.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Exclusion.java
index 90ee1feb..0a75830f 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Exclusion.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Exclusion.java
@@ -13,19 +13,15 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Exclusion</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0 <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Exclusion</b></em>'. <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Exclusion#getArtifactId <em>Artifact
- * Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Exclusion#getGroupId <em>Group Id
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Exclusion#getArtifactId <em>Artifact Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Exclusion#getGroupId <em>Group Id </em>}</li>
* </ul>
* </p>
*
@@ -34,58 +30,50 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Exclusion extends EObject {
- /**
- * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The artifact ID of the project to exclude. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Artifact Id</em>' attribute.
- * @see #setArtifactId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getExclusion_ArtifactId()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='artifactId' namespace='##targetNamespace'"
- * @generated
- */
- String getArtifactId();
+ /**
+ * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 The artifact ID of the project to exclude. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Artifact Id</em>' attribute.
+ * @see #setArtifactId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getExclusion_ArtifactId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='artifactId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getArtifactId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Exclusion#getArtifactId
- * <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Artifact Id</em>' attribute.
- * @see #getArtifactId()
- * @generated
- */
- void setArtifactId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Exclusion#getArtifactId <em>Artifact Id</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Artifact Id</em>' attribute.
+ * @see #getArtifactId()
+ * @generated
+ */
+ void setArtifactId(String value);
- /**
- * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The group ID of the project to exclude. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Group Id</em>' attribute.
- * @see #setGroupId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getExclusion_GroupId()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='groupId' namespace='##targetNamespace'"
- * @generated
- */
- String getGroupId();
+ /**
+ * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The group ID of the project to exclude. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Group Id</em>' attribute.
+ * @see #setGroupId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getExclusion_GroupId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='groupId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getGroupId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Exclusion#getGroupId
- * <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Group Id</em>' attribute.
- * @see #getGroupId()
- * @generated
- */
- void setGroupId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Exclusion#getGroupId <em>Group Id</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Group Id</em>' attribute.
+ * @see #getGroupId()
+ * @generated
+ */
+ void setGroupId(String value);
} // Exclusion
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Extension.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Extension.java
index aaca9e41..f4d18221 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Extension.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Extension.java
@@ -13,22 +13,16 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Extension</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0 Describes a build extension to utilise. <!--
- * end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Extension</b></em>'. <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Describes a build extension to utilise. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Extension#getGroupId <em>Group Id
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Extension#getArtifactId <em>Artifact
- * Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Extension#getVersion <em>Version
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Extension#getGroupId <em>Group Id </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Extension#getArtifactId <em>Artifact Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Extension#getVersion <em>Version </em>}</li>
* </ul>
* </p>
*
@@ -37,85 +31,73 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Extension extends EObject {
- /**
- * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The group ID of the extension's artifact. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Group Id</em>' attribute.
- * @see #setGroupId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getExtension_GroupId()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='groupId' namespace='##targetNamespace'"
- * @generated
- */
- String getGroupId();
+ /**
+ * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The group ID of the extension's artifact. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Group Id</em>' attribute.
+ * @see #setGroupId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getExtension_GroupId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='groupId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getGroupId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Extension#getGroupId
- * <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Group Id</em>' attribute.
- * @see #getGroupId()
- * @generated
- */
- void setGroupId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Extension#getGroupId <em>Group Id</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Group Id</em>' attribute.
+ * @see #getGroupId()
+ * @generated
+ */
+ void setGroupId(String value);
- /**
- * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The artifact ID of the extension. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Artifact Id</em>' attribute.
- * @see #setArtifactId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getExtension_ArtifactId()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='artifactId' namespace='##targetNamespace'"
- * @generated
- */
- String getArtifactId();
+ /**
+ * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 The artifact ID of the extension. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Artifact Id</em>' attribute.
+ * @see #setArtifactId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getExtension_ArtifactId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='artifactId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getArtifactId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Extension#getArtifactId
- * <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Artifact Id</em>' attribute.
- * @see #getArtifactId()
- * @generated
- */
- void setArtifactId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Extension#getArtifactId <em>Artifact Id</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Artifact Id</em>' attribute.
+ * @see #getArtifactId()
+ * @generated
+ */
+ void setArtifactId(String value);
- /**
- * Returns the value of the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The version of the extension. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Version</em>' attribute.
- * @see #setVersion(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getExtension_Version()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='version' namespace='##targetNamespace'"
- * @generated
- */
- String getVersion();
+ /**
+ * Returns the value of the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The version of the extension. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Version</em>' attribute.
+ * @see #setVersion(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getExtension_Version()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='version' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getVersion();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Extension#getVersion
- * <em>Version</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Version</em>' attribute.
- * @see #getVersion()
- * @generated
- */
- void setVersion(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Extension#getVersion <em>Version</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Version</em>' attribute.
+ * @see #getVersion()
+ * @generated
+ */
+ void setVersion(String value);
} // Extension
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/IssueManagement.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/IssueManagement.java
index ed7485eb..968e6a03 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/IssueManagement.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/IssueManagement.java
@@ -13,22 +13,15 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Issue Management</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0
- *
- * Information about the issue tracking (or bug tracking) system used to manage
- * this project.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Issue Management</b></em>'. <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 4.0.0 Information about the issue tracking (or bug tracking) system used to manage this
+ * project. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.IssueManagement#getSystem <em>System
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.IssueManagement#getSystem <em>System </em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.IssueManagement#getUrl <em>Url</em>}</li>
* </ul>
* </p>
@@ -38,59 +31,50 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface IssueManagement extends EObject {
- /**
- * Returns the value of the '<em><b>System</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The name of the issue management system, e.g. Bugzilla <!-- end-model-doc
- * -->
- *
- * @return the value of the '<em>System</em>' attribute.
- * @see #setSystem(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getIssueManagement_System()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='system' namespace='##targetNamespace'"
- * @generated
- */
- String getSystem();
+ /**
+ * Returns the value of the '<em><b>System</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The name of the issue management system, e.g. Bugzilla <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>System</em>' attribute.
+ * @see #setSystem(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getIssueManagement_System()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='system' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getSystem();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.IssueManagement#getSystem
- * <em>System</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>System</em>' attribute.
- * @see #getSystem()
- * @generated
- */
- void setSystem(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.IssueManagement#getSystem <em>System</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>System</em>' attribute.
+ * @see #getSystem()
+ * @generated
+ */
+ void setSystem(String value);
- /**
- * Returns the value of the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * URL for the issue management system used by the project. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Url</em>' attribute.
- * @see #setUrl(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getIssueManagement_Url()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='url' namespace='##targetNamespace'"
- * @generated
- */
- String getUrl();
+ /**
+ * Returns the value of the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 URL for the issue management system used by the project. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Url</em>' attribute.
+ * @see #setUrl(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getIssueManagement_Url()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='url' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getUrl();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.IssueManagement#getUrl <em>Url</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Url</em>' attribute.
- * @see #getUrl()
- * @generated
- */
- void setUrl(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.IssueManagement#getUrl <em>Url</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Url</em>' attribute.
+ * @see #getUrl()
+ * @generated
+ */
+ void setUrl(String value);
} // IssueManagement
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/License.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/License.java
index 4dad70d0..22b18c55 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/License.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/License.java
@@ -13,28 +13,19 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>License</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 3.0.0+
- *
- * Describes the licenses for this project. This is used to generate the license
- * page of the project's web site, as well as being taken into consideration in
- * other reporting and validation. The licenses listed for the project are that
- * of the project itself, and not of dependencies.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>License</b></em>'. <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ Describes the licenses for this project. This is used to generate the license page of the
+ * project's web site, as well as being taken into consideration in other reporting and validation. The licenses listed
+ * for the project are that of the project itself, and not of dependencies. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.m2e.model.edit.pom.License#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.License#getUrl <em>Url</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.License#getDistribution <em>
- * Distribution</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.License#getComments <em>Comments
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.License#getDistribution <em> Distribution</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.License#getComments <em>Comments </em>}</li>
* </ul>
* </p>
*
@@ -43,119 +34,99 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface License extends EObject {
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- * The full legal name of the license. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getLicense_Name()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='name' namespace='##targetNamespace'"
- * @generated
- */
- String getName();
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The full legal name of the license. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getLicense_Name()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='name' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getName();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.License#getName <em>Name</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.License#getName <em>Name</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
- /**
- * Returns the value of the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- * The official url for the license text. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Url</em>' attribute.
- * @see #setUrl(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getLicense_Url()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='url' namespace='##targetNamespace'"
- * @generated
- */
- String getUrl();
+ /**
+ * Returns the value of the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The official url for the license text. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Url</em>' attribute.
+ * @see #setUrl(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getLicense_Url()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='url' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getUrl();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.License#getUrl <em>Url</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Url</em>' attribute.
- * @see #getUrl()
- * @generated
- */
- void setUrl(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.License#getUrl <em>Url</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Url</em>' attribute.
+ * @see #getUrl()
+ * @generated
+ */
+ void setUrl(String value);
- /**
- * Returns the value of the '<em><b>Distribution</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * The primary method by which this project may be distributed. &lt;dl&gt;
- * &lt;dt&gt;repo&lt;/dt&gt; &lt;dd&gt;may be downloaded from the Maven
- * repository&lt;/dd&gt; &lt;dt&gt;manual&lt;/dt&gt; &lt;dd&gt;user must
- * manually download and install the dependency.&lt;/dd&gt; &lt;/dl&gt;
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Distribution</em>' attribute.
- * @see #setDistribution(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getLicense_Distribution()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='distribution' namespace='##targetNamespace'"
- * @generated
- */
- String getDistribution();
+ /**
+ * Returns the value of the '<em><b>Distribution</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 3.0.0+ The primary method by which this project may be distributed. &lt;dl&gt;
+ * &lt;dt&gt;repo&lt;/dt&gt; &lt;dd&gt;may be downloaded from the Maven repository&lt;/dd&gt;
+ * &lt;dt&gt;manual&lt;/dt&gt; &lt;dd&gt;user must manually download and install the dependency.&lt;/dd&gt;
+ * &lt;/dl&gt; <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Distribution</em>' attribute.
+ * @see #setDistribution(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getLicense_Distribution()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='distribution' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getDistribution();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.License#getDistribution
- * <em>Distribution</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Distribution</em>' attribute.
- * @see #getDistribution()
- * @generated
- */
- void setDistribution(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.License#getDistribution <em>Distribution</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Distribution</em>' attribute.
+ * @see #getDistribution()
+ * @generated
+ */
+ void setDistribution(String value);
- /**
- * Returns the value of the '<em><b>Comments</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * Addendum information pertaining to this license.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Comments</em>' attribute.
- * @see #setComments(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getLicense_Comments()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='comments' namespace='##targetNamespace'"
- * @generated
- */
- String getComments();
+ /**
+ * Returns the value of the '<em><b>Comments</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ Addendum information pertaining to this license. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Comments</em>' attribute.
+ * @see #setComments(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getLicense_Comments()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='comments' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getComments();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.License#getComments
- * <em>Comments</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Comments</em>' attribute.
- * @see #getComments()
- * @generated
- */
- void setComments(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.License#getComments <em>Comments</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Comments</em>' attribute.
+ * @see #getComments()
+ * @generated
+ */
+ void setComments(String value);
} // License
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/MailingList.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/MailingList.java
index 11913cd9..2c52e449 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/MailingList.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/MailingList.java
@@ -12,33 +12,22 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Mailing List</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 3.0.0+
- *
- * This element describes all of the mailing lists associated with a project.
- * The auto-generated site references this information.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Mailing List</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 3.0.0+ This element describes all of the mailing lists associated with a project. The
+ * auto-generated site references this information. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.m2e.model.edit.pom.MailingList#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.MailingList#getSubscribe <em>
- * Subscribe</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.MailingList#getUnsubscribe <em>
- * Unsubscribe</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.MailingList#getSubscribe <em> Subscribe</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.MailingList#getUnsubscribe <em> Unsubscribe</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.MailingList#getPost <em>Post</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.MailingList#getArchive <em>Archive
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.MailingList#getOtherArchives <em>
- * Other Archives</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.MailingList#getArchive <em>Archive </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.MailingList#getOtherArchives <em> Other Archives</em>}</li>
* </ul>
* </p>
*
@@ -47,200 +36,164 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface MailingList extends EObject {
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- * The name of the mailing list. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getMailingList_Name()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='name' namespace='##targetNamespace'"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.MailingList#getName <em>Name</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Subscribe</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * The email address or link that can be used to subscribe to the mailing
- * list. If this is an email address, a &lt;code&gt;mailto:&lt;/code&gt;
- * link will automatically be created when the documentation is created.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Subscribe</em>' attribute.
- * @see #setSubscribe(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getMailingList_Subscribe()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='subscribe' namespace='##targetNamespace'"
- * @generated
- */
- String getSubscribe();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.MailingList#getSubscribe
- * <em>Subscribe</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Subscribe</em>' attribute.
- * @see #getSubscribe()
- * @generated
- */
- void setSubscribe(String value);
-
- /**
- * Returns the value of the '<em><b>Unsubscribe</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * The email address or link that can be used to unsubscribe to the mailing
- * list. If this is an email address, a &lt;code&gt;mailto:&lt;/code&gt;
- * link will automatically be created when the documentation is created.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Unsubscribe</em>' attribute.
- * @see #setUnsubscribe(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getMailingList_Unsubscribe()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='unsubscribe' namespace='##targetNamespace'"
- * @generated
- */
- String getUnsubscribe();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.MailingList#getUnsubscribe
- * <em>Unsubscribe</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Unsubscribe</em>' attribute.
- * @see #getUnsubscribe()
- * @generated
- */
- void setUnsubscribe(String value);
-
- /**
- * Returns the value of the '<em><b>Post</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * The email address or link that can be used to post to the mailing list.
- * If this is an email address, a &lt;code&gt;mailto:&lt;/code&gt; link will
- * automatically be created when the documentation is created.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Post</em>' attribute.
- * @see #setPost(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getMailingList_Post()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='post' namespace='##targetNamespace'"
- * @generated
- */
- String getPost();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.MailingList#getPost <em>Post</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Post</em>' attribute.
- * @see #getPost()
- * @generated
- */
- void setPost(String value);
-
- /**
- * Returns the value of the '<em><b>Archive</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * The link to a URL where you can browse the mailing list archive.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Archive</em>' attribute.
- * @see #setArchive(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getMailingList_Archive()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='archive' namespace='##targetNamespace'"
- * @generated
- */
- String getArchive();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.MailingList#getArchive
- * <em>Archive</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Archive</em>' attribute.
- * @see #getArchive()
- * @generated
- */
- void setArchive(String value);
-
- /**
- * Returns the value of the '<em><b>Other Archives</b></em>' attribute list.
- * The list contents are of type {@link java.lang.String}. <!--
- * begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Other Archives</em>' attribute list isn't
- * clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Other Archives</em>' attribute list.
- * @see #isSetOtherArchives()
- * @see #unsetOtherArchives()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getMailingList_OtherArchives()
- * @model unique="false" unsettable="true"
- * @generated
- */
- EList<String> getOtherArchives();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.MailingList#getOtherArchives
- * <em>Other Archives</em>}' attribute list. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetOtherArchives()
- * @see #getOtherArchives()
- * @generated
- */
- void unsetOtherArchives();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.MailingList#getOtherArchives
- * <em>Other Archives</em>}' attribute list is set. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Other Archives</em>' attribute list
- * is set.
- * @see #unsetOtherArchives()
- * @see #getOtherArchives()
- * @generated
- */
- boolean isSetOtherArchives();
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The name of the mailing list. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getMailingList_Name()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='name' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.MailingList#getName <em>Name</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Subscribe</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The email address or link that can be used to subscribe to the mailing list. If this is
+ * an email address, a &lt;code&gt;mailto:&lt;/code&gt; link will automatically be created when the documentation is
+ * created. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Subscribe</em>' attribute.
+ * @see #setSubscribe(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getMailingList_Subscribe()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='subscribe' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getSubscribe();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.MailingList#getSubscribe <em>Subscribe</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Subscribe</em>' attribute.
+ * @see #getSubscribe()
+ * @generated
+ */
+ void setSubscribe(String value);
+
+ /**
+ * Returns the value of the '<em><b>Unsubscribe</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 3.0.0+ The email address or link that can be used to unsubscribe to the mailing list. If
+ * this is an email address, a &lt;code&gt;mailto:&lt;/code&gt; link will automatically be created when the
+ * documentation is created. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Unsubscribe</em>' attribute.
+ * @see #setUnsubscribe(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getMailingList_Unsubscribe()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='unsubscribe' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getUnsubscribe();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.MailingList#getUnsubscribe <em>Unsubscribe</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Unsubscribe</em>' attribute.
+ * @see #getUnsubscribe()
+ * @generated
+ */
+ void setUnsubscribe(String value);
+
+ /**
+ * Returns the value of the '<em><b>Post</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The email address or link that can be used to post to the mailing list. If this is an
+ * email address, a &lt;code&gt;mailto:&lt;/code&gt; link will automatically be created when the documentation is
+ * created. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Post</em>' attribute.
+ * @see #setPost(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getMailingList_Post()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='post' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getPost();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.MailingList#getPost <em>Post</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Post</em>' attribute.
+ * @see #getPost()
+ * @generated
+ */
+ void setPost(String value);
+
+ /**
+ * Returns the value of the '<em><b>Archive</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The link to a URL where you can browse the mailing list archive. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Archive</em>' attribute.
+ * @see #setArchive(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getMailingList_Archive()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='archive' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getArchive();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.MailingList#getArchive <em>Archive</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Archive</em>' attribute.
+ * @see #getArchive()
+ * @generated
+ */
+ void setArchive(String value);
+
+ /**
+ * Returns the value of the '<em><b>Other Archives</b></em>' attribute list. The list contents are of type
+ * {@link java.lang.String}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Other Archives</em>' attribute list isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Other Archives</em>' attribute list.
+ * @see #isSetOtherArchives()
+ * @see #unsetOtherArchives()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getMailingList_OtherArchives()
+ * @model unique="false" unsettable="true"
+ * @generated
+ */
+ EList<String> getOtherArchives();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.MailingList#getOtherArchives
+ * <em>Other Archives</em>}' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetOtherArchives()
+ * @see #getOtherArchives()
+ * @generated
+ */
+ void unsetOtherArchives();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.MailingList#getOtherArchives
+ * <em>Other Archives</em>}' attribute list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Other Archives</em>' attribute list is set.
+ * @see #unsetOtherArchives()
+ * @see #getOtherArchives()
+ * @generated
+ */
+ boolean isSetOtherArchives();
} // MailingList
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Model.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Model.java
index 98edd91d..1e85a3ea 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Model.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Model.java
@@ -12,70 +12,44 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Model</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 3.0.0+
- *
- * The &lt;code&gt;&amp;lt;project&amp;gt;&lt;/code&gt; element is the root of
- * the descriptor. The following table lists all of the possible child elements.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Model</b></em>'. <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The &lt;code&gt;&amp;lt;project&amp;gt;&lt;/code&gt; element is the root of the
+ * descriptor. The following table lists all of the possible child elements. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.m2e.model.edit.pom.Model#getParent <em>Parent</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getModelVersion <em>Model
- * Version</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getModelVersion <em>Model Version</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Model#getGroupId <em>Group Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getArtifactId <em>Artifact Id
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getPackaging <em>Packaging
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getArtifactId <em>Artifact Id </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getPackaging <em>Packaging </em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Model#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Model#getVersion <em>Version</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getDescription <em>Description
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getDescription <em>Description </em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Model#getUrl <em>Url</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getPrerequisites <em>
- * Prerequisites</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getIssueManagement <em>Issue
- * Management</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getCiManagement <em>Ci
- * Management</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getInceptionYear <em>Inception
- * Year</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getMailingLists <em>Mailing
- * Lists</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getDevelopers <em>Developers
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getContributors <em>
- * Contributors</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getPrerequisites <em> Prerequisites</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getIssueManagement <em>Issue Management</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getCiManagement <em>Ci Management</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getInceptionYear <em>Inception Year</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getMailingLists <em>Mailing Lists</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getDevelopers <em>Developers </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getContributors <em> Contributors</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Model#getLicenses <em>Licenses</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Model#getScm <em>Scm</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getOrganization <em>
- * Organization</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getOrganization <em> Organization</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Model#getBuild <em>Build</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Model#getProfiles <em>Profiles</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getRepositories <em>
- * Repositories</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getPluginRepositories <em>
- * Plugin Repositories</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getDependencies <em>
- * Dependencies</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getReporting <em>Reporting
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getDependencyManagement <em>
- * Dependency Management</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getDistributionManagement <em>
- * Distribution Management</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getProperties <em>Properties
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getRepositories <em> Repositories</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getPluginRepositories <em> Plugin Repositories</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getDependencies <em> Dependencies</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getReporting <em>Reporting </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getDependencyManagement <em> Dependency Management</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getDistributionManagement <em> Distribution Management</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Model#getProperties <em>Properties </em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Model#getModules <em>Modules</em>}</li>
* </ul>
* </p>
@@ -85,1364 +59,1094 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Model extends EObject {
- /**
- * Returns the value of the '<em><b>Parent</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc -->
- * 4.0.0
- *
- * The location of the parent project, if one exists. Values from the parent
- * project will be the default for this project if they are left
- * unspecified. The location is given as a group ID, artifact ID and
- * version.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Parent</em>' containment reference.
- * @see #isSetParent()
- * @see #unsetParent()
- * @see #setParent(Parent)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Parent()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='parent' namespace='##targetNamespace'"
- * @generated
- */
- Parent getParent();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getParent <em>Parent</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Parent</em>' containment reference.
- * @see #isSetParent()
- * @see #unsetParent()
- * @see #getParent()
- * @generated
- */
- void setParent(Parent value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getParent <em>Parent</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetParent()
- * @see #getParent()
- * @see #setParent(Parent)
- * @generated
- */
- void unsetParent();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getParent <em>Parent</em>}'
- * containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return whether the value of the '<em>Parent</em>' containment reference
- * is set.
- * @see #unsetParent()
- * @see #getParent()
- * @see #setParent(Parent)
- * @generated
- */
- boolean isSetParent();
-
- /**
- * Returns the value of the '<em><b>Model Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * Declares to which version of project descriptor this POM conforms. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Model Version</em>' attribute.
- * @see #setModelVersion(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_ModelVersion()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='modelVersion' namespace='##targetNamespace'"
- * @generated
- */
- String getModelVersion();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getModelVersion
- * <em>Model Version</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Model Version</em>' attribute.
- * @see #getModelVersion()
- * @generated
- */
- void setModelVersion(String value);
-
- /**
- * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * A universally unique identifier for a project. It is normal to use a
- * fully-qualified package name to distinguish it from other projects with a
- * similar name (eg. &lt;code&gt;org.apache.maven&lt;/code&gt;).
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Group Id</em>' attribute.
- * @see #setGroupId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_GroupId()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='groupId' namespace='##targetNamespace'"
- * @generated
- */
- String getGroupId();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getGroupId <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Group Id</em>' attribute.
- * @see #getGroupId()
- * @generated
- */
- void setGroupId(String value);
-
- /**
- * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * The identifier for this artifact that is unique within the group given by
- * the group ID. An artifact is something that is either produced or used by
- * a project. Examples of artifacts produced by Maven for a project include:
- * JARs, source and binary distributions, and WARs.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Artifact Id</em>' attribute.
- * @see #setArtifactId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_ArtifactId()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='artifactId' namespace='##targetNamespace'"
- * @generated
- */
- String getArtifactId();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getArtifactId
- * <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Artifact Id</em>' attribute.
- * @see #getArtifactId()
- * @generated
- */
- void setArtifactId(String value);
-
- /**
- * Returns the value of the '<em><b>Packaging</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The type of artifact this project produces, for example
- * &lt;code&gt;jar&lt;/code&gt; &lt;code&gt;war&lt;/code&gt;
- * &lt;code&gt;ear&lt;/code&gt; &lt;code&gt;pom&lt;/code&gt;. Plugins can
- * create their own packaging, and therefore their own packaging types, so
- * this list does not contain all possible types.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Packaging</em>' attribute.
- * @see #isSetPackaging()
- * @see #unsetPackaging()
- * @see #setPackaging(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Packaging()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
- * extendedMetaData
- * ="kind='element' name='packaging' namespace='##targetNamespace'"
- * @generated
- */
- String getPackaging();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getPackaging
- * <em>Packaging</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Packaging</em>' attribute.
- * @see #isSetPackaging()
- * @see #unsetPackaging()
- * @see #getPackaging()
- * @generated
- */
- void setPackaging(String value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getPackaging
- * <em>Packaging</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #isSetPackaging()
- * @see #getPackaging()
- * @see #setPackaging(String)
- * @generated
- */
- void unsetPackaging();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getPackaging
- * <em>Packaging</em>}' attribute is set. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return whether the value of the '<em>Packaging</em>' attribute is set.
- * @see #unsetPackaging()
- * @see #getPackaging()
- * @see #setPackaging(String)
- * @generated
- */
- boolean isSetPackaging();
-
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * The full name of the project.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Name()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='name' namespace='##targetNamespace'"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Model#getName
- * <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The current version of the artifact produced by this project.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Version</em>' attribute.
- * @see #setVersion(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Version()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='version' namespace='##targetNamespace'"
- * @generated
- */
- String getVersion();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getVersion <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Version</em>' attribute.
- * @see #getVersion()
- * @generated
- */
- void setVersion(String value);
-
- /**
- * Returns the value of the '<em><b>Description</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * A detailed description of the project, used by Maven whenever it needs to
- * describe the project, such as on the web site. While this element can be
- * specified as CDATA to enable the use of HTML tags within the description,
- * it is discouraged to allow plain text representation. If you need to
- * modify the index page of the generated web site, you are able to specify
- * your own instead of adjusting this text.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Description</em>' attribute.
- * @see #setDescription(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Description()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='description' namespace='##targetNamespace'"
- * @generated
- */
- String getDescription();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getDescription
- * <em>Description</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Description</em>' attribute.
- * @see #getDescription()
- * @generated
- */
- void setDescription(String value);
-
- /**
- * Returns the value of the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * The URL to the project's homepage.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Url</em>' attribute.
- * @see #setUrl(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Url()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='url' namespace='##targetNamespace'"
- * @generated
- */
- String getUrl();
-
- /**
- * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Model#getUrl
- * <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Url</em>' attribute.
- * @see #getUrl()
- * @generated
- */
- void setUrl(String value);
-
- /**
- * Returns the value of the '<em><b>Prerequisites</b></em>' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0
- *
- * Describes the prerequisites in the build environment for this project.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Prerequisites</em>' containment reference.
- * @see #isSetPrerequisites()
- * @see #unsetPrerequisites()
- * @see #setPrerequisites(Prerequisites)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Prerequisites()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='prerequisites' namespace='##targetNamespace'"
- * @generated
- */
- Prerequisites getPrerequisites();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getPrerequisites
- * <em>Prerequisites</em>}' containment reference. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Prerequisites</em>' containment
- * reference.
- * @see #isSetPrerequisites()
- * @see #unsetPrerequisites()
- * @see #getPrerequisites()
- * @generated
- */
- void setPrerequisites(Prerequisites value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getPrerequisites
- * <em>Prerequisites</em>}' containment reference. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isSetPrerequisites()
- * @see #getPrerequisites()
- * @see #setPrerequisites(Prerequisites)
- * @generated
- */
- void unsetPrerequisites();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getPrerequisites
- * <em>Prerequisites</em>}' containment reference is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Prerequisites</em>' containment
- * reference is set.
- * @see #unsetPrerequisites()
- * @see #getPrerequisites()
- * @see #setPrerequisites(Prerequisites)
- * @generated
- */
- boolean isSetPrerequisites();
-
- /**
- * Returns the value of the '<em><b>Issue Management</b></em>' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0 The project's issue management system
- * information. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Issue Management</em>' containment
- * reference.
- * @see #isSetIssueManagement()
- * @see #unsetIssueManagement()
- * @see #setIssueManagement(IssueManagement)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_IssueManagement()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='issueManagement' namespace='##targetNamespace'"
- * @generated
- */
- IssueManagement getIssueManagement();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getIssueManagement
- * <em>Issue Management</em>}' containment reference. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Issue Management</em>' containment
- * reference.
- * @see #isSetIssueManagement()
- * @see #unsetIssueManagement()
- * @see #getIssueManagement()
- * @generated
- */
- void setIssueManagement(IssueManagement value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getIssueManagement
- * <em>Issue Management</em>}' containment reference. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #isSetIssueManagement()
- * @see #getIssueManagement()
- * @see #setIssueManagement(IssueManagement)
- * @generated
- */
- void unsetIssueManagement();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getIssueManagement
- * <em>Issue Management</em>}' containment reference is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Issue Management</em>' containment
- * reference is set.
- * @see #unsetIssueManagement()
- * @see #getIssueManagement()
- * @see #setIssueManagement(IssueManagement)
- * @generated
- */
- boolean isSetIssueManagement();
-
- /**
- * Returns the value of the '<em><b>Ci Management</b></em>' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0 The project's continuous integration
- * information. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Ci Management</em>' containment reference.
- * @see #isSetCiManagement()
- * @see #unsetCiManagement()
- * @see #setCiManagement(CiManagement)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_CiManagement()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='ciManagement' namespace='##targetNamespace'"
- * @generated
- */
- CiManagement getCiManagement();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getCiManagement
- * <em>Ci Management</em>}' containment reference. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Ci Management</em>' containment
- * reference.
- * @see #isSetCiManagement()
- * @see #unsetCiManagement()
- * @see #getCiManagement()
- * @generated
- */
- void setCiManagement(CiManagement value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getCiManagement
- * <em>Ci Management</em>}' containment reference. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isSetCiManagement()
- * @see #getCiManagement()
- * @see #setCiManagement(CiManagement)
- * @generated
- */
- void unsetCiManagement();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getCiManagement
- * <em>Ci Management</em>}' containment reference is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Ci Management</em>' containment
- * reference is set.
- * @see #unsetCiManagement()
- * @see #getCiManagement()
- * @see #setCiManagement(CiManagement)
- * @generated
- */
- boolean isSetCiManagement();
-
- /**
- * Returns the value of the '<em><b>Inception Year</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * The year of the project's inception, specified with 4 digits. This value
- * is used when generating copyright notices as well as being informational.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Inception Year</em>' attribute.
- * @see #setInceptionYear(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_InceptionYear()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='inceptionYear' namespace='##targetNamespace'"
- * @generated
- */
- String getInceptionYear();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getInceptionYear
- * <em>Inception Year</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Inception Year</em>' attribute.
- * @see #getInceptionYear()
- * @generated
- */
- void setInceptionYear(String value);
-
- /**
- * Returns the value of the '<em><b>Mailing Lists</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.MailingList}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * Contains information about a project's mailing lists.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Mailing Lists</em>' containment reference
- * list.
- * @see #isSetMailingLists()
- * @see #unsetMailingLists()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_MailingLists()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='mailingLists' namespace='##targetNamespace'"
- * @generated
- */
- EList<MailingList> getMailingLists();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getMailingLists
- * <em>Mailing Lists</em>}' containment reference list. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #isSetMailingLists()
- * @see #getMailingLists()
- * @generated
- */
- void unsetMailingLists();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getMailingLists
- * <em>Mailing Lists</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Mailing Lists</em>' containment
- * reference list is set.
- * @see #unsetMailingLists()
- * @see #getMailingLists()
- * @generated
- */
- boolean isSetMailingLists();
-
- /**
- * Returns the value of the '<em><b>Developers</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Developer}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * Describes the committers of a project.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Developers</em>' containment reference
- * list.
- * @see #isSetDevelopers()
- * @see #unsetDevelopers()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Developers()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='developers' namespace='##targetNamespace'"
- * @generated
- */
- EList<Developer> getDevelopers();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getDevelopers
- * <em>Developers</em>}' containment reference list. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isSetDevelopers()
- * @see #getDevelopers()
- * @generated
- */
- void unsetDevelopers();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getDevelopers
- * <em>Developers</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Developers</em>' containment
- * reference list is set.
- * @see #unsetDevelopers()
- * @see #getDevelopers()
- * @generated
- */
- boolean isSetDevelopers();
-
- /**
- * Returns the value of the '<em><b>Contributors</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Contributor}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * Describes the contributors to a project that are not yet committers.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Contributors</em>' containment reference
- * list.
- * @see #isSetContributors()
- * @see #unsetContributors()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Contributors()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='contributors' namespace='##targetNamespace'"
- * @generated
- */
- EList<Contributor> getContributors();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getContributors
- * <em>Contributors</em>}' containment reference list. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #isSetContributors()
- * @see #getContributors()
- * @generated
- */
- void unsetContributors();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getContributors
- * <em>Contributors</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Contributors</em>' containment
- * reference list is set.
- * @see #unsetContributors()
- * @see #getContributors()
- * @generated
- */
- boolean isSetContributors();
-
- /**
- * Returns the value of the '<em><b>Licenses</b></em>' containment reference
- * list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.License}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * This element describes all of the licenses for this project. Each license
- * is described by a &lt;code&gt;license&lt;/code&gt; element, which is then
- * described by additional elements. Projects should only list the
- * license(s) that applies to the project and not the licenses that apply to
- * dependencies. If multiple licenses are listed, it is assumed that the
- * user can select any of them, not that they must accept all.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Licenses</em>' containment reference list.
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Licenses()
- * @model containment="true" extendedMetaData=
- * "kind='element' name='licenses' namespace='##targetNamespace'"
- * @generated
- */
- EList<License> getLicenses();
-
- /**
- * Returns the value of the '<em><b>Scm</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc -->
- * 4.0.0
- *
- * Specification for the SCM used by the project, such as CVS, Subversion,
- * etc. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Scm</em>' containment reference.
- * @see #isSetScm()
- * @see #unsetScm()
- * @see #setScm(Scm)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Scm()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='scm' namespace='##targetNamespace'"
- * @generated
- */
- Scm getScm();
-
- /**
- * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Model#getScm
- * <em>Scm</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Scm</em>' containment reference.
- * @see #isSetScm()
- * @see #unsetScm()
- * @see #getScm()
- * @generated
- */
- void setScm(Scm value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getScm <em>Scm</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetScm()
- * @see #getScm()
- * @see #setScm(Scm)
- * @generated
- */
- void unsetScm();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getScm <em>Scm</em>}'
- * containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return whether the value of the '<em>Scm</em>' containment reference is
- * set.
- * @see #unsetScm()
- * @see #getScm()
- * @see #setScm(Scm)
- * @generated
- */
- boolean isSetScm();
-
- /**
- * Returns the value of the '<em><b>Organization</b></em>' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 3.0.0+
- *
- * This element describes various attributes of the organization to which
- * the project belongs. These attributes are utilized when documentation is
- * created (for copyright notices and links).
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Organization</em>' containment reference.
- * @see #isSetOrganization()
- * @see #unsetOrganization()
- * @see #setOrganization(Organization)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Organization()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='organization' namespace='##targetNamespace'"
- * @generated
- */
- Organization getOrganization();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getOrganization
- * <em>Organization</em>}' containment reference. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Organization</em>' containment
- * reference.
- * @see #isSetOrganization()
- * @see #unsetOrganization()
- * @see #getOrganization()
- * @generated
- */
- void setOrganization(Organization value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getOrganization
- * <em>Organization</em>}' containment reference. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isSetOrganization()
- * @see #getOrganization()
- * @see #setOrganization(Organization)
- * @generated
- */
- void unsetOrganization();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getOrganization
- * <em>Organization</em>}' containment reference is set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Organization</em>' containment
- * reference is set.
- * @see #unsetOrganization()
- * @see #getOrganization()
- * @see #setOrganization(Organization)
- * @generated
- */
- boolean isSetOrganization();
-
- /**
- * Returns the value of the '<em><b>Build</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc -->
- * 3.0.0+ Information required to build the project. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Build</em>' containment reference.
- * @see #isSetBuild()
- * @see #unsetBuild()
- * @see #setBuild(Build)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Build()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='build' namespace='##targetNamespace'"
- * @generated
- */
- Build getBuild();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getBuild <em>Build</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Build</em>' containment reference.
- * @see #isSetBuild()
- * @see #unsetBuild()
- * @see #getBuild()
- * @generated
- */
- void setBuild(Build value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getBuild <em>Build</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetBuild()
- * @see #getBuild()
- * @see #setBuild(Build)
- * @generated
- */
- void unsetBuild();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getBuild <em>Build</em>}'
- * containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return whether the value of the '<em>Build</em>' containment reference
- * is set.
- * @see #unsetBuild()
- * @see #getBuild()
- * @see #setBuild(Build)
- * @generated
- */
- boolean isSetBuild();
-
- /**
- * Returns the value of the '<em><b>Profiles</b></em>' containment reference
- * list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Profile}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * A listing of project-local build profiles which will modify the build
- * process when activated.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Profiles</em>' containment reference list.
- * @see #isSetProfiles()
- * @see #unsetProfiles()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Profiles()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='profiles' namespace='##targetNamespace'"
- * @generated
- */
- EList<Profile> getProfiles();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getProfiles <em>Profiles</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetProfiles()
- * @see #getProfiles()
- * @generated
- */
- void unsetProfiles();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getProfiles <em>Profiles</em>}'
- * containment reference list is set. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return whether the value of the '<em>Profiles</em>' containment
- * reference list is set.
- * @see #unsetProfiles()
- * @see #getProfiles()
- * @generated
- */
- boolean isSetProfiles();
-
- /**
- * Returns the value of the '<em><b>Repositories</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Repository}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 The lists of the
- * remote repositories for discovering dependencies and extensions. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Repositories</em>' containment reference
- * list.
- * @see #isSetRepositories()
- * @see #unsetRepositories()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Repositories()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='repositories' namespace='##targetNamespace'"
- * @generated
- */
- EList<Repository> getRepositories();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getRepositories
- * <em>Repositories</em>}' containment reference list. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #isSetRepositories()
- * @see #getRepositories()
- * @generated
- */
- void unsetRepositories();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getRepositories
- * <em>Repositories</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Repositories</em>' containment
- * reference list is set.
- * @see #unsetRepositories()
- * @see #getRepositories()
- * @generated
- */
- boolean isSetRepositories();
-
- /**
- * Returns the value of the '<em><b>Plugin Repositories</b></em>'
- * containment reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Repository}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The lists of the remote repositories for discovering plugins for builds
- * and reports. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Plugin Repositories</em>' containment
- * reference list.
- * @see #isSetPluginRepositories()
- * @see #unsetPluginRepositories()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_PluginRepositories()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='pluginRepositories' namespace='##targetNamespace'"
- * @generated
- */
- EList<Repository> getPluginRepositories();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getPluginRepositories
- * <em>Plugin Repositories</em>}' containment reference list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetPluginRepositories()
- * @see #getPluginRepositories()
- * @generated
- */
- void unsetPluginRepositories();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getPluginRepositories
- * <em>Plugin Repositories</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Plugin Repositories</em>'
- * containment reference list is set.
- * @see #unsetPluginRepositories()
- * @see #getPluginRepositories()
- * @generated
- */
- boolean isSetPluginRepositories();
-
- /**
- * Returns the value of the '<em><b>Dependencies</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Dependency}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * This element describes all of the dependencies associated with a project.
- * These dependencies are used to construct a classpath for your project
- * during the build process. They are automatically downloaded from the
- * repositories defined in this project. See &lt;a href="http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html"
- * &gt;the dependency mechanism&lt;/a&gt; for more information.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Dependencies</em>' containment reference
- * list.
- * @see #isSetDependencies()
- * @see #unsetDependencies()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Dependencies()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='dependencies' namespace='##targetNamespace'"
- * @generated
- */
- EList<Dependency> getDependencies();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getDependencies
- * <em>Dependencies</em>}' containment reference list. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #isSetDependencies()
- * @see #getDependencies()
- * @generated
- */
- void unsetDependencies();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getDependencies
- * <em>Dependencies</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Dependencies</em>' containment
- * reference list is set.
- * @see #unsetDependencies()
- * @see #getDependencies()
- * @generated
- */
- boolean isSetDependencies();
-
- /**
- * Returns the value of the '<em><b>Reporting</b></em>' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0
- *
- * This element includes the specification of report plugins to use to
- * generate the reports on the Maven-generated site. These reports will be
- * run when a user executes &lt;code&gt;mvn site&lt;/code&gt;. All of the
- * reports will be included in the navigation bar for browsing.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Reporting</em>' containment reference.
- * @see #isSetReporting()
- * @see #unsetReporting()
- * @see #setReporting(Reporting)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Reporting()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='reporting' namespace='##targetNamespace'"
- * @generated
- */
- Reporting getReporting();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getReporting
- * <em>Reporting</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Reporting</em>' containment
- * reference.
- * @see #isSetReporting()
- * @see #unsetReporting()
- * @see #getReporting()
- * @generated
- */
- void setReporting(Reporting value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getReporting
- * <em>Reporting</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetReporting()
- * @see #getReporting()
- * @see #setReporting(Reporting)
- * @generated
- */
- void unsetReporting();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getReporting
- * <em>Reporting</em>}' containment reference is set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Reporting</em>' containment
- * reference is set.
- * @see #unsetReporting()
- * @see #getReporting()
- * @see #setReporting(Reporting)
- * @generated
- */
- boolean isSetReporting();
-
- /**
- * Returns the value of the '<em><b>Dependency Management</b></em>'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0
- *
- * Default dependency information for projects that inherit from this one.
- * The dependencies in this section are not immediately resolved. Instead,
- * when a POM derived from this one declares a dependency described by a
- * matching groupId and artifactId, the version and other values from this
- * section are used for that dependency if they were not already specified.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Dependency Management</em>' containment
- * reference.
- * @see #isSetDependencyManagement()
- * @see #unsetDependencyManagement()
- * @see #setDependencyManagement(DependencyManagement)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_DependencyManagement()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='dependencyManagement' namespace='##targetNamespace'"
- * @generated
- */
- DependencyManagement getDependencyManagement();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getDependencyManagement
- * <em>Dependency Management</em>}' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Dependency Management</em>'
- * containment reference.
- * @see #isSetDependencyManagement()
- * @see #unsetDependencyManagement()
- * @see #getDependencyManagement()
- * @generated
- */
- void setDependencyManagement(DependencyManagement value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getDependencyManagement
- * <em>Dependency Management</em>}' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetDependencyManagement()
- * @see #getDependencyManagement()
- * @see #setDependencyManagement(DependencyManagement)
- * @generated
- */
- void unsetDependencyManagement();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getDependencyManagement
- * <em>Dependency Management</em>}' containment reference is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Dependency Management</em>'
- * containment reference is set.
- * @see #unsetDependencyManagement()
- * @see #getDependencyManagement()
- * @see #setDependencyManagement(DependencyManagement)
- * @generated
- */
- boolean isSetDependencyManagement();
-
- /**
- * Returns the value of the '<em><b>Distribution Management</b></em>'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0 Distribution information for a project that
- * enables deployment of the site and artifacts to remote web servers and
- * repositories respectively. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Distribution Management</em>' containment
- * reference.
- * @see #isSetDistributionManagement()
- * @see #unsetDistributionManagement()
- * @see #setDistributionManagement(DistributionManagement)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_DistributionManagement()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='distributionManagement' namespace='##targetNamespace'"
- * @generated
- */
- DistributionManagement getDistributionManagement();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getDistributionManagement
- * <em>Distribution Management</em>}' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Distribution Management</em>'
- * containment reference.
- * @see #isSetDistributionManagement()
- * @see #unsetDistributionManagement()
- * @see #getDistributionManagement()
- * @generated
- */
- void setDistributionManagement(DistributionManagement value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getDistributionManagement
- * <em>Distribution Management</em>}' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetDistributionManagement()
- * @see #getDistributionManagement()
- * @see #setDistributionManagement(DistributionManagement)
- * @generated
- */
- void unsetDistributionManagement();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getDistributionManagement
- * <em>Distribution Management</em>}' containment reference is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Distribution Management</em>'
- * containment reference is set.
- * @see #unsetDistributionManagement()
- * @see #getDistributionManagement()
- * @see #setDistributionManagement(DistributionManagement)
- * @generated
- */
- boolean isSetDistributionManagement();
-
- /**
- * Returns the value of the '<em><b>Properties</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.PropertyElement}. <!-- begin-user-doc
- * --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * Properties that can be used throughout the POM as a substitution, and are
- * used as filters in resources if enabled. The format is
- * &lt;code&gt;&amp;lt;name&amp;gt;value&amp;lt;/name&amp;gt;&lt;/code&gt;.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Properties</em>' containment reference
- * list.
- * @see #isSetProperties()
- * @see #unsetProperties()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Properties()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='properties' namespace='##targetNamespace'"
- * @generated
- */
- EList<PropertyElement> getProperties();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getProperties
- * <em>Properties</em>}' containment reference list. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isSetProperties()
- * @see #getProperties()
- * @generated
- */
- void unsetProperties();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getProperties
- * <em>Properties</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Properties</em>' containment
- * reference list is set.
- * @see #unsetProperties()
- * @see #getProperties()
- * @generated
- */
- boolean isSetProperties();
-
- /**
- * Returns the value of the '<em><b>Modules</b></em>' attribute list. The
- * list contents are of type {@link java.lang.String}. <!-- begin-user-doc
- * -->
- * <p>
- * If the meaning of the '<em>Modules</em>' attribute list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Modules</em>' attribute list.
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Modules()
- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
- * @generated
- */
- EList<String> getModules();
+ /**
+ * Returns the value of the '<em><b>Parent</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 4.0.0 The location of the parent project, if one exists. Values from the parent
+ * project will be the default for this project if they are left unspecified. The location is given as a group ID,
+ * artifact ID and version. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Parent</em>' containment reference.
+ * @see #isSetParent()
+ * @see #unsetParent()
+ * @see #setParent(Parent)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Parent()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='parent' namespace='##targetNamespace'"
+ * @generated
+ */
+ Parent getParent();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getParent <em>Parent</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Parent</em>' containment reference.
+ * @see #isSetParent()
+ * @see #unsetParent()
+ * @see #getParent()
+ * @generated
+ */
+ void setParent(Parent value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getParent <em>Parent</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetParent()
+ * @see #getParent()
+ * @see #setParent(Parent)
+ * @generated
+ */
+ void unsetParent();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getParent <em>Parent</em>}'
+ * containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Parent</em>' containment reference is set.
+ * @see #unsetParent()
+ * @see #getParent()
+ * @see #setParent(Parent)
+ * @generated
+ */
+ boolean isSetParent();
+
+ /**
+ * Returns the value of the '<em><b>Model Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 Declares to which version of project descriptor this POM conforms. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Model Version</em>' attribute.
+ * @see #setModelVersion(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_ModelVersion()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='modelVersion' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getModelVersion();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getModelVersion <em>Model Version</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Model Version</em>' attribute.
+ * @see #getModelVersion()
+ * @generated
+ */
+ void setModelVersion(String value);
+
+ /**
+ * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ A universally unique identifier for a project. It is normal to use a fully-qualified
+ * package name to distinguish it from other projects with a similar name (eg.
+ * &lt;code&gt;org.apache.maven&lt;/code&gt;). <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Group Id</em>' attribute.
+ * @see #setGroupId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_GroupId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='groupId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getGroupId();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getGroupId <em>Group Id</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Group Id</em>' attribute.
+ * @see #getGroupId()
+ * @generated
+ */
+ void setGroupId(String value);
+
+ /**
+ * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 3.0.0+ The identifier for this artifact that is unique within the group given by the group
+ * ID. An artifact is something that is either produced or used by a project. Examples of artifacts produced by Maven
+ * for a project include: JARs, source and binary distributions, and WARs. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Artifact Id</em>' attribute.
+ * @see #setArtifactId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_ArtifactId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='artifactId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getArtifactId();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getArtifactId <em>Artifact Id</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Artifact Id</em>' attribute.
+ * @see #getArtifactId()
+ * @generated
+ */
+ void setArtifactId(String value);
+
+ /**
+ * Returns the value of the '<em><b>Packaging</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The type of artifact this project produces, for example &lt;code&gt;jar&lt;/code&gt;
+ * &lt;code&gt;war&lt;/code&gt; &lt;code&gt;ear&lt;/code&gt; &lt;code&gt;pom&lt;/code&gt;. Plugins can create their
+ * own packaging, and therefore their own packaging types, so this list does not contain all possible types. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Packaging</em>' attribute.
+ * @see #isSetPackaging()
+ * @see #unsetPackaging()
+ * @see #setPackaging(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Packaging()
+ * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData
+ * ="kind='element' name='packaging' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getPackaging();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getPackaging <em>Packaging</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Packaging</em>' attribute.
+ * @see #isSetPackaging()
+ * @see #unsetPackaging()
+ * @see #getPackaging()
+ * @generated
+ */
+ void setPackaging(String value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getPackaging <em>Packaging</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetPackaging()
+ * @see #getPackaging()
+ * @see #setPackaging(String)
+ * @generated
+ */
+ void unsetPackaging();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getPackaging <em>Packaging</em>}'
+ * attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Packaging</em>' attribute is set.
+ * @see #unsetPackaging()
+ * @see #getPackaging()
+ * @see #setPackaging(String)
+ * @generated
+ */
+ boolean isSetPackaging();
+
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The full name of the project. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Name()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='name' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Model#getName <em>Name</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The current version of the artifact produced by this project. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Version</em>' attribute.
+ * @see #setVersion(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Version()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='version' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getVersion();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getVersion <em>Version</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Version</em>' attribute.
+ * @see #getVersion()
+ * @generated
+ */
+ void setVersion(String value);
+
+ /**
+ * Returns the value of the '<em><b>Description</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 3.0.0+ A detailed description of the project, used by Maven whenever it needs to describe
+ * the project, such as on the web site. While this element can be specified as CDATA to enable the use of HTML tags
+ * within the description, it is discouraged to allow plain text representation. If you need to modify the index page
+ * of the generated web site, you are able to specify your own instead of adjusting this text. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Description</em>' attribute.
+ * @see #setDescription(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Description()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='description' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getDescription();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getDescription <em>Description</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Description</em>' attribute.
+ * @see #getDescription()
+ * @generated
+ */
+ void setDescription(String value);
+
+ /**
+ * Returns the value of the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The URL to the project's homepage. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Url</em>' attribute.
+ * @see #setUrl(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Url()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='url' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getUrl();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Model#getUrl <em>Url</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Url</em>' attribute.
+ * @see #getUrl()
+ * @generated
+ */
+ void setUrl(String value);
+
+ /**
+ * Returns the value of the '<em><b>Prerequisites</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Describes the prerequisites in the build environment for this
+ * project. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Prerequisites</em>' containment reference.
+ * @see #isSetPrerequisites()
+ * @see #unsetPrerequisites()
+ * @see #setPrerequisites(Prerequisites)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Prerequisites()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='prerequisites' namespace='##targetNamespace'"
+ * @generated
+ */
+ Prerequisites getPrerequisites();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getPrerequisites <em>Prerequisites</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Prerequisites</em>' containment reference.
+ * @see #isSetPrerequisites()
+ * @see #unsetPrerequisites()
+ * @see #getPrerequisites()
+ * @generated
+ */
+ void setPrerequisites(Prerequisites value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getPrerequisites <em>Prerequisites</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetPrerequisites()
+ * @see #getPrerequisites()
+ * @see #setPrerequisites(Prerequisites)
+ * @generated
+ */
+ void unsetPrerequisites();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getPrerequisites
+ * <em>Prerequisites</em>}' containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Prerequisites</em>' containment reference is set.
+ * @see #unsetPrerequisites()
+ * @see #getPrerequisites()
+ * @see #setPrerequisites(Prerequisites)
+ * @generated
+ */
+ boolean isSetPrerequisites();
+
+ /**
+ * Returns the value of the '<em><b>Issue Management</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 The project's issue management system information. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Issue Management</em>' containment reference.
+ * @see #isSetIssueManagement()
+ * @see #unsetIssueManagement()
+ * @see #setIssueManagement(IssueManagement)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_IssueManagement()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='issueManagement' namespace='##targetNamespace'"
+ * @generated
+ */
+ IssueManagement getIssueManagement();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getIssueManagement <em>Issue Management</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Issue Management</em>' containment reference.
+ * @see #isSetIssueManagement()
+ * @see #unsetIssueManagement()
+ * @see #getIssueManagement()
+ * @generated
+ */
+ void setIssueManagement(IssueManagement value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getIssueManagement <em>Issue Management</em>}
+ * ' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetIssueManagement()
+ * @see #getIssueManagement()
+ * @see #setIssueManagement(IssueManagement)
+ * @generated
+ */
+ void unsetIssueManagement();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getIssueManagement
+ * <em>Issue Management</em>}' containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Issue Management</em>' containment reference is set.
+ * @see #unsetIssueManagement()
+ * @see #getIssueManagement()
+ * @see #setIssueManagement(IssueManagement)
+ * @generated
+ */
+ boolean isSetIssueManagement();
+
+ /**
+ * Returns the value of the '<em><b>Ci Management</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 The project's continuous integration information. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Ci Management</em>' containment reference.
+ * @see #isSetCiManagement()
+ * @see #unsetCiManagement()
+ * @see #setCiManagement(CiManagement)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_CiManagement()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='ciManagement' namespace='##targetNamespace'"
+ * @generated
+ */
+ CiManagement getCiManagement();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getCiManagement <em>Ci Management</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Ci Management</em>' containment reference.
+ * @see #isSetCiManagement()
+ * @see #unsetCiManagement()
+ * @see #getCiManagement()
+ * @generated
+ */
+ void setCiManagement(CiManagement value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getCiManagement <em>Ci Management</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetCiManagement()
+ * @see #getCiManagement()
+ * @see #setCiManagement(CiManagement)
+ * @generated
+ */
+ void unsetCiManagement();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getCiManagement
+ * <em>Ci Management</em>}' containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Ci Management</em>' containment reference is set.
+ * @see #unsetCiManagement()
+ * @see #getCiManagement()
+ * @see #setCiManagement(CiManagement)
+ * @generated
+ */
+ boolean isSetCiManagement();
+
+ /**
+ * Returns the value of the '<em><b>Inception Year</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 3.0.0+ The year of the project's inception, specified with 4 digits. This value is used
+ * when generating copyright notices as well as being informational. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Inception Year</em>' attribute.
+ * @see #setInceptionYear(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_InceptionYear()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='inceptionYear' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getInceptionYear();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getInceptionYear <em>Inception Year</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Inception Year</em>' attribute.
+ * @see #getInceptionYear()
+ * @generated
+ */
+ void setInceptionYear(String value);
+
+ /**
+ * Returns the value of the '<em><b>Mailing Lists</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.MailingList}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ Contains information about a project's mailing lists. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Mailing Lists</em>' containment reference list.
+ * @see #isSetMailingLists()
+ * @see #unsetMailingLists()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_MailingLists()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='mailingLists' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<MailingList> getMailingLists();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getMailingLists <em>Mailing Lists</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetMailingLists()
+ * @see #getMailingLists()
+ * @generated
+ */
+ void unsetMailingLists();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getMailingLists
+ * <em>Mailing Lists</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Mailing Lists</em>' containment reference list is set.
+ * @see #unsetMailingLists()
+ * @see #getMailingLists()
+ * @generated
+ */
+ boolean isSetMailingLists();
+
+ /**
+ * Returns the value of the '<em><b>Developers</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Developer}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ Describes the committers of a project. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Developers</em>' containment reference list.
+ * @see #isSetDevelopers()
+ * @see #unsetDevelopers()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Developers()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='developers' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Developer> getDevelopers();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getDevelopers <em>Developers</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetDevelopers()
+ * @see #getDevelopers()
+ * @generated
+ */
+ void unsetDevelopers();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getDevelopers <em>Developers</em>}'
+ * containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Developers</em>' containment reference list is set.
+ * @see #unsetDevelopers()
+ * @see #getDevelopers()
+ * @generated
+ */
+ boolean isSetDevelopers();
+
+ /**
+ * Returns the value of the '<em><b>Contributors</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Contributor}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ Describes the contributors to a project that are not yet committers. <!-- end-model-doc
+ * -->
+ *
+ * @return the value of the '<em>Contributors</em>' containment reference list.
+ * @see #isSetContributors()
+ * @see #unsetContributors()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Contributors()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='contributors' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Contributor> getContributors();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getContributors <em>Contributors</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetContributors()
+ * @see #getContributors()
+ * @generated
+ */
+ void unsetContributors();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getContributors
+ * <em>Contributors</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Contributors</em>' containment reference list is set.
+ * @see #unsetContributors()
+ * @see #getContributors()
+ * @generated
+ */
+ boolean isSetContributors();
+
+ /**
+ * Returns the value of the '<em><b>Licenses</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.License}. <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc
+ * --> 3.0.0+ This element describes all of the licenses for this project. Each license is described by a
+ * &lt;code&gt;license&lt;/code&gt; element, which is then described by additional elements. Projects should only list
+ * the license(s) that applies to the project and not the licenses that apply to dependencies. If multiple licenses
+ * are listed, it is assumed that the user can select any of them, not that they must accept all. <!-- end-model-doc
+ * -->
+ *
+ * @return the value of the '<em>Licenses</em>' containment reference list.
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Licenses()
+ * @model containment="true" extendedMetaData= "kind='element' name='licenses' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<License> getLicenses();
+
+ /**
+ * Returns the value of the '<em><b>Scm</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 Specification for the SCM used by the project, such as CVS, Subversion, etc. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Scm</em>' containment reference.
+ * @see #isSetScm()
+ * @see #unsetScm()
+ * @see #setScm(Scm)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Scm()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='scm' namespace='##targetNamespace'"
+ * @generated
+ */
+ Scm getScm();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Model#getScm <em>Scm</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Scm</em>' containment reference.
+ * @see #isSetScm()
+ * @see #unsetScm()
+ * @see #getScm()
+ * @generated
+ */
+ void setScm(Scm value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getScm <em>Scm</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetScm()
+ * @see #getScm()
+ * @see #setScm(Scm)
+ * @generated
+ */
+ void unsetScm();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getScm <em>Scm</em>}' containment
+ * reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Scm</em>' containment reference is set.
+ * @see #unsetScm()
+ * @see #getScm()
+ * @see #setScm(Scm)
+ * @generated
+ */
+ boolean isSetScm();
+
+ /**
+ * Returns the value of the '<em><b>Organization</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 3.0.0+ This element describes various attributes of the organization to
+ * which the project belongs. These attributes are utilized when documentation is created (for copyright notices and
+ * links). <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Organization</em>' containment reference.
+ * @see #isSetOrganization()
+ * @see #unsetOrganization()
+ * @see #setOrganization(Organization)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Organization()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='organization' namespace='##targetNamespace'"
+ * @generated
+ */
+ Organization getOrganization();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getOrganization <em>Organization</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Organization</em>' containment reference.
+ * @see #isSetOrganization()
+ * @see #unsetOrganization()
+ * @see #getOrganization()
+ * @generated
+ */
+ void setOrganization(Organization value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getOrganization <em>Organization</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetOrganization()
+ * @see #getOrganization()
+ * @see #setOrganization(Organization)
+ * @generated
+ */
+ void unsetOrganization();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getOrganization
+ * <em>Organization</em>}' containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Organization</em>' containment reference is set.
+ * @see #unsetOrganization()
+ * @see #getOrganization()
+ * @see #setOrganization(Organization)
+ * @generated
+ */
+ boolean isSetOrganization();
+
+ /**
+ * Returns the value of the '<em><b>Build</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 3.0.0+ Information required to build the project. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Build</em>' containment reference.
+ * @see #isSetBuild()
+ * @see #unsetBuild()
+ * @see #setBuild(Build)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Build()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='build' namespace='##targetNamespace'"
+ * @generated
+ */
+ Build getBuild();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getBuild <em>Build</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Build</em>' containment reference.
+ * @see #isSetBuild()
+ * @see #unsetBuild()
+ * @see #getBuild()
+ * @generated
+ */
+ void setBuild(Build value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getBuild <em>Build</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetBuild()
+ * @see #getBuild()
+ * @see #setBuild(Build)
+ * @generated
+ */
+ void unsetBuild();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getBuild <em>Build</em>}'
+ * containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Build</em>' containment reference is set.
+ * @see #unsetBuild()
+ * @see #getBuild()
+ * @see #setBuild(Build)
+ * @generated
+ */
+ boolean isSetBuild();
+
+ /**
+ * Returns the value of the '<em><b>Profiles</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Profile}. <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc
+ * --> 4.0.0 A listing of project-local build profiles which will modify the build process when activated. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Profiles</em>' containment reference list.
+ * @see #isSetProfiles()
+ * @see #unsetProfiles()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Profiles()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='profiles' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Profile> getProfiles();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getProfiles <em>Profiles</em>}' containment
+ * reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetProfiles()
+ * @see #getProfiles()
+ * @generated
+ */
+ void unsetProfiles();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getProfiles <em>Profiles</em>}'
+ * containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Profiles</em>' containment reference list is set.
+ * @see #unsetProfiles()
+ * @see #getProfiles()
+ * @generated
+ */
+ boolean isSetProfiles();
+
+ /**
+ * Returns the value of the '<em><b>Repositories</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Repository}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The lists of the remote repositories for discovering dependencies and extensions. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Repositories</em>' containment reference list.
+ * @see #isSetRepositories()
+ * @see #unsetRepositories()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Repositories()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='repositories' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Repository> getRepositories();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getRepositories <em>Repositories</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetRepositories()
+ * @see #getRepositories()
+ * @generated
+ */
+ void unsetRepositories();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getRepositories
+ * <em>Repositories</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Repositories</em>' containment reference list is set.
+ * @see #unsetRepositories()
+ * @see #getRepositories()
+ * @generated
+ */
+ boolean isSetRepositories();
+
+ /**
+ * Returns the value of the '<em><b>Plugin Repositories</b></em>' containment reference list. The list contents are of
+ * type {@link org.eclipse.m2e.model.edit.pom.Repository}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The lists of the remote repositories for discovering plugins for builds and reports. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Plugin Repositories</em>' containment reference list.
+ * @see #isSetPluginRepositories()
+ * @see #unsetPluginRepositories()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_PluginRepositories()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='pluginRepositories' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Repository> getPluginRepositories();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getPluginRepositories
+ * <em>Plugin Repositories</em>}' containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetPluginRepositories()
+ * @see #getPluginRepositories()
+ * @generated
+ */
+ void unsetPluginRepositories();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getPluginRepositories
+ * <em>Plugin Repositories</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Plugin Repositories</em>' containment reference list is set.
+ * @see #unsetPluginRepositories()
+ * @see #getPluginRepositories()
+ * @generated
+ */
+ boolean isSetPluginRepositories();
+
+ /**
+ * Returns the value of the '<em><b>Dependencies</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Dependency}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ This element describes all of the dependencies associated with a project. These
+ * dependencies are used to construct a classpath for your project during the build process. They are automatically
+ * downloaded from the repositories defined in this project. See &lt;a
+ * href="http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html" &gt;the dependency
+ * mechanism&lt;/a&gt; for more information. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Dependencies</em>' containment reference list.
+ * @see #isSetDependencies()
+ * @see #unsetDependencies()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Dependencies()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='dependencies' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Dependency> getDependencies();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getDependencies <em>Dependencies</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetDependencies()
+ * @see #getDependencies()
+ * @generated
+ */
+ void unsetDependencies();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getDependencies
+ * <em>Dependencies</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Dependencies</em>' containment reference list is set.
+ * @see #unsetDependencies()
+ * @see #getDependencies()
+ * @generated
+ */
+ boolean isSetDependencies();
+
+ /**
+ * Returns the value of the '<em><b>Reporting</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 This element includes the specification of report plugins to use to
+ * generate the reports on the Maven-generated site. These reports will be run when a user executes &lt;code&gt;mvn
+ * site&lt;/code&gt;. All of the reports will be included in the navigation bar for browsing. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Reporting</em>' containment reference.
+ * @see #isSetReporting()
+ * @see #unsetReporting()
+ * @see #setReporting(Reporting)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Reporting()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='reporting' namespace='##targetNamespace'"
+ * @generated
+ */
+ Reporting getReporting();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getReporting <em>Reporting</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Reporting</em>' containment reference.
+ * @see #isSetReporting()
+ * @see #unsetReporting()
+ * @see #getReporting()
+ * @generated
+ */
+ void setReporting(Reporting value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getReporting <em>Reporting</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetReporting()
+ * @see #getReporting()
+ * @see #setReporting(Reporting)
+ * @generated
+ */
+ void unsetReporting();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getReporting <em>Reporting</em>}'
+ * containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Reporting</em>' containment reference is set.
+ * @see #unsetReporting()
+ * @see #getReporting()
+ * @see #setReporting(Reporting)
+ * @generated
+ */
+ boolean isSetReporting();
+
+ /**
+ * Returns the value of the '<em><b>Dependency Management</b></em>' containment reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Default dependency information for projects that inherit from
+ * this one. The dependencies in this section are not immediately resolved. Instead, when a POM derived from this one
+ * declares a dependency described by a matching groupId and artifactId, the version and other values from this
+ * section are used for that dependency if they were not already specified. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Dependency Management</em>' containment reference.
+ * @see #isSetDependencyManagement()
+ * @see #unsetDependencyManagement()
+ * @see #setDependencyManagement(DependencyManagement)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_DependencyManagement()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='dependencyManagement' namespace='##targetNamespace'"
+ * @generated
+ */
+ DependencyManagement getDependencyManagement();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getDependencyManagement
+ * <em>Dependency Management</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Dependency Management</em>' containment reference.
+ * @see #isSetDependencyManagement()
+ * @see #unsetDependencyManagement()
+ * @see #getDependencyManagement()
+ * @generated
+ */
+ void setDependencyManagement(DependencyManagement value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getDependencyManagement
+ * <em>Dependency Management</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetDependencyManagement()
+ * @see #getDependencyManagement()
+ * @see #setDependencyManagement(DependencyManagement)
+ * @generated
+ */
+ void unsetDependencyManagement();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getDependencyManagement
+ * <em>Dependency Management</em>}' containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Dependency Management</em>' containment reference is set.
+ * @see #unsetDependencyManagement()
+ * @see #getDependencyManagement()
+ * @see #setDependencyManagement(DependencyManagement)
+ * @generated
+ */
+ boolean isSetDependencyManagement();
+
+ /**
+ * Returns the value of the '<em><b>Distribution Management</b></em>' containment reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Distribution information for a project that enables deployment
+ * of the site and artifacts to remote web servers and repositories respectively. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Distribution Management</em>' containment reference.
+ * @see #isSetDistributionManagement()
+ * @see #unsetDistributionManagement()
+ * @see #setDistributionManagement(DistributionManagement)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_DistributionManagement()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='distributionManagement' namespace='##targetNamespace'"
+ * @generated
+ */
+ DistributionManagement getDistributionManagement();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getDistributionManagement
+ * <em>Distribution Management</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Distribution Management</em>' containment reference.
+ * @see #isSetDistributionManagement()
+ * @see #unsetDistributionManagement()
+ * @see #getDistributionManagement()
+ * @generated
+ */
+ void setDistributionManagement(DistributionManagement value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getDistributionManagement
+ * <em>Distribution Management</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetDistributionManagement()
+ * @see #getDistributionManagement()
+ * @see #setDistributionManagement(DistributionManagement)
+ * @generated
+ */
+ void unsetDistributionManagement();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getDistributionManagement
+ * <em>Distribution Management</em>}' containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Distribution Management</em>' containment reference is set.
+ * @see #unsetDistributionManagement()
+ * @see #getDistributionManagement()
+ * @see #setDistributionManagement(DistributionManagement)
+ * @generated
+ */
+ boolean isSetDistributionManagement();
+
+ /**
+ * Returns the value of the '<em><b>Properties</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.PropertyElement}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Properties that can be used throughout the POM as a substitution, and are used as filters
+ * in resources if enabled. The format is &lt;code&gt;&amp;lt;name&amp;gt;value&amp;lt;/name&amp;gt;&lt;/code&gt;.
+ * <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Properties</em>' containment reference list.
+ * @see #isSetProperties()
+ * @see #unsetProperties()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Properties()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='properties' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<PropertyElement> getProperties();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getProperties <em>Properties</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetProperties()
+ * @see #getProperties()
+ * @generated
+ */
+ void unsetProperties();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Model#getProperties <em>Properties</em>}'
+ * containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Properties</em>' containment reference list is set.
+ * @see #unsetProperties()
+ * @see #getProperties()
+ * @generated
+ */
+ boolean isSetProperties();
+
+ /**
+ * Returns the value of the '<em><b>Modules</b></em>' attribute list. The list contents are of type
+ * {@link java.lang.String}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Modules</em>' attribute list isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Modules</em>' attribute list.
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getModel_Modules()
+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
+ * @generated
+ */
+ EList<String> getModules();
} // Model
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Notifier.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Notifier.java
index 509365ac..e535abb3 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Notifier.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Notifier.java
@@ -12,35 +12,23 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Notifier</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0
- *
- * Configures one method for notifying users/developers when a build breaks.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Notifier</b></em>'. <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Configures one method for notifying users/developers when a build breaks. <!--
+ * end-model-doc -->
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.m2e.model.edit.pom.Notifier#getType <em>Type</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnError <em>Send On
- * Error</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnFailure <em>Send On
- * Failure</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnSuccess <em>Send On
- * Success</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnWarning <em>Send On
- * Warning</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Notifier#getAddress <em>Address</em>}
- * </li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Notifier#getConfiguration <em>
- * Configuration</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnError <em>Send On Error</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnFailure <em>Send On Failure</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnSuccess <em>Send On Success</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnWarning <em>Send On Warning</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Notifier#getAddress <em>Address</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Notifier#getConfiguration <em> Configuration</em>}</li>
* </ul>
* </p>
*
@@ -49,381 +37,321 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Notifier extends EObject {
- /**
- * Returns the value of the '<em><b>Type</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The mechanism used to deliver notifications. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Type</em>' attribute.
- * @see #isSetType()
- * @see #unsetType()
- * @see #setType(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getNotifier_Type()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
- * extendedMetaData
- * ="kind='element' name='type' namespace='##targetNamespace'"
- * @generated
- */
- String getType();
+ /**
+ * Returns the value of the '<em><b>Type</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The mechanism used to deliver notifications. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Type</em>' attribute.
+ * @see #isSetType()
+ * @see #unsetType()
+ * @see #setType(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getNotifier_Type()
+ * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData
+ * ="kind='element' name='type' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getType();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getType <em>Type</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Type</em>' attribute.
- * @see #isSetType()
- * @see #unsetType()
- * @see #getType()
- * @generated
- */
- void setType(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getType <em>Type</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Type</em>' attribute.
+ * @see #isSetType()
+ * @see #unsetType()
+ * @see #getType()
+ * @generated
+ */
+ void setType(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getType <em>Type</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetType()
- * @see #getType()
- * @see #setType(String)
- * @generated
- */
- void unsetType();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getType <em>Type</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetType()
+ * @see #getType()
+ * @see #setType(String)
+ * @generated
+ */
+ void unsetType();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getType <em>Type</em>}'
- * attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Type</em>' attribute is set.
- * @see #unsetType()
- * @see #getType()
- * @see #setType(String)
- * @generated
- */
- boolean isSetType();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getType <em>Type</em>}' attribute
+ * is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Type</em>' attribute is set.
+ * @see #unsetType()
+ * @see #getType()
+ * @see #setType(String)
+ * @generated
+ */
+ boolean isSetType();
- /**
- * Returns the value of the '<em><b>Send On Error</b></em>' attribute. The
- * default value is <code>"true"</code>. <!-- begin-user-doc --> <!--
- * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Whether to send
- * notifications on error. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Send On Error</em>' attribute.
- * @see #isSetSendOnError()
- * @see #unsetSendOnError()
- * @see #setSendOnError(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getNotifier_SendOnError()
- * @model default="true" unsettable="true"
- * dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='sendOnError' namespace='##targetNamespace'"
- * @generated
- */
- String getSendOnError();
+ /**
+ * Returns the value of the '<em><b>Send On Error</b></em>' attribute. The default value is <code>"true"</code>. <!--
+ * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Whether to send notifications on error.
+ * <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Send On Error</em>' attribute.
+ * @see #isSetSendOnError()
+ * @see #unsetSendOnError()
+ * @see #setSendOnError(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getNotifier_SendOnError()
+ * @model default="true" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='sendOnError' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getSendOnError();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnError
- * <em>Send On Error</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Send On Error</em>' attribute.
- * @see #isSetSendOnError()
- * @see #unsetSendOnError()
- * @see #getSendOnError()
- * @generated
- */
- void setSendOnError(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnError <em>Send On Error</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Send On Error</em>' attribute.
+ * @see #isSetSendOnError()
+ * @see #unsetSendOnError()
+ * @see #getSendOnError()
+ * @generated
+ */
+ void setSendOnError(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnError
- * <em>Send On Error</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetSendOnError()
- * @see #getSendOnError()
- * @see #setSendOnError(String)
- * @generated
- */
- void unsetSendOnError();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnError <em>Send On Error</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetSendOnError()
+ * @see #getSendOnError()
+ * @see #setSendOnError(String)
+ * @generated
+ */
+ void unsetSendOnError();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnError
- * <em>Send On Error</em>}' attribute is set. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return whether the value of the '<em>Send On Error</em>' attribute is
- * set.
- * @see #unsetSendOnError()
- * @see #getSendOnError()
- * @see #setSendOnError(String)
- * @generated
- */
- boolean isSetSendOnError();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnError
+ * <em>Send On Error</em>}' attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Send On Error</em>' attribute is set.
+ * @see #unsetSendOnError()
+ * @see #getSendOnError()
+ * @see #setSendOnError(String)
+ * @generated
+ */
+ boolean isSetSendOnError();
- /**
- * Returns the value of the '<em><b>Send On Failure</b></em>' attribute. The
- * default value is <code>"true"</code>. <!-- begin-user-doc --> <!--
- * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Whether to send
- * notifications on failure. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Send On Failure</em>' attribute.
- * @see #isSetSendOnFailure()
- * @see #unsetSendOnFailure()
- * @see #setSendOnFailure(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getNotifier_SendOnFailure()
- * @model default="true" unsettable="true"
- * dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='sendOnFailure' namespace='##targetNamespace'"
- * @generated
- */
- String getSendOnFailure();
+ /**
+ * Returns the value of the '<em><b>Send On Failure</b></em>' attribute. The default value is <code>"true"</code>.
+ * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Whether to send notifications on
+ * failure. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Send On Failure</em>' attribute.
+ * @see #isSetSendOnFailure()
+ * @see #unsetSendOnFailure()
+ * @see #setSendOnFailure(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getNotifier_SendOnFailure()
+ * @model default="true" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='sendOnFailure' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getSendOnFailure();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnFailure
- * <em>Send On Failure</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Send On Failure</em>' attribute.
- * @see #isSetSendOnFailure()
- * @see #unsetSendOnFailure()
- * @see #getSendOnFailure()
- * @generated
- */
- void setSendOnFailure(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnFailure <em>Send On Failure</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Send On Failure</em>' attribute.
+ * @see #isSetSendOnFailure()
+ * @see #unsetSendOnFailure()
+ * @see #getSendOnFailure()
+ * @generated
+ */
+ void setSendOnFailure(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnFailure
- * <em>Send On Failure</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetSendOnFailure()
- * @see #getSendOnFailure()
- * @see #setSendOnFailure(String)
- * @generated
- */
- void unsetSendOnFailure();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnFailure <em>Send On Failure</em>}
+ * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetSendOnFailure()
+ * @see #getSendOnFailure()
+ * @see #setSendOnFailure(String)
+ * @generated
+ */
+ void unsetSendOnFailure();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnFailure
- * <em>Send On Failure</em>}' attribute is set. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return whether the value of the '<em>Send On Failure</em>' attribute is
- * set.
- * @see #unsetSendOnFailure()
- * @see #getSendOnFailure()
- * @see #setSendOnFailure(String)
- * @generated
- */
- boolean isSetSendOnFailure();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnFailure
+ * <em>Send On Failure</em>}' attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Send On Failure</em>' attribute is set.
+ * @see #unsetSendOnFailure()
+ * @see #getSendOnFailure()
+ * @see #setSendOnFailure(String)
+ * @generated
+ */
+ boolean isSetSendOnFailure();
- /**
- * Returns the value of the '<em><b>Send On Success</b></em>' attribute. The
- * default value is <code>"true"</code>. <!-- begin-user-doc --> <!--
- * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Whether to send
- * notifications on success. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Send On Success</em>' attribute.
- * @see #isSetSendOnSuccess()
- * @see #unsetSendOnSuccess()
- * @see #setSendOnSuccess(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getNotifier_SendOnSuccess()
- * @model default="true" unsettable="true"
- * dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='sendOnSuccess' namespace='##targetNamespace'"
- * @generated
- */
- String getSendOnSuccess();
+ /**
+ * Returns the value of the '<em><b>Send On Success</b></em>' attribute. The default value is <code>"true"</code>.
+ * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Whether to send notifications on
+ * success. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Send On Success</em>' attribute.
+ * @see #isSetSendOnSuccess()
+ * @see #unsetSendOnSuccess()
+ * @see #setSendOnSuccess(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getNotifier_SendOnSuccess()
+ * @model default="true" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='sendOnSuccess' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getSendOnSuccess();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnSuccess
- * <em>Send On Success</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Send On Success</em>' attribute.
- * @see #isSetSendOnSuccess()
- * @see #unsetSendOnSuccess()
- * @see #getSendOnSuccess()
- * @generated
- */
- void setSendOnSuccess(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnSuccess <em>Send On Success</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Send On Success</em>' attribute.
+ * @see #isSetSendOnSuccess()
+ * @see #unsetSendOnSuccess()
+ * @see #getSendOnSuccess()
+ * @generated
+ */
+ void setSendOnSuccess(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnSuccess
- * <em>Send On Success</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetSendOnSuccess()
- * @see #getSendOnSuccess()
- * @see #setSendOnSuccess(String)
- * @generated
- */
- void unsetSendOnSuccess();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnSuccess <em>Send On Success</em>}
+ * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetSendOnSuccess()
+ * @see #getSendOnSuccess()
+ * @see #setSendOnSuccess(String)
+ * @generated
+ */
+ void unsetSendOnSuccess();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnSuccess
- * <em>Send On Success</em>}' attribute is set. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return whether the value of the '<em>Send On Success</em>' attribute is
- * set.
- * @see #unsetSendOnSuccess()
- * @see #getSendOnSuccess()
- * @see #setSendOnSuccess(String)
- * @generated
- */
- boolean isSetSendOnSuccess();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnSuccess
+ * <em>Send On Success</em>}' attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Send On Success</em>' attribute is set.
+ * @see #unsetSendOnSuccess()
+ * @see #getSendOnSuccess()
+ * @see #setSendOnSuccess(String)
+ * @generated
+ */
+ boolean isSetSendOnSuccess();
- /**
- * Returns the value of the '<em><b>Send On Warning</b></em>' attribute. The
- * default value is <code>"true"</code>. <!-- begin-user-doc --> <!--
- * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Whether to send
- * notifications on warning. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Send On Warning</em>' attribute.
- * @see #isSetSendOnWarning()
- * @see #unsetSendOnWarning()
- * @see #setSendOnWarning(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getNotifier_SendOnWarning()
- * @model default="true" unsettable="true"
- * dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='sendOnWarning' namespace='##targetNamespace'"
- * @generated
- */
- String getSendOnWarning();
+ /**
+ * Returns the value of the '<em><b>Send On Warning</b></em>' attribute. The default value is <code>"true"</code>.
+ * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Whether to send notifications on
+ * warning. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Send On Warning</em>' attribute.
+ * @see #isSetSendOnWarning()
+ * @see #unsetSendOnWarning()
+ * @see #setSendOnWarning(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getNotifier_SendOnWarning()
+ * @model default="true" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='sendOnWarning' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getSendOnWarning();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnWarning
- * <em>Send On Warning</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Send On Warning</em>' attribute.
- * @see #isSetSendOnWarning()
- * @see #unsetSendOnWarning()
- * @see #getSendOnWarning()
- * @generated
- */
- void setSendOnWarning(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnWarning <em>Send On Warning</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Send On Warning</em>' attribute.
+ * @see #isSetSendOnWarning()
+ * @see #unsetSendOnWarning()
+ * @see #getSendOnWarning()
+ * @generated
+ */
+ void setSendOnWarning(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnWarning
- * <em>Send On Warning</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetSendOnWarning()
- * @see #getSendOnWarning()
- * @see #setSendOnWarning(String)
- * @generated
- */
- void unsetSendOnWarning();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnWarning <em>Send On Warning</em>}
+ * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetSendOnWarning()
+ * @see #getSendOnWarning()
+ * @see #setSendOnWarning(String)
+ * @generated
+ */
+ void unsetSendOnWarning();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnWarning
- * <em>Send On Warning</em>}' attribute is set. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return whether the value of the '<em>Send On Warning</em>' attribute is
- * set.
- * @see #unsetSendOnWarning()
- * @see #getSendOnWarning()
- * @see #setSendOnWarning(String)
- * @generated
- */
- boolean isSetSendOnWarning();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnWarning
+ * <em>Send On Warning</em>}' attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Send On Warning</em>' attribute is set.
+ * @see #unsetSendOnWarning()
+ * @see #getSendOnWarning()
+ * @see #setSendOnWarning(String)
+ * @generated
+ */
+ boolean isSetSendOnWarning();
- /**
- * Returns the value of the '<em><b>Address</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * &lt;b&gt;Deprecated&lt;/b&gt;. Where to send the notification to - eg
- * email address.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Address</em>' attribute.
- * @see #setAddress(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getNotifier_Address()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='address' namespace='##targetNamespace'"
- * @generated
- */
- String getAddress();
+ /**
+ * Returns the value of the '<em><b>Address</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 &lt;b&gt;Deprecated&lt;/b&gt;. Where to send the notification to - eg email address. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Address</em>' attribute.
+ * @see #setAddress(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getNotifier_Address()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='address' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getAddress();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getAddress <em>Address</em>}
- * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Address</em>' attribute.
- * @see #getAddress()
- * @generated
- */
- void setAddress(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getAddress <em>Address</em>} ' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Address</em>' attribute.
+ * @see #getAddress()
+ * @generated
+ */
+ void setAddress(String value);
- /**
- * Returns the value of the '<em><b>Configuration</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.PropertyElement}. <!-- begin-user-doc
- * -->
- * <p>
- * If the meaning of the '<em>Configuration</em>' containment reference list
- * isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Configuration</em>' containment reference
- * list.
- * @see #isSetConfiguration()
- * @see #unsetConfiguration()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getNotifier_Configuration()
- * @model containment="true" unsettable="true"
- * @generated
- */
- EList<PropertyElement> getConfiguration();
+ /**
+ * Returns the value of the '<em><b>Configuration</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.PropertyElement}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Configuration</em>' containment reference list isn't clear, there really should be more
+ * of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Configuration</em>' containment reference list.
+ * @see #isSetConfiguration()
+ * @see #unsetConfiguration()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getNotifier_Configuration()
+ * @model containment="true" unsettable="true"
+ * @generated
+ */
+ EList<PropertyElement> getConfiguration();
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getConfiguration
- * <em>Configuration</em>}' containment reference list. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #isSetConfiguration()
- * @see #getConfiguration()
- * @generated
- */
- void unsetConfiguration();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getConfiguration <em>Configuration</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetConfiguration()
+ * @see #getConfiguration()
+ * @generated
+ */
+ void unsetConfiguration();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier#getConfiguration
- * <em>Configuration</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Configuration</em>' containment
- * reference list is set.
- * @see #unsetConfiguration()
- * @see #getConfiguration()
- * @generated
- */
- boolean isSetConfiguration();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Notifier#getConfiguration
+ * <em>Configuration</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Configuration</em>' containment reference list is set.
+ * @see #unsetConfiguration()
+ * @see #getConfiguration()
+ * @generated
+ */
+ boolean isSetConfiguration();
} // Notifier
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Organization.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Organization.java
index 655f39b0..0faaf584 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Organization.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Organization.java
@@ -13,13 +13,10 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Organization</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 3.0.0+ Specifies the organization that produces this
- * project. <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Organization</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 3.0.0+ Specifies the organization that produces this project. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
@@ -33,56 +30,50 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Organization extends EObject {
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- * The full name of the organization. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getOrganization_Name()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='name' namespace='##targetNamespace'"
- * @generated
- */
- String getName();
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The full name of the organization. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getOrganization_Name()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='name' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getName();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Organization#getName <em>Name</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Organization#getName <em>Name</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
- /**
- * Returns the value of the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- * The URL to the organization's home page. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Url</em>' attribute.
- * @see #setUrl(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getOrganization_Url()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='url' namespace='##targetNamespace'"
- * @generated
- */
- String getUrl();
+ /**
+ * Returns the value of the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ The URL to the organization's home page. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Url</em>' attribute.
+ * @see #setUrl(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getOrganization_Url()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='url' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getUrl();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Organization#getUrl <em>Url</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Url</em>' attribute.
- * @see #getUrl()
- * @generated
- */
- void setUrl(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Organization#getUrl <em>Url</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Url</em>' attribute.
+ * @see #getUrl()
+ * @generated
+ */
+ void setUrl(String value);
} // Organization
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Parent.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Parent.java
index f98f5fe9..7df18711 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Parent.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Parent.java
@@ -13,21 +13,17 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Parent</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0 <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Parent</b></em>'. <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Parent#getArtifactId <em>Artifact Id
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Parent#getArtifactId <em>Artifact Id </em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Parent#getGroupId <em>Group Id</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Parent#getVersion <em>Version</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Parent#getRelativePath <em>Relative
- * Path</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Parent#getRelativePath <em>Relative Path</em>}</li>
* </ul>
* </p>
*
@@ -36,125 +32,103 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Parent extends EObject {
- /**
- * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The artifact id of the parent project to inherit from. <!-- end-model-doc
- * -->
- *
- * @return the value of the '<em>Artifact Id</em>' attribute.
- * @see #setArtifactId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getParent_ArtifactId()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='artifactId' namespace='##targetNamespace'"
- * @generated
- */
- String getArtifactId();
+ /**
+ * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 The artifact id of the parent project to inherit from. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Artifact Id</em>' attribute.
+ * @see #setArtifactId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getParent_ArtifactId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='artifactId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getArtifactId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Parent#getArtifactId
- * <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Artifact Id</em>' attribute.
- * @see #getArtifactId()
- * @generated
- */
- void setArtifactId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Parent#getArtifactId <em>Artifact Id</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Artifact Id</em>' attribute.
+ * @see #getArtifactId()
+ * @generated
+ */
+ void setArtifactId(String value);
- /**
- * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The group id of the parent project to inherit from. <!-- end-model-doc
- * -->
- *
- * @return the value of the '<em>Group Id</em>' attribute.
- * @see #setGroupId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getParent_GroupId()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='groupId' namespace='##targetNamespace'"
- * @generated
- */
- String getGroupId();
+ /**
+ * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The group id of the parent project to inherit from. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Group Id</em>' attribute.
+ * @see #setGroupId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getParent_GroupId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='groupId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getGroupId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Parent#getGroupId <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Group Id</em>' attribute.
- * @see #getGroupId()
- * @generated
- */
- void setGroupId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Parent#getGroupId <em>Group Id</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Group Id</em>' attribute.
+ * @see #getGroupId()
+ * @generated
+ */
+ void setGroupId(String value);
- /**
- * Returns the value of the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The version of the parent project to inherit. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Version</em>' attribute.
- * @see #setVersion(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getParent_Version()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='version' namespace='##targetNamespace'"
- * @generated
- */
- String getVersion();
+ /**
+ * Returns the value of the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The version of the parent project to inherit. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Version</em>' attribute.
+ * @see #setVersion(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getParent_Version()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='version' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getVersion();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Parent#getVersion <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Version</em>' attribute.
- * @see #getVersion()
- * @generated
- */
- void setVersion(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Parent#getVersion <em>Version</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Version</em>' attribute.
+ * @see #getVersion()
+ * @generated
+ */
+ void setVersion(String value);
- /**
- * Returns the value of the '<em><b>Relative Path</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The relative path of the parent &lt;code&gt;pom.xml&lt;/code&gt; file
- * within the check out. The default value is
- * &lt;code&gt;../pom.xml&lt;/code&gt;. Maven looks for the parent pom first
- * in the reactor of currently building projects, then in this location on
- * the filesystem, then the local repository, and lastly in the remote repo.
- * &lt;code&gt;relativePath&lt;/code&gt; allows you to select a different
- * location, for example when your structure is flat, or deeper without an
- * intermediate parent pom. However, the group ID, artifact ID and version
- * are still required, and must match the file in the location given or it
- * will revert to the repository for the POM. This feature is only for
- * enhancing the development in a local checkout of that project.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Relative Path</em>' attribute.
- * @see #setRelativePath(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getParent_RelativePath()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='relativePath' namespace='##targetNamespace'"
- * @generated
- */
- String getRelativePath();
+ /**
+ * Returns the value of the '<em><b>Relative Path</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 The relative path of the parent &lt;code&gt;pom.xml&lt;/code&gt; file within the
+ * check out. The default value is &lt;code&gt;../pom.xml&lt;/code&gt;. Maven looks for the parent pom first in the
+ * reactor of currently building projects, then in this location on the filesystem, then the local repository, and
+ * lastly in the remote repo. &lt;code&gt;relativePath&lt;/code&gt; allows you to select a different location, for
+ * example when your structure is flat, or deeper without an intermediate parent pom. However, the group ID, artifact
+ * ID and version are still required, and must match the file in the location given or it will revert to the
+ * repository for the POM. This feature is only for enhancing the development in a local checkout of that project.
+ * <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Relative Path</em>' attribute.
+ * @see #setRelativePath(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getParent_RelativePath()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='relativePath' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getRelativePath();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Parent#getRelativePath
- * <em>Relative Path</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Relative Path</em>' attribute.
- * @see #getRelativePath()
- * @generated
- */
- void setRelativePath(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Parent#getRelativePath <em>Relative Path</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Relative Path</em>' attribute.
+ * @see #getRelativePath()
+ * @generated
+ */
+ void setRelativePath(String value);
} // Parent
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Plugin.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Plugin.java
index d12c5444..c81d233e 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Plugin.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Plugin.java
@@ -12,32 +12,23 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Plugin</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0 <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Plugin</b></em>'. <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.m2e.model.edit.pom.Plugin#getGroupId <em>Group Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Plugin#getArtifactId <em>Artifact Id
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Plugin#getArtifactId <em>Artifact Id </em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Plugin#getVersion <em>Version</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Plugin#getExtensions <em>Extensions
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Plugin#getExecutions <em>Executions
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Plugin#getDependencies <em>
- * Dependencies</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Plugin#getInherited <em>Inherited
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Plugin#getConfiguration <em>
- * Configuration</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Plugin#getExtensions <em>Extensions </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Plugin#getExecutions <em>Executions </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Plugin#getDependencies <em> Dependencies</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Plugin#getInherited <em>Inherited </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Plugin#getConfiguration <em> Configuration</em>}</li>
* </ul>
* </p>
*
@@ -46,325 +37,275 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Plugin extends EObject {
- /**
- * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The group ID of the plugin in the repository. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Group Id</em>' attribute.
- * @see #isSetGroupId()
- * @see #unsetGroupId()
- * @see #setGroupId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_GroupId()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
- * extendedMetaData
- * ="kind='element' name='groupId' namespace='##targetNamespace'"
- * @generated
- */
- String getGroupId();
+ /**
+ * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The group ID of the plugin in the repository. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Group Id</em>' attribute.
+ * @see #isSetGroupId()
+ * @see #unsetGroupId()
+ * @see #setGroupId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_GroupId()
+ * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData
+ * ="kind='element' name='groupId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getGroupId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin#getGroupId <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Group Id</em>' attribute.
- * @see #isSetGroupId()
- * @see #unsetGroupId()
- * @see #getGroupId()
- * @generated
- */
- void setGroupId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Plugin#getGroupId <em>Group Id</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Group Id</em>' attribute.
+ * @see #isSetGroupId()
+ * @see #unsetGroupId()
+ * @see #getGroupId()
+ * @generated
+ */
+ void setGroupId(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin#getGroupId <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetGroupId()
- * @see #getGroupId()
- * @see #setGroupId(String)
- * @generated
- */
- void unsetGroupId();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Plugin#getGroupId <em>Group Id</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetGroupId()
+ * @see #getGroupId()
+ * @see #setGroupId(String)
+ * @generated
+ */
+ void unsetGroupId();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin#getGroupId <em>Group Id</em>}'
- * attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Group Id</em>' attribute is set.
- * @see #unsetGroupId()
- * @see #getGroupId()
- * @see #setGroupId(String)
- * @generated
- */
- boolean isSetGroupId();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Plugin#getGroupId <em>Group Id</em>}'
+ * attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Group Id</em>' attribute is set.
+ * @see #unsetGroupId()
+ * @see #getGroupId()
+ * @see #setGroupId(String)
+ * @generated
+ */
+ boolean isSetGroupId();
- /**
- * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The artifact ID of the plugin in the repository. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Artifact Id</em>' attribute.
- * @see #setArtifactId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_ArtifactId()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='artifactId' namespace='##targetNamespace'"
- * @generated
- */
- String getArtifactId();
+ /**
+ * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 The artifact ID of the plugin in the repository. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Artifact Id</em>' attribute.
+ * @see #setArtifactId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_ArtifactId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='artifactId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getArtifactId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin#getArtifactId
- * <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Artifact Id</em>' attribute.
- * @see #getArtifactId()
- * @generated
- */
- void setArtifactId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Plugin#getArtifactId <em>Artifact Id</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Artifact Id</em>' attribute.
+ * @see #getArtifactId()
+ * @generated
+ */
+ void setArtifactId(String value);
- /**
- * Returns the value of the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The version (or valid range of verisons) of the plugin to be used. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Version</em>' attribute.
- * @see #setVersion(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_Version()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='version' namespace='##targetNamespace'"
- * @generated
- */
- String getVersion();
+ /**
+ * Returns the value of the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The version (or valid range of verisons) of the plugin to be used. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Version</em>' attribute.
+ * @see #setVersion(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_Version()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='version' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getVersion();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin#getVersion <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Version</em>' attribute.
- * @see #getVersion()
- * @generated
- */
- void setVersion(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Plugin#getVersion <em>Version</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Version</em>' attribute.
+ * @see #getVersion()
+ * @generated
+ */
+ void setVersion(String value);
- /**
- * Returns the value of the '<em><b>Extensions</b></em>' attribute. The
- * default value is <code>"false"</code>. <!-- begin-user-doc --> <!--
- * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Whether to load Maven
- * extensions (such as packaging and type handlers) from this plugin. For
- * performance reasons, this should only be enabled when necessary. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Extensions</em>' attribute.
- * @see #isSetExtensions()
- * @see #unsetExtensions()
- * @see #setExtensions(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_Extensions()
- * @model default="false" unsettable="true"
- * dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='extensions' namespace='##targetNamespace'"
- * @generated
- */
- String getExtensions();
+ /**
+ * Returns the value of the '<em><b>Extensions</b></em>' attribute. The default value is <code>"false"</code>. <!--
+ * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Whether to load Maven extensions (such as
+ * packaging and type handlers) from this plugin. For performance reasons, this should only be enabled when necessary.
+ * <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Extensions</em>' attribute.
+ * @see #isSetExtensions()
+ * @see #unsetExtensions()
+ * @see #setExtensions(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_Extensions()
+ * @model default="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='extensions' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getExtensions();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin#getExtensions
- * <em>Extensions</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Extensions</em>' attribute.
- * @see #isSetExtensions()
- * @see #unsetExtensions()
- * @see #getExtensions()
- * @generated
- */
- void setExtensions(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Plugin#getExtensions <em>Extensions</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Extensions</em>' attribute.
+ * @see #isSetExtensions()
+ * @see #unsetExtensions()
+ * @see #getExtensions()
+ * @generated
+ */
+ void setExtensions(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin#getExtensions
- * <em>Extensions</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetExtensions()
- * @see #getExtensions()
- * @see #setExtensions(String)
- * @generated
- */
- void unsetExtensions();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Plugin#getExtensions <em>Extensions</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetExtensions()
+ * @see #getExtensions()
+ * @see #setExtensions(String)
+ * @generated
+ */
+ void unsetExtensions();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin#getExtensions
- * <em>Extensions</em>}' attribute is set. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return whether the value of the '<em>Extensions</em>' attribute is set.
- * @see #unsetExtensions()
- * @see #getExtensions()
- * @see #setExtensions(String)
- * @generated
- */
- boolean isSetExtensions();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Plugin#getExtensions <em>Extensions</em>}'
+ * attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Extensions</em>' attribute is set.
+ * @see #unsetExtensions()
+ * @see #getExtensions()
+ * @see #setExtensions(String)
+ * @generated
+ */
+ boolean isSetExtensions();
- /**
- * Returns the value of the '<em><b>Executions</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.PluginExecution}. <!-- begin-user-doc
- * --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Multiple
- * specifications of a set of goals to execute during the build lifecycle,
- * each having (possibly) different configuration. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Executions</em>' containment reference
- * list.
- * @see #isSetExecutions()
- * @see #unsetExecutions()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_Executions()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='executions' namespace='##targetNamespace'"
- * @generated
- */
- EList<PluginExecution> getExecutions();
+ /**
+ * Returns the value of the '<em><b>Executions</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.PluginExecution}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Multiple specifications of a set of goals to execute during the build lifecycle, each
+ * having (possibly) different configuration. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Executions</em>' containment reference list.
+ * @see #isSetExecutions()
+ * @see #unsetExecutions()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_Executions()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='executions' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<PluginExecution> getExecutions();
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin#getExecutions
- * <em>Executions</em>}' containment reference list. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isSetExecutions()
- * @see #getExecutions()
- * @generated
- */
- void unsetExecutions();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Plugin#getExecutions <em>Executions</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetExecutions()
+ * @see #getExecutions()
+ * @generated
+ */
+ void unsetExecutions();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin#getExecutions
- * <em>Executions</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Executions</em>' containment
- * reference list is set.
- * @see #unsetExecutions()
- * @see #getExecutions()
- * @generated
- */
- boolean isSetExecutions();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Plugin#getExecutions <em>Executions</em>}'
+ * containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Executions</em>' containment reference list is set.
+ * @see #unsetExecutions()
+ * @see #getExecutions()
+ * @generated
+ */
+ boolean isSetExecutions();
- /**
- * Returns the value of the '<em><b>Dependencies</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Dependency}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Additional
- * dependencies that this project needs to introduce to the plugin's
- * classloader. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Dependencies</em>' containment reference
- * list.
- * @see #isSetDependencies()
- * @see #unsetDependencies()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_Dependencies()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='dependencies' namespace='##targetNamespace'"
- * @generated
- */
- EList<Dependency> getDependencies();
+ /**
+ * Returns the value of the '<em><b>Dependencies</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Dependency}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Additional dependencies that this project needs to introduce to the plugin's classloader.
+ * <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Dependencies</em>' containment reference list.
+ * @see #isSetDependencies()
+ * @see #unsetDependencies()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_Dependencies()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='dependencies' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Dependency> getDependencies();
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin#getDependencies
- * <em>Dependencies</em>}' containment reference list. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #isSetDependencies()
- * @see #getDependencies()
- * @generated
- */
- void unsetDependencies();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Plugin#getDependencies <em>Dependencies</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetDependencies()
+ * @see #getDependencies()
+ * @generated
+ */
+ void unsetDependencies();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin#getDependencies
- * <em>Dependencies</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Dependencies</em>' containment
- * reference list is set.
- * @see #unsetDependencies()
- * @see #getDependencies()
- * @generated
- */
- boolean isSetDependencies();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Plugin#getDependencies
+ * <em>Dependencies</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Dependencies</em>' containment reference list is set.
+ * @see #unsetDependencies()
+ * @see #getDependencies()
+ * @generated
+ */
+ boolean isSetDependencies();
- /**
- * Returns the value of the '<em><b>Inherited</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * Whether any configuration should be propagated to child POMs. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Inherited</em>' attribute.
- * @see #setInherited(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_Inherited()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='inherited' namespace='##targetNamespace'"
- * @generated
- */
- String getInherited();
+ /**
+ * Returns the value of the '<em><b>Inherited</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Whether any configuration should be propagated to child POMs. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Inherited</em>' attribute.
+ * @see #setInherited(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_Inherited()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='inherited' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getInherited();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin#getInherited
- * <em>Inherited</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Inherited</em>' attribute.
- * @see #getInherited()
- * @generated
- */
- void setInherited(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Plugin#getInherited <em>Inherited</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Inherited</em>' attribute.
+ * @see #getInherited()
+ * @generated
+ */
+ void setInherited(String value);
- /**
- * Returns the value of the '<em><b>Configuration</b></em>' reference. <!--
- * begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Configuration</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Configuration</em>' reference.
- * @see #setConfiguration(Configuration)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_Configuration()
- * @model
- * @generated
- */
- Configuration getConfiguration();
+ /**
+ * Returns the value of the '<em><b>Configuration</b></em>' reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Configuration</em>' reference isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Configuration</em>' reference.
+ * @see #setConfiguration(Configuration)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPlugin_Configuration()
+ * @model
+ * @generated
+ */
+ Configuration getConfiguration();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin#getConfiguration
- * <em>Configuration</em>}' reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Configuration</em>' reference.
- * @see #getConfiguration()
- * @generated
- */
- void setConfiguration(Configuration value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Plugin#getConfiguration <em>Configuration</em>}'
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Configuration</em>' reference.
+ * @see #getConfiguration()
+ * @generated
+ */
+ void setConfiguration(Configuration value);
} // Plugin
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PluginExecution.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PluginExecution.java
index bd9ee962..d04eb425 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PluginExecution.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PluginExecution.java
@@ -12,27 +12,20 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Plugin Execution</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0 <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Plugin Execution</b></em>'. <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 4.0.0 <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getId <em>Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getPhase <em>Phase
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getInherited <em>
- * Inherited</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getGoals <em>Goals
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getConfiguration <em>
- * Configuration</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getPhase <em>Phase </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getInherited <em> Inherited</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getGoals <em>Goals </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getConfiguration <em> Configuration</em>}</li>
* </ul>
* </p>
*
@@ -41,165 +34,144 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface PluginExecution extends EObject {
- /**
- * Returns the value of the '<em><b>Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The identifier of this execution for labelling the goals during the
- * build, and for matching exections to merge during inheritance. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Id</em>' attribute.
- * @see #isSetId()
- * @see #unsetId()
- * @see #setId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPluginExecution_Id()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
- * extendedMetaData
- * ="kind='element' name='id' namespace='##targetNamespace'"
- * @generated
- */
- String getId();
+ /**
+ * Returns the value of the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The identifier of this execution for labelling the goals during the build, and for
+ * matching exections to merge during inheritance. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Id</em>' attribute.
+ * @see #isSetId()
+ * @see #unsetId()
+ * @see #setId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPluginExecution_Id()
+ * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData
+ * ="kind='element' name='id' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.PluginExecution#getId <em>Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Id</em>' attribute.
- * @see #isSetId()
- * @see #unsetId()
- * @see #getId()
- * @generated
- */
- void setId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.PluginExecution#getId <em>Id</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Id</em>' attribute.
+ * @see #isSetId()
+ * @see #unsetId()
+ * @see #getId()
+ * @generated
+ */
+ void setId(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.PluginExecution#getId <em>Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetId()
- * @see #getId()
- * @see #setId(String)
- * @generated
- */
- void unsetId();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.PluginExecution#getId <em>Id</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetId()
+ * @see #getId()
+ * @see #setId(String)
+ * @generated
+ */
+ void unsetId();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.PluginExecution#getId <em>Id</em>}'
- * attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Id</em>' attribute is set.
- * @see #unsetId()
- * @see #getId()
- * @see #setId(String)
- * @generated
- */
- boolean isSetId();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.PluginExecution#getId <em>Id</em>}'
+ * attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Id</em>' attribute is set.
+ * @see #unsetId()
+ * @see #getId()
+ * @see #setId(String)
+ * @generated
+ */
+ boolean isSetId();
- /**
- * Returns the value of the '<em><b>Phase</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The build lifecycle phase to bind the goals in this execution to. If
- * omitted, the goals will be bound to the default specified in their
- * metadata. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Phase</em>' attribute.
- * @see #setPhase(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPluginExecution_Phase()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='phase' namespace='##targetNamespace'"
- * @generated
- */
- String getPhase();
+ /**
+ * Returns the value of the '<em><b>Phase</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The build lifecycle phase to bind the goals in this execution to. If omitted, the goals
+ * will be bound to the default specified in their metadata. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Phase</em>' attribute.
+ * @see #setPhase(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPluginExecution_Phase()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='phase' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getPhase();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.PluginExecution#getPhase
- * <em>Phase</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Phase</em>' attribute.
- * @see #getPhase()
- * @generated
- */
- void setPhase(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.PluginExecution#getPhase <em>Phase</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Phase</em>' attribute.
+ * @see #getPhase()
+ * @generated
+ */
+ void setPhase(String value);
- /**
- * Returns the value of the '<em><b>Inherited</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * Whether any configuration should be propagated to child POMs. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Inherited</em>' attribute.
- * @see #setInherited(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPluginExecution_Inherited()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='inherited' namespace='##targetNamespace'"
- * @generated
- */
- String getInherited();
+ /**
+ * Returns the value of the '<em><b>Inherited</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Whether any configuration should be propagated to child POMs. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Inherited</em>' attribute.
+ * @see #setInherited(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPluginExecution_Inherited()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='inherited' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getInherited();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.PluginExecution#getInherited
- * <em>Inherited</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Inherited</em>' attribute.
- * @see #getInherited()
- * @generated
- */
- void setInherited(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.PluginExecution#getInherited <em>Inherited</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Inherited</em>' attribute.
+ * @see #getInherited()
+ * @generated
+ */
+ void setInherited(String value);
- /**
- * Returns the value of the '<em><b>Goals</b></em>' attribute list. The list
- * contents are of type {@link java.lang.String}. <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Goals</em>' attribute list isn't clear, there
- * really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Goals</em>' attribute list.
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPluginExecution_Goals()
- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
- * @generated
- */
- EList<String> getGoals();
+ /**
+ * Returns the value of the '<em><b>Goals</b></em>' attribute list. The list contents are of type
+ * {@link java.lang.String}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Goals</em>' attribute list isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Goals</em>' attribute list.
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPluginExecution_Goals()
+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
+ * @generated
+ */
+ EList<String> getGoals();
- /**
- * Returns the value of the '<em><b>Configuration</b></em>' reference. <!--
- * begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Configuration</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Configuration</em>' reference.
- * @see #setConfiguration(Configuration)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPluginExecution_Configuration()
- * @model
- * @generated
- */
- Configuration getConfiguration();
+ /**
+ * Returns the value of the '<em><b>Configuration</b></em>' reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Configuration</em>' reference isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Configuration</em>' reference.
+ * @see #setConfiguration(Configuration)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPluginExecution_Configuration()
+ * @model
+ * @generated
+ */
+ Configuration getConfiguration();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.PluginExecution#getConfiguration
- * <em>Configuration</em>}' reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Configuration</em>' reference.
- * @see #getConfiguration()
- * @generated
- */
- void setConfiguration(Configuration value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.PluginExecution#getConfiguration
+ * <em>Configuration</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Configuration</em>' reference.
+ * @see #getConfiguration()
+ * @generated
+ */
+ void setConfiguration(Configuration value);
} // PluginExecution
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PluginManagement.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PluginManagement.java
index 0986847c..8bd2f034 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PluginManagement.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PluginManagement.java
@@ -12,25 +12,17 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Plugin Management</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0
- *
- * Section for management of default plugin information for use in a group of
- * POMs.
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Plugin Management</b></em>'. <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 4.0.0 Section for management of default plugin information for use in a group of POMs.
* <!-- end-model-doc -->
- *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.PluginManagement#getPlugins <em>
- * Plugins</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.PluginManagement#getPlugins <em> Plugins</em>}</li>
* </ul>
* </p>
*
@@ -39,22 +31,16 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface PluginManagement extends EObject {
- /**
- * Returns the value of the '<em><b>Plugins</b></em>' containment reference
- * list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Plugin}. <!-- begin-user-doc --> <!--
- * end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The list of plugins to use.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Plugins</em>' containment reference list.
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPluginManagement_Plugins()
- * @model containment="true" extendedMetaData=
- * "kind='element' name='plugins' namespace='##targetNamespace'"
- * @generated
- */
- EList<Plugin> getPlugins();
+ /**
+ * Returns the value of the '<em><b>Plugins</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Plugin}. <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc
+ * --> 4.0.0 The list of plugins to use. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Plugins</em>' containment reference list.
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPluginManagement_Plugins()
+ * @model containment="true" extendedMetaData= "kind='element' name='plugins' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Plugin> getPlugins();
} // PluginManagement
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PomFactory.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PomFactory.java
index f5604704..9cc950d0 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PomFactory.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PomFactory.java
@@ -13,381 +13,340 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EFactory;
+
/**
- * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a
- * create method for each non-abstract class of the model. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a create method for each non-abstract class of
+ * the model. <!-- end-user-doc -->
*
* @see org.eclipse.m2e.model.edit.pom.PomPackage
* @generated
*/
public interface PomFactory extends EFactory {
- /**
- * The singleton instance of the factory. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- PomFactory eINSTANCE = org.eclipse.m2e.model.edit.pom.impl.PomFactoryImpl
- .init();
-
- /**
- * Returns a new object of class '<em>Activation</em>'. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Activation</em>'.
- * @generated
- */
- Activation createActivation();
-
- /**
- * Returns a new object of class '<em>Activation File</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Activation File</em>'.
- * @generated
- */
- ActivationFile createActivationFile();
-
- /**
- * Returns a new object of class '<em>Activation OS</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Activation OS</em>'.
- * @generated
- */
- ActivationOS createActivationOS();
-
- /**
- * Returns a new object of class '<em>Activation Property</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Activation Property</em>'.
- * @generated
- */
- ActivationProperty createActivationProperty();
-
- /**
- * Returns a new object of class '<em>Build</em>'. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Build</em>'.
- * @generated
- */
- Build createBuild();
-
- /**
- * Returns a new object of class '<em>Build Base</em>'. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Build Base</em>'.
- * @generated
- */
- BuildBase createBuildBase();
-
- /**
- * Returns a new object of class '<em>Ci Management</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Ci Management</em>'.
- * @generated
- */
- CiManagement createCiManagement();
-
- /**
- * Returns a new object of class '<em>Contributor</em>'. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Contributor</em>'.
- * @generated
- */
- Contributor createContributor();
-
- /**
- * Returns a new object of class '<em>Dependency</em>'. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Dependency</em>'.
- * @generated
- */
- Dependency createDependency();
-
- /**
- * Returns a new object of class '<em>Dependency Management</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Dependency Management</em>'.
- * @generated
- */
- DependencyManagement createDependencyManagement();
-
- /**
- * Returns a new object of class '<em>Deployment Repository</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Deployment Repository</em>'.
- * @generated
- */
- DeploymentRepository createDeploymentRepository();
-
- /**
- * Returns a new object of class '<em>Developer</em>'. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Developer</em>'.
- * @generated
- */
- Developer createDeveloper();
-
- /**
- * Returns a new object of class '<em>Distribution Management</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Distribution Management</em>'.
- * @generated
- */
- DistributionManagement createDistributionManagement();
-
- /**
- * Returns a new object of class '<em>Document Root</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Document Root</em>'.
- * @generated
- */
- DocumentRoot createDocumentRoot();
-
- /**
- * Returns a new object of class '<em>Exclusion</em>'. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Exclusion</em>'.
- * @generated
- */
- Exclusion createExclusion();
-
- /**
- * Returns a new object of class '<em>Extension</em>'. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Extension</em>'.
- * @generated
- */
- Extension createExtension();
-
- /**
- * Returns a new object of class '<em>Issue Management</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Issue Management</em>'.
- * @generated
- */
- IssueManagement createIssueManagement();
-
- /**
- * Returns a new object of class '<em>License</em>'. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>License</em>'.
- * @generated
- */
- License createLicense();
-
- /**
- * Returns a new object of class '<em>Mailing List</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Mailing List</em>'.
- * @generated
- */
- MailingList createMailingList();
-
- /**
- * Returns a new object of class '<em>Model</em>'. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Model</em>'.
- * @generated
- */
- Model createModel();
-
- /**
- * Returns a new object of class '<em>Notifier</em>'. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Notifier</em>'.
- * @generated
- */
- Notifier createNotifier();
-
- /**
- * Returns a new object of class '<em>Organization</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Organization</em>'.
- * @generated
- */
- Organization createOrganization();
-
- /**
- * Returns a new object of class '<em>Parent</em>'. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Parent</em>'.
- * @generated
- */
- Parent createParent();
-
- /**
- * Returns a new object of class '<em>Plugin</em>'. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Plugin</em>'.
- * @generated
- */
- Plugin createPlugin();
-
- /**
- * Returns a new object of class '<em>Plugin Execution</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Plugin Execution</em>'.
- * @generated
- */
- PluginExecution createPluginExecution();
-
- /**
- * Returns a new object of class '<em>Plugin Management</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Plugin Management</em>'.
- * @generated
- */
- PluginManagement createPluginManagement();
-
- /**
- * Returns a new object of class '<em>Prerequisites</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Prerequisites</em>'.
- * @generated
- */
- Prerequisites createPrerequisites();
-
- /**
- * Returns a new object of class '<em>Profile</em>'. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Profile</em>'.
- * @generated
- */
- Profile createProfile();
-
- /**
- * Returns a new object of class '<em>Relocation</em>'. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Relocation</em>'.
- * @generated
- */
- Relocation createRelocation();
-
- /**
- * Returns a new object of class '<em>Reporting</em>'. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Reporting</em>'.
- * @generated
- */
- Reporting createReporting();
-
- /**
- * Returns a new object of class '<em>Report Plugin</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Report Plugin</em>'.
- * @generated
- */
- ReportPlugin createReportPlugin();
-
- /**
- * Returns a new object of class '<em>Report Set</em>'. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Report Set</em>'.
- * @generated
- */
- ReportSet createReportSet();
-
- /**
- * Returns a new object of class '<em>Repository</em>'. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Repository</em>'.
- * @generated
- */
- Repository createRepository();
-
- /**
- * Returns a new object of class '<em>Repository Policy</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Repository Policy</em>'.
- * @generated
- */
- RepositoryPolicy createRepositoryPolicy();
-
- /**
- * Returns a new object of class '<em>Resource</em>'. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Resource</em>'.
- * @generated
- */
- Resource createResource();
-
- /**
- * Returns a new object of class '<em>Scm</em>'. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Scm</em>'.
- * @generated
- */
- Scm createScm();
-
- /**
- * Returns a new object of class '<em>Site</em>'. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Site</em>'.
- * @generated
- */
- Site createSite();
-
- /**
- * Returns a new object of class '<em>Property Element</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Property Element</em>'.
- * @generated
- */
- PropertyElement createPropertyElement();
-
- /**
- * Returns a new object of class '<em>Configuration</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Configuration</em>'.
- * @generated
- */
- Configuration createConfiguration();
-
- /**
- * Returns the package supported by this factory. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the package supported by this factory.
- * @generated
- */
- PomPackage getPomPackage();
+ /**
+ * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ PomFactory eINSTANCE = org.eclipse.m2e.model.edit.pom.impl.PomFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Activation</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Activation</em>'.
+ * @generated
+ */
+ Activation createActivation();
+
+ /**
+ * Returns a new object of class '<em>Activation File</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Activation File</em>'.
+ * @generated
+ */
+ ActivationFile createActivationFile();
+
+ /**
+ * Returns a new object of class '<em>Activation OS</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Activation OS</em>'.
+ * @generated
+ */
+ ActivationOS createActivationOS();
+
+ /**
+ * Returns a new object of class '<em>Activation Property</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Activation Property</em>'.
+ * @generated
+ */
+ ActivationProperty createActivationProperty();
+
+ /**
+ * Returns a new object of class '<em>Build</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Build</em>'.
+ * @generated
+ */
+ Build createBuild();
+
+ /**
+ * Returns a new object of class '<em>Build Base</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Build Base</em>'.
+ * @generated
+ */
+ BuildBase createBuildBase();
+
+ /**
+ * Returns a new object of class '<em>Ci Management</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Ci Management</em>'.
+ * @generated
+ */
+ CiManagement createCiManagement();
+
+ /**
+ * Returns a new object of class '<em>Contributor</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Contributor</em>'.
+ * @generated
+ */
+ Contributor createContributor();
+
+ /**
+ * Returns a new object of class '<em>Dependency</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Dependency</em>'.
+ * @generated
+ */
+ Dependency createDependency();
+
+ /**
+ * Returns a new object of class '<em>Dependency Management</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Dependency Management</em>'.
+ * @generated
+ */
+ DependencyManagement createDependencyManagement();
+
+ /**
+ * Returns a new object of class '<em>Deployment Repository</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Deployment Repository</em>'.
+ * @generated
+ */
+ DeploymentRepository createDeploymentRepository();
+
+ /**
+ * Returns a new object of class '<em>Developer</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Developer</em>'.
+ * @generated
+ */
+ Developer createDeveloper();
+
+ /**
+ * Returns a new object of class '<em>Distribution Management</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Distribution Management</em>'.
+ * @generated
+ */
+ DistributionManagement createDistributionManagement();
+
+ /**
+ * Returns a new object of class '<em>Document Root</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Document Root</em>'.
+ * @generated
+ */
+ DocumentRoot createDocumentRoot();
+
+ /**
+ * Returns a new object of class '<em>Exclusion</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Exclusion</em>'.
+ * @generated
+ */
+ Exclusion createExclusion();
+
+ /**
+ * Returns a new object of class '<em>Extension</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Extension</em>'.
+ * @generated
+ */
+ Extension createExtension();
+
+ /**
+ * Returns a new object of class '<em>Issue Management</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Issue Management</em>'.
+ * @generated
+ */
+ IssueManagement createIssueManagement();
+
+ /**
+ * Returns a new object of class '<em>License</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>License</em>'.
+ * @generated
+ */
+ License createLicense();
+
+ /**
+ * Returns a new object of class '<em>Mailing List</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Mailing List</em>'.
+ * @generated
+ */
+ MailingList createMailingList();
+
+ /**
+ * Returns a new object of class '<em>Model</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Model</em>'.
+ * @generated
+ */
+ Model createModel();
+
+ /**
+ * Returns a new object of class '<em>Notifier</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Notifier</em>'.
+ * @generated
+ */
+ Notifier createNotifier();
+
+ /**
+ * Returns a new object of class '<em>Organization</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Organization</em>'.
+ * @generated
+ */
+ Organization createOrganization();
+
+ /**
+ * Returns a new object of class '<em>Parent</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Parent</em>'.
+ * @generated
+ */
+ Parent createParent();
+
+ /**
+ * Returns a new object of class '<em>Plugin</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Plugin</em>'.
+ * @generated
+ */
+ Plugin createPlugin();
+
+ /**
+ * Returns a new object of class '<em>Plugin Execution</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Plugin Execution</em>'.
+ * @generated
+ */
+ PluginExecution createPluginExecution();
+
+ /**
+ * Returns a new object of class '<em>Plugin Management</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Plugin Management</em>'.
+ * @generated
+ */
+ PluginManagement createPluginManagement();
+
+ /**
+ * Returns a new object of class '<em>Prerequisites</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Prerequisites</em>'.
+ * @generated
+ */
+ Prerequisites createPrerequisites();
+
+ /**
+ * Returns a new object of class '<em>Profile</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Profile</em>'.
+ * @generated
+ */
+ Profile createProfile();
+
+ /**
+ * Returns a new object of class '<em>Relocation</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Relocation</em>'.
+ * @generated
+ */
+ Relocation createRelocation();
+
+ /**
+ * Returns a new object of class '<em>Reporting</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Reporting</em>'.
+ * @generated
+ */
+ Reporting createReporting();
+
+ /**
+ * Returns a new object of class '<em>Report Plugin</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Report Plugin</em>'.
+ * @generated
+ */
+ ReportPlugin createReportPlugin();
+
+ /**
+ * Returns a new object of class '<em>Report Set</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Report Set</em>'.
+ * @generated
+ */
+ ReportSet createReportSet();
+
+ /**
+ * Returns a new object of class '<em>Repository</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Repository</em>'.
+ * @generated
+ */
+ Repository createRepository();
+
+ /**
+ * Returns a new object of class '<em>Repository Policy</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Repository Policy</em>'.
+ * @generated
+ */
+ RepositoryPolicy createRepositoryPolicy();
+
+ /**
+ * Returns a new object of class '<em>Resource</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Resource</em>'.
+ * @generated
+ */
+ Resource createResource();
+
+ /**
+ * Returns a new object of class '<em>Scm</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Scm</em>'.
+ * @generated
+ */
+ Scm createScm();
+
+ /**
+ * Returns a new object of class '<em>Site</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Site</em>'.
+ * @generated
+ */
+ Site createSite();
+
+ /**
+ * Returns a new object of class '<em>Property Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Property Element</em>'.
+ * @generated
+ */
+ PropertyElement createPropertyElement();
+
+ /**
+ * Returns a new object of class '<em>Configuration</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Configuration</em>'.
+ * @generated
+ */
+ Configuration createConfiguration();
+
+ /**
+ * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the package supported by this factory.
+ * @generated
+ */
+ PomPackage getPomPackage();
} // PomFactory
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PomPackage.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PomPackage.java
index dd9def20..300895a3 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PomPackage.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PomPackage.java
@@ -16,9 +16,9 @@ import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
+
/**
- * <!-- begin-user-doc --> The <b>Package</b> for the model. It contains
- * accessors for the meta objects to represent
+ * <!-- begin-user-doc --> The <b>Package</b> for the model. It contains accessors for the meta objects to represent
* <ul>
* <li>each class,</li>
* <li>each feature of each class,</li>
@@ -26,6892 +26,7076 @@ import org.eclipse.emf.ecore.EReference;
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
+ *
* @see org.eclipse.m2e.model.edit.pom.PomFactory
* @model kind="package"
* @generated
*/
public interface PomPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "pom"; //$NON-NLS-1$
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://maven.apache.org/POM/4.0.0"; //$NON-NLS-1$
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "pom"; //$NON-NLS-1$
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- PomPackage eINSTANCE = org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl.init();
-
- /**
- * The meta object id for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.ActivationImpl
- * <em>Activation</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.ActivationImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivation()
- * @generated
- */
- int ACTIVATION = 0;
-
- /**
- * The feature id for the '<em><b>Active By Default</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ACTIVATION__ACTIVE_BY_DEFAULT = 0;
-
- /**
- * The feature id for the '<em><b>Jdk</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ACTIVATION__JDK = 1;
-
- /**
- * The feature id for the '<em><b>Os</b></em>' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ACTIVATION__OS = 2;
-
- /**
- * The feature id for the '<em><b>Property</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ACTIVATION__PROPERTY = 3;
-
- /**
- * The feature id for the '<em><b>File</b></em>' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ACTIVATION__FILE = 4;
-
- /**
- * The number of structural features of the '<em>Activation</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ACTIVATION_FEATURE_COUNT = 5;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ActivationFileImpl <em>Activation File</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ActivationFileImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivationFile()
- * @generated
- */
- int ACTIVATION_FILE = 1;
-
- /**
- * The feature id for the '<em><b>Missing</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ACTIVATION_FILE__MISSING = 0;
-
- /**
- * The feature id for the '<em><b>Exists</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ACTIVATION_FILE__EXISTS = 1;
-
- /**
- * The number of structural features of the '<em>Activation File</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ACTIVATION_FILE_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl
- * <em>Activation OS</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivationOS()
- * @generated
- */
- int ACTIVATION_OS = 2;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ACTIVATION_OS__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Family</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ACTIVATION_OS__FAMILY = 1;
-
- /**
- * The feature id for the '<em><b>Arch</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ACTIVATION_OS__ARCH = 2;
-
- /**
- * The feature id for the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ACTIVATION_OS__VERSION = 3;
-
- /**
- * The number of structural features of the '<em>Activation OS</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ACTIVATION_OS_FEATURE_COUNT = 4;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ActivationPropertyImpl <em>Activation Property</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ActivationPropertyImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivationProperty()
- * @generated
- */
- int ACTIVATION_PROPERTY = 3;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ACTIVATION_PROPERTY__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Value</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ACTIVATION_PROPERTY__VALUE = 1;
-
- /**
- * The number of structural features of the '<em>Activation Property</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ACTIVATION_PROPERTY_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl
- * <em>Build Base</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getBuildBase()
- * @generated
- */
- int BUILD_BASE = 5;
-
- /**
- * The feature id for the '<em><b>Default Goal</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BUILD_BASE__DEFAULT_GOAL = 0;
-
- /**
- * The feature id for the '<em><b>Resources</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BUILD_BASE__RESOURCES = 1;
-
- /**
- * The feature id for the '<em><b>Test Resources</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BUILD_BASE__TEST_RESOURCES = 2;
-
- /**
- * The feature id for the '<em><b>Directory</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BUILD_BASE__DIRECTORY = 3;
-
- /**
- * The feature id for the '<em><b>Final Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BUILD_BASE__FINAL_NAME = 4;
-
- /**
- * The feature id for the '<em><b>Plugin Management</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BUILD_BASE__PLUGIN_MANAGEMENT = 5;
-
- /**
- * The feature id for the '<em><b>Plugins</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BUILD_BASE__PLUGINS = 6;
-
- /**
- * The feature id for the '<em><b>Filters</b></em>' attribute list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BUILD_BASE__FILTERS = 7;
-
- /**
- * The number of structural features of the '<em>Build Base</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BUILD_BASE_FEATURE_COUNT = 8;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl <em>Build</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.BuildImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getBuild()
- * @generated
- */
- int BUILD = 4;
-
- /**
- * The feature id for the '<em><b>Default Goal</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BUILD__DEFAULT_GOAL = BUILD_BASE__DEFAULT_GOAL;
-
- /**
- * The feature id for the '<em><b>Resources</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BUILD__RESOURCES = BUILD_BASE__RESOURCES;
-
- /**
- * The feature id for the '<em><b>Test Resources</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BUILD__TEST_RESOURCES = BUILD_BASE__TEST_RESOURCES;
-
- /**
- * The feature id for the '<em><b>Directory</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BUILD__DIRECTORY = BUILD_BASE__DIRECTORY;
-
- /**
- * The feature id for the '<em><b>Final Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BUILD__FINAL_NAME = BUILD_BASE__FINAL_NAME;
-
- /**
- * The feature id for the '<em><b>Plugin Management</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BUILD__PLUGIN_MANAGEMENT = BUILD_BASE__PLUGIN_MANAGEMENT;
-
- /**
- * The feature id for the '<em><b>Plugins</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BUILD__PLUGINS = BUILD_BASE__PLUGINS;
-
- /**
- * The feature id for the '<em><b>Filters</b></em>' attribute list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BUILD__FILTERS = BUILD_BASE__FILTERS;
-
- /**
- * The feature id for the '<em><b>Source Directory</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BUILD__SOURCE_DIRECTORY = BUILD_BASE_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Script Source Directory</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BUILD__SCRIPT_SOURCE_DIRECTORY = BUILD_BASE_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Test Source Directory</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BUILD__TEST_SOURCE_DIRECTORY = BUILD_BASE_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Output Directory</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BUILD__OUTPUT_DIRECTORY = BUILD_BASE_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the '<em><b>Test Output Directory</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BUILD__TEST_OUTPUT_DIRECTORY = BUILD_BASE_FEATURE_COUNT + 4;
-
- /**
- * The feature id for the '<em><b>Extensions</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BUILD__EXTENSIONS = BUILD_BASE_FEATURE_COUNT + 5;
-
- /**
- * The number of structural features of the '<em>Build</em>' class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BUILD_FEATURE_COUNT = BUILD_BASE_FEATURE_COUNT + 6;
-
- /**
- * The meta object id for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.CiManagementImpl
- * <em>Ci Management</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.CiManagementImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getCiManagement()
- * @generated
- */
- int CI_MANAGEMENT = 6;
-
- /**
- * The feature id for the '<em><b>System</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CI_MANAGEMENT__SYSTEM = 0;
-
- /**
- * The feature id for the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CI_MANAGEMENT__URL = 1;
-
- /**
- * The feature id for the '<em><b>Notifiers</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CI_MANAGEMENT__NOTIFIERS = 2;
-
- /**
- * The number of structural features of the '<em>Ci Management</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CI_MANAGEMENT_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl
- * <em>Contributor</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.ContributorImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getContributor()
- * @generated
- */
- int CONTRIBUTOR = 7;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONTRIBUTOR__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Email</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONTRIBUTOR__EMAIL = 1;
-
- /**
- * The feature id for the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONTRIBUTOR__URL = 2;
-
- /**
- * The feature id for the '<em><b>Organization</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONTRIBUTOR__ORGANIZATION = 3;
-
- /**
- * The feature id for the '<em><b>Organization Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONTRIBUTOR__ORGANIZATION_URL = 4;
-
- /**
- * The feature id for the '<em><b>Timezone</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONTRIBUTOR__TIMEZONE = 5;
-
- /**
- * The feature id for the '<em><b>Properties</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CONTRIBUTOR__PROPERTIES = 6;
-
- /**
- * The feature id for the '<em><b>Roles</b></em>' attribute list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONTRIBUTOR__ROLES = 7;
-
- /**
- * The number of structural features of the '<em>Contributor</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CONTRIBUTOR_FEATURE_COUNT = 8;
-
- /**
- * The meta object id for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl
- * <em>Dependency</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.DependencyImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDependency()
- * @generated
- */
- int DEPENDENCY = 8;
-
- /**
- * The feature id for the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEPENDENCY__GROUP_ID = 0;
-
- /**
- * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEPENDENCY__ARTIFACT_ID = 1;
-
- /**
- * The feature id for the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEPENDENCY__VERSION = 2;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEPENDENCY__TYPE = 3;
-
- /**
- * The feature id for the '<em><b>Classifier</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEPENDENCY__CLASSIFIER = 4;
-
- /**
- * The feature id for the '<em><b>Scope</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEPENDENCY__SCOPE = 5;
-
- /**
- * The feature id for the '<em><b>System Path</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEPENDENCY__SYSTEM_PATH = 6;
-
- /**
- * The feature id for the '<em><b>Exclusions</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DEPENDENCY__EXCLUSIONS = 7;
-
- /**
- * The feature id for the '<em><b>Optional</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEPENDENCY__OPTIONAL = 8;
-
- /**
- * The number of structural features of the '<em>Dependency</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DEPENDENCY_FEATURE_COUNT = 9;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.DependencyManagementImpl <em>Dependency Management</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.DependencyManagementImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDependencyManagement()
- * @generated
- */
- int DEPENDENCY_MANAGEMENT = 9;
-
- /**
- * The feature id for the '<em><b>Dependencies</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DEPENDENCY_MANAGEMENT__DEPENDENCIES = 0;
-
- /**
- * The number of structural features of the '<em>Dependency Management</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DEPENDENCY_MANAGEMENT_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl <em>Deployment Repository</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDeploymentRepository()
- * @generated
- */
- int DEPLOYMENT_REPOSITORY = 10;
-
- /**
- * The feature id for the '<em><b>Unique Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEPLOYMENT_REPOSITORY__UNIQUE_VERSION = 0;
-
- /**
- * The feature id for the '<em><b>Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEPLOYMENT_REPOSITORY__ID = 1;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEPLOYMENT_REPOSITORY__NAME = 2;
-
- /**
- * The feature id for the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEPLOYMENT_REPOSITORY__URL = 3;
-
- /**
- * The feature id for the '<em><b>Layout</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEPLOYMENT_REPOSITORY__LAYOUT = 4;
-
- /**
- * The number of structural features of the '<em>Deployment Repository</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DEPLOYMENT_REPOSITORY_FEATURE_COUNT = 5;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl <em>Developer</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDeveloper()
- * @generated
- */
- int DEVELOPER = 11;
-
- /**
- * The feature id for the '<em><b>Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEVELOPER__ID = 0;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEVELOPER__NAME = 1;
-
- /**
- * The feature id for the '<em><b>Email</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEVELOPER__EMAIL = 2;
-
- /**
- * The feature id for the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEVELOPER__URL = 3;
-
- /**
- * The feature id for the '<em><b>Organization</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEVELOPER__ORGANIZATION = 4;
-
- /**
- * The feature id for the '<em><b>Organization Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEVELOPER__ORGANIZATION_URL = 5;
-
- /**
- * The feature id for the '<em><b>Timezone</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEVELOPER__TIMEZONE = 6;
-
- /**
- * The feature id for the '<em><b>Properties</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DEVELOPER__PROPERTIES = 7;
-
- /**
- * The feature id for the '<em><b>Roles</b></em>' attribute list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEVELOPER__ROLES = 8;
-
- /**
- * The number of structural features of the '<em>Developer</em>' class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEVELOPER_FEATURE_COUNT = 9;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl <em>Distribution Management</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDistributionManagement()
- * @generated
- */
- int DISTRIBUTION_MANAGEMENT = 12;
-
- /**
- * The feature id for the '<em><b>Repository</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DISTRIBUTION_MANAGEMENT__REPOSITORY = 0;
-
- /**
- * The feature id for the '<em><b>Snapshot Repository</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY = 1;
-
- /**
- * The feature id for the '<em><b>Site</b></em>' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DISTRIBUTION_MANAGEMENT__SITE = 2;
-
- /**
- * The feature id for the '<em><b>Download Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL = 3;
-
- /**
- * The feature id for the '<em><b>Relocation</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DISTRIBUTION_MANAGEMENT__RELOCATION = 4;
-
- /**
- * The feature id for the '<em><b>Status</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DISTRIBUTION_MANAGEMENT__STATUS = 5;
-
- /**
- * The number of structural features of the '<em>Distribution Management</em>' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- * @ordered
- */
- int DISTRIBUTION_MANAGEMENT_FEATURE_COUNT = 6;
-
- /**
- * The meta object id for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl
- * <em>Document Root</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDocumentRoot()
- * @generated
- */
- int DOCUMENT_ROOT = 13;
-
- /**
- * The feature id for the '<em><b>Mixed</b></em>' attribute list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DOCUMENT_ROOT__MIXED = 0;
-
- /**
- * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
-
- /**
- * The feature id for the '<em><b>XSI Schema Location</b></em>' map. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
-
- /**
- * The feature id for the '<em><b>Project</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DOCUMENT_ROOT__PROJECT = 3;
-
- /**
- * The number of structural features of the '<em>Document Root</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DOCUMENT_ROOT_FEATURE_COUNT = 4;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ExclusionImpl <em>Exclusion</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ExclusionImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getExclusion()
- * @generated
- */
- int EXCLUSION = 14;
-
- /**
- * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int EXCLUSION__ARTIFACT_ID = 0;
-
- /**
- * The feature id for the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int EXCLUSION__GROUP_ID = 1;
-
- /**
- * The number of structural features of the '<em>Exclusion</em>' class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int EXCLUSION_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ExtensionImpl <em>Extension</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ExtensionImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getExtension()
- * @generated
- */
- int EXTENSION = 15;
-
- /**
- * The feature id for the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int EXTENSION__GROUP_ID = 0;
-
- /**
- * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int EXTENSION__ARTIFACT_ID = 1;
-
- /**
- * The feature id for the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int EXTENSION__VERSION = 2;
-
- /**
- * The number of structural features of the '<em>Extension</em>' class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int EXTENSION_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.IssueManagementImpl <em>Issue Management</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.IssueManagementImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getIssueManagement()
- * @generated
- */
- int ISSUE_MANAGEMENT = 16;
-
- /**
- * The feature id for the '<em><b>System</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ISSUE_MANAGEMENT__SYSTEM = 0;
-
- /**
- * The feature id for the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ISSUE_MANAGEMENT__URL = 1;
-
- /**
- * The number of structural features of the '<em>Issue Management</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ISSUE_MANAGEMENT_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.LicenseImpl <em>License</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.LicenseImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getLicense()
- * @generated
- */
- int LICENSE = 17;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int LICENSE__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int LICENSE__URL = 1;
-
- /**
- * The feature id for the '<em><b>Distribution</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int LICENSE__DISTRIBUTION = 2;
-
- /**
- * The feature id for the '<em><b>Comments</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int LICENSE__COMMENTS = 3;
-
- /**
- * The number of structural features of the '<em>License</em>' class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int LICENSE_FEATURE_COUNT = 4;
-
- /**
- * The meta object id for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl
- * <em>Mailing List</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.MailingListImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getMailingList()
- * @generated
- */
- int MAILING_LIST = 18;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MAILING_LIST__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Subscribe</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MAILING_LIST__SUBSCRIBE = 1;
-
- /**
- * The feature id for the '<em><b>Unsubscribe</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MAILING_LIST__UNSUBSCRIBE = 2;
-
- /**
- * The feature id for the '<em><b>Post</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MAILING_LIST__POST = 3;
-
- /**
- * The feature id for the '<em><b>Archive</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MAILING_LIST__ARCHIVE = 4;
-
- /**
- * The feature id for the '<em><b>Other Archives</b></em>' attribute list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MAILING_LIST__OTHER_ARCHIVES = 5;
-
- /**
- * The number of structural features of the '<em>Mailing List</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MAILING_LIST_FEATURE_COUNT = 6;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl <em>Model</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ModelImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getModel()
- * @generated
- */
- int MODEL = 19;
-
- /**
- * The feature id for the '<em><b>Parent</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__PARENT = 0;
-
- /**
- * The feature id for the '<em><b>Model Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL__MODEL_VERSION = 1;
-
- /**
- * The feature id for the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL__GROUP_ID = 2;
-
- /**
- * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL__ARTIFACT_ID = 3;
-
- /**
- * The feature id for the '<em><b>Packaging</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL__PACKAGING = 4;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL__NAME = 5;
-
- /**
- * The feature id for the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL__VERSION = 6;
-
- /**
- * The feature id for the '<em><b>Description</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL__DESCRIPTION = 7;
-
- /**
- * The feature id for the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL__URL = 8;
-
- /**
- * The feature id for the '<em><b>Prerequisites</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__PREREQUISITES = 9;
-
- /**
- * The feature id for the '<em><b>Issue Management</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__ISSUE_MANAGEMENT = 10;
-
- /**
- * The feature id for the '<em><b>Ci Management</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__CI_MANAGEMENT = 11;
-
- /**
- * The feature id for the '<em><b>Inception Year</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL__INCEPTION_YEAR = 12;
-
- /**
- * The feature id for the '<em><b>Mailing Lists</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__MAILING_LISTS = 13;
-
- /**
- * The feature id for the '<em><b>Developers</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__DEVELOPERS = 14;
-
- /**
- * The feature id for the '<em><b>Contributors</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__CONTRIBUTORS = 15;
-
- /**
- * The feature id for the '<em><b>Licenses</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__LICENSES = 16;
-
- /**
- * The feature id for the '<em><b>Scm</b></em>' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL__SCM = 17;
-
- /**
- * The feature id for the '<em><b>Organization</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__ORGANIZATION = 18;
-
- /**
- * The feature id for the '<em><b>Build</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__BUILD = 19;
-
- /**
- * The feature id for the '<em><b>Profiles</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__PROFILES = 20;
-
- /**
- * The feature id for the '<em><b>Repositories</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__REPOSITORIES = 21;
-
- /**
- * The feature id for the '<em><b>Plugin Repositories</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__PLUGIN_REPOSITORIES = 22;
-
- /**
- * The feature id for the '<em><b>Dependencies</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__DEPENDENCIES = 23;
-
- /**
- * The feature id for the '<em><b>Reporting</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__REPORTING = 24;
-
- /**
- * The feature id for the '<em><b>Dependency Management</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__DEPENDENCY_MANAGEMENT = 25;
-
- /**
- * The feature id for the '<em><b>Distribution Management</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__DISTRIBUTION_MANAGEMENT = 26;
-
- /**
- * The feature id for the '<em><b>Properties</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MODEL__PROPERTIES = 27;
-
- /**
- * The feature id for the '<em><b>Modules</b></em>' attribute list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL__MODULES = 28;
-
- /**
- * The number of structural features of the '<em>Model</em>' class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODEL_FEATURE_COUNT = 29;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl <em>Notifier</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.NotifierImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getNotifier()
- * @generated
- */
- int NOTIFIER = 20;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NOTIFIER__TYPE = 0;
-
- /**
- * The feature id for the '<em><b>Send On Error</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NOTIFIER__SEND_ON_ERROR = 1;
-
- /**
- * The feature id for the '<em><b>Send On Failure</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NOTIFIER__SEND_ON_FAILURE = 2;
-
- /**
- * The feature id for the '<em><b>Send On Success</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NOTIFIER__SEND_ON_SUCCESS = 3;
-
- /**
- * The feature id for the '<em><b>Send On Warning</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NOTIFIER__SEND_ON_WARNING = 4;
-
- /**
- * The feature id for the '<em><b>Address</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NOTIFIER__ADDRESS = 5;
-
- /**
- * The feature id for the '<em><b>Configuration</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int NOTIFIER__CONFIGURATION = 6;
-
- /**
- * The number of structural features of the '<em>Notifier</em>' class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NOTIFIER_FEATURE_COUNT = 7;
-
- /**
- * The meta object id for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.OrganizationImpl
- * <em>Organization</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.OrganizationImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getOrganization()
- * @generated
- */
- int ORGANIZATION = 21;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ORGANIZATION__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ORGANIZATION__URL = 1;
-
- /**
- * The number of structural features of the '<em>Organization</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ORGANIZATION_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ParentImpl <em>Parent</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ParentImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getParent()
- * @generated
- */
- int PARENT = 22;
-
- /**
- * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARENT__ARTIFACT_ID = 0;
-
- /**
- * The feature id for the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARENT__GROUP_ID = 1;
-
- /**
- * The feature id for the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARENT__VERSION = 2;
-
- /**
- * The feature id for the '<em><b>Relative Path</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARENT__RELATIVE_PATH = 3;
-
- /**
- * The number of structural features of the '<em>Parent</em>' class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PARENT_FEATURE_COUNT = 4;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl <em>Plugin</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.PluginImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPlugin()
- * @generated
- */
- int PLUGIN = 23;
-
- /**
- * The feature id for the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PLUGIN__GROUP_ID = 0;
-
- /**
- * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PLUGIN__ARTIFACT_ID = 1;
-
- /**
- * The feature id for the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PLUGIN__VERSION = 2;
-
- /**
- * The feature id for the '<em><b>Extensions</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PLUGIN__EXTENSIONS = 3;
-
- /**
- * The feature id for the '<em><b>Executions</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PLUGIN__EXECUTIONS = 4;
-
- /**
- * The feature id for the '<em><b>Dependencies</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PLUGIN__DEPENDENCIES = 5;
-
- /**
- * The feature id for the '<em><b>Inherited</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PLUGIN__INHERITED = 6;
-
- /**
- * The feature id for the '<em><b>Configuration</b></em>' reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PLUGIN__CONFIGURATION = 7;
-
- /**
- * The number of structural features of the '<em>Plugin</em>' class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PLUGIN_FEATURE_COUNT = 8;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl <em>Plugin Execution</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPluginExecution()
- * @generated
- */
- int PLUGIN_EXECUTION = 24;
-
- /**
- * The feature id for the '<em><b>Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PLUGIN_EXECUTION__ID = 0;
-
- /**
- * The feature id for the '<em><b>Phase</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PLUGIN_EXECUTION__PHASE = 1;
-
- /**
- * The feature id for the '<em><b>Inherited</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PLUGIN_EXECUTION__INHERITED = 2;
-
- /**
- * The feature id for the '<em><b>Goals</b></em>' attribute list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PLUGIN_EXECUTION__GOALS = 3;
-
- /**
- * The feature id for the '<em><b>Configuration</b></em>' reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PLUGIN_EXECUTION__CONFIGURATION = 4;
-
- /**
- * The number of structural features of the '<em>Plugin Execution</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PLUGIN_EXECUTION_FEATURE_COUNT = 5;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.PluginManagementImpl <em>Plugin Management</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.PluginManagementImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPluginManagement()
- * @generated
- */
- int PLUGIN_MANAGEMENT = 25;
-
- /**
- * The feature id for the '<em><b>Plugins</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PLUGIN_MANAGEMENT__PLUGINS = 0;
-
- /**
- * The number of structural features of the '<em>Plugin Management</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PLUGIN_MANAGEMENT_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.PrerequisitesImpl
- * <em>Prerequisites</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.PrerequisitesImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPrerequisites()
- * @generated
- */
- int PREREQUISITES = 26;
-
- /**
- * The feature id for the '<em><b>Maven</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PREREQUISITES__MAVEN = 0;
-
- /**
- * The number of structural features of the '<em>Prerequisites</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PREREQUISITES_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl <em>Profile</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ProfileImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getProfile()
- * @generated
- */
- int PROFILE = 27;
-
- /**
- * The feature id for the '<em><b>Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE__ID = 0;
-
- /**
- * The feature id for the '<em><b>Activation</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PROFILE__ACTIVATION = 1;
-
- /**
- * The feature id for the '<em><b>Build</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PROFILE__BUILD = 2;
-
- /**
- * The feature id for the '<em><b>Repositories</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PROFILE__REPOSITORIES = 3;
-
- /**
- * The feature id for the '<em><b>Plugin Repositories</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PROFILE__PLUGIN_REPOSITORIES = 4;
-
- /**
- * The feature id for the '<em><b>Dependencies</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PROFILE__DEPENDENCIES = 5;
-
- /**
- * The feature id for the '<em><b>Reports</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PROFILE__REPORTS = 6;
-
- /**
- * The feature id for the '<em><b>Dependency Management</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PROFILE__DEPENDENCY_MANAGEMENT = 7;
-
- /**
- * The feature id for the '<em><b>Distribution Management</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PROFILE__DISTRIBUTION_MANAGEMENT = 8;
-
- /**
- * The feature id for the '<em><b>Properties</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PROFILE__PROPERTIES = 9;
-
- /**
- * The feature id for the '<em><b>Modules</b></em>' attribute list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE__MODULES = 10;
-
- /**
- * The feature id for the '<em><b>Reporting</b></em>' reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE__REPORTING = 11;
-
- /**
- * The number of structural features of the '<em>Profile</em>' class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE_FEATURE_COUNT = 12;
-
- /**
- * The meta object id for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.RelocationImpl
- * <em>Relocation</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.RelocationImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getRelocation()
- * @generated
- */
- int RELOCATION = 28;
-
- /**
- * The feature id for the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int RELOCATION__GROUP_ID = 0;
-
- /**
- * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int RELOCATION__ARTIFACT_ID = 1;
-
- /**
- * The feature id for the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int RELOCATION__VERSION = 2;
-
- /**
- * The feature id for the '<em><b>Message</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int RELOCATION__MESSAGE = 3;
-
- /**
- * The number of structural features of the '<em>Relocation</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int RELOCATION_FEATURE_COUNT = 4;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ReportingImpl <em>Reporting</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ReportingImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getReporting()
- * @generated
- */
- int REPORTING = 29;
-
- /**
- * The feature id for the '<em><b>Exclude Defaults</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPORTING__EXCLUDE_DEFAULTS = 0;
-
- /**
- * The feature id for the '<em><b>Output Directory</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPORTING__OUTPUT_DIRECTORY = 1;
-
- /**
- * The feature id for the '<em><b>Plugins</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REPORTING__PLUGINS = 2;
-
- /**
- * The number of structural features of the '<em>Reporting</em>' class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPORTING_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl
- * <em>Report Plugin</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getReportPlugin()
- * @generated
- */
- int REPORT_PLUGIN = 30;
-
- /**
- * The feature id for the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPORT_PLUGIN__GROUP_ID = 0;
-
- /**
- * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPORT_PLUGIN__ARTIFACT_ID = 1;
-
- /**
- * The feature id for the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPORT_PLUGIN__VERSION = 2;
-
- /**
- * The feature id for the '<em><b>Inherited</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPORT_PLUGIN__INHERITED = 3;
-
- /**
- * The feature id for the '<em><b>Report Sets</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REPORT_PLUGIN__REPORT_SETS = 4;
-
- /**
- * The feature id for the '<em><b>Configuration</b></em>' reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPORT_PLUGIN__CONFIGURATION = 5;
-
- /**
- * The number of structural features of the '<em>Report Plugin</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REPORT_PLUGIN_FEATURE_COUNT = 6;
-
- /**
- * The meta object id for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl
- * <em>Report Set</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getReportSet()
- * @generated
- */
- int REPORT_SET = 31;
-
- /**
- * The feature id for the '<em><b>Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPORT_SET__ID = 0;
-
- /**
- * The feature id for the '<em><b>Inherited</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPORT_SET__INHERITED = 1;
-
- /**
- * The feature id for the '<em><b>Reports</b></em>' attribute list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPORT_SET__REPORTS = 2;
-
- /**
- * The feature id for the '<em><b>Configuration</b></em>' reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPORT_SET__CONFIGURATION = 3;
-
- /**
- * The number of structural features of the '<em>Report Set</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REPORT_SET_FEATURE_COUNT = 4;
-
- /**
- * The meta object id for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl
- * <em>Repository</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getRepository()
- * @generated
- */
- int REPOSITORY = 32;
-
- /**
- * The feature id for the '<em><b>Releases</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REPOSITORY__RELEASES = 0;
-
- /**
- * The feature id for the '<em><b>Snapshots</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REPOSITORY__SNAPSHOTS = 1;
-
- /**
- * The feature id for the '<em><b>Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPOSITORY__ID = 2;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPOSITORY__NAME = 3;
-
- /**
- * The feature id for the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPOSITORY__URL = 4;
-
- /**
- * The feature id for the '<em><b>Layout</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPOSITORY__LAYOUT = 5;
-
- /**
- * The number of structural features of the '<em>Repository</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REPOSITORY_FEATURE_COUNT = 6;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryPolicyImpl <em>Repository Policy</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.RepositoryPolicyImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getRepositoryPolicy()
- * @generated
- */
- int REPOSITORY_POLICY = 33;
-
- /**
- * The feature id for the '<em><b>Enabled</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPOSITORY_POLICY__ENABLED = 0;
-
- /**
- * The feature id for the '<em><b>Update Policy</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPOSITORY_POLICY__UPDATE_POLICY = 1;
-
- /**
- * The feature id for the '<em><b>Checksum Policy</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REPOSITORY_POLICY__CHECKSUM_POLICY = 2;
-
- /**
- * The number of structural features of the '<em>Repository Policy</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REPOSITORY_POLICY_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ResourceImpl <em>Resource</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ResourceImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getResource()
- * @generated
- */
- int RESOURCE = 34;
-
- /**
- * The feature id for the '<em><b>Target Path</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int RESOURCE__TARGET_PATH = 0;
-
- /**
- * The feature id for the '<em><b>Filtering</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int RESOURCE__FILTERING = 1;
-
- /**
- * The feature id for the '<em><b>Directory</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int RESOURCE__DIRECTORY = 2;
-
- /**
- * The feature id for the '<em><b>Includes</b></em>' attribute list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int RESOURCE__INCLUDES = 3;
-
- /**
- * The feature id for the '<em><b>Excludes</b></em>' attribute list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int RESOURCE__EXCLUDES = 4;
-
- /**
- * The number of structural features of the '<em>Resource</em>' class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int RESOURCE_FEATURE_COUNT = 5;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ScmImpl <em>Scm</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ScmImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getScm()
- * @generated
- */
- int SCM = 35;
-
- /**
- * The feature id for the '<em><b>Connection</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int SCM__CONNECTION = 0;
-
- /**
- * The feature id for the '<em><b>Developer Connection</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SCM__DEVELOPER_CONNECTION = 1;
-
- /**
- * The feature id for the '<em><b>Tag</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int SCM__TAG = 2;
-
- /**
- * The feature id for the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int SCM__URL = 3;
-
- /**
- * The number of structural features of the '<em>Scm</em>' class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int SCM_FEATURE_COUNT = 4;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.SiteImpl <em>Site</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.SiteImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getSite()
- * @generated
- */
- int SITE = 36;
-
- /**
- * The feature id for the '<em><b>Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int SITE__ID = 0;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int SITE__NAME = 1;
-
- /**
- * The feature id for the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int SITE__URL = 2;
-
- /**
- * The number of structural features of the '<em>Site</em>' class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int SITE_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.PropertyElementImpl <em>Property Element</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.PropertyElementImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPropertyElement()
- * @generated
- */
- int PROPERTY_ELEMENT = 37;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_ELEMENT__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Value</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_ELEMENT__VALUE = 1;
-
- /**
- * The number of structural features of the '<em>Property Element</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PROPERTY_ELEMENT_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.ConfigurationImpl
- * <em>Configuration</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.ConfigurationImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getConfiguration()
- * @generated
- */
- int CONFIGURATION = 38;
-
- /**
- * The number of structural features of the '<em>Configuration</em>' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CONFIGURATION_FEATURE_COUNT = 0;
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Activation <em>Activation</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>Activation</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Activation
- * @generated
- */
- EClass getActivation();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Activation#getActiveByDefault
- * <em>Active By Default</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for the attribute '<em>Active By Default</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Activation#getActiveByDefault()
- * @see #getActivation()
- * @generated
- */
- EAttribute getActivation_ActiveByDefault();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Activation#getJdk <em>Jdk</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Jdk</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Activation#getJdk()
- * @see #getActivation()
- * @generated
- */
- EAttribute getActivation_Jdk();
-
- /**
- * Returns the meta object for the containment reference '
- * {@link org.eclipse.m2e.model.edit.pom.Activation#getOs <em>Os</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Os</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Activation#getOs()
- * @see #getActivation()
- * @generated
- */
- EReference getActivation_Os();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Activation#getProperty <em>Property</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Property</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Activation#getProperty()
- * @see #getActivation()
- * @generated
- */
- EReference getActivation_Property();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Activation#getFile <em>File</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>File</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Activation#getFile()
- * @see #getActivation()
- * @generated
- */
- EReference getActivation_File();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.ActivationFile <em>Activation File</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>Activation File</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ActivationFile
- * @generated
- */
- EClass getActivationFile();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationFile#getMissing <em>Missing</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Missing</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ActivationFile#getMissing()
- * @see #getActivationFile()
- * @generated
- */
- EAttribute getActivationFile_Missing();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationFile#getExists <em>Exists</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Exists</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ActivationFile#getExists()
- * @see #getActivationFile()
- * @generated
- */
- EAttribute getActivationFile_Exists();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.ActivationOS <em>Activation OS</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>Activation OS</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ActivationOS
- * @generated
- */
- EClass getActivationOS();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationOS#getName <em>Name</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ActivationOS#getName()
- * @see #getActivationOS()
- * @generated
- */
- EAttribute getActivationOS_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationOS#getFamily <em>Family</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Family</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ActivationOS#getFamily()
- * @see #getActivationOS()
- * @generated
- */
- EAttribute getActivationOS_Family();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationOS#getArch <em>Arch</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Arch</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ActivationOS#getArch()
- * @see #getActivationOS()
- * @generated
- */
- EAttribute getActivationOS_Arch();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationOS#getVersion <em>Version</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Version</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ActivationOS#getVersion()
- * @see #getActivationOS()
- * @generated
- */
- EAttribute getActivationOS_Version();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.ActivationProperty
- * <em>Activation Property</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for class '<em>Activation Property</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ActivationProperty
- * @generated
- */
- EClass getActivationProperty();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationProperty#getName <em>Name</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ActivationProperty#getName()
- * @see #getActivationProperty()
- * @generated
- */
- EAttribute getActivationProperty_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationProperty#getValue <em>Value</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Value</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ActivationProperty#getValue()
- * @see #getActivationProperty()
- * @generated
- */
- EAttribute getActivationProperty_Value();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.Build <em>Build</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Build</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Build
- * @generated
- */
- EClass getBuild();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Build#getSourceDirectory
- * <em>Source Directory</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for the attribute '<em>Source Directory</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Build#getSourceDirectory()
- * @see #getBuild()
- * @generated
- */
- EAttribute getBuild_SourceDirectory();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Build#getScriptSourceDirectory <em>Script Source Directory</em>}'.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @return the meta object for the attribute '<em>Script Source Directory</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Build#getScriptSourceDirectory()
- * @see #getBuild()
- * @generated
- */
- EAttribute getBuild_ScriptSourceDirectory();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Build#getTestSourceDirectory <em>Test Source Directory</em>}'.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @return the meta object for the attribute '<em>Test Source Directory</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Build#getTestSourceDirectory()
- * @see #getBuild()
- * @generated
- */
- EAttribute getBuild_TestSourceDirectory();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Build#getOutputDirectory
- * <em>Output Directory</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for the attribute '<em>Output Directory</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Build#getOutputDirectory()
- * @see #getBuild()
- * @generated
- */
- EAttribute getBuild_OutputDirectory();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Build#getTestOutputDirectory <em>Test Output Directory</em>}'.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @return the meta object for the attribute '<em>Test Output Directory</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Build#getTestOutputDirectory()
- * @see #getBuild()
- * @generated
- */
- EAttribute getBuild_TestOutputDirectory();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Build#getExtensions <em>Extensions</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Extensions</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Build#getExtensions()
- * @see #getBuild()
- * @generated
- */
- EReference getBuild_Extensions();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase <em>Build Base</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Build Base</em>'.
- * @see org.eclipse.m2e.model.edit.pom.BuildBase
- * @generated
- */
- EClass getBuildBase();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.BuildBase#getDefaultGoal <em>Default Goal</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Default Goal</em>'.
- * @see org.eclipse.m2e.model.edit.pom.BuildBase#getDefaultGoal()
- * @see #getBuildBase()
- * @generated
- */
- EAttribute getBuildBase_DefaultGoal();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.BuildBase#getResources <em>Resources</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Resources</em>'.
- * @see org.eclipse.m2e.model.edit.pom.BuildBase#getResources()
- * @see #getBuildBase()
- * @generated
- */
- EReference getBuildBase_Resources();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.BuildBase#getTestResources <em>Test Resources</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Test Resources</em>'.
- * @see org.eclipse.m2e.model.edit.pom.BuildBase#getTestResources()
- * @see #getBuildBase()
- * @generated
- */
- EReference getBuildBase_TestResources();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.BuildBase#getDirectory <em>Directory</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Directory</em>'.
- * @see org.eclipse.m2e.model.edit.pom.BuildBase#getDirectory()
- * @see #getBuildBase()
- * @generated
- */
- EAttribute getBuildBase_Directory();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.BuildBase#getFinalName <em>Final Name</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Final Name</em>'.
- * @see org.eclipse.m2e.model.edit.pom.BuildBase#getFinalName()
- * @see #getBuildBase()
- * @generated
- */
- EAttribute getBuildBase_FinalName();
-
- /**
- * Returns the meta object for the containment reference '
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getPluginManagement
- * <em>Plugin Management</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for the containment reference '
- * <em>Plugin Management</em>'.
- * @see org.eclipse.m2e.model.edit.pom.BuildBase#getPluginManagement()
- * @see #getBuildBase()
- * @generated
- */
- EReference getBuildBase_PluginManagement();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.BuildBase#getPlugins <em>Plugins</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Plugins</em>'.
- * @see org.eclipse.m2e.model.edit.pom.BuildBase#getPlugins()
- * @see #getBuildBase()
- * @generated
- */
- EReference getBuildBase_Plugins();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.BuildBase#getFilters <em>Filters</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute list '<em>Filters</em>'.
- * @see org.eclipse.m2e.model.edit.pom.BuildBase#getFilters()
- * @see #getBuildBase()
- * @generated
- */
- EAttribute getBuildBase_Filters();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.CiManagement <em>Ci Management</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>Ci Management</em>'.
- * @see org.eclipse.m2e.model.edit.pom.CiManagement
- * @generated
- */
- EClass getCiManagement();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.CiManagement#getSystem <em>System</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>System</em>'.
- * @see org.eclipse.m2e.model.edit.pom.CiManagement#getSystem()
- * @see #getCiManagement()
- * @generated
- */
- EAttribute getCiManagement_System();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.CiManagement#getUrl <em>Url</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Url</em>'.
- * @see org.eclipse.m2e.model.edit.pom.CiManagement#getUrl()
- * @see #getCiManagement()
- * @generated
- */
- EAttribute getCiManagement_Url();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.CiManagement#getNotifiers <em>Notifiers</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Notifiers</em>'.
- * @see org.eclipse.m2e.model.edit.pom.CiManagement#getNotifiers()
- * @see #getCiManagement()
- * @generated
- */
- EReference getCiManagement_Notifiers();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Contributor <em>Contributor</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>Contributor</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Contributor
- * @generated
- */
- EClass getContributor();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Contributor#getName <em>Name</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Contributor#getName()
- * @see #getContributor()
- * @generated
- */
- EAttribute getContributor_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Contributor#getEmail <em>Email</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Email</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Contributor#getEmail()
- * @see #getContributor()
- * @generated
- */
- EAttribute getContributor_Email();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Contributor#getUrl <em>Url</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Url</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Contributor#getUrl()
- * @see #getContributor()
- * @generated
- */
- EAttribute getContributor_Url();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Contributor#getOrganization <em>Organization</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Organization</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Contributor#getOrganization()
- * @see #getContributor()
- * @generated
- */
- EAttribute getContributor_Organization();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Contributor#getOrganizationUrl
- * <em>Organization Url</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for the attribute '<em>Organization Url</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Contributor#getOrganizationUrl()
- * @see #getContributor()
- * @generated
- */
- EAttribute getContributor_OrganizationUrl();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Contributor#getTimezone <em>Timezone</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Timezone</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Contributor#getTimezone()
- * @see #getContributor()
- * @generated
- */
- EAttribute getContributor_Timezone();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Contributor#getProperties <em>Properties</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Properties</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Contributor#getProperties()
- * @see #getContributor()
- * @generated
- */
- EReference getContributor_Properties();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.Contributor#getRoles <em>Roles</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute list '<em>Roles</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Contributor#getRoles()
- * @see #getContributor()
- * @generated
- */
- EAttribute getContributor_Roles();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Dependency <em>Dependency</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>Dependency</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Dependency
- * @generated
- */
- EClass getDependency();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getGroupId <em>Group Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Group Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Dependency#getGroupId()
- * @see #getDependency()
- * @generated
- */
- EAttribute getDependency_GroupId();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getArtifactId <em>Artifact Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Artifact Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Dependency#getArtifactId()
- * @see #getDependency()
- * @generated
- */
- EAttribute getDependency_ArtifactId();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getVersion <em>Version</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Version</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Dependency#getVersion()
- * @see #getDependency()
- * @generated
- */
- EAttribute getDependency_Version();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getType <em>Type</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Type</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Dependency#getType()
- * @see #getDependency()
- * @generated
- */
- EAttribute getDependency_Type();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getClassifier <em>Classifier</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Classifier</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Dependency#getClassifier()
- * @see #getDependency()
- * @generated
- */
- EAttribute getDependency_Classifier();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getScope <em>Scope</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Scope</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Dependency#getScope()
- * @see #getDependency()
- * @generated
- */
- EAttribute getDependency_Scope();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getSystemPath <em>System Path</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>System Path</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Dependency#getSystemPath()
- * @see #getDependency()
- * @generated
- */
- EAttribute getDependency_SystemPath();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Dependency#getExclusions <em>Exclusions</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Exclusions</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Dependency#getExclusions()
- * @see #getDependency()
- * @generated
- */
- EReference getDependency_Exclusions();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getOptional <em>Optional</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Optional</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Dependency#getOptional()
- * @see #getDependency()
- * @generated
- */
- EAttribute getDependency_Optional();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.DependencyManagement <em>Dependency Management</em>}'.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @return the meta object for class '<em>Dependency Management</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DependencyManagement
- * @generated
- */
- EClass getDependencyManagement();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.DependencyManagement#getDependencies <em>Dependencies</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Dependencies</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DependencyManagement#getDependencies()
- * @see #getDependencyManagement()
- * @generated
- */
- EReference getDependencyManagement_Dependencies();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository <em>Deployment Repository</em>}'.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @return the meta object for class '<em>Deployment Repository</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DeploymentRepository
- * @generated
- */
- EClass getDeploymentRepository();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUniqueVersion <em>Unique Version</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Unique Version</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUniqueVersion()
- * @see #getDeploymentRepository()
- * @generated
- */
- EAttribute getDeploymentRepository_UniqueVersion();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getId <em>Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DeploymentRepository#getId()
- * @see #getDeploymentRepository()
- * @generated
- */
- EAttribute getDeploymentRepository_Id();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getName <em>Name</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DeploymentRepository#getName()
- * @see #getDeploymentRepository()
- * @generated
- */
- EAttribute getDeploymentRepository_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUrl <em>Url</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Url</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUrl()
- * @see #getDeploymentRepository()
- * @generated
- */
- EAttribute getDeploymentRepository_Url();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getLayout <em>Layout</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Layout</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DeploymentRepository#getLayout()
- * @see #getDeploymentRepository()
- * @generated
- */
- EAttribute getDeploymentRepository_Layout();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.Developer <em>Developer</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Developer</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Developer
- * @generated
- */
- EClass getDeveloper();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Developer#getId <em>Id</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Developer#getId()
- * @see #getDeveloper()
- * @generated
- */
- EAttribute getDeveloper_Id();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Developer#getName <em>Name</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Developer#getName()
- * @see #getDeveloper()
- * @generated
- */
- EAttribute getDeveloper_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Developer#getEmail <em>Email</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Email</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Developer#getEmail()
- * @see #getDeveloper()
- * @generated
- */
- EAttribute getDeveloper_Email();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Developer#getUrl <em>Url</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Url</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Developer#getUrl()
- * @see #getDeveloper()
- * @generated
- */
- EAttribute getDeveloper_Url();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Developer#getOrganization <em>Organization</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Organization</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Developer#getOrganization()
- * @see #getDeveloper()
- * @generated
- */
- EAttribute getDeveloper_Organization();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Developer#getOrganizationUrl
- * <em>Organization Url</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for the attribute '<em>Organization Url</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Developer#getOrganizationUrl()
- * @see #getDeveloper()
- * @generated
- */
- EAttribute getDeveloper_OrganizationUrl();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Developer#getTimezone <em>Timezone</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Timezone</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Developer#getTimezone()
- * @see #getDeveloper()
- * @generated
- */
- EAttribute getDeveloper_Timezone();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Developer#getProperties <em>Properties</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Properties</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Developer#getProperties()
- * @see #getDeveloper()
- * @generated
- */
- EReference getDeveloper_Properties();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.Developer#getRoles <em>Roles</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute list '<em>Roles</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Developer#getRoles()
- * @see #getDeveloper()
- * @generated
- */
- EAttribute getDeveloper_Roles();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.DistributionManagement <em>Distribution Management</em>}'.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @return the meta object for class '<em>Distribution Management</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DistributionManagement
- * @generated
- */
- EClass getDistributionManagement();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRepository <em>Repository</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Repository</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DistributionManagement#getRepository()
- * @see #getDistributionManagement()
- * @generated
- */
- EReference getDistributionManagement_Repository();
-
- /**
- * Returns the meta object for the containment reference '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSnapshotRepository
- * <em>Snapshot Repository</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for the containment reference '
- * <em>Snapshot Repository</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DistributionManagement#getSnapshotRepository()
- * @see #getDistributionManagement()
- * @generated
- */
- EReference getDistributionManagement_SnapshotRepository();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSite <em>Site</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Site</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DistributionManagement#getSite()
- * @see #getDistributionManagement()
- * @generated
- */
- EReference getDistributionManagement_Site();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getDownloadUrl <em>Download Url</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Download Url</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DistributionManagement#getDownloadUrl()
- * @see #getDistributionManagement()
- * @generated
- */
- EAttribute getDistributionManagement_DownloadUrl();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRelocation <em>Relocation</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Relocation</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DistributionManagement#getRelocation()
- * @see #getDistributionManagement()
- * @generated
- */
- EReference getDistributionManagement_Relocation();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getStatus <em>Status</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Status</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DistributionManagement#getStatus()
- * @see #getDistributionManagement()
- * @generated
- */
- EAttribute getDistributionManagement_Status();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.DocumentRoot <em>Document Root</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>Document Root</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DocumentRoot
- * @generated
- */
- EClass getDocumentRoot();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getMixed <em>Mixed</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute list '<em>Mixed</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DocumentRoot#getMixed()
- * @see #getDocumentRoot()
- * @generated
- */
- EAttribute getDocumentRoot_Mixed();
-
- /**
- * Returns the meta object for the map '
- * {@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getXMLNSPrefixMap
- * <em>XMLNS Prefix Map</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DocumentRoot#getXMLNSPrefixMap()
- * @see #getDocumentRoot()
- * @generated
- */
- EReference getDocumentRoot_XMLNSPrefixMap();
-
- /**
- * Returns the meta object for the map '
- * {@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getXSISchemaLocation
- * <em>XSI Schema Location</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for the map '<em>XSI Schema Location</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DocumentRoot#getXSISchemaLocation()
- * @see #getDocumentRoot()
- * @generated
- */
- EReference getDocumentRoot_XSISchemaLocation();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getProject <em>Project</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Project</em>'.
- * @see org.eclipse.m2e.model.edit.pom.DocumentRoot#getProject()
- * @see #getDocumentRoot()
- * @generated
- */
- EReference getDocumentRoot_Project();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.Exclusion <em>Exclusion</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Exclusion</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Exclusion
- * @generated
- */
- EClass getExclusion();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Exclusion#getArtifactId <em>Artifact Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Artifact Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Exclusion#getArtifactId()
- * @see #getExclusion()
- * @generated
- */
- EAttribute getExclusion_ArtifactId();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Exclusion#getGroupId <em>Group Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Group Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Exclusion#getGroupId()
- * @see #getExclusion()
- * @generated
- */
- EAttribute getExclusion_GroupId();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.Extension <em>Extension</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Extension</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Extension
- * @generated
- */
- EClass getExtension();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Extension#getGroupId <em>Group Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Group Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Extension#getGroupId()
- * @see #getExtension()
- * @generated
- */
- EAttribute getExtension_GroupId();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Extension#getArtifactId <em>Artifact Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Artifact Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Extension#getArtifactId()
- * @see #getExtension()
- * @generated
- */
- EAttribute getExtension_ArtifactId();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Extension#getVersion <em>Version</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Version</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Extension#getVersion()
- * @see #getExtension()
- * @generated
- */
- EAttribute getExtension_Version();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.IssueManagement
- * <em>Issue Management</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for class '<em>Issue Management</em>'.
- * @see org.eclipse.m2e.model.edit.pom.IssueManagement
- * @generated
- */
- EClass getIssueManagement();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.IssueManagement#getSystem <em>System</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>System</em>'.
- * @see org.eclipse.m2e.model.edit.pom.IssueManagement#getSystem()
- * @see #getIssueManagement()
- * @generated
- */
- EAttribute getIssueManagement_System();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.IssueManagement#getUrl <em>Url</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Url</em>'.
- * @see org.eclipse.m2e.model.edit.pom.IssueManagement#getUrl()
- * @see #getIssueManagement()
- * @generated
- */
- EAttribute getIssueManagement_Url();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.License <em>License</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>License</em>'.
- * @see org.eclipse.m2e.model.edit.pom.License
- * @generated
- */
- EClass getLicense();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.License#getName <em>Name</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.m2e.model.edit.pom.License#getName()
- * @see #getLicense()
- * @generated
- */
- EAttribute getLicense_Name();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.License#getUrl <em>Url</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Url</em>'.
- * @see org.eclipse.m2e.model.edit.pom.License#getUrl()
- * @see #getLicense()
- * @generated
- */
- EAttribute getLicense_Url();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.License#getDistribution <em>Distribution</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Distribution</em>'.
- * @see org.eclipse.m2e.model.edit.pom.License#getDistribution()
- * @see #getLicense()
- * @generated
- */
- EAttribute getLicense_Distribution();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.License#getComments <em>Comments</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Comments</em>'.
- * @see org.eclipse.m2e.model.edit.pom.License#getComments()
- * @see #getLicense()
- * @generated
- */
- EAttribute getLicense_Comments();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.MailingList <em>Mailing List</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>Mailing List</em>'.
- * @see org.eclipse.m2e.model.edit.pom.MailingList
- * @generated
- */
- EClass getMailingList();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.MailingList#getName <em>Name</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.m2e.model.edit.pom.MailingList#getName()
- * @see #getMailingList()
- * @generated
- */
- EAttribute getMailingList_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.MailingList#getSubscribe <em>Subscribe</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Subscribe</em>'.
- * @see org.eclipse.m2e.model.edit.pom.MailingList#getSubscribe()
- * @see #getMailingList()
- * @generated
- */
- EAttribute getMailingList_Subscribe();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.MailingList#getUnsubscribe <em>Unsubscribe</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Unsubscribe</em>'.
- * @see org.eclipse.m2e.model.edit.pom.MailingList#getUnsubscribe()
- * @see #getMailingList()
- * @generated
- */
- EAttribute getMailingList_Unsubscribe();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.MailingList#getPost <em>Post</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Post</em>'.
- * @see org.eclipse.m2e.model.edit.pom.MailingList#getPost()
- * @see #getMailingList()
- * @generated
- */
- EAttribute getMailingList_Post();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.MailingList#getArchive <em>Archive</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Archive</em>'.
- * @see org.eclipse.m2e.model.edit.pom.MailingList#getArchive()
- * @see #getMailingList()
- * @generated
- */
- EAttribute getMailingList_Archive();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.MailingList#getOtherArchives <em>Other Archives</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute list '<em>Other Archives</em>'.
- * @see org.eclipse.m2e.model.edit.pom.MailingList#getOtherArchives()
- * @see #getMailingList()
- * @generated
- */
- EAttribute getMailingList_OtherArchives();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.Model <em>Model</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Model</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model
- * @generated
- */
- EClass getModel();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Model#getParent <em>Parent</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Parent</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getParent()
- * @see #getModel()
- * @generated
- */
- EReference getModel_Parent();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Model#getModelVersion <em>Model Version</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Model Version</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getModelVersion()
- * @see #getModel()
- * @generated
- */
- EAttribute getModel_ModelVersion();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Model#getGroupId <em>Group Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Group Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getGroupId()
- * @see #getModel()
- * @generated
- */
- EAttribute getModel_GroupId();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Model#getArtifactId <em>Artifact Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Artifact Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getArtifactId()
- * @see #getModel()
- * @generated
- */
- EAttribute getModel_ArtifactId();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Model#getPackaging <em>Packaging</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Packaging</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getPackaging()
- * @see #getModel()
- * @generated
- */
- EAttribute getModel_Packaging();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getName <em>Name</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getName()
- * @see #getModel()
- * @generated
- */
- EAttribute getModel_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Model#getVersion <em>Version</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Version</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getVersion()
- * @see #getModel()
- * @generated
- */
- EAttribute getModel_Version();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Model#getDescription <em>Description</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Description</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getDescription()
- * @see #getModel()
- * @generated
- */
- EAttribute getModel_Description();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getUrl <em>Url</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Url</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getUrl()
- * @see #getModel()
- * @generated
- */
- EAttribute getModel_Url();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Model#getPrerequisites <em>Prerequisites</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Prerequisites</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getPrerequisites()
- * @see #getModel()
- * @generated
- */
- EReference getModel_Prerequisites();
-
- /**
- * Returns the meta object for the containment reference '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getIssueManagement
- * <em>Issue Management</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for the containment reference '
- * <em>Issue Management</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getIssueManagement()
- * @see #getModel()
- * @generated
- */
- EReference getModel_IssueManagement();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Model#getCiManagement <em>Ci Management</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Ci Management</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getCiManagement()
- * @see #getModel()
- * @generated
- */
- EReference getModel_CiManagement();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Model#getInceptionYear <em>Inception Year</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Inception Year</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getInceptionYear()
- * @see #getModel()
- * @generated
- */
- EAttribute getModel_InceptionYear();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Model#getMailingLists <em>Mailing Lists</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Mailing Lists</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getMailingLists()
- * @see #getModel()
- * @generated
- */
- EReference getModel_MailingLists();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Model#getDevelopers <em>Developers</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Developers</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getDevelopers()
- * @see #getModel()
- * @generated
- */
- EReference getModel_Developers();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Model#getContributors <em>Contributors</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Contributors</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getContributors()
- * @see #getModel()
- * @generated
- */
- EReference getModel_Contributors();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Model#getLicenses <em>Licenses</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Licenses</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getLicenses()
- * @see #getModel()
- * @generated
- */
- EReference getModel_Licenses();
-
- /**
- * Returns the meta object for the containment reference '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getScm <em>Scm</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Scm</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getScm()
- * @see #getModel()
- * @generated
- */
- EReference getModel_Scm();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Model#getOrganization <em>Organization</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Organization</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getOrganization()
- * @see #getModel()
- * @generated
- */
- EReference getModel_Organization();
-
- /**
- * Returns the meta object for the containment reference '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getBuild <em>Build</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Build</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getBuild()
- * @see #getModel()
- * @generated
- */
- EReference getModel_Build();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Model#getProfiles <em>Profiles</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Profiles</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getProfiles()
- * @see #getModel()
- * @generated
- */
- EReference getModel_Profiles();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Model#getRepositories <em>Repositories</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Repositories</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getRepositories()
- * @see #getModel()
- * @generated
- */
- EReference getModel_Repositories();
-
- /**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.m2e.model.edit.pom.Model#getPluginRepositories
- * <em>Plugin Repositories</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for the containment reference list '
- * <em>Plugin Repositories</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getPluginRepositories()
- * @see #getModel()
- * @generated
- */
- EReference getModel_PluginRepositories();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Model#getDependencies <em>Dependencies</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Dependencies</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getDependencies()
- * @see #getModel()
- * @generated
- */
- EReference getModel_Dependencies();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Model#getReporting <em>Reporting</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Reporting</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getReporting()
- * @see #getModel()
- * @generated
- */
- EReference getModel_Reporting();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Model#getDependencyManagement <em>Dependency Management</em>}'.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @return the meta object for the containment reference '<em>Dependency Management</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getDependencyManagement()
- * @see #getModel()
- * @generated
- */
- EReference getModel_DependencyManagement();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Model#getDistributionManagement <em>Distribution Management</em>}'.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @return the meta object for the containment reference '<em>Distribution Management</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getDistributionManagement()
- * @see #getModel()
- * @generated
- */
- EReference getModel_DistributionManagement();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Model#getProperties <em>Properties</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Properties</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getProperties()
- * @see #getModel()
- * @generated
- */
- EReference getModel_Properties();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.Model#getModules <em>Modules</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute list '<em>Modules</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Model#getModules()
- * @see #getModel()
- * @generated
- */
- EAttribute getModel_Modules();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier <em>Notifier</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Notifier</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Notifier
- * @generated
- */
- EClass getNotifier();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Notifier#getType <em>Type</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Type</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Notifier#getType()
- * @see #getNotifier()
- * @generated
- */
- EAttribute getNotifier_Type();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnError <em>Send On Error</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Send On Error</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Notifier#getSendOnError()
- * @see #getNotifier()
- * @generated
- */
- EAttribute getNotifier_SendOnError();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnFailure <em>Send On Failure</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Send On Failure</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Notifier#getSendOnFailure()
- * @see #getNotifier()
- * @generated
- */
- EAttribute getNotifier_SendOnFailure();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnSuccess <em>Send On Success</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Send On Success</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Notifier#getSendOnSuccess()
- * @see #getNotifier()
- * @generated
- */
- EAttribute getNotifier_SendOnSuccess();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnWarning <em>Send On Warning</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Send On Warning</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Notifier#getSendOnWarning()
- * @see #getNotifier()
- * @generated
- */
- EAttribute getNotifier_SendOnWarning();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Notifier#getAddress <em>Address</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Address</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Notifier#getAddress()
- * @see #getNotifier()
- * @generated
- */
- EAttribute getNotifier_Address();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Notifier#getConfiguration <em>Configuration</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Configuration</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Notifier#getConfiguration()
- * @see #getNotifier()
- * @generated
- */
- EReference getNotifier_Configuration();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Organization <em>Organization</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>Organization</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Organization
- * @generated
- */
- EClass getOrganization();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Organization#getName <em>Name</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Organization#getName()
- * @see #getOrganization()
- * @generated
- */
- EAttribute getOrganization_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Organization#getUrl <em>Url</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Url</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Organization#getUrl()
- * @see #getOrganization()
- * @generated
- */
- EAttribute getOrganization_Url();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.Parent <em>Parent</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Parent</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Parent
- * @generated
- */
- EClass getParent();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Parent#getArtifactId <em>Artifact Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Artifact Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Parent#getArtifactId()
- * @see #getParent()
- * @generated
- */
- EAttribute getParent_ArtifactId();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Parent#getGroupId <em>Group Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Group Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Parent#getGroupId()
- * @see #getParent()
- * @generated
- */
- EAttribute getParent_GroupId();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Parent#getVersion <em>Version</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Version</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Parent#getVersion()
- * @see #getParent()
- * @generated
- */
- EAttribute getParent_Version();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Parent#getRelativePath <em>Relative Path</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Relative Path</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Parent#getRelativePath()
- * @see #getParent()
- * @generated
- */
- EAttribute getParent_RelativePath();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin <em>Plugin</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Plugin</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Plugin
- * @generated
- */
- EClass getPlugin();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Plugin#getGroupId <em>Group Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Group Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Plugin#getGroupId()
- * @see #getPlugin()
- * @generated
- */
- EAttribute getPlugin_GroupId();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Plugin#getArtifactId <em>Artifact Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Artifact Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Plugin#getArtifactId()
- * @see #getPlugin()
- * @generated
- */
- EAttribute getPlugin_ArtifactId();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Plugin#getVersion <em>Version</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Version</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Plugin#getVersion()
- * @see #getPlugin()
- * @generated
- */
- EAttribute getPlugin_Version();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Plugin#getExtensions <em>Extensions</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Extensions</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Plugin#getExtensions()
- * @see #getPlugin()
- * @generated
- */
- EAttribute getPlugin_Extensions();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Plugin#getExecutions <em>Executions</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Executions</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Plugin#getExecutions()
- * @see #getPlugin()
- * @generated
- */
- EReference getPlugin_Executions();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Plugin#getDependencies <em>Dependencies</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Dependencies</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Plugin#getDependencies()
- * @see #getPlugin()
- * @generated
- */
- EReference getPlugin_Dependencies();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Plugin#getInherited <em>Inherited</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Inherited</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Plugin#getInherited()
- * @see #getPlugin()
- * @generated
- */
- EAttribute getPlugin_Inherited();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.m2e.model.edit.pom.Plugin#getConfiguration <em>Configuration</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Configuration</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Plugin#getConfiguration()
- * @see #getPlugin()
- * @generated
- */
- EReference getPlugin_Configuration();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.PluginExecution
- * <em>Plugin Execution</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for class '<em>Plugin Execution</em>'.
- * @see org.eclipse.m2e.model.edit.pom.PluginExecution
- * @generated
- */
- EClass getPluginExecution();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getId <em>Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.PluginExecution#getId()
- * @see #getPluginExecution()
- * @generated
- */
- EAttribute getPluginExecution_Id();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getPhase <em>Phase</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Phase</em>'.
- * @see org.eclipse.m2e.model.edit.pom.PluginExecution#getPhase()
- * @see #getPluginExecution()
- * @generated
- */
- EAttribute getPluginExecution_Phase();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getInherited <em>Inherited</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Inherited</em>'.
- * @see org.eclipse.m2e.model.edit.pom.PluginExecution#getInherited()
- * @see #getPluginExecution()
- * @generated
- */
- EAttribute getPluginExecution_Inherited();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getGoals <em>Goals</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute list '<em>Goals</em>'.
- * @see org.eclipse.m2e.model.edit.pom.PluginExecution#getGoals()
- * @see #getPluginExecution()
- * @generated
- */
- EAttribute getPluginExecution_Goals();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getConfiguration <em>Configuration</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Configuration</em>'.
- * @see org.eclipse.m2e.model.edit.pom.PluginExecution#getConfiguration()
- * @see #getPluginExecution()
- * @generated
- */
- EReference getPluginExecution_Configuration();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.PluginManagement
- * <em>Plugin Management</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for class '<em>Plugin Management</em>'.
- * @see org.eclipse.m2e.model.edit.pom.PluginManagement
- * @generated
- */
- EClass getPluginManagement();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.PluginManagement#getPlugins <em>Plugins</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Plugins</em>'.
- * @see org.eclipse.m2e.model.edit.pom.PluginManagement#getPlugins()
- * @see #getPluginManagement()
- * @generated
- */
- EReference getPluginManagement_Plugins();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Prerequisites <em>Prerequisites</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>Prerequisites</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Prerequisites
- * @generated
- */
- EClass getPrerequisites();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Prerequisites#getMaven <em>Maven</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Maven</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Prerequisites#getMaven()
- * @see #getPrerequisites()
- * @generated
- */
- EAttribute getPrerequisites_Maven();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.Profile <em>Profile</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Profile</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Profile
- * @generated
- */
- EClass getProfile();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getId <em>Id</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Profile#getId()
- * @see #getProfile()
- * @generated
- */
- EAttribute getProfile_Id();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Profile#getActivation <em>Activation</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Activation</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Profile#getActivation()
- * @see #getProfile()
- * @generated
- */
- EReference getProfile_Activation();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Profile#getBuild <em>Build</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Build</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Profile#getBuild()
- * @see #getProfile()
- * @generated
- */
- EReference getProfile_Build();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Profile#getRepositories <em>Repositories</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Repositories</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Profile#getRepositories()
- * @see #getProfile()
- * @generated
- */
- EReference getProfile_Repositories();
-
- /**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getPluginRepositories
- * <em>Plugin Repositories</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for the containment reference list '
- * <em>Plugin Repositories</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Profile#getPluginRepositories()
- * @see #getProfile()
- * @generated
- */
- EReference getProfile_PluginRepositories();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Profile#getDependencies <em>Dependencies</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Dependencies</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Profile#getDependencies()
- * @see #getProfile()
- * @generated
- */
- EReference getProfile_Dependencies();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Profile#getReports <em>Reports</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Reports</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Profile#getReports()
- * @see #getProfile()
- * @generated
- */
- EReference getProfile_Reports();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Profile#getDependencyManagement <em>Dependency Management</em>}'.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @return the meta object for the containment reference '<em>Dependency Management</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Profile#getDependencyManagement()
- * @see #getProfile()
- * @generated
- */
- EReference getProfile_DependencyManagement();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Profile#getDistributionManagement <em>Distribution Management</em>}'.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @return the meta object for the containment reference '<em>Distribution Management</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Profile#getDistributionManagement()
- * @see #getProfile()
- * @generated
- */
- EReference getProfile_DistributionManagement();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Profile#getProperties <em>Properties</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Properties</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Profile#getProperties()
- * @see #getProfile()
- * @generated
- */
- EReference getProfile_Properties();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.Profile#getModules <em>Modules</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute list '<em>Modules</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Profile#getModules()
- * @see #getProfile()
- * @generated
- */
- EAttribute getProfile_Modules();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.m2e.model.edit.pom.Profile#getReporting <em>Reporting</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Reporting</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Profile#getReporting()
- * @see #getProfile()
- * @generated
- */
- EReference getProfile_Reporting();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Relocation <em>Relocation</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>Relocation</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Relocation
- * @generated
- */
- EClass getRelocation();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Relocation#getGroupId <em>Group Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Group Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Relocation#getGroupId()
- * @see #getRelocation()
- * @generated
- */
- EAttribute getRelocation_GroupId();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Relocation#getArtifactId <em>Artifact Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Artifact Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Relocation#getArtifactId()
- * @see #getRelocation()
- * @generated
- */
- EAttribute getRelocation_ArtifactId();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Relocation#getVersion <em>Version</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Version</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Relocation#getVersion()
- * @see #getRelocation()
- * @generated
- */
- EAttribute getRelocation_Version();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Relocation#getMessage <em>Message</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Message</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Relocation#getMessage()
- * @see #getRelocation()
- * @generated
- */
- EAttribute getRelocation_Message();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.Reporting <em>Reporting</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Reporting</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Reporting
- * @generated
- */
- EClass getReporting();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Reporting#getExcludeDefaults
- * <em>Exclude Defaults</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for the attribute '<em>Exclude Defaults</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Reporting#getExcludeDefaults()
- * @see #getReporting()
- * @generated
- */
- EAttribute getReporting_ExcludeDefaults();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Reporting#getOutputDirectory
- * <em>Output Directory</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for the attribute '<em>Output Directory</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Reporting#getOutputDirectory()
- * @see #getReporting()
- * @generated
- */
- EAttribute getReporting_OutputDirectory();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.Reporting#getPlugins <em>Plugins</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Plugins</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Reporting#getPlugins()
- * @see #getReporting()
- * @generated
- */
- EReference getReporting_Plugins();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.ReportPlugin <em>Report Plugin</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>Report Plugin</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ReportPlugin
- * @generated
- */
- EClass getReportPlugin();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getGroupId <em>Group Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Group Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ReportPlugin#getGroupId()
- * @see #getReportPlugin()
- * @generated
- */
- EAttribute getReportPlugin_GroupId();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getArtifactId <em>Artifact Id</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Artifact Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ReportPlugin#getArtifactId()
- * @see #getReportPlugin()
- * @generated
- */
- EAttribute getReportPlugin_ArtifactId();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getVersion <em>Version</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Version</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ReportPlugin#getVersion()
- * @see #getReportPlugin()
- * @generated
- */
- EAttribute getReportPlugin_Version();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getInherited <em>Inherited</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Inherited</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ReportPlugin#getInherited()
- * @see #getReportPlugin()
- * @generated
- */
- EAttribute getReportPlugin_Inherited();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getReportSets <em>Report Sets</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Report Sets</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ReportPlugin#getReportSets()
- * @see #getReportPlugin()
- * @generated
- */
- EReference getReportPlugin_ReportSets();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getConfiguration <em>Configuration</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Configuration</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ReportPlugin#getConfiguration()
- * @see #getReportPlugin()
- * @generated
- */
- EReference getReportPlugin_Configuration();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.ReportSet <em>Report Set</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Report Set</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ReportSet
- * @generated
- */
- EClass getReportSet();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.ReportSet#getId <em>Id</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ReportSet#getId()
- * @see #getReportSet()
- * @generated
- */
- EAttribute getReportSet_Id();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ReportSet#getInherited <em>Inherited</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Inherited</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ReportSet#getInherited()
- * @see #getReportSet()
- * @generated
- */
- EAttribute getReportSet_Inherited();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.ReportSet#getReports <em>Reports</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute list '<em>Reports</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ReportSet#getReports()
- * @see #getReportSet()
- * @generated
- */
- EAttribute getReportSet_Reports();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.m2e.model.edit.pom.ReportSet#getConfiguration <em>Configuration</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Configuration</em>'.
- * @see org.eclipse.m2e.model.edit.pom.ReportSet#getConfiguration()
- * @see #getReportSet()
- * @generated
- */
- EReference getReportSet_Configuration();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Repository <em>Repository</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>Repository</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Repository
- * @generated
- */
- EClass getRepository();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Repository#getReleases <em>Releases</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Releases</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Repository#getReleases()
- * @see #getRepository()
- * @generated
- */
- EReference getRepository_Releases();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Repository#getSnapshots <em>Snapshots</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Snapshots</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Repository#getSnapshots()
- * @see #getRepository()
- * @generated
- */
- EReference getRepository_Snapshots();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Repository#getId <em>Id</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Repository#getId()
- * @see #getRepository()
- * @generated
- */
- EAttribute getRepository_Id();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Repository#getName <em>Name</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Repository#getName()
- * @see #getRepository()
- * @generated
- */
- EAttribute getRepository_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Repository#getUrl <em>Url</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Url</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Repository#getUrl()
- * @see #getRepository()
- * @generated
- */
- EAttribute getRepository_Url();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Repository#getLayout <em>Layout</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Layout</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Repository#getLayout()
- * @see #getRepository()
- * @generated
- */
- EAttribute getRepository_Layout();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy
- * <em>Repository Policy</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for class '<em>Repository Policy</em>'.
- * @see org.eclipse.m2e.model.edit.pom.RepositoryPolicy
- * @generated
- */
- EClass getRepositoryPolicy();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getEnabled <em>Enabled</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Enabled</em>'.
- * @see org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getEnabled()
- * @see #getRepositoryPolicy()
- * @generated
- */
- EAttribute getRepositoryPolicy_Enabled();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getUpdatePolicy <em>Update Policy</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Update Policy</em>'.
- * @see org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getUpdatePolicy()
- * @see #getRepositoryPolicy()
- * @generated
- */
- EAttribute getRepositoryPolicy_UpdatePolicy();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getChecksumPolicy <em>Checksum Policy</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Checksum Policy</em>'.
- * @see org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getChecksumPolicy()
- * @see #getRepositoryPolicy()
- * @generated
- */
- EAttribute getRepositoryPolicy_ChecksumPolicy();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.Resource <em>Resource</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Resource</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Resource
- * @generated
- */
- EClass getResource();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Resource#getTargetPath <em>Target Path</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Target Path</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Resource#getTargetPath()
- * @see #getResource()
- * @generated
- */
- EAttribute getResource_TargetPath();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Resource#getFiltering <em>Filtering</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Filtering</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Resource#getFiltering()
- * @see #getResource()
- * @generated
- */
- EAttribute getResource_Filtering();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Resource#getDirectory <em>Directory</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Directory</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Resource#getDirectory()
- * @see #getResource()
- * @generated
- */
- EAttribute getResource_Directory();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.Resource#getIncludes <em>Includes</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute list '<em>Includes</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Resource#getIncludes()
- * @see #getResource()
- * @generated
- */
- EAttribute getResource_Includes();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.Resource#getExcludes <em>Excludes</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute list '<em>Excludes</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Resource#getExcludes()
- * @see #getResource()
- * @generated
- */
- EAttribute getResource_Excludes();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.Scm <em>Scm</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Scm</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Scm
- * @generated
- */
- EClass getScm();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Scm#getConnection <em>Connection</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Connection</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Scm#getConnection()
- * @see #getScm()
- * @generated
- */
- EAttribute getScm_Connection();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Scm#getDeveloperConnection <em>Developer Connection</em>}'.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @return the meta object for the attribute '<em>Developer Connection</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Scm#getDeveloperConnection()
- * @see #getScm()
- * @generated
- */
- EAttribute getScm_DeveloperConnection();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Scm#getTag <em>Tag</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Tag</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Scm#getTag()
- * @see #getScm()
- * @generated
- */
- EAttribute getScm_Tag();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Scm#getUrl <em>Url</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Url</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Scm#getUrl()
- * @see #getScm()
- * @generated
- */
- EAttribute getScm_Url();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.Site <em>Site</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Site</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Site
- * @generated
- */
- EClass getSite();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Site#getId <em>Id</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Id</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Site#getId()
- * @see #getSite()
- * @generated
- */
- EAttribute getSite_Id();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Site#getName <em>Name</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Site#getName()
- * @see #getSite()
- * @generated
- */
- EAttribute getSite_Name();
-
- /**
- * Returns the meta object for the attribute '
- * {@link org.eclipse.m2e.model.edit.pom.Site#getUrl <em>Url</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Url</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Site#getUrl()
- * @see #getSite()
- * @generated
- */
- EAttribute getSite_Url();
-
- /**
- * Returns the meta object for class '
- * {@link org.eclipse.m2e.model.edit.pom.PropertyElement
- * <em>Property Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return the meta object for class '<em>Property Element</em>'.
- * @see org.eclipse.m2e.model.edit.pom.PropertyElement
- * @generated
- */
- EClass getPropertyElement();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.PropertyElement#getName <em>Name</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.m2e.model.edit.pom.PropertyElement#getName()
- * @see #getPropertyElement()
- * @generated
- */
- EAttribute getPropertyElement_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.PropertyElement#getValue <em>Value</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Value</em>'.
- * @see org.eclipse.m2e.model.edit.pom.PropertyElement#getValue()
- * @see #getPropertyElement()
- * @generated
- */
- EAttribute getPropertyElement_Value();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Configuration <em>Configuration</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>Configuration</em>'.
- * @see org.eclipse.m2e.model.edit.pom.Configuration
- * @generated
- */
- EClass getConfiguration();
-
- /**
- * Returns the factory that creates the instances of the model. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the factory that creates the instances of the model.
- * @generated
- */
- PomFactory getPomFactory();
-
- /**
- * <!-- begin-user-doc --> Defines literals for the meta objects that
- * represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @generated
- */
- interface Literals {
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ActivationImpl <em>Activation</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ActivationImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivation()
- * @generated
- */
- EClass ACTIVATION = eINSTANCE.getActivation();
-
- /**
- * The meta object literal for the '<em><b>Active By Default</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute ACTIVATION__ACTIVE_BY_DEFAULT = eINSTANCE.getActivation_ActiveByDefault();
-
- /**
- * The meta object literal for the '<em><b>Jdk</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute ACTIVATION__JDK = eINSTANCE.getActivation_Jdk();
-
- /**
- * The meta object literal for the '<em><b>Os</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference ACTIVATION__OS = eINSTANCE.getActivation_Os();
-
- /**
- * The meta object literal for the '<em><b>Property</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference ACTIVATION__PROPERTY = eINSTANCE.getActivation_Property();
-
- /**
- * The meta object literal for the '<em><b>File</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference ACTIVATION__FILE = eINSTANCE.getActivation_File();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ActivationFileImpl <em>Activation File</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ActivationFileImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivationFile()
- * @generated
- */
- EClass ACTIVATION_FILE = eINSTANCE.getActivationFile();
-
- /**
- * The meta object literal for the '<em><b>Missing</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute ACTIVATION_FILE__MISSING = eINSTANCE.getActivationFile_Missing();
-
- /**
- * The meta object literal for the '<em><b>Exists</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute ACTIVATION_FILE__EXISTS = eINSTANCE.getActivationFile_Exists();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl <em>Activation OS</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivationOS()
- * @generated
- */
- EClass ACTIVATION_OS = eINSTANCE.getActivationOS();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute ACTIVATION_OS__NAME = eINSTANCE.getActivationOS_Name();
-
- /**
- * The meta object literal for the '<em><b>Family</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute ACTIVATION_OS__FAMILY = eINSTANCE.getActivationOS_Family();
-
- /**
- * The meta object literal for the '<em><b>Arch</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute ACTIVATION_OS__ARCH = eINSTANCE.getActivationOS_Arch();
-
- /**
- * The meta object literal for the '<em><b>Version</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute ACTIVATION_OS__VERSION = eINSTANCE.getActivationOS_Version();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ActivationPropertyImpl <em>Activation Property</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ActivationPropertyImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivationProperty()
- * @generated
- */
- EClass ACTIVATION_PROPERTY = eINSTANCE.getActivationProperty();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute ACTIVATION_PROPERTY__NAME = eINSTANCE.getActivationProperty_Name();
-
- /**
- * The meta object literal for the '<em><b>Value</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute ACTIVATION_PROPERTY__VALUE = eINSTANCE.getActivationProperty_Value();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl <em>Build</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.BuildImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getBuild()
- * @generated
- */
- EClass BUILD = eINSTANCE.getBuild();
-
- /**
- * The meta object literal for the '<em><b>Source Directory</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute BUILD__SOURCE_DIRECTORY = eINSTANCE.getBuild_SourceDirectory();
-
- /**
- * The meta object literal for the '
- * <em><b>Script Source Directory</b></em>' attribute feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute BUILD__SCRIPT_SOURCE_DIRECTORY = eINSTANCE.getBuild_ScriptSourceDirectory();
-
- /**
- * The meta object literal for the '
- * <em><b>Test Source Directory</b></em>' attribute feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute BUILD__TEST_SOURCE_DIRECTORY = eINSTANCE.getBuild_TestSourceDirectory();
-
- /**
- * The meta object literal for the '<em><b>Output Directory</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute BUILD__OUTPUT_DIRECTORY = eINSTANCE.getBuild_OutputDirectory();
-
- /**
- * The meta object literal for the '
- * <em><b>Test Output Directory</b></em>' attribute feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute BUILD__TEST_OUTPUT_DIRECTORY = eINSTANCE.getBuild_TestOutputDirectory();
-
- /**
- * The meta object literal for the '<em><b>Extensions</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference BUILD__EXTENSIONS = eINSTANCE.getBuild_Extensions();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl <em>Build Base</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getBuildBase()
- * @generated
- */
- EClass BUILD_BASE = eINSTANCE.getBuildBase();
-
- /**
- * The meta object literal for the '<em><b>Default Goal</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute BUILD_BASE__DEFAULT_GOAL = eINSTANCE.getBuildBase_DefaultGoal();
-
- /**
- * The meta object literal for the '<em><b>Resources</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference BUILD_BASE__RESOURCES = eINSTANCE.getBuildBase_Resources();
-
- /**
- * The meta object literal for the '<em><b>Test Resources</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference BUILD_BASE__TEST_RESOURCES = eINSTANCE.getBuildBase_TestResources();
-
- /**
- * The meta object literal for the '<em><b>Directory</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute BUILD_BASE__DIRECTORY = eINSTANCE.getBuildBase_Directory();
-
- /**
- * The meta object literal for the '<em><b>Final Name</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute BUILD_BASE__FINAL_NAME = eINSTANCE.getBuildBase_FinalName();
-
- /**
- * The meta object literal for the '<em><b>Plugin Management</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference BUILD_BASE__PLUGIN_MANAGEMENT = eINSTANCE.getBuildBase_PluginManagement();
-
- /**
- * The meta object literal for the '<em><b>Plugins</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference BUILD_BASE__PLUGINS = eINSTANCE.getBuildBase_Plugins();
-
- /**
- * The meta object literal for the '<em><b>Filters</b></em>' attribute list feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute BUILD_BASE__FILTERS = eINSTANCE.getBuildBase_Filters();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.CiManagementImpl <em>Ci Management</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.CiManagementImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getCiManagement()
- * @generated
- */
- EClass CI_MANAGEMENT = eINSTANCE.getCiManagement();
-
- /**
- * The meta object literal for the '<em><b>System</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute CI_MANAGEMENT__SYSTEM = eINSTANCE.getCiManagement_System();
-
- /**
- * The meta object literal for the '<em><b>Url</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute CI_MANAGEMENT__URL = eINSTANCE.getCiManagement_Url();
-
- /**
- * The meta object literal for the '<em><b>Notifiers</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference CI_MANAGEMENT__NOTIFIERS = eINSTANCE.getCiManagement_Notifiers();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl <em>Contributor</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ContributorImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getContributor()
- * @generated
- */
- EClass CONTRIBUTOR = eINSTANCE.getContributor();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute CONTRIBUTOR__NAME = eINSTANCE.getContributor_Name();
-
- /**
- * The meta object literal for the '<em><b>Email</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute CONTRIBUTOR__EMAIL = eINSTANCE.getContributor_Email();
-
- /**
- * The meta object literal for the '<em><b>Url</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute CONTRIBUTOR__URL = eINSTANCE.getContributor_Url();
-
- /**
- * The meta object literal for the '<em><b>Organization</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute CONTRIBUTOR__ORGANIZATION = eINSTANCE.getContributor_Organization();
-
- /**
- * The meta object literal for the '<em><b>Organization Url</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute CONTRIBUTOR__ORGANIZATION_URL = eINSTANCE.getContributor_OrganizationUrl();
-
- /**
- * The meta object literal for the '<em><b>Timezone</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute CONTRIBUTOR__TIMEZONE = eINSTANCE.getContributor_Timezone();
-
- /**
- * The meta object literal for the '<em><b>Properties</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference CONTRIBUTOR__PROPERTIES = eINSTANCE.getContributor_Properties();
-
- /**
- * The meta object literal for the '<em><b>Roles</b></em>' attribute list feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute CONTRIBUTOR__ROLES = eINSTANCE.getContributor_Roles();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl <em>Dependency</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.DependencyImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDependency()
- * @generated
- */
- EClass DEPENDENCY = eINSTANCE.getDependency();
-
- /**
- * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEPENDENCY__GROUP_ID = eINSTANCE.getDependency_GroupId();
-
- /**
- * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEPENDENCY__ARTIFACT_ID = eINSTANCE.getDependency_ArtifactId();
-
- /**
- * The meta object literal for the '<em><b>Version</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEPENDENCY__VERSION = eINSTANCE.getDependency_Version();
-
- /**
- * The meta object literal for the '<em><b>Type</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEPENDENCY__TYPE = eINSTANCE.getDependency_Type();
-
- /**
- * The meta object literal for the '<em><b>Classifier</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEPENDENCY__CLASSIFIER = eINSTANCE.getDependency_Classifier();
-
- /**
- * The meta object literal for the '<em><b>Scope</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEPENDENCY__SCOPE = eINSTANCE.getDependency_Scope();
-
- /**
- * The meta object literal for the '<em><b>System Path</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEPENDENCY__SYSTEM_PATH = eINSTANCE.getDependency_SystemPath();
-
- /**
- * The meta object literal for the '<em><b>Exclusions</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference DEPENDENCY__EXCLUSIONS = eINSTANCE.getDependency_Exclusions();
-
- /**
- * The meta object literal for the '<em><b>Optional</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEPENDENCY__OPTIONAL = eINSTANCE.getDependency_Optional();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.DependencyManagementImpl <em>Dependency Management</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.DependencyManagementImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDependencyManagement()
- * @generated
- */
- EClass DEPENDENCY_MANAGEMENT = eINSTANCE.getDependencyManagement();
-
- /**
- * The meta object literal for the '<em><b>Dependencies</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference DEPENDENCY_MANAGEMENT__DEPENDENCIES = eINSTANCE.getDependencyManagement_Dependencies();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl <em>Deployment Repository</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDeploymentRepository()
- * @generated
- */
- EClass DEPLOYMENT_REPOSITORY = eINSTANCE.getDeploymentRepository();
-
- /**
- * The meta object literal for the '<em><b>Unique Version</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEPLOYMENT_REPOSITORY__UNIQUE_VERSION = eINSTANCE.getDeploymentRepository_UniqueVersion();
-
- /**
- * The meta object literal for the '<em><b>Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEPLOYMENT_REPOSITORY__ID = eINSTANCE.getDeploymentRepository_Id();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEPLOYMENT_REPOSITORY__NAME = eINSTANCE.getDeploymentRepository_Name();
-
- /**
- * The meta object literal for the '<em><b>Url</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEPLOYMENT_REPOSITORY__URL = eINSTANCE.getDeploymentRepository_Url();
-
- /**
- * The meta object literal for the '<em><b>Layout</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEPLOYMENT_REPOSITORY__LAYOUT = eINSTANCE.getDeploymentRepository_Layout();
-
- /**
- * The meta object literal for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl
- * <em>Developer</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDeveloper()
- * @generated
- */
- EClass DEVELOPER = eINSTANCE.getDeveloper();
-
- /**
- * The meta object literal for the '<em><b>Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEVELOPER__ID = eINSTANCE.getDeveloper_Id();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEVELOPER__NAME = eINSTANCE.getDeveloper_Name();
-
- /**
- * The meta object literal for the '<em><b>Email</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEVELOPER__EMAIL = eINSTANCE.getDeveloper_Email();
-
- /**
- * The meta object literal for the '<em><b>Url</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEVELOPER__URL = eINSTANCE.getDeveloper_Url();
-
- /**
- * The meta object literal for the '<em><b>Organization</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEVELOPER__ORGANIZATION = eINSTANCE.getDeveloper_Organization();
-
- /**
- * The meta object literal for the '<em><b>Organization Url</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEVELOPER__ORGANIZATION_URL = eINSTANCE.getDeveloper_OrganizationUrl();
-
- /**
- * The meta object literal for the '<em><b>Timezone</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEVELOPER__TIMEZONE = eINSTANCE.getDeveloper_Timezone();
-
- /**
- * The meta object literal for the '<em><b>Properties</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference DEVELOPER__PROPERTIES = eINSTANCE.getDeveloper_Properties();
-
- /**
- * The meta object literal for the '<em><b>Roles</b></em>' attribute list feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DEVELOPER__ROLES = eINSTANCE.getDeveloper_Roles();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl <em>Distribution Management</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDistributionManagement()
- * @generated
- */
- EClass DISTRIBUTION_MANAGEMENT = eINSTANCE.getDistributionManagement();
-
- /**
- * The meta object literal for the '<em><b>Repository</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference DISTRIBUTION_MANAGEMENT__REPOSITORY = eINSTANCE.getDistributionManagement_Repository();
-
- /**
- * The meta object literal for the '<em><b>Snapshot Repository</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY = eINSTANCE.getDistributionManagement_SnapshotRepository();
-
- /**
- * The meta object literal for the '<em><b>Site</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference DISTRIBUTION_MANAGEMENT__SITE = eINSTANCE.getDistributionManagement_Site();
-
- /**
- * The meta object literal for the '<em><b>Download Url</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL = eINSTANCE.getDistributionManagement_DownloadUrl();
-
- /**
- * The meta object literal for the '<em><b>Relocation</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference DISTRIBUTION_MANAGEMENT__RELOCATION = eINSTANCE.getDistributionManagement_Relocation();
-
- /**
- * The meta object literal for the '<em><b>Status</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DISTRIBUTION_MANAGEMENT__STATUS = eINSTANCE.getDistributionManagement_Status();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl <em>Document Root</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDocumentRoot()
- * @generated
- */
- EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
-
- /**
- * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed();
-
- /**
- * The meta object literal for the '<em><b>XMLNS Prefix Map</b></em>' map feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getDocumentRoot_XMLNSPrefixMap();
-
- /**
- * The meta object literal for the '<em><b>XSI Schema Location</b></em>' map feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getDocumentRoot_XSISchemaLocation();
-
- /**
- * The meta object literal for the '<em><b>Project</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference DOCUMENT_ROOT__PROJECT = eINSTANCE.getDocumentRoot_Project();
-
- /**
- * The meta object literal for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.ExclusionImpl
- * <em>Exclusion</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.ExclusionImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getExclusion()
- * @generated
- */
- EClass EXCLUSION = eINSTANCE.getExclusion();
-
- /**
- * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute EXCLUSION__ARTIFACT_ID = eINSTANCE.getExclusion_ArtifactId();
-
- /**
- * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute EXCLUSION__GROUP_ID = eINSTANCE.getExclusion_GroupId();
-
- /**
- * The meta object literal for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.ExtensionImpl
- * <em>Extension</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.ExtensionImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getExtension()
- * @generated
- */
- EClass EXTENSION = eINSTANCE.getExtension();
-
- /**
- * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute EXTENSION__GROUP_ID = eINSTANCE.getExtension_GroupId();
-
- /**
- * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute EXTENSION__ARTIFACT_ID = eINSTANCE.getExtension_ArtifactId();
-
- /**
- * The meta object literal for the '<em><b>Version</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute EXTENSION__VERSION = eINSTANCE.getExtension_Version();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.IssueManagementImpl <em>Issue Management</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.IssueManagementImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getIssueManagement()
- * @generated
- */
- EClass ISSUE_MANAGEMENT = eINSTANCE.getIssueManagement();
-
- /**
- * The meta object literal for the '<em><b>System</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute ISSUE_MANAGEMENT__SYSTEM = eINSTANCE.getIssueManagement_System();
-
- /**
- * The meta object literal for the '<em><b>Url</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute ISSUE_MANAGEMENT__URL = eINSTANCE.getIssueManagement_Url();
-
- /**
- * The meta object literal for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.LicenseImpl
- * <em>License</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.LicenseImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getLicense()
- * @generated
- */
- EClass LICENSE = eINSTANCE.getLicense();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute LICENSE__NAME = eINSTANCE.getLicense_Name();
-
- /**
- * The meta object literal for the '<em><b>Url</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute LICENSE__URL = eINSTANCE.getLicense_Url();
-
- /**
- * The meta object literal for the '<em><b>Distribution</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute LICENSE__DISTRIBUTION = eINSTANCE.getLicense_Distribution();
-
- /**
- * The meta object literal for the '<em><b>Comments</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute LICENSE__COMMENTS = eINSTANCE.getLicense_Comments();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl <em>Mailing List</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.MailingListImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getMailingList()
- * @generated
- */
- EClass MAILING_LIST = eINSTANCE.getMailingList();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MAILING_LIST__NAME = eINSTANCE.getMailingList_Name();
-
- /**
- * The meta object literal for the '<em><b>Subscribe</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MAILING_LIST__SUBSCRIBE = eINSTANCE.getMailingList_Subscribe();
-
- /**
- * The meta object literal for the '<em><b>Unsubscribe</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MAILING_LIST__UNSUBSCRIBE = eINSTANCE.getMailingList_Unsubscribe();
-
- /**
- * The meta object literal for the '<em><b>Post</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MAILING_LIST__POST = eINSTANCE.getMailingList_Post();
-
- /**
- * The meta object literal for the '<em><b>Archive</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MAILING_LIST__ARCHIVE = eINSTANCE.getMailingList_Archive();
-
- /**
- * The meta object literal for the '<em><b>Other Archives</b></em>' attribute list feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MAILING_LIST__OTHER_ARCHIVES = eINSTANCE.getMailingList_OtherArchives();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl <em>Model</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ModelImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getModel()
- * @generated
- */
- EClass MODEL = eINSTANCE.getModel();
-
- /**
- * The meta object literal for the '<em><b>Parent</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference MODEL__PARENT = eINSTANCE.getModel_Parent();
-
- /**
- * The meta object literal for the '<em><b>Model Version</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MODEL__MODEL_VERSION = eINSTANCE.getModel_ModelVersion();
-
- /**
- * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MODEL__GROUP_ID = eINSTANCE.getModel_GroupId();
-
- /**
- * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MODEL__ARTIFACT_ID = eINSTANCE.getModel_ArtifactId();
-
- /**
- * The meta object literal for the '<em><b>Packaging</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MODEL__PACKAGING = eINSTANCE.getModel_Packaging();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MODEL__NAME = eINSTANCE.getModel_Name();
-
- /**
- * The meta object literal for the '<em><b>Version</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MODEL__VERSION = eINSTANCE.getModel_Version();
-
- /**
- * The meta object literal for the '<em><b>Description</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MODEL__DESCRIPTION = eINSTANCE.getModel_Description();
-
- /**
- * The meta object literal for the '<em><b>Url</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MODEL__URL = eINSTANCE.getModel_Url();
-
- /**
- * The meta object literal for the '<em><b>Prerequisites</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference MODEL__PREREQUISITES = eINSTANCE.getModel_Prerequisites();
-
- /**
- * The meta object literal for the '<em><b>Issue Management</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference MODEL__ISSUE_MANAGEMENT = eINSTANCE.getModel_IssueManagement();
-
- /**
- * The meta object literal for the '<em><b>Ci Management</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference MODEL__CI_MANAGEMENT = eINSTANCE.getModel_CiManagement();
-
- /**
- * The meta object literal for the '<em><b>Inception Year</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MODEL__INCEPTION_YEAR = eINSTANCE.getModel_InceptionYear();
-
- /**
- * The meta object literal for the '<em><b>Mailing Lists</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference MODEL__MAILING_LISTS = eINSTANCE.getModel_MailingLists();
-
- /**
- * The meta object literal for the '<em><b>Developers</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference MODEL__DEVELOPERS = eINSTANCE.getModel_Developers();
-
- /**
- * The meta object literal for the '<em><b>Contributors</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference MODEL__CONTRIBUTORS = eINSTANCE.getModel_Contributors();
-
- /**
- * The meta object literal for the '<em><b>Licenses</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference MODEL__LICENSES = eINSTANCE.getModel_Licenses();
-
- /**
- * The meta object literal for the '<em><b>Scm</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference MODEL__SCM = eINSTANCE.getModel_Scm();
-
- /**
- * The meta object literal for the '<em><b>Organization</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference MODEL__ORGANIZATION = eINSTANCE.getModel_Organization();
-
- /**
- * The meta object literal for the '<em><b>Build</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference MODEL__BUILD = eINSTANCE.getModel_Build();
-
- /**
- * The meta object literal for the '<em><b>Profiles</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference MODEL__PROFILES = eINSTANCE.getModel_Profiles();
-
- /**
- * The meta object literal for the '<em><b>Repositories</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference MODEL__REPOSITORIES = eINSTANCE.getModel_Repositories();
-
- /**
- * The meta object literal for the '<em><b>Plugin Repositories</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference MODEL__PLUGIN_REPOSITORIES = eINSTANCE.getModel_PluginRepositories();
-
- /**
- * The meta object literal for the '<em><b>Dependencies</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference MODEL__DEPENDENCIES = eINSTANCE.getModel_Dependencies();
-
- /**
- * The meta object literal for the '<em><b>Reporting</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference MODEL__REPORTING = eINSTANCE.getModel_Reporting();
-
- /**
- * The meta object literal for the '<em><b>Dependency Management</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference MODEL__DEPENDENCY_MANAGEMENT = eINSTANCE.getModel_DependencyManagement();
-
- /**
- * The meta object literal for the '<em><b>Distribution Management</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference MODEL__DISTRIBUTION_MANAGEMENT = eINSTANCE.getModel_DistributionManagement();
-
- /**
- * The meta object literal for the '<em><b>Properties</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference MODEL__PROPERTIES = eINSTANCE.getModel_Properties();
-
- /**
- * The meta object literal for the '<em><b>Modules</b></em>' attribute list feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute MODEL__MODULES = eINSTANCE.getModel_Modules();
-
- /**
- * The meta object literal for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl
- * <em>Notifier</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.NotifierImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getNotifier()
- * @generated
- */
- EClass NOTIFIER = eINSTANCE.getNotifier();
-
- /**
- * The meta object literal for the '<em><b>Type</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute NOTIFIER__TYPE = eINSTANCE.getNotifier_Type();
-
- /**
- * The meta object literal for the '<em><b>Send On Error</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute NOTIFIER__SEND_ON_ERROR = eINSTANCE.getNotifier_SendOnError();
-
- /**
- * The meta object literal for the '<em><b>Send On Failure</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute NOTIFIER__SEND_ON_FAILURE = eINSTANCE.getNotifier_SendOnFailure();
-
- /**
- * The meta object literal for the '<em><b>Send On Success</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute NOTIFIER__SEND_ON_SUCCESS = eINSTANCE.getNotifier_SendOnSuccess();
-
- /**
- * The meta object literal for the '<em><b>Send On Warning</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute NOTIFIER__SEND_ON_WARNING = eINSTANCE.getNotifier_SendOnWarning();
-
- /**
- * The meta object literal for the '<em><b>Address</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute NOTIFIER__ADDRESS = eINSTANCE.getNotifier_Address();
-
- /**
- * The meta object literal for the '<em><b>Configuration</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference NOTIFIER__CONFIGURATION = eINSTANCE.getNotifier_Configuration();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.OrganizationImpl <em>Organization</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.OrganizationImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getOrganization()
- * @generated
- */
- EClass ORGANIZATION = eINSTANCE.getOrganization();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute ORGANIZATION__NAME = eINSTANCE.getOrganization_Name();
-
- /**
- * The meta object literal for the '<em><b>Url</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute ORGANIZATION__URL = eINSTANCE.getOrganization_Url();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ParentImpl <em>Parent</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ParentImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getParent()
- * @generated
- */
- EClass PARENT = eINSTANCE.getParent();
-
- /**
- * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PARENT__ARTIFACT_ID = eINSTANCE.getParent_ArtifactId();
-
- /**
- * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PARENT__GROUP_ID = eINSTANCE.getParent_GroupId();
-
- /**
- * The meta object literal for the '<em><b>Version</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PARENT__VERSION = eINSTANCE.getParent_Version();
-
- /**
- * The meta object literal for the '<em><b>Relative Path</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PARENT__RELATIVE_PATH = eINSTANCE.getParent_RelativePath();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl <em>Plugin</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.PluginImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPlugin()
- * @generated
- */
- EClass PLUGIN = eINSTANCE.getPlugin();
-
- /**
- * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PLUGIN__GROUP_ID = eINSTANCE.getPlugin_GroupId();
-
- /**
- * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PLUGIN__ARTIFACT_ID = eINSTANCE.getPlugin_ArtifactId();
-
- /**
- * The meta object literal for the '<em><b>Version</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PLUGIN__VERSION = eINSTANCE.getPlugin_Version();
-
- /**
- * The meta object literal for the '<em><b>Extensions</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PLUGIN__EXTENSIONS = eINSTANCE.getPlugin_Extensions();
-
- /**
- * The meta object literal for the '<em><b>Executions</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference PLUGIN__EXECUTIONS = eINSTANCE.getPlugin_Executions();
-
- /**
- * The meta object literal for the '<em><b>Dependencies</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference PLUGIN__DEPENDENCIES = eINSTANCE.getPlugin_Dependencies();
-
- /**
- * The meta object literal for the '<em><b>Inherited</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PLUGIN__INHERITED = eINSTANCE.getPlugin_Inherited();
-
- /**
- * The meta object literal for the '<em><b>Configuration</b></em>' reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference PLUGIN__CONFIGURATION = eINSTANCE.getPlugin_Configuration();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl <em>Plugin Execution</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPluginExecution()
- * @generated
- */
- EClass PLUGIN_EXECUTION = eINSTANCE.getPluginExecution();
-
- /**
- * The meta object literal for the '<em><b>Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PLUGIN_EXECUTION__ID = eINSTANCE.getPluginExecution_Id();
-
- /**
- * The meta object literal for the '<em><b>Phase</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PLUGIN_EXECUTION__PHASE = eINSTANCE.getPluginExecution_Phase();
-
- /**
- * The meta object literal for the '<em><b>Inherited</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PLUGIN_EXECUTION__INHERITED = eINSTANCE.getPluginExecution_Inherited();
-
- /**
- * The meta object literal for the '<em><b>Goals</b></em>' attribute list feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PLUGIN_EXECUTION__GOALS = eINSTANCE.getPluginExecution_Goals();
-
- /**
- * The meta object literal for the '<em><b>Configuration</b></em>' reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference PLUGIN_EXECUTION__CONFIGURATION = eINSTANCE.getPluginExecution_Configuration();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.PluginManagementImpl <em>Plugin Management</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.PluginManagementImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPluginManagement()
- * @generated
- */
- EClass PLUGIN_MANAGEMENT = eINSTANCE.getPluginManagement();
-
- /**
- * The meta object literal for the '<em><b>Plugins</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference PLUGIN_MANAGEMENT__PLUGINS = eINSTANCE.getPluginManagement_Plugins();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.PrerequisitesImpl <em>Prerequisites</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.PrerequisitesImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPrerequisites()
- * @generated
- */
- EClass PREREQUISITES = eINSTANCE.getPrerequisites();
-
- /**
- * The meta object literal for the '<em><b>Maven</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PREREQUISITES__MAVEN = eINSTANCE.getPrerequisites_Maven();
-
- /**
- * The meta object literal for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl
- * <em>Profile</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.ProfileImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getProfile()
- * @generated
- */
- EClass PROFILE = eINSTANCE.getProfile();
-
- /**
- * The meta object literal for the '<em><b>Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PROFILE__ID = eINSTANCE.getProfile_Id();
-
- /**
- * The meta object literal for the '<em><b>Activation</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference PROFILE__ACTIVATION = eINSTANCE.getProfile_Activation();
-
- /**
- * The meta object literal for the '<em><b>Build</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference PROFILE__BUILD = eINSTANCE.getProfile_Build();
-
- /**
- * The meta object literal for the '<em><b>Repositories</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference PROFILE__REPOSITORIES = eINSTANCE.getProfile_Repositories();
-
- /**
- * The meta object literal for the '<em><b>Plugin Repositories</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference PROFILE__PLUGIN_REPOSITORIES = eINSTANCE.getProfile_PluginRepositories();
-
- /**
- * The meta object literal for the '<em><b>Dependencies</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference PROFILE__DEPENDENCIES = eINSTANCE.getProfile_Dependencies();
-
- /**
- * The meta object literal for the '<em><b>Reports</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference PROFILE__REPORTS = eINSTANCE.getProfile_Reports();
-
- /**
- * The meta object literal for the '<em><b>Dependency Management</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference PROFILE__DEPENDENCY_MANAGEMENT = eINSTANCE.getProfile_DependencyManagement();
-
- /**
- * The meta object literal for the '<em><b>Distribution Management</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference PROFILE__DISTRIBUTION_MANAGEMENT = eINSTANCE.getProfile_DistributionManagement();
-
- /**
- * The meta object literal for the '<em><b>Properties</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference PROFILE__PROPERTIES = eINSTANCE.getProfile_Properties();
-
- /**
- * The meta object literal for the '<em><b>Modules</b></em>' attribute list feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PROFILE__MODULES = eINSTANCE.getProfile_Modules();
-
- /**
- * The meta object literal for the '<em><b>Reporting</b></em>' reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference PROFILE__REPORTING = eINSTANCE.getProfile_Reporting();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.RelocationImpl <em>Relocation</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.RelocationImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getRelocation()
- * @generated
- */
- EClass RELOCATION = eINSTANCE.getRelocation();
-
- /**
- * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute RELOCATION__GROUP_ID = eINSTANCE.getRelocation_GroupId();
-
- /**
- * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute RELOCATION__ARTIFACT_ID = eINSTANCE.getRelocation_ArtifactId();
-
- /**
- * The meta object literal for the '<em><b>Version</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute RELOCATION__VERSION = eINSTANCE.getRelocation_Version();
-
- /**
- * The meta object literal for the '<em><b>Message</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute RELOCATION__MESSAGE = eINSTANCE.getRelocation_Message();
-
- /**
- * The meta object literal for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.ReportingImpl
- * <em>Reporting</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.ReportingImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getReporting()
- * @generated
- */
- EClass REPORTING = eINSTANCE.getReporting();
-
- /**
- * The meta object literal for the '<em><b>Exclude Defaults</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPORTING__EXCLUDE_DEFAULTS = eINSTANCE.getReporting_ExcludeDefaults();
-
- /**
- * The meta object literal for the '<em><b>Output Directory</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPORTING__OUTPUT_DIRECTORY = eINSTANCE.getReporting_OutputDirectory();
-
- /**
- * The meta object literal for the '<em><b>Plugins</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference REPORTING__PLUGINS = eINSTANCE.getReporting_Plugins();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl <em>Report Plugin</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getReportPlugin()
- * @generated
- */
- EClass REPORT_PLUGIN = eINSTANCE.getReportPlugin();
-
- /**
- * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPORT_PLUGIN__GROUP_ID = eINSTANCE.getReportPlugin_GroupId();
-
- /**
- * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPORT_PLUGIN__ARTIFACT_ID = eINSTANCE.getReportPlugin_ArtifactId();
-
- /**
- * The meta object literal for the '<em><b>Version</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPORT_PLUGIN__VERSION = eINSTANCE.getReportPlugin_Version();
-
- /**
- * The meta object literal for the '<em><b>Inherited</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPORT_PLUGIN__INHERITED = eINSTANCE.getReportPlugin_Inherited();
-
- /**
- * The meta object literal for the '<em><b>Report Sets</b></em>' containment reference list feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference REPORT_PLUGIN__REPORT_SETS = eINSTANCE.getReportPlugin_ReportSets();
-
- /**
- * The meta object literal for the '<em><b>Configuration</b></em>' reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference REPORT_PLUGIN__CONFIGURATION = eINSTANCE.getReportPlugin_Configuration();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl <em>Report Set</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getReportSet()
- * @generated
- */
- EClass REPORT_SET = eINSTANCE.getReportSet();
-
- /**
- * The meta object literal for the '<em><b>Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPORT_SET__ID = eINSTANCE.getReportSet_Id();
-
- /**
- * The meta object literal for the '<em><b>Inherited</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPORT_SET__INHERITED = eINSTANCE.getReportSet_Inherited();
-
- /**
- * The meta object literal for the '<em><b>Reports</b></em>' attribute list feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPORT_SET__REPORTS = eINSTANCE.getReportSet_Reports();
-
- /**
- * The meta object literal for the '<em><b>Configuration</b></em>' reference feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EReference REPORT_SET__CONFIGURATION = eINSTANCE.getReportSet_Configuration();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl <em>Repository</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getRepository()
- * @generated
- */
- EClass REPOSITORY = eINSTANCE.getRepository();
-
- /**
- * The meta object literal for the '<em><b>Releases</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference REPOSITORY__RELEASES = eINSTANCE.getRepository_Releases();
-
- /**
- * The meta object literal for the '<em><b>Snapshots</b></em>' containment reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference REPOSITORY__SNAPSHOTS = eINSTANCE.getRepository_Snapshots();
-
- /**
- * The meta object literal for the '<em><b>Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPOSITORY__ID = eINSTANCE.getRepository_Id();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPOSITORY__NAME = eINSTANCE.getRepository_Name();
-
- /**
- * The meta object literal for the '<em><b>Url</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPOSITORY__URL = eINSTANCE.getRepository_Url();
-
- /**
- * The meta object literal for the '<em><b>Layout</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPOSITORY__LAYOUT = eINSTANCE.getRepository_Layout();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryPolicyImpl <em>Repository Policy</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.RepositoryPolicyImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getRepositoryPolicy()
- * @generated
- */
- EClass REPOSITORY_POLICY = eINSTANCE.getRepositoryPolicy();
-
- /**
- * The meta object literal for the '<em><b>Enabled</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPOSITORY_POLICY__ENABLED = eINSTANCE.getRepositoryPolicy_Enabled();
-
- /**
- * The meta object literal for the '<em><b>Update Policy</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPOSITORY_POLICY__UPDATE_POLICY = eINSTANCE.getRepositoryPolicy_UpdatePolicy();
-
- /**
- * The meta object literal for the '<em><b>Checksum Policy</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute REPOSITORY_POLICY__CHECKSUM_POLICY = eINSTANCE.getRepositoryPolicy_ChecksumPolicy();
-
- /**
- * The meta object literal for the '
- * {@link org.eclipse.m2e.model.edit.pom.impl.ResourceImpl
- * <em>Resource</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see org.eclipse.m2e.model.edit.pom.impl.ResourceImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getResource()
- * @generated
- */
- EClass RESOURCE = eINSTANCE.getResource();
-
- /**
- * The meta object literal for the '<em><b>Target Path</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute RESOURCE__TARGET_PATH = eINSTANCE.getResource_TargetPath();
-
- /**
- * The meta object literal for the '<em><b>Filtering</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute RESOURCE__FILTERING = eINSTANCE.getResource_Filtering();
-
- /**
- * The meta object literal for the '<em><b>Directory</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute RESOURCE__DIRECTORY = eINSTANCE.getResource_Directory();
-
- /**
- * The meta object literal for the '<em><b>Includes</b></em>' attribute list feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute RESOURCE__INCLUDES = eINSTANCE.getResource_Includes();
-
- /**
- * The meta object literal for the '<em><b>Excludes</b></em>' attribute list feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute RESOURCE__EXCLUDES = eINSTANCE.getResource_Excludes();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ScmImpl <em>Scm</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ScmImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getScm()
- * @generated
- */
- EClass SCM = eINSTANCE.getScm();
-
- /**
- * The meta object literal for the '<em><b>Connection</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute SCM__CONNECTION = eINSTANCE.getScm_Connection();
-
- /**
- * The meta object literal for the '<em><b>Developer Connection</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute SCM__DEVELOPER_CONNECTION = eINSTANCE.getScm_DeveloperConnection();
-
- /**
- * The meta object literal for the '<em><b>Tag</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute SCM__TAG = eINSTANCE.getScm_Tag();
-
- /**
- * The meta object literal for the '<em><b>Url</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute SCM__URL = eINSTANCE.getScm_Url();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.SiteImpl <em>Site</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.SiteImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getSite()
- * @generated
- */
- EClass SITE = eINSTANCE.getSite();
-
- /**
- * The meta object literal for the '<em><b>Id</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute SITE__ID = eINSTANCE.getSite_Id();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute SITE__NAME = eINSTANCE.getSite_Name();
-
- /**
- * The meta object literal for the '<em><b>Url</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute SITE__URL = eINSTANCE.getSite_Url();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.PropertyElementImpl <em>Property Element</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.PropertyElementImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPropertyElement()
- * @generated
- */
- EClass PROPERTY_ELEMENT = eINSTANCE.getPropertyElement();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PROPERTY_ELEMENT__NAME = eINSTANCE.getPropertyElement_Name();
-
- /**
- * The meta object literal for the '<em><b>Value</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute PROPERTY_ELEMENT__VALUE = eINSTANCE.getPropertyElement_Value();
-
- /**
- * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ConfigurationImpl <em>Configuration</em>}' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see org.eclipse.m2e.model.edit.pom.impl.ConfigurationImpl
- * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getConfiguration()
- * @generated
- */
- EClass CONFIGURATION = eINSTANCE.getConfiguration();
-
- }
+ /**
+ * The package name. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNAME = "pom"; //$NON-NLS-1$
+
+ /**
+ * The package namespace URI. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNS_URI = "http://maven.apache.org/POM/4.0.0"; //$NON-NLS-1$
+
+ /**
+ * The package namespace name. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNS_PREFIX = "pom"; //$NON-NLS-1$
+
+ /**
+ * The singleton instance of the package. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ PomPackage eINSTANCE = org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl.init();
+
+ /**
+ * The meta object id for the ' {@link org.eclipse.m2e.model.edit.pom.impl.ActivationImpl <em>Activation</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ActivationImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivation()
+ * @generated
+ */
+ int ACTIVATION = 0;
+
+ /**
+ * The feature id for the '<em><b>Active By Default</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION__ACTIVE_BY_DEFAULT = 0;
+
+ /**
+ * The feature id for the '<em><b>Jdk</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION__JDK = 1;
+
+ /**
+ * The feature id for the '<em><b>Os</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION__OS = 2;
+
+ /**
+ * The feature id for the '<em><b>Property</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION__PROPERTY = 3;
+
+ /**
+ * The feature id for the '<em><b>File</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION__FILE = 4;
+
+ /**
+ * The number of structural features of the '<em>Activation</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION_FEATURE_COUNT = 5;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ActivationFileImpl <em>Activation File</em>}
+ * ' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ActivationFileImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivationFile()
+ * @generated
+ */
+ int ACTIVATION_FILE = 1;
+
+ /**
+ * The feature id for the '<em><b>Missing</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION_FILE__MISSING = 0;
+
+ /**
+ * The feature id for the '<em><b>Exists</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION_FILE__EXISTS = 1;
+
+ /**
+ * The number of structural features of the '<em>Activation File</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION_FILE_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the ' {@link org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl <em>Activation OS</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivationOS()
+ * @generated
+ */
+ int ACTIVATION_OS = 2;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION_OS__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Family</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION_OS__FAMILY = 1;
+
+ /**
+ * The feature id for the '<em><b>Arch</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION_OS__ARCH = 2;
+
+ /**
+ * The feature id for the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION_OS__VERSION = 3;
+
+ /**
+ * The number of structural features of the '<em>Activation OS</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION_OS_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ActivationPropertyImpl
+ * <em>Activation Property</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ActivationPropertyImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivationProperty()
+ * @generated
+ */
+ int ACTIVATION_PROPERTY = 3;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION_PROPERTY__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Value</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION_PROPERTY__VALUE = 1;
+
+ /**
+ * The number of structural features of the '<em>Activation Property</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ACTIVATION_PROPERTY_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the ' {@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl <em>Build Base</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getBuildBase()
+ * @generated
+ */
+ int BUILD_BASE = 5;
+
+ /**
+ * The feature id for the '<em><b>Default Goal</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD_BASE__DEFAULT_GOAL = 0;
+
+ /**
+ * The feature id for the '<em><b>Resources</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD_BASE__RESOURCES = 1;
+
+ /**
+ * The feature id for the '<em><b>Test Resources</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD_BASE__TEST_RESOURCES = 2;
+
+ /**
+ * The feature id for the '<em><b>Directory</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD_BASE__DIRECTORY = 3;
+
+ /**
+ * The feature id for the '<em><b>Final Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD_BASE__FINAL_NAME = 4;
+
+ /**
+ * The feature id for the '<em><b>Plugin Management</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD_BASE__PLUGIN_MANAGEMENT = 5;
+
+ /**
+ * The feature id for the '<em><b>Plugins</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD_BASE__PLUGINS = 6;
+
+ /**
+ * The feature id for the '<em><b>Filters</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD_BASE__FILTERS = 7;
+
+ /**
+ * The number of structural features of the '<em>Build Base</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD_BASE_FEATURE_COUNT = 8;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl <em>Build</em>}' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.BuildImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getBuild()
+ * @generated
+ */
+ int BUILD = 4;
+
+ /**
+ * The feature id for the '<em><b>Default Goal</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD__DEFAULT_GOAL = BUILD_BASE__DEFAULT_GOAL;
+
+ /**
+ * The feature id for the '<em><b>Resources</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD__RESOURCES = BUILD_BASE__RESOURCES;
+
+ /**
+ * The feature id for the '<em><b>Test Resources</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD__TEST_RESOURCES = BUILD_BASE__TEST_RESOURCES;
+
+ /**
+ * The feature id for the '<em><b>Directory</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD__DIRECTORY = BUILD_BASE__DIRECTORY;
+
+ /**
+ * The feature id for the '<em><b>Final Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD__FINAL_NAME = BUILD_BASE__FINAL_NAME;
+
+ /**
+ * The feature id for the '<em><b>Plugin Management</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD__PLUGIN_MANAGEMENT = BUILD_BASE__PLUGIN_MANAGEMENT;
+
+ /**
+ * The feature id for the '<em><b>Plugins</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD__PLUGINS = BUILD_BASE__PLUGINS;
+
+ /**
+ * The feature id for the '<em><b>Filters</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD__FILTERS = BUILD_BASE__FILTERS;
+
+ /**
+ * The feature id for the '<em><b>Source Directory</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD__SOURCE_DIRECTORY = BUILD_BASE_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Script Source Directory</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD__SCRIPT_SOURCE_DIRECTORY = BUILD_BASE_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Test Source Directory</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD__TEST_SOURCE_DIRECTORY = BUILD_BASE_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Output Directory</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD__OUTPUT_DIRECTORY = BUILD_BASE_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>Test Output Directory</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD__TEST_OUTPUT_DIRECTORY = BUILD_BASE_FEATURE_COUNT + 4;
+
+ /**
+ * The feature id for the '<em><b>Extensions</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD__EXTENSIONS = BUILD_BASE_FEATURE_COUNT + 5;
+
+ /**
+ * The number of structural features of the '<em>Build</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BUILD_FEATURE_COUNT = BUILD_BASE_FEATURE_COUNT + 6;
+
+ /**
+ * The meta object id for the ' {@link org.eclipse.m2e.model.edit.pom.impl.CiManagementImpl <em>Ci Management</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.CiManagementImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getCiManagement()
+ * @generated
+ */
+ int CI_MANAGEMENT = 6;
+
+ /**
+ * The feature id for the '<em><b>System</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CI_MANAGEMENT__SYSTEM = 0;
+
+ /**
+ * The feature id for the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CI_MANAGEMENT__URL = 1;
+
+ /**
+ * The feature id for the '<em><b>Notifiers</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CI_MANAGEMENT__NOTIFIERS = 2;
+
+ /**
+ * The number of structural features of the '<em>Ci Management</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CI_MANAGEMENT_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the ' {@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl <em>Contributor</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ContributorImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getContributor()
+ * @generated
+ */
+ int CONTRIBUTOR = 7;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTRIBUTOR__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Email</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTRIBUTOR__EMAIL = 1;
+
+ /**
+ * The feature id for the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTRIBUTOR__URL = 2;
+
+ /**
+ * The feature id for the '<em><b>Organization</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTRIBUTOR__ORGANIZATION = 3;
+
+ /**
+ * The feature id for the '<em><b>Organization Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTRIBUTOR__ORGANIZATION_URL = 4;
+
+ /**
+ * The feature id for the '<em><b>Timezone</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTRIBUTOR__TIMEZONE = 5;
+
+ /**
+ * The feature id for the '<em><b>Properties</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTRIBUTOR__PROPERTIES = 6;
+
+ /**
+ * The feature id for the '<em><b>Roles</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTRIBUTOR__ROLES = 7;
+
+ /**
+ * The number of structural features of the '<em>Contributor</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTRIBUTOR_FEATURE_COUNT = 8;
+
+ /**
+ * The meta object id for the ' {@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl <em>Dependency</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.DependencyImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDependency()
+ * @generated
+ */
+ int DEPENDENCY = 8;
+
+ /**
+ * The feature id for the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPENDENCY__GROUP_ID = 0;
+
+ /**
+ * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPENDENCY__ARTIFACT_ID = 1;
+
+ /**
+ * The feature id for the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPENDENCY__VERSION = 2;
+
+ /**
+ * The feature id for the '<em><b>Type</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPENDENCY__TYPE = 3;
+
+ /**
+ * The feature id for the '<em><b>Classifier</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPENDENCY__CLASSIFIER = 4;
+
+ /**
+ * The feature id for the '<em><b>Scope</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPENDENCY__SCOPE = 5;
+
+ /**
+ * The feature id for the '<em><b>System Path</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPENDENCY__SYSTEM_PATH = 6;
+
+ /**
+ * The feature id for the '<em><b>Exclusions</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPENDENCY__EXCLUSIONS = 7;
+
+ /**
+ * The feature id for the '<em><b>Optional</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPENDENCY__OPTIONAL = 8;
+
+ /**
+ * The number of structural features of the '<em>Dependency</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPENDENCY_FEATURE_COUNT = 9;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.DependencyManagementImpl
+ * <em>Dependency Management</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.DependencyManagementImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDependencyManagement()
+ * @generated
+ */
+ int DEPENDENCY_MANAGEMENT = 9;
+
+ /**
+ * The feature id for the '<em><b>Dependencies</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPENDENCY_MANAGEMENT__DEPENDENCIES = 0;
+
+ /**
+ * The number of structural features of the '<em>Dependency Management</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPENDENCY_MANAGEMENT_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl
+ * <em>Deployment Repository</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDeploymentRepository()
+ * @generated
+ */
+ int DEPLOYMENT_REPOSITORY = 10;
+
+ /**
+ * The feature id for the '<em><b>Unique Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPLOYMENT_REPOSITORY__UNIQUE_VERSION = 0;
+
+ /**
+ * The feature id for the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPLOYMENT_REPOSITORY__ID = 1;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPLOYMENT_REPOSITORY__NAME = 2;
+
+ /**
+ * The feature id for the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPLOYMENT_REPOSITORY__URL = 3;
+
+ /**
+ * The feature id for the '<em><b>Layout</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPLOYMENT_REPOSITORY__LAYOUT = 4;
+
+ /**
+ * The number of structural features of the '<em>Deployment Repository</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPLOYMENT_REPOSITORY_FEATURE_COUNT = 5;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl <em>Developer</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDeveloper()
+ * @generated
+ */
+ int DEVELOPER = 11;
+
+ /**
+ * The feature id for the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEVELOPER__ID = 0;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEVELOPER__NAME = 1;
+
+ /**
+ * The feature id for the '<em><b>Email</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEVELOPER__EMAIL = 2;
+
+ /**
+ * The feature id for the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEVELOPER__URL = 3;
+
+ /**
+ * The feature id for the '<em><b>Organization</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEVELOPER__ORGANIZATION = 4;
+
+ /**
+ * The feature id for the '<em><b>Organization Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEVELOPER__ORGANIZATION_URL = 5;
+
+ /**
+ * The feature id for the '<em><b>Timezone</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEVELOPER__TIMEZONE = 6;
+
+ /**
+ * The feature id for the '<em><b>Properties</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEVELOPER__PROPERTIES = 7;
+
+ /**
+ * The feature id for the '<em><b>Roles</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEVELOPER__ROLES = 8;
+
+ /**
+ * The number of structural features of the '<em>Developer</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DEVELOPER_FEATURE_COUNT = 9;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl
+ * <em>Distribution Management</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDistributionManagement()
+ * @generated
+ */
+ int DISTRIBUTION_MANAGEMENT = 12;
+
+ /**
+ * The feature id for the '<em><b>Repository</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DISTRIBUTION_MANAGEMENT__REPOSITORY = 0;
+
+ /**
+ * The feature id for the '<em><b>Snapshot Repository</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY = 1;
+
+ /**
+ * The feature id for the '<em><b>Site</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DISTRIBUTION_MANAGEMENT__SITE = 2;
+
+ /**
+ * The feature id for the '<em><b>Download Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL = 3;
+
+ /**
+ * The feature id for the '<em><b>Relocation</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DISTRIBUTION_MANAGEMENT__RELOCATION = 4;
+
+ /**
+ * The feature id for the '<em><b>Status</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DISTRIBUTION_MANAGEMENT__STATUS = 5;
+
+ /**
+ * The number of structural features of the '<em>Distribution Management</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DISTRIBUTION_MANAGEMENT_FEATURE_COUNT = 6;
+
+ /**
+ * The meta object id for the ' {@link org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl <em>Document Root</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ int DOCUMENT_ROOT = 13;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__MIXED = 0;
+
+ /**
+ * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
+
+ /**
+ * The feature id for the '<em><b>XSI Schema Location</b></em>' map. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
+
+ /**
+ * The feature id for the '<em><b>Project</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__PROJECT = 3;
+
+ /**
+ * The number of structural features of the '<em>Document Root</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ExclusionImpl <em>Exclusion</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ExclusionImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getExclusion()
+ * @generated
+ */
+ int EXCLUSION = 14;
+
+ /**
+ * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EXCLUSION__ARTIFACT_ID = 0;
+
+ /**
+ * The feature id for the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EXCLUSION__GROUP_ID = 1;
+
+ /**
+ * The number of structural features of the '<em>Exclusion</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EXCLUSION_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ExtensionImpl <em>Extension</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ExtensionImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getExtension()
+ * @generated
+ */
+ int EXTENSION = 15;
+
+ /**
+ * The feature id for the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EXTENSION__GROUP_ID = 0;
+
+ /**
+ * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EXTENSION__ARTIFACT_ID = 1;
+
+ /**
+ * The feature id for the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EXTENSION__VERSION = 2;
+
+ /**
+ * The number of structural features of the '<em>Extension</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EXTENSION_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.IssueManagementImpl
+ * <em>Issue Management</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.IssueManagementImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getIssueManagement()
+ * @generated
+ */
+ int ISSUE_MANAGEMENT = 16;
+
+ /**
+ * The feature id for the '<em><b>System</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ISSUE_MANAGEMENT__SYSTEM = 0;
+
+ /**
+ * The feature id for the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ISSUE_MANAGEMENT__URL = 1;
+
+ /**
+ * The number of structural features of the '<em>Issue Management</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ISSUE_MANAGEMENT_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.LicenseImpl <em>License</em>}' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.LicenseImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getLicense()
+ * @generated
+ */
+ int LICENSE = 17;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int LICENSE__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int LICENSE__URL = 1;
+
+ /**
+ * The feature id for the '<em><b>Distribution</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int LICENSE__DISTRIBUTION = 2;
+
+ /**
+ * The feature id for the '<em><b>Comments</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int LICENSE__COMMENTS = 3;
+
+ /**
+ * The number of structural features of the '<em>License</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int LICENSE_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the ' {@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl <em>Mailing List</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.MailingListImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getMailingList()
+ * @generated
+ */
+ int MAILING_LIST = 18;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MAILING_LIST__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Subscribe</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MAILING_LIST__SUBSCRIBE = 1;
+
+ /**
+ * The feature id for the '<em><b>Unsubscribe</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MAILING_LIST__UNSUBSCRIBE = 2;
+
+ /**
+ * The feature id for the '<em><b>Post</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MAILING_LIST__POST = 3;
+
+ /**
+ * The feature id for the '<em><b>Archive</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MAILING_LIST__ARCHIVE = 4;
+
+ /**
+ * The feature id for the '<em><b>Other Archives</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MAILING_LIST__OTHER_ARCHIVES = 5;
+
+ /**
+ * The number of structural features of the '<em>Mailing List</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MAILING_LIST_FEATURE_COUNT = 6;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl <em>Model</em>}' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ModelImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getModel()
+ * @generated
+ */
+ int MODEL = 19;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__PARENT = 0;
+
+ /**
+ * The feature id for the '<em><b>Model Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__MODEL_VERSION = 1;
+
+ /**
+ * The feature id for the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__GROUP_ID = 2;
+
+ /**
+ * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__ARTIFACT_ID = 3;
+
+ /**
+ * The feature id for the '<em><b>Packaging</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__PACKAGING = 4;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__NAME = 5;
+
+ /**
+ * The feature id for the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__VERSION = 6;
+
+ /**
+ * The feature id for the '<em><b>Description</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__DESCRIPTION = 7;
+
+ /**
+ * The feature id for the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__URL = 8;
+
+ /**
+ * The feature id for the '<em><b>Prerequisites</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__PREREQUISITES = 9;
+
+ /**
+ * The feature id for the '<em><b>Issue Management</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__ISSUE_MANAGEMENT = 10;
+
+ /**
+ * The feature id for the '<em><b>Ci Management</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__CI_MANAGEMENT = 11;
+
+ /**
+ * The feature id for the '<em><b>Inception Year</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__INCEPTION_YEAR = 12;
+
+ /**
+ * The feature id for the '<em><b>Mailing Lists</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__MAILING_LISTS = 13;
+
+ /**
+ * The feature id for the '<em><b>Developers</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__DEVELOPERS = 14;
+
+ /**
+ * The feature id for the '<em><b>Contributors</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__CONTRIBUTORS = 15;
+
+ /**
+ * The feature id for the '<em><b>Licenses</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__LICENSES = 16;
+
+ /**
+ * The feature id for the '<em><b>Scm</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__SCM = 17;
+
+ /**
+ * The feature id for the '<em><b>Organization</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__ORGANIZATION = 18;
+
+ /**
+ * The feature id for the '<em><b>Build</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__BUILD = 19;
+
+ /**
+ * The feature id for the '<em><b>Profiles</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__PROFILES = 20;
+
+ /**
+ * The feature id for the '<em><b>Repositories</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__REPOSITORIES = 21;
+
+ /**
+ * The feature id for the '<em><b>Plugin Repositories</b></em>' containment reference list. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__PLUGIN_REPOSITORIES = 22;
+
+ /**
+ * The feature id for the '<em><b>Dependencies</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__DEPENDENCIES = 23;
+
+ /**
+ * The feature id for the '<em><b>Reporting</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__REPORTING = 24;
+
+ /**
+ * The feature id for the '<em><b>Dependency Management</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__DEPENDENCY_MANAGEMENT = 25;
+
+ /**
+ * The feature id for the '<em><b>Distribution Management</b></em>' containment reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__DISTRIBUTION_MANAGEMENT = 26;
+
+ /**
+ * The feature id for the '<em><b>Properties</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__PROPERTIES = 27;
+
+ /**
+ * The feature id for the '<em><b>Modules</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL__MODULES = 28;
+
+ /**
+ * The number of structural features of the '<em>Model</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MODEL_FEATURE_COUNT = 29;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl <em>Notifier</em>}' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.NotifierImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getNotifier()
+ * @generated
+ */
+ int NOTIFIER = 20;
+
+ /**
+ * The feature id for the '<em><b>Type</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int NOTIFIER__TYPE = 0;
+
+ /**
+ * The feature id for the '<em><b>Send On Error</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int NOTIFIER__SEND_ON_ERROR = 1;
+
+ /**
+ * The feature id for the '<em><b>Send On Failure</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int NOTIFIER__SEND_ON_FAILURE = 2;
+
+ /**
+ * The feature id for the '<em><b>Send On Success</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int NOTIFIER__SEND_ON_SUCCESS = 3;
+
+ /**
+ * The feature id for the '<em><b>Send On Warning</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int NOTIFIER__SEND_ON_WARNING = 4;
+
+ /**
+ * The feature id for the '<em><b>Address</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int NOTIFIER__ADDRESS = 5;
+
+ /**
+ * The feature id for the '<em><b>Configuration</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int NOTIFIER__CONFIGURATION = 6;
+
+ /**
+ * The number of structural features of the '<em>Notifier</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int NOTIFIER_FEATURE_COUNT = 7;
+
+ /**
+ * The meta object id for the ' {@link org.eclipse.m2e.model.edit.pom.impl.OrganizationImpl <em>Organization</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.OrganizationImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getOrganization()
+ * @generated
+ */
+ int ORGANIZATION = 21;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ORGANIZATION__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ORGANIZATION__URL = 1;
+
+ /**
+ * The number of structural features of the '<em>Organization</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ORGANIZATION_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ParentImpl <em>Parent</em>}' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ParentImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getParent()
+ * @generated
+ */
+ int PARENT = 22;
+
+ /**
+ * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PARENT__ARTIFACT_ID = 0;
+
+ /**
+ * The feature id for the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PARENT__GROUP_ID = 1;
+
+ /**
+ * The feature id for the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PARENT__VERSION = 2;
+
+ /**
+ * The feature id for the '<em><b>Relative Path</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PARENT__RELATIVE_PATH = 3;
+
+ /**
+ * The number of structural features of the '<em>Parent</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PARENT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl <em>Plugin</em>}' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.PluginImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPlugin()
+ * @generated
+ */
+ int PLUGIN = 23;
+
+ /**
+ * The feature id for the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN__GROUP_ID = 0;
+
+ /**
+ * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN__ARTIFACT_ID = 1;
+
+ /**
+ * The feature id for the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN__VERSION = 2;
+
+ /**
+ * The feature id for the '<em><b>Extensions</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN__EXTENSIONS = 3;
+
+ /**
+ * The feature id for the '<em><b>Executions</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN__EXECUTIONS = 4;
+
+ /**
+ * The feature id for the '<em><b>Dependencies</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN__DEPENDENCIES = 5;
+
+ /**
+ * The feature id for the '<em><b>Inherited</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN__INHERITED = 6;
+
+ /**
+ * The feature id for the '<em><b>Configuration</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN__CONFIGURATION = 7;
+
+ /**
+ * The number of structural features of the '<em>Plugin</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN_FEATURE_COUNT = 8;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl
+ * <em>Plugin Execution</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPluginExecution()
+ * @generated
+ */
+ int PLUGIN_EXECUTION = 24;
+
+ /**
+ * The feature id for the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN_EXECUTION__ID = 0;
+
+ /**
+ * The feature id for the '<em><b>Phase</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN_EXECUTION__PHASE = 1;
+
+ /**
+ * The feature id for the '<em><b>Inherited</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN_EXECUTION__INHERITED = 2;
+
+ /**
+ * The feature id for the '<em><b>Goals</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN_EXECUTION__GOALS = 3;
+
+ /**
+ * The feature id for the '<em><b>Configuration</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN_EXECUTION__CONFIGURATION = 4;
+
+ /**
+ * The number of structural features of the '<em>Plugin Execution</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN_EXECUTION_FEATURE_COUNT = 5;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.PluginManagementImpl
+ * <em>Plugin Management</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.PluginManagementImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPluginManagement()
+ * @generated
+ */
+ int PLUGIN_MANAGEMENT = 25;
+
+ /**
+ * The feature id for the '<em><b>Plugins</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN_MANAGEMENT__PLUGINS = 0;
+
+ /**
+ * The number of structural features of the '<em>Plugin Management</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PLUGIN_MANAGEMENT_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the ' {@link org.eclipse.m2e.model.edit.pom.impl.PrerequisitesImpl <em>Prerequisites</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.PrerequisitesImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPrerequisites()
+ * @generated
+ */
+ int PREREQUISITES = 26;
+
+ /**
+ * The feature id for the '<em><b>Maven</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PREREQUISITES__MAVEN = 0;
+
+ /**
+ * The number of structural features of the '<em>Prerequisites</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PREREQUISITES_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl <em>Profile</em>}' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ProfileImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getProfile()
+ * @generated
+ */
+ int PROFILE = 27;
+
+ /**
+ * The feature id for the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROFILE__ID = 0;
+
+ /**
+ * The feature id for the '<em><b>Activation</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROFILE__ACTIVATION = 1;
+
+ /**
+ * The feature id for the '<em><b>Build</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROFILE__BUILD = 2;
+
+ /**
+ * The feature id for the '<em><b>Repositories</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROFILE__REPOSITORIES = 3;
+
+ /**
+ * The feature id for the '<em><b>Plugin Repositories</b></em>' containment reference list. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROFILE__PLUGIN_REPOSITORIES = 4;
+
+ /**
+ * The feature id for the '<em><b>Dependencies</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROFILE__DEPENDENCIES = 5;
+
+ /**
+ * The feature id for the '<em><b>Reports</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROFILE__REPORTS = 6;
+
+ /**
+ * The feature id for the '<em><b>Dependency Management</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROFILE__DEPENDENCY_MANAGEMENT = 7;
+
+ /**
+ * The feature id for the '<em><b>Distribution Management</b></em>' containment reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROFILE__DISTRIBUTION_MANAGEMENT = 8;
+
+ /**
+ * The feature id for the '<em><b>Properties</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROFILE__PROPERTIES = 9;
+
+ /**
+ * The feature id for the '<em><b>Modules</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROFILE__MODULES = 10;
+
+ /**
+ * The feature id for the '<em><b>Reporting</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROFILE__REPORTING = 11;
+
+ /**
+ * The number of structural features of the '<em>Profile</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROFILE_FEATURE_COUNT = 12;
+
+ /**
+ * The meta object id for the ' {@link org.eclipse.m2e.model.edit.pom.impl.RelocationImpl <em>Relocation</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.RelocationImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getRelocation()
+ * @generated
+ */
+ int RELOCATION = 28;
+
+ /**
+ * The feature id for the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int RELOCATION__GROUP_ID = 0;
+
+ /**
+ * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int RELOCATION__ARTIFACT_ID = 1;
+
+ /**
+ * The feature id for the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int RELOCATION__VERSION = 2;
+
+ /**
+ * The feature id for the '<em><b>Message</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int RELOCATION__MESSAGE = 3;
+
+ /**
+ * The number of structural features of the '<em>Relocation</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int RELOCATION_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ReportingImpl <em>Reporting</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ReportingImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getReporting()
+ * @generated
+ */
+ int REPORTING = 29;
+
+ /**
+ * The feature id for the '<em><b>Exclude Defaults</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORTING__EXCLUDE_DEFAULTS = 0;
+
+ /**
+ * The feature id for the '<em><b>Output Directory</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORTING__OUTPUT_DIRECTORY = 1;
+
+ /**
+ * The feature id for the '<em><b>Plugins</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORTING__PLUGINS = 2;
+
+ /**
+ * The number of structural features of the '<em>Reporting</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORTING_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the ' {@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl <em>Report Plugin</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getReportPlugin()
+ * @generated
+ */
+ int REPORT_PLUGIN = 30;
+
+ /**
+ * The feature id for the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORT_PLUGIN__GROUP_ID = 0;
+
+ /**
+ * The feature id for the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORT_PLUGIN__ARTIFACT_ID = 1;
+
+ /**
+ * The feature id for the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORT_PLUGIN__VERSION = 2;
+
+ /**
+ * The feature id for the '<em><b>Inherited</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORT_PLUGIN__INHERITED = 3;
+
+ /**
+ * The feature id for the '<em><b>Report Sets</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORT_PLUGIN__REPORT_SETS = 4;
+
+ /**
+ * The feature id for the '<em><b>Configuration</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORT_PLUGIN__CONFIGURATION = 5;
+
+ /**
+ * The number of structural features of the '<em>Report Plugin</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORT_PLUGIN_FEATURE_COUNT = 6;
+
+ /**
+ * The meta object id for the ' {@link org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl <em>Report Set</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getReportSet()
+ * @generated
+ */
+ int REPORT_SET = 31;
+
+ /**
+ * The feature id for the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORT_SET__ID = 0;
+
+ /**
+ * The feature id for the '<em><b>Inherited</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORT_SET__INHERITED = 1;
+
+ /**
+ * The feature id for the '<em><b>Reports</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORT_SET__REPORTS = 2;
+
+ /**
+ * The feature id for the '<em><b>Configuration</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORT_SET__CONFIGURATION = 3;
+
+ /**
+ * The number of structural features of the '<em>Report Set</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPORT_SET_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the ' {@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl <em>Repository</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getRepository()
+ * @generated
+ */
+ int REPOSITORY = 32;
+
+ /**
+ * The feature id for the '<em><b>Releases</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPOSITORY__RELEASES = 0;
+
+ /**
+ * The feature id for the '<em><b>Snapshots</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPOSITORY__SNAPSHOTS = 1;
+
+ /**
+ * The feature id for the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPOSITORY__ID = 2;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPOSITORY__NAME = 3;
+
+ /**
+ * The feature id for the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPOSITORY__URL = 4;
+
+ /**
+ * The feature id for the '<em><b>Layout</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPOSITORY__LAYOUT = 5;
+
+ /**
+ * The number of structural features of the '<em>Repository</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPOSITORY_FEATURE_COUNT = 6;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryPolicyImpl
+ * <em>Repository Policy</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.RepositoryPolicyImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getRepositoryPolicy()
+ * @generated
+ */
+ int REPOSITORY_POLICY = 33;
+
+ /**
+ * The feature id for the '<em><b>Enabled</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPOSITORY_POLICY__ENABLED = 0;
+
+ /**
+ * The feature id for the '<em><b>Update Policy</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPOSITORY_POLICY__UPDATE_POLICY = 1;
+
+ /**
+ * The feature id for the '<em><b>Checksum Policy</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPOSITORY_POLICY__CHECKSUM_POLICY = 2;
+
+ /**
+ * The number of structural features of the '<em>Repository Policy</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REPOSITORY_POLICY_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ResourceImpl <em>Resource</em>}' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ResourceImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getResource()
+ * @generated
+ */
+ int RESOURCE = 34;
+
+ /**
+ * The feature id for the '<em><b>Target Path</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int RESOURCE__TARGET_PATH = 0;
+
+ /**
+ * The feature id for the '<em><b>Filtering</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int RESOURCE__FILTERING = 1;
+
+ /**
+ * The feature id for the '<em><b>Directory</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int RESOURCE__DIRECTORY = 2;
+
+ /**
+ * The feature id for the '<em><b>Includes</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int RESOURCE__INCLUDES = 3;
+
+ /**
+ * The feature id for the '<em><b>Excludes</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int RESOURCE__EXCLUDES = 4;
+
+ /**
+ * The number of structural features of the '<em>Resource</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int RESOURCE_FEATURE_COUNT = 5;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.ScmImpl <em>Scm</em>}' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ScmImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getScm()
+ * @generated
+ */
+ int SCM = 35;
+
+ /**
+ * The feature id for the '<em><b>Connection</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SCM__CONNECTION = 0;
+
+ /**
+ * The feature id for the '<em><b>Developer Connection</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SCM__DEVELOPER_CONNECTION = 1;
+
+ /**
+ * The feature id for the '<em><b>Tag</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SCM__TAG = 2;
+
+ /**
+ * The feature id for the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SCM__URL = 3;
+
+ /**
+ * The number of structural features of the '<em>Scm</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SCM_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.SiteImpl <em>Site</em>}' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.SiteImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getSite()
+ * @generated
+ */
+ int SITE = 36;
+
+ /**
+ * The feature id for the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SITE__ID = 0;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SITE__NAME = 1;
+
+ /**
+ * The feature id for the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SITE__URL = 2;
+
+ /**
+ * The number of structural features of the '<em>Site</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SITE_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.m2e.model.edit.pom.impl.PropertyElementImpl
+ * <em>Property Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.PropertyElementImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPropertyElement()
+ * @generated
+ */
+ int PROPERTY_ELEMENT = 37;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_ELEMENT__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Value</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_ELEMENT__VALUE = 1;
+
+ /**
+ * The number of structural features of the '<em>Property Element</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_ELEMENT_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the ' {@link org.eclipse.m2e.model.edit.pom.impl.ConfigurationImpl <em>Configuration</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ConfigurationImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getConfiguration()
+ * @generated
+ */
+ int CONFIGURATION = 38;
+
+ /**
+ * The number of structural features of the '<em>Configuration</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONFIGURATION_FEATURE_COUNT = 0;
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Activation <em>Activation</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Activation</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Activation
+ * @generated
+ */
+ EClass getActivation();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Activation#getActiveByDefault
+ * <em>Active By Default</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Active By Default</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Activation#getActiveByDefault()
+ * @see #getActivation()
+ * @generated
+ */
+ EAttribute getActivation_ActiveByDefault();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Activation#getJdk <em>Jdk</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Jdk</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Activation#getJdk()
+ * @see #getActivation()
+ * @generated
+ */
+ EAttribute getActivation_Jdk();
+
+ /**
+ * Returns the meta object for the containment reference ' {@link org.eclipse.m2e.model.edit.pom.Activation#getOs
+ * <em>Os</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Os</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Activation#getOs()
+ * @see #getActivation()
+ * @generated
+ */
+ EReference getActivation_Os();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.m2e.model.edit.pom.Activation#getProperty <em>Property</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Property</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Activation#getProperty()
+ * @see #getActivation()
+ * @generated
+ */
+ EReference getActivation_Property();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Activation#getFile
+ * <em>File</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>File</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Activation#getFile()
+ * @see #getActivation()
+ * @generated
+ */
+ EReference getActivation_File();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.ActivationFile <em>Activation File</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Activation File</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ActivationFile
+ * @generated
+ */
+ EClass getActivationFile();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationFile#getMissing
+ * <em>Missing</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Missing</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ActivationFile#getMissing()
+ * @see #getActivationFile()
+ * @generated
+ */
+ EAttribute getActivationFile_Missing();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationFile#getExists
+ * <em>Exists</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Exists</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ActivationFile#getExists()
+ * @see #getActivationFile()
+ * @generated
+ */
+ EAttribute getActivationFile_Exists();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.ActivationOS <em>Activation OS</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Activation OS</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ActivationOS
+ * @generated
+ */
+ EClass getActivationOS();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationOS#getName
+ * <em>Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ActivationOS#getName()
+ * @see #getActivationOS()
+ * @generated
+ */
+ EAttribute getActivationOS_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationOS#getFamily
+ * <em>Family</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Family</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ActivationOS#getFamily()
+ * @see #getActivationOS()
+ * @generated
+ */
+ EAttribute getActivationOS_Family();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationOS#getArch
+ * <em>Arch</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Arch</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ActivationOS#getArch()
+ * @see #getActivationOS()
+ * @generated
+ */
+ EAttribute getActivationOS_Arch();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationOS#getVersion
+ * <em>Version</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Version</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ActivationOS#getVersion()
+ * @see #getActivationOS()
+ * @generated
+ */
+ EAttribute getActivationOS_Version();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.ActivationProperty
+ * <em>Activation Property</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Activation Property</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ActivationProperty
+ * @generated
+ */
+ EClass getActivationProperty();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationProperty#getName
+ * <em>Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ActivationProperty#getName()
+ * @see #getActivationProperty()
+ * @generated
+ */
+ EAttribute getActivationProperty_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ActivationProperty#getValue
+ * <em>Value</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Value</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ActivationProperty#getValue()
+ * @see #getActivationProperty()
+ * @generated
+ */
+ EAttribute getActivationProperty_Value();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.Build <em>Build</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Build</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Build
+ * @generated
+ */
+ EClass getBuild();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Build#getSourceDirectory
+ * <em>Source Directory</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Source Directory</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Build#getSourceDirectory()
+ * @see #getBuild()
+ * @generated
+ */
+ EAttribute getBuild_SourceDirectory();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Build#getScriptSourceDirectory
+ * <em>Script Source Directory</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Script Source Directory</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Build#getScriptSourceDirectory()
+ * @see #getBuild()
+ * @generated
+ */
+ EAttribute getBuild_ScriptSourceDirectory();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Build#getTestSourceDirectory
+ * <em>Test Source Directory</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Test Source Directory</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Build#getTestSourceDirectory()
+ * @see #getBuild()
+ * @generated
+ */
+ EAttribute getBuild_TestSourceDirectory();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Build#getOutputDirectory
+ * <em>Output Directory</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Output Directory</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Build#getOutputDirectory()
+ * @see #getBuild()
+ * @generated
+ */
+ EAttribute getBuild_OutputDirectory();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Build#getTestOutputDirectory
+ * <em>Test Output Directory</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Test Output Directory</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Build#getTestOutputDirectory()
+ * @see #getBuild()
+ * @generated
+ */
+ EAttribute getBuild_TestOutputDirectory();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Build#getExtensions <em>Extensions</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Extensions</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Build#getExtensions()
+ * @see #getBuild()
+ * @generated
+ */
+ EReference getBuild_Extensions();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.BuildBase <em>Build Base</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Build Base</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.BuildBase
+ * @generated
+ */
+ EClass getBuildBase();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.BuildBase#getDefaultGoal
+ * <em>Default Goal</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Default Goal</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.BuildBase#getDefaultGoal()
+ * @see #getBuildBase()
+ * @generated
+ */
+ EAttribute getBuildBase_DefaultGoal();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getResources <em>Resources</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Resources</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.BuildBase#getResources()
+ * @see #getBuildBase()
+ * @generated
+ */
+ EReference getBuildBase_Resources();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getTestResources <em>Test Resources</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Test Resources</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.BuildBase#getTestResources()
+ * @see #getBuildBase()
+ * @generated
+ */
+ EReference getBuildBase_TestResources();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.BuildBase#getDirectory
+ * <em>Directory</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Directory</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.BuildBase#getDirectory()
+ * @see #getBuildBase()
+ * @generated
+ */
+ EAttribute getBuildBase_Directory();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.BuildBase#getFinalName
+ * <em>Final Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Final Name</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.BuildBase#getFinalName()
+ * @see #getBuildBase()
+ * @generated
+ */
+ EAttribute getBuildBase_FinalName();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getPluginManagement <em>Plugin Management</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference ' <em>Plugin Management</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.BuildBase#getPluginManagement()
+ * @see #getBuildBase()
+ * @generated
+ */
+ EReference getBuildBase_PluginManagement();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.BuildBase#getPlugins <em>Plugins</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Plugins</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.BuildBase#getPlugins()
+ * @see #getBuildBase()
+ * @generated
+ */
+ EReference getBuildBase_Plugins();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.BuildBase#getFilters
+ * <em>Filters</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Filters</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.BuildBase#getFilters()
+ * @see #getBuildBase()
+ * @generated
+ */
+ EAttribute getBuildBase_Filters();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.CiManagement <em>Ci Management</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ci Management</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.CiManagement
+ * @generated
+ */
+ EClass getCiManagement();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.CiManagement#getSystem
+ * <em>System</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>System</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.CiManagement#getSystem()
+ * @see #getCiManagement()
+ * @generated
+ */
+ EAttribute getCiManagement_System();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.CiManagement#getUrl <em>Url</em>}
+ * '. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Url</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.CiManagement#getUrl()
+ * @see #getCiManagement()
+ * @generated
+ */
+ EAttribute getCiManagement_Url();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.CiManagement#getNotifiers <em>Notifiers</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Notifiers</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.CiManagement#getNotifiers()
+ * @see #getCiManagement()
+ * @generated
+ */
+ EReference getCiManagement_Notifiers();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Contributor <em>Contributor</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Contributor</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Contributor
+ * @generated
+ */
+ EClass getContributor();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Contributor#getName <em>Name</em>}
+ * '. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Contributor#getName()
+ * @see #getContributor()
+ * @generated
+ */
+ EAttribute getContributor_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Contributor#getEmail
+ * <em>Email</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Email</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Contributor#getEmail()
+ * @see #getContributor()
+ * @generated
+ */
+ EAttribute getContributor_Email();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Contributor#getUrl <em>Url</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Url</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Contributor#getUrl()
+ * @see #getContributor()
+ * @generated
+ */
+ EAttribute getContributor_Url();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Contributor#getOrganization
+ * <em>Organization</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Organization</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Contributor#getOrganization()
+ * @see #getContributor()
+ * @generated
+ */
+ EAttribute getContributor_Organization();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Contributor#getOrganizationUrl
+ * <em>Organization Url</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Organization Url</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Contributor#getOrganizationUrl()
+ * @see #getContributor()
+ * @generated
+ */
+ EAttribute getContributor_OrganizationUrl();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Contributor#getTimezone
+ * <em>Timezone</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Timezone</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Contributor#getTimezone()
+ * @see #getContributor()
+ * @generated
+ */
+ EAttribute getContributor_Timezone();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Contributor#getProperties <em>Properties</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Properties</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Contributor#getProperties()
+ * @see #getContributor()
+ * @generated
+ */
+ EReference getContributor_Properties();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.Contributor#getRoles
+ * <em>Roles</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Roles</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Contributor#getRoles()
+ * @see #getContributor()
+ * @generated
+ */
+ EAttribute getContributor_Roles();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Dependency <em>Dependency</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Dependency</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Dependency
+ * @generated
+ */
+ EClass getDependency();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getGroupId
+ * <em>Group Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Group Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Dependency#getGroupId()
+ * @see #getDependency()
+ * @generated
+ */
+ EAttribute getDependency_GroupId();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getArtifactId
+ * <em>Artifact Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Artifact Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Dependency#getArtifactId()
+ * @see #getDependency()
+ * @generated
+ */
+ EAttribute getDependency_ArtifactId();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getVersion
+ * <em>Version</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Version</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Dependency#getVersion()
+ * @see #getDependency()
+ * @generated
+ */
+ EAttribute getDependency_Version();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getType <em>Type</em>}
+ * '. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Type</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Dependency#getType()
+ * @see #getDependency()
+ * @generated
+ */
+ EAttribute getDependency_Type();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getClassifier
+ * <em>Classifier</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Classifier</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Dependency#getClassifier()
+ * @see #getDependency()
+ * @generated
+ */
+ EAttribute getDependency_Classifier();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getScope
+ * <em>Scope</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Scope</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Dependency#getScope()
+ * @see #getDependency()
+ * @generated
+ */
+ EAttribute getDependency_Scope();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getSystemPath
+ * <em>System Path</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>System Path</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Dependency#getSystemPath()
+ * @see #getDependency()
+ * @generated
+ */
+ EAttribute getDependency_SystemPath();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Dependency#getExclusions <em>Exclusions</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Exclusions</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Dependency#getExclusions()
+ * @see #getDependency()
+ * @generated
+ */
+ EReference getDependency_Exclusions();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Dependency#getOptional
+ * <em>Optional</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Optional</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Dependency#getOptional()
+ * @see #getDependency()
+ * @generated
+ */
+ EAttribute getDependency_Optional();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.DependencyManagement
+ * <em>Dependency Management</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Dependency Management</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DependencyManagement
+ * @generated
+ */
+ EClass getDependencyManagement();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.DependencyManagement#getDependencies <em>Dependencies</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Dependencies</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DependencyManagement#getDependencies()
+ * @see #getDependencyManagement()
+ * @generated
+ */
+ EReference getDependencyManagement_Dependencies();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository
+ * <em>Deployment Repository</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Deployment Repository</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DeploymentRepository
+ * @generated
+ */
+ EClass getDeploymentRepository();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUniqueVersion <em>Unique Version</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Unique Version</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUniqueVersion()
+ * @see #getDeploymentRepository()
+ * @generated
+ */
+ EAttribute getDeploymentRepository_UniqueVersion();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getId
+ * <em>Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DeploymentRepository#getId()
+ * @see #getDeploymentRepository()
+ * @generated
+ */
+ EAttribute getDeploymentRepository_Id();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getName
+ * <em>Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DeploymentRepository#getName()
+ * @see #getDeploymentRepository()
+ * @generated
+ */
+ EAttribute getDeploymentRepository_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUrl
+ * <em>Url</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Url</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DeploymentRepository#getUrl()
+ * @see #getDeploymentRepository()
+ * @generated
+ */
+ EAttribute getDeploymentRepository_Url();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.DeploymentRepository#getLayout
+ * <em>Layout</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Layout</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DeploymentRepository#getLayout()
+ * @see #getDeploymentRepository()
+ * @generated
+ */
+ EAttribute getDeploymentRepository_Layout();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.Developer <em>Developer</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Developer</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Developer
+ * @generated
+ */
+ EClass getDeveloper();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Developer#getId <em>Id</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Developer#getId()
+ * @see #getDeveloper()
+ * @generated
+ */
+ EAttribute getDeveloper_Id();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Developer#getName <em>Name</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Developer#getName()
+ * @see #getDeveloper()
+ * @generated
+ */
+ EAttribute getDeveloper_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Developer#getEmail <em>Email</em>}
+ * '. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Email</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Developer#getEmail()
+ * @see #getDeveloper()
+ * @generated
+ */
+ EAttribute getDeveloper_Email();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Developer#getUrl <em>Url</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Url</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Developer#getUrl()
+ * @see #getDeveloper()
+ * @generated
+ */
+ EAttribute getDeveloper_Url();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Developer#getOrganization
+ * <em>Organization</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Organization</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Developer#getOrganization()
+ * @see #getDeveloper()
+ * @generated
+ */
+ EAttribute getDeveloper_Organization();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Developer#getOrganizationUrl
+ * <em>Organization Url</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Organization Url</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Developer#getOrganizationUrl()
+ * @see #getDeveloper()
+ * @generated
+ */
+ EAttribute getDeveloper_OrganizationUrl();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Developer#getTimezone
+ * <em>Timezone</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Timezone</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Developer#getTimezone()
+ * @see #getDeveloper()
+ * @generated
+ */
+ EAttribute getDeveloper_Timezone();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Developer#getProperties <em>Properties</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Properties</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Developer#getProperties()
+ * @see #getDeveloper()
+ * @generated
+ */
+ EReference getDeveloper_Properties();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.Developer#getRoles
+ * <em>Roles</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Roles</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Developer#getRoles()
+ * @see #getDeveloper()
+ * @generated
+ */
+ EAttribute getDeveloper_Roles();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.DistributionManagement
+ * <em>Distribution Management</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Distribution Management</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DistributionManagement
+ * @generated
+ */
+ EClass getDistributionManagement();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRepository <em>Repository</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Repository</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DistributionManagement#getRepository()
+ * @see #getDistributionManagement()
+ * @generated
+ */
+ EReference getDistributionManagement_Repository();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSnapshotRepository <em>Snapshot Repository</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference ' <em>Snapshot Repository</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DistributionManagement#getSnapshotRepository()
+ * @see #getDistributionManagement()
+ * @generated
+ */
+ EReference getDistributionManagement_SnapshotRepository();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getSite <em>Site</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Site</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DistributionManagement#getSite()
+ * @see #getDistributionManagement()
+ * @generated
+ */
+ EReference getDistributionManagement_Site();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getDownloadUrl <em>Download Url</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Download Url</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DistributionManagement#getDownloadUrl()
+ * @see #getDistributionManagement()
+ * @generated
+ */
+ EAttribute getDistributionManagement_DownloadUrl();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getRelocation <em>Relocation</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Relocation</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DistributionManagement#getRelocation()
+ * @see #getDistributionManagement()
+ * @generated
+ */
+ EReference getDistributionManagement_Relocation();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.DistributionManagement#getStatus
+ * <em>Status</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Status</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DistributionManagement#getStatus()
+ * @see #getDistributionManagement()
+ * @generated
+ */
+ EAttribute getDistributionManagement_Status();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.DocumentRoot <em>Document Root</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Document Root</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DocumentRoot
+ * @generated
+ */
+ EClass getDocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getMixed
+ * <em>Mixed</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Mixed</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DocumentRoot#getMixed()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EAttribute getDocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map ' {@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getXMLNSPrefixMap
+ * <em>XMLNS Prefix Map</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DocumentRoot#getXMLNSPrefixMap()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map ' {@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getXSISchemaLocation
+ * <em>XSI Schema Location</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the map '<em>XSI Schema Location</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DocumentRoot#getXSISchemaLocation()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.m2e.model.edit.pom.DocumentRoot#getProject <em>Project</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Project</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.DocumentRoot#getProject()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_Project();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.Exclusion <em>Exclusion</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Exclusion</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Exclusion
+ * @generated
+ */
+ EClass getExclusion();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Exclusion#getArtifactId
+ * <em>Artifact Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Artifact Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Exclusion#getArtifactId()
+ * @see #getExclusion()
+ * @generated
+ */
+ EAttribute getExclusion_ArtifactId();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Exclusion#getGroupId
+ * <em>Group Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Group Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Exclusion#getGroupId()
+ * @see #getExclusion()
+ * @generated
+ */
+ EAttribute getExclusion_GroupId();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.Extension <em>Extension</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Extension</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Extension
+ * @generated
+ */
+ EClass getExtension();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Extension#getGroupId
+ * <em>Group Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Group Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Extension#getGroupId()
+ * @see #getExtension()
+ * @generated
+ */
+ EAttribute getExtension_GroupId();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Extension#getArtifactId
+ * <em>Artifact Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Artifact Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Extension#getArtifactId()
+ * @see #getExtension()
+ * @generated
+ */
+ EAttribute getExtension_ArtifactId();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Extension#getVersion
+ * <em>Version</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Version</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Extension#getVersion()
+ * @see #getExtension()
+ * @generated
+ */
+ EAttribute getExtension_Version();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.IssueManagement
+ * <em>Issue Management</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Issue Management</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.IssueManagement
+ * @generated
+ */
+ EClass getIssueManagement();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.IssueManagement#getSystem
+ * <em>System</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>System</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.IssueManagement#getSystem()
+ * @see #getIssueManagement()
+ * @generated
+ */
+ EAttribute getIssueManagement_System();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.IssueManagement#getUrl
+ * <em>Url</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Url</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.IssueManagement#getUrl()
+ * @see #getIssueManagement()
+ * @generated
+ */
+ EAttribute getIssueManagement_Url();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.License <em>License</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>License</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.License
+ * @generated
+ */
+ EClass getLicense();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.License#getName <em>Name</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.License#getName()
+ * @see #getLicense()
+ * @generated
+ */
+ EAttribute getLicense_Name();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.License#getUrl <em>Url</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Url</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.License#getUrl()
+ * @see #getLicense()
+ * @generated
+ */
+ EAttribute getLicense_Url();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.License#getDistribution
+ * <em>Distribution</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Distribution</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.License#getDistribution()
+ * @see #getLicense()
+ * @generated
+ */
+ EAttribute getLicense_Distribution();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.License#getComments
+ * <em>Comments</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Comments</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.License#getComments()
+ * @see #getLicense()
+ * @generated
+ */
+ EAttribute getLicense_Comments();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.MailingList <em>Mailing List</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Mailing List</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.MailingList
+ * @generated
+ */
+ EClass getMailingList();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.MailingList#getName <em>Name</em>}
+ * '. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.MailingList#getName()
+ * @see #getMailingList()
+ * @generated
+ */
+ EAttribute getMailingList_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.MailingList#getSubscribe
+ * <em>Subscribe</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Subscribe</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.MailingList#getSubscribe()
+ * @see #getMailingList()
+ * @generated
+ */
+ EAttribute getMailingList_Subscribe();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.MailingList#getUnsubscribe
+ * <em>Unsubscribe</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Unsubscribe</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.MailingList#getUnsubscribe()
+ * @see #getMailingList()
+ * @generated
+ */
+ EAttribute getMailingList_Unsubscribe();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.MailingList#getPost <em>Post</em>}
+ * '. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Post</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.MailingList#getPost()
+ * @see #getMailingList()
+ * @generated
+ */
+ EAttribute getMailingList_Post();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.MailingList#getArchive
+ * <em>Archive</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Archive</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.MailingList#getArchive()
+ * @see #getMailingList()
+ * @generated
+ */
+ EAttribute getMailingList_Archive();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.MailingList#getOtherArchives
+ * <em>Other Archives</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Other Archives</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.MailingList#getOtherArchives()
+ * @see #getMailingList()
+ * @generated
+ */
+ EAttribute getMailingList_OtherArchives();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.Model <em>Model</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Model</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model
+ * @generated
+ */
+ EClass getModel();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Model#getParent
+ * <em>Parent</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Parent</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getParent()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_Parent();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Model#getModelVersion
+ * <em>Model Version</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Model Version</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getModelVersion()
+ * @see #getModel()
+ * @generated
+ */
+ EAttribute getModel_ModelVersion();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Model#getGroupId
+ * <em>Group Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Group Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getGroupId()
+ * @see #getModel()
+ * @generated
+ */
+ EAttribute getModel_GroupId();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Model#getArtifactId
+ * <em>Artifact Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Artifact Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getArtifactId()
+ * @see #getModel()
+ * @generated
+ */
+ EAttribute getModel_ArtifactId();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Model#getPackaging
+ * <em>Packaging</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Packaging</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getPackaging()
+ * @see #getModel()
+ * @generated
+ */
+ EAttribute getModel_Packaging();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Model#getName <em>Name</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getName()
+ * @see #getModel()
+ * @generated
+ */
+ EAttribute getModel_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Model#getVersion <em>Version</em>}
+ * '. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Version</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getVersion()
+ * @see #getModel()
+ * @generated
+ */
+ EAttribute getModel_Version();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Model#getDescription
+ * <em>Description</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Description</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getDescription()
+ * @see #getModel()
+ * @generated
+ */
+ EAttribute getModel_Description();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Model#getUrl <em>Url</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Url</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getUrl()
+ * @see #getModel()
+ * @generated
+ */
+ EAttribute getModel_Url();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.m2e.model.edit.pom.Model#getPrerequisites <em>Prerequisites</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Prerequisites</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getPrerequisites()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_Prerequisites();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.m2e.model.edit.pom.Model#getIssueManagement <em>Issue Management</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference ' <em>Issue Management</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getIssueManagement()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_IssueManagement();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Model#getCiManagement
+ * <em>Ci Management</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Ci Management</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getCiManagement()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_CiManagement();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Model#getInceptionYear
+ * <em>Inception Year</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Inception Year</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getInceptionYear()
+ * @see #getModel()
+ * @generated
+ */
+ EAttribute getModel_InceptionYear();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Model#getMailingLists <em>Mailing Lists</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Mailing Lists</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getMailingLists()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_MailingLists();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Model#getDevelopers <em>Developers</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Developers</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getDevelopers()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_Developers();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Model#getContributors <em>Contributors</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Contributors</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getContributors()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_Contributors();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Model#getLicenses <em>Licenses</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Licenses</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getLicenses()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_Licenses();
+
+ /**
+ * Returns the meta object for the containment reference ' {@link org.eclipse.m2e.model.edit.pom.Model#getScm
+ * <em>Scm</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Scm</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getScm()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_Scm();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Model#getOrganization
+ * <em>Organization</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Organization</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getOrganization()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_Organization();
+
+ /**
+ * Returns the meta object for the containment reference ' {@link org.eclipse.m2e.model.edit.pom.Model#getBuild
+ * <em>Build</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Build</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getBuild()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_Build();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Model#getProfiles <em>Profiles</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Profiles</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getProfiles()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_Profiles();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Model#getRepositories <em>Repositories</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Repositories</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getRepositories()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_Repositories();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Model#getPluginRepositories <em>Plugin Repositories</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list ' <em>Plugin Repositories</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getPluginRepositories()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_PluginRepositories();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Model#getDependencies <em>Dependencies</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Dependencies</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getDependencies()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_Dependencies();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Model#getReporting
+ * <em>Reporting</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Reporting</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getReporting()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_Reporting();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.m2e.model.edit.pom.Model#getDependencyManagement <em>Dependency Management</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Dependency Management</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getDependencyManagement()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_DependencyManagement();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.m2e.model.edit.pom.Model#getDistributionManagement <em>Distribution Management</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Distribution Management</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getDistributionManagement()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_DistributionManagement();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Model#getProperties <em>Properties</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Properties</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getProperties()
+ * @see #getModel()
+ * @generated
+ */
+ EReference getModel_Properties();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.Model#getModules
+ * <em>Modules</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Modules</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Model#getModules()
+ * @see #getModel()
+ * @generated
+ */
+ EAttribute getModel_Modules();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.Notifier <em>Notifier</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Notifier</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Notifier
+ * @generated
+ */
+ EClass getNotifier();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Notifier#getType <em>Type</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Type</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Notifier#getType()
+ * @see #getNotifier()
+ * @generated
+ */
+ EAttribute getNotifier_Type();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnError
+ * <em>Send On Error</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Send On Error</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Notifier#getSendOnError()
+ * @see #getNotifier()
+ * @generated
+ */
+ EAttribute getNotifier_SendOnError();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnFailure
+ * <em>Send On Failure</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Send On Failure</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Notifier#getSendOnFailure()
+ * @see #getNotifier()
+ * @generated
+ */
+ EAttribute getNotifier_SendOnFailure();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnSuccess
+ * <em>Send On Success</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Send On Success</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Notifier#getSendOnSuccess()
+ * @see #getNotifier()
+ * @generated
+ */
+ EAttribute getNotifier_SendOnSuccess();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Notifier#getSendOnWarning
+ * <em>Send On Warning</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Send On Warning</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Notifier#getSendOnWarning()
+ * @see #getNotifier()
+ * @generated
+ */
+ EAttribute getNotifier_SendOnWarning();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Notifier#getAddress
+ * <em>Address</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Address</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Notifier#getAddress()
+ * @see #getNotifier()
+ * @generated
+ */
+ EAttribute getNotifier_Address();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Notifier#getConfiguration <em>Configuration</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Configuration</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Notifier#getConfiguration()
+ * @see #getNotifier()
+ * @generated
+ */
+ EReference getNotifier_Configuration();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Organization <em>Organization</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Organization</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Organization
+ * @generated
+ */
+ EClass getOrganization();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Organization#getName
+ * <em>Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Organization#getName()
+ * @see #getOrganization()
+ * @generated
+ */
+ EAttribute getOrganization_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Organization#getUrl <em>Url</em>}
+ * '. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Url</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Organization#getUrl()
+ * @see #getOrganization()
+ * @generated
+ */
+ EAttribute getOrganization_Url();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.Parent <em>Parent</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Parent</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Parent
+ * @generated
+ */
+ EClass getParent();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Parent#getArtifactId
+ * <em>Artifact Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Artifact Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Parent#getArtifactId()
+ * @see #getParent()
+ * @generated
+ */
+ EAttribute getParent_ArtifactId();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Parent#getGroupId
+ * <em>Group Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Group Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Parent#getGroupId()
+ * @see #getParent()
+ * @generated
+ */
+ EAttribute getParent_GroupId();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Parent#getVersion
+ * <em>Version</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Version</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Parent#getVersion()
+ * @see #getParent()
+ * @generated
+ */
+ EAttribute getParent_Version();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Parent#getRelativePath
+ * <em>Relative Path</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Relative Path</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Parent#getRelativePath()
+ * @see #getParent()
+ * @generated
+ */
+ EAttribute getParent_RelativePath();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.Plugin <em>Plugin</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Plugin</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Plugin
+ * @generated
+ */
+ EClass getPlugin();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Plugin#getGroupId
+ * <em>Group Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Group Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Plugin#getGroupId()
+ * @see #getPlugin()
+ * @generated
+ */
+ EAttribute getPlugin_GroupId();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Plugin#getArtifactId
+ * <em>Artifact Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Artifact Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Plugin#getArtifactId()
+ * @see #getPlugin()
+ * @generated
+ */
+ EAttribute getPlugin_ArtifactId();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Plugin#getVersion
+ * <em>Version</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Version</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Plugin#getVersion()
+ * @see #getPlugin()
+ * @generated
+ */
+ EAttribute getPlugin_Version();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Plugin#getExtensions
+ * <em>Extensions</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Extensions</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Plugin#getExtensions()
+ * @see #getPlugin()
+ * @generated
+ */
+ EAttribute getPlugin_Extensions();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Plugin#getExecutions <em>Executions</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Executions</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Plugin#getExecutions()
+ * @see #getPlugin()
+ * @generated
+ */
+ EReference getPlugin_Executions();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Plugin#getDependencies <em>Dependencies</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Dependencies</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Plugin#getDependencies()
+ * @see #getPlugin()
+ * @generated
+ */
+ EReference getPlugin_Dependencies();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Plugin#getInherited
+ * <em>Inherited</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Inherited</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Plugin#getInherited()
+ * @see #getPlugin()
+ * @generated
+ */
+ EAttribute getPlugin_Inherited();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.m2e.model.edit.pom.Plugin#getConfiguration
+ * <em>Configuration</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Configuration</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Plugin#getConfiguration()
+ * @see #getPlugin()
+ * @generated
+ */
+ EReference getPlugin_Configuration();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.PluginExecution
+ * <em>Plugin Execution</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Plugin Execution</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.PluginExecution
+ * @generated
+ */
+ EClass getPluginExecution();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getId <em>Id</em>}
+ * '. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.PluginExecution#getId()
+ * @see #getPluginExecution()
+ * @generated
+ */
+ EAttribute getPluginExecution_Id();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getPhase
+ * <em>Phase</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Phase</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.PluginExecution#getPhase()
+ * @see #getPluginExecution()
+ * @generated
+ */
+ EAttribute getPluginExecution_Phase();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getInherited
+ * <em>Inherited</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Inherited</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.PluginExecution#getInherited()
+ * @see #getPluginExecution()
+ * @generated
+ */
+ EAttribute getPluginExecution_Inherited();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getGoals
+ * <em>Goals</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Goals</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.PluginExecution#getGoals()
+ * @see #getPluginExecution()
+ * @generated
+ */
+ EAttribute getPluginExecution_Goals();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.m2e.model.edit.pom.PluginExecution#getConfiguration
+ * <em>Configuration</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Configuration</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.PluginExecution#getConfiguration()
+ * @see #getPluginExecution()
+ * @generated
+ */
+ EReference getPluginExecution_Configuration();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.PluginManagement
+ * <em>Plugin Management</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Plugin Management</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.PluginManagement
+ * @generated
+ */
+ EClass getPluginManagement();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.PluginManagement#getPlugins <em>Plugins</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Plugins</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.PluginManagement#getPlugins()
+ * @see #getPluginManagement()
+ * @generated
+ */
+ EReference getPluginManagement_Plugins();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Prerequisites <em>Prerequisites</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Prerequisites</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Prerequisites
+ * @generated
+ */
+ EClass getPrerequisites();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Prerequisites#getMaven
+ * <em>Maven</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Maven</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Prerequisites#getMaven()
+ * @see #getPrerequisites()
+ * @generated
+ */
+ EAttribute getPrerequisites_Maven();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.Profile <em>Profile</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Profile</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Profile
+ * @generated
+ */
+ EClass getProfile();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Profile#getId <em>Id</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Profile#getId()
+ * @see #getProfile()
+ * @generated
+ */
+ EAttribute getProfile_Id();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Profile#getActivation
+ * <em>Activation</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Activation</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Profile#getActivation()
+ * @see #getProfile()
+ * @generated
+ */
+ EReference getProfile_Activation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.m2e.model.edit.pom.Profile#getBuild
+ * <em>Build</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Build</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Profile#getBuild()
+ * @see #getProfile()
+ * @generated
+ */
+ EReference getProfile_Build();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Profile#getRepositories <em>Repositories</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Repositories</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Profile#getRepositories()
+ * @see #getProfile()
+ * @generated
+ */
+ EReference getProfile_Repositories();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Profile#getPluginRepositories <em>Plugin Repositories</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list ' <em>Plugin Repositories</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Profile#getPluginRepositories()
+ * @see #getProfile()
+ * @generated
+ */
+ EReference getProfile_PluginRepositories();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Profile#getDependencies <em>Dependencies</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Dependencies</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Profile#getDependencies()
+ * @see #getProfile()
+ * @generated
+ */
+ EReference getProfile_Dependencies();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Profile#getReports <em>Reports</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Reports</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Profile#getReports()
+ * @see #getProfile()
+ * @generated
+ */
+ EReference getProfile_Reports();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.m2e.model.edit.pom.Profile#getDependencyManagement <em>Dependency Management</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Dependency Management</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Profile#getDependencyManagement()
+ * @see #getProfile()
+ * @generated
+ */
+ EReference getProfile_DependencyManagement();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.m2e.model.edit.pom.Profile#getDistributionManagement <em>Distribution Management</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Distribution Management</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Profile#getDistributionManagement()
+ * @see #getProfile()
+ * @generated
+ */
+ EReference getProfile_DistributionManagement();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Profile#getProperties <em>Properties</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Properties</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Profile#getProperties()
+ * @see #getProfile()
+ * @generated
+ */
+ EReference getProfile_Properties();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.Profile#getModules
+ * <em>Modules</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Modules</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Profile#getModules()
+ * @see #getProfile()
+ * @generated
+ */
+ EAttribute getProfile_Modules();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.m2e.model.edit.pom.Profile#getReporting
+ * <em>Reporting</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Reporting</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Profile#getReporting()
+ * @see #getProfile()
+ * @generated
+ */
+ EReference getProfile_Reporting();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Relocation <em>Relocation</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Relocation</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Relocation
+ * @generated
+ */
+ EClass getRelocation();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Relocation#getGroupId
+ * <em>Group Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Group Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Relocation#getGroupId()
+ * @see #getRelocation()
+ * @generated
+ */
+ EAttribute getRelocation_GroupId();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Relocation#getArtifactId
+ * <em>Artifact Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Artifact Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Relocation#getArtifactId()
+ * @see #getRelocation()
+ * @generated
+ */
+ EAttribute getRelocation_ArtifactId();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Relocation#getVersion
+ * <em>Version</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Version</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Relocation#getVersion()
+ * @see #getRelocation()
+ * @generated
+ */
+ EAttribute getRelocation_Version();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Relocation#getMessage
+ * <em>Message</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Message</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Relocation#getMessage()
+ * @see #getRelocation()
+ * @generated
+ */
+ EAttribute getRelocation_Message();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.Reporting <em>Reporting</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Reporting</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Reporting
+ * @generated
+ */
+ EClass getReporting();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Reporting#getExcludeDefaults
+ * <em>Exclude Defaults</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Exclude Defaults</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Reporting#getExcludeDefaults()
+ * @see #getReporting()
+ * @generated
+ */
+ EAttribute getReporting_ExcludeDefaults();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Reporting#getOutputDirectory
+ * <em>Output Directory</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Output Directory</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Reporting#getOutputDirectory()
+ * @see #getReporting()
+ * @generated
+ */
+ EAttribute getReporting_OutputDirectory();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.Reporting#getPlugins <em>Plugins</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Plugins</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Reporting#getPlugins()
+ * @see #getReporting()
+ * @generated
+ */
+ EReference getReporting_Plugins();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.ReportPlugin <em>Report Plugin</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Report Plugin</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ReportPlugin
+ * @generated
+ */
+ EClass getReportPlugin();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getGroupId
+ * <em>Group Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Group Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ReportPlugin#getGroupId()
+ * @see #getReportPlugin()
+ * @generated
+ */
+ EAttribute getReportPlugin_GroupId();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getArtifactId
+ * <em>Artifact Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Artifact Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ReportPlugin#getArtifactId()
+ * @see #getReportPlugin()
+ * @generated
+ */
+ EAttribute getReportPlugin_ArtifactId();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getVersion
+ * <em>Version</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Version</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ReportPlugin#getVersion()
+ * @see #getReportPlugin()
+ * @generated
+ */
+ EAttribute getReportPlugin_Version();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getInherited
+ * <em>Inherited</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Inherited</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ReportPlugin#getInherited()
+ * @see #getReportPlugin()
+ * @generated
+ */
+ EAttribute getReportPlugin_Inherited();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getReportSets <em>Report Sets</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Report Sets</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ReportPlugin#getReportSets()
+ * @see #getReportPlugin()
+ * @generated
+ */
+ EReference getReportPlugin_ReportSets();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getConfiguration
+ * <em>Configuration</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Configuration</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ReportPlugin#getConfiguration()
+ * @see #getReportPlugin()
+ * @generated
+ */
+ EReference getReportPlugin_Configuration();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.ReportSet <em>Report Set</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Report Set</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ReportSet
+ * @generated
+ */
+ EClass getReportSet();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.ReportSet#getId <em>Id</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ReportSet#getId()
+ * @see #getReportSet()
+ * @generated
+ */
+ EAttribute getReportSet_Id();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.ReportSet#getInherited
+ * <em>Inherited</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Inherited</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ReportSet#getInherited()
+ * @see #getReportSet()
+ * @generated
+ */
+ EAttribute getReportSet_Inherited();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.ReportSet#getReports
+ * <em>Reports</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Reports</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ReportSet#getReports()
+ * @see #getReportSet()
+ * @generated
+ */
+ EAttribute getReportSet_Reports();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.m2e.model.edit.pom.ReportSet#getConfiguration
+ * <em>Configuration</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Configuration</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.ReportSet#getConfiguration()
+ * @see #getReportSet()
+ * @generated
+ */
+ EReference getReportSet_Configuration();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Repository <em>Repository</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Repository</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Repository
+ * @generated
+ */
+ EClass getRepository();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.m2e.model.edit.pom.Repository#getReleases <em>Releases</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Releases</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Repository#getReleases()
+ * @see #getRepository()
+ * @generated
+ */
+ EReference getRepository_Releases();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.m2e.model.edit.pom.Repository#getSnapshots <em>Snapshots</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Snapshots</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Repository#getSnapshots()
+ * @see #getRepository()
+ * @generated
+ */
+ EReference getRepository_Snapshots();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Repository#getId <em>Id</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Repository#getId()
+ * @see #getRepository()
+ * @generated
+ */
+ EAttribute getRepository_Id();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Repository#getName <em>Name</em>}
+ * '. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Repository#getName()
+ * @see #getRepository()
+ * @generated
+ */
+ EAttribute getRepository_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Repository#getUrl <em>Url</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Url</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Repository#getUrl()
+ * @see #getRepository()
+ * @generated
+ */
+ EAttribute getRepository_Url();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Repository#getLayout
+ * <em>Layout</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Layout</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Repository#getLayout()
+ * @see #getRepository()
+ * @generated
+ */
+ EAttribute getRepository_Layout();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy
+ * <em>Repository Policy</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Repository Policy</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.RepositoryPolicy
+ * @generated
+ */
+ EClass getRepositoryPolicy();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getEnabled
+ * <em>Enabled</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Enabled</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getEnabled()
+ * @see #getRepositoryPolicy()
+ * @generated
+ */
+ EAttribute getRepositoryPolicy_Enabled();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getUpdatePolicy
+ * <em>Update Policy</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Update Policy</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getUpdatePolicy()
+ * @see #getRepositoryPolicy()
+ * @generated
+ */
+ EAttribute getRepositoryPolicy_UpdatePolicy();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getChecksumPolicy <em>Checksum Policy</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Checksum Policy</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getChecksumPolicy()
+ * @see #getRepositoryPolicy()
+ * @generated
+ */
+ EAttribute getRepositoryPolicy_ChecksumPolicy();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.Resource <em>Resource</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Resource</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Resource
+ * @generated
+ */
+ EClass getResource();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Resource#getTargetPath
+ * <em>Target Path</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Target Path</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Resource#getTargetPath()
+ * @see #getResource()
+ * @generated
+ */
+ EAttribute getResource_TargetPath();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Resource#getFiltering
+ * <em>Filtering</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Filtering</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Resource#getFiltering()
+ * @see #getResource()
+ * @generated
+ */
+ EAttribute getResource_Filtering();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Resource#getDirectory
+ * <em>Directory</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Directory</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Resource#getDirectory()
+ * @see #getResource()
+ * @generated
+ */
+ EAttribute getResource_Directory();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.Resource#getIncludes
+ * <em>Includes</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Includes</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Resource#getIncludes()
+ * @see #getResource()
+ * @generated
+ */
+ EAttribute getResource_Includes();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.m2e.model.edit.pom.Resource#getExcludes
+ * <em>Excludes</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Excludes</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Resource#getExcludes()
+ * @see #getResource()
+ * @generated
+ */
+ EAttribute getResource_Excludes();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.Scm <em>Scm</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Scm</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Scm
+ * @generated
+ */
+ EClass getScm();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Scm#getConnection
+ * <em>Connection</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Connection</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Scm#getConnection()
+ * @see #getScm()
+ * @generated
+ */
+ EAttribute getScm_Connection();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.Scm#getDeveloperConnection
+ * <em>Developer Connection</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Developer Connection</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Scm#getDeveloperConnection()
+ * @see #getScm()
+ * @generated
+ */
+ EAttribute getScm_DeveloperConnection();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Scm#getTag <em>Tag</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Tag</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Scm#getTag()
+ * @see #getScm()
+ * @generated
+ */
+ EAttribute getScm_Tag();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Scm#getUrl <em>Url</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Url</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Scm#getUrl()
+ * @see #getScm()
+ * @generated
+ */
+ EAttribute getScm_Url();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.Site <em>Site</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Site</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Site
+ * @generated
+ */
+ EClass getSite();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Site#getId <em>Id</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Id</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Site#getId()
+ * @see #getSite()
+ * @generated
+ */
+ EAttribute getSite_Id();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Site#getName <em>Name</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Site#getName()
+ * @see #getSite()
+ * @generated
+ */
+ EAttribute getSite_Name();
+
+ /**
+ * Returns the meta object for the attribute ' {@link org.eclipse.m2e.model.edit.pom.Site#getUrl <em>Url</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Url</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Site#getUrl()
+ * @see #getSite()
+ * @generated
+ */
+ EAttribute getSite_Url();
+
+ /**
+ * Returns the meta object for class ' {@link org.eclipse.m2e.model.edit.pom.PropertyElement
+ * <em>Property Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Property Element</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.PropertyElement
+ * @generated
+ */
+ EClass getPropertyElement();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.PropertyElement#getName
+ * <em>Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.PropertyElement#getName()
+ * @see #getPropertyElement()
+ * @generated
+ */
+ EAttribute getPropertyElement_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.m2e.model.edit.pom.PropertyElement#getValue
+ * <em>Value</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Value</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.PropertyElement#getValue()
+ * @see #getPropertyElement()
+ * @generated
+ */
+ EAttribute getPropertyElement_Value();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.m2e.model.edit.pom.Configuration <em>Configuration</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Configuration</em>'.
+ * @see org.eclipse.m2e.model.edit.pom.Configuration
+ * @generated
+ */
+ EClass getConfiguration();
+
+ /**
+ * Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ PomFactory getPomFactory();
+
+ /**
+ * <!-- begin-user-doc --> Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ interface Literals {
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ActivationImpl <em>Activation</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ActivationImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivation()
+ * @generated
+ */
+ EClass ACTIVATION = eINSTANCE.getActivation();
+
+ /**
+ * The meta object literal for the '<em><b>Active By Default</b></em>' attribute feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ACTIVATION__ACTIVE_BY_DEFAULT = eINSTANCE.getActivation_ActiveByDefault();
+
+ /**
+ * The meta object literal for the '<em><b>Jdk</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ACTIVATION__JDK = eINSTANCE.getActivation_Jdk();
+
+ /**
+ * The meta object literal for the '<em><b>Os</b></em>' containment reference feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EReference ACTIVATION__OS = eINSTANCE.getActivation_Os();
+
+ /**
+ * The meta object literal for the '<em><b>Property</b></em>' containment reference feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference ACTIVATION__PROPERTY = eINSTANCE.getActivation_Property();
+
+ /**
+ * The meta object literal for the '<em><b>File</b></em>' containment reference feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference ACTIVATION__FILE = eINSTANCE.getActivation_File();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ActivationFileImpl
+ * <em>Activation File</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ActivationFileImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivationFile()
+ * @generated
+ */
+ EClass ACTIVATION_FILE = eINSTANCE.getActivationFile();
+
+ /**
+ * The meta object literal for the '<em><b>Missing</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ACTIVATION_FILE__MISSING = eINSTANCE.getActivationFile_Missing();
+
+ /**
+ * The meta object literal for the '<em><b>Exists</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ACTIVATION_FILE__EXISTS = eINSTANCE.getActivationFile_Exists();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl
+ * <em>Activation OS</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivationOS()
+ * @generated
+ */
+ EClass ACTIVATION_OS = eINSTANCE.getActivationOS();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ACTIVATION_OS__NAME = eINSTANCE.getActivationOS_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Family</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ACTIVATION_OS__FAMILY = eINSTANCE.getActivationOS_Family();
+
+ /**
+ * The meta object literal for the '<em><b>Arch</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ACTIVATION_OS__ARCH = eINSTANCE.getActivationOS_Arch();
+
+ /**
+ * The meta object literal for the '<em><b>Version</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ACTIVATION_OS__VERSION = eINSTANCE.getActivationOS_Version();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ActivationPropertyImpl
+ * <em>Activation Property</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ActivationPropertyImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getActivationProperty()
+ * @generated
+ */
+ EClass ACTIVATION_PROPERTY = eINSTANCE.getActivationProperty();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ACTIVATION_PROPERTY__NAME = eINSTANCE.getActivationProperty_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Value</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ACTIVATION_PROPERTY__VALUE = eINSTANCE.getActivationProperty_Value();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl <em>Build</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.BuildImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getBuild()
+ * @generated
+ */
+ EClass BUILD = eINSTANCE.getBuild();
+
+ /**
+ * The meta object literal for the '<em><b>Source Directory</b></em>' attribute feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute BUILD__SOURCE_DIRECTORY = eINSTANCE.getBuild_SourceDirectory();
+
+ /**
+ * The meta object literal for the ' <em><b>Script Source Directory</b></em>' attribute feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute BUILD__SCRIPT_SOURCE_DIRECTORY = eINSTANCE.getBuild_ScriptSourceDirectory();
+
+ /**
+ * The meta object literal for the ' <em><b>Test Source Directory</b></em>' attribute feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute BUILD__TEST_SOURCE_DIRECTORY = eINSTANCE.getBuild_TestSourceDirectory();
+
+ /**
+ * The meta object literal for the '<em><b>Output Directory</b></em>' attribute feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute BUILD__OUTPUT_DIRECTORY = eINSTANCE.getBuild_OutputDirectory();
+
+ /**
+ * The meta object literal for the ' <em><b>Test Output Directory</b></em>' attribute feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute BUILD__TEST_OUTPUT_DIRECTORY = eINSTANCE.getBuild_TestOutputDirectory();
+
+ /**
+ * The meta object literal for the '<em><b>Extensions</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference BUILD__EXTENSIONS = eINSTANCE.getBuild_Extensions();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl <em>Build Base</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getBuildBase()
+ * @generated
+ */
+ EClass BUILD_BASE = eINSTANCE.getBuildBase();
+
+ /**
+ * The meta object literal for the '<em><b>Default Goal</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute BUILD_BASE__DEFAULT_GOAL = eINSTANCE.getBuildBase_DefaultGoal();
+
+ /**
+ * The meta object literal for the '<em><b>Resources</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference BUILD_BASE__RESOURCES = eINSTANCE.getBuildBase_Resources();
+
+ /**
+ * The meta object literal for the '<em><b>Test Resources</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference BUILD_BASE__TEST_RESOURCES = eINSTANCE.getBuildBase_TestResources();
+
+ /**
+ * The meta object literal for the '<em><b>Directory</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute BUILD_BASE__DIRECTORY = eINSTANCE.getBuildBase_Directory();
+
+ /**
+ * The meta object literal for the '<em><b>Final Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute BUILD_BASE__FINAL_NAME = eINSTANCE.getBuildBase_FinalName();
+
+ /**
+ * The meta object literal for the '<em><b>Plugin Management</b></em>' containment reference feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference BUILD_BASE__PLUGIN_MANAGEMENT = eINSTANCE.getBuildBase_PluginManagement();
+
+ /**
+ * The meta object literal for the '<em><b>Plugins</b></em>' containment reference list feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference BUILD_BASE__PLUGINS = eINSTANCE.getBuildBase_Plugins();
+
+ /**
+ * The meta object literal for the '<em><b>Filters</b></em>' attribute list feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute BUILD_BASE__FILTERS = eINSTANCE.getBuildBase_Filters();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.CiManagementImpl
+ * <em>Ci Management</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.CiManagementImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getCiManagement()
+ * @generated
+ */
+ EClass CI_MANAGEMENT = eINSTANCE.getCiManagement();
+
+ /**
+ * The meta object literal for the '<em><b>System</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute CI_MANAGEMENT__SYSTEM = eINSTANCE.getCiManagement_System();
+
+ /**
+ * The meta object literal for the '<em><b>Url</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute CI_MANAGEMENT__URL = eINSTANCE.getCiManagement_Url();
+
+ /**
+ * The meta object literal for the '<em><b>Notifiers</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference CI_MANAGEMENT__NOTIFIERS = eINSTANCE.getCiManagement_Notifiers();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl <em>Contributor</em>}
+ * ' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ContributorImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getContributor()
+ * @generated
+ */
+ EClass CONTRIBUTOR = eINSTANCE.getContributor();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute CONTRIBUTOR__NAME = eINSTANCE.getContributor_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Email</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute CONTRIBUTOR__EMAIL = eINSTANCE.getContributor_Email();
+
+ /**
+ * The meta object literal for the '<em><b>Url</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute CONTRIBUTOR__URL = eINSTANCE.getContributor_Url();
+
+ /**
+ * The meta object literal for the '<em><b>Organization</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute CONTRIBUTOR__ORGANIZATION = eINSTANCE.getContributor_Organization();
+
+ /**
+ * The meta object literal for the '<em><b>Organization Url</b></em>' attribute feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute CONTRIBUTOR__ORGANIZATION_URL = eINSTANCE.getContributor_OrganizationUrl();
+
+ /**
+ * The meta object literal for the '<em><b>Timezone</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute CONTRIBUTOR__TIMEZONE = eINSTANCE.getContributor_Timezone();
+
+ /**
+ * The meta object literal for the '<em><b>Properties</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference CONTRIBUTOR__PROPERTIES = eINSTANCE.getContributor_Properties();
+
+ /**
+ * The meta object literal for the '<em><b>Roles</b></em>' attribute list feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute CONTRIBUTOR__ROLES = eINSTANCE.getContributor_Roles();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl <em>Dependency</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.DependencyImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDependency()
+ * @generated
+ */
+ EClass DEPENDENCY = eINSTANCE.getDependency();
+
+ /**
+ * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEPENDENCY__GROUP_ID = eINSTANCE.getDependency_GroupId();
+
+ /**
+ * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEPENDENCY__ARTIFACT_ID = eINSTANCE.getDependency_ArtifactId();
+
+ /**
+ * The meta object literal for the '<em><b>Version</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEPENDENCY__VERSION = eINSTANCE.getDependency_Version();
+
+ /**
+ * The meta object literal for the '<em><b>Type</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEPENDENCY__TYPE = eINSTANCE.getDependency_Type();
+
+ /**
+ * The meta object literal for the '<em><b>Classifier</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEPENDENCY__CLASSIFIER = eINSTANCE.getDependency_Classifier();
+
+ /**
+ * The meta object literal for the '<em><b>Scope</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEPENDENCY__SCOPE = eINSTANCE.getDependency_Scope();
+
+ /**
+ * The meta object literal for the '<em><b>System Path</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEPENDENCY__SYSTEM_PATH = eINSTANCE.getDependency_SystemPath();
+
+ /**
+ * The meta object literal for the '<em><b>Exclusions</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference DEPENDENCY__EXCLUSIONS = eINSTANCE.getDependency_Exclusions();
+
+ /**
+ * The meta object literal for the '<em><b>Optional</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEPENDENCY__OPTIONAL = eINSTANCE.getDependency_Optional();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.DependencyManagementImpl
+ * <em>Dependency Management</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.DependencyManagementImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDependencyManagement()
+ * @generated
+ */
+ EClass DEPENDENCY_MANAGEMENT = eINSTANCE.getDependencyManagement();
+
+ /**
+ * The meta object literal for the '<em><b>Dependencies</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference DEPENDENCY_MANAGEMENT__DEPENDENCIES = eINSTANCE.getDependencyManagement_Dependencies();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl
+ * <em>Deployment Repository</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDeploymentRepository()
+ * @generated
+ */
+ EClass DEPLOYMENT_REPOSITORY = eINSTANCE.getDeploymentRepository();
+
+ /**
+ * The meta object literal for the '<em><b>Unique Version</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEPLOYMENT_REPOSITORY__UNIQUE_VERSION = eINSTANCE.getDeploymentRepository_UniqueVersion();
+
+ /**
+ * The meta object literal for the '<em><b>Id</b></em>' attribute feature. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ EAttribute DEPLOYMENT_REPOSITORY__ID = eINSTANCE.getDeploymentRepository_Id();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEPLOYMENT_REPOSITORY__NAME = eINSTANCE.getDeploymentRepository_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Url</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEPLOYMENT_REPOSITORY__URL = eINSTANCE.getDeploymentRepository_Url();
+
+ /**
+ * The meta object literal for the '<em><b>Layout</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEPLOYMENT_REPOSITORY__LAYOUT = eINSTANCE.getDeploymentRepository_Layout();
+
+ /**
+ * The meta object literal for the ' {@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl <em>Developer</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDeveloper()
+ * @generated
+ */
+ EClass DEVELOPER = eINSTANCE.getDeveloper();
+
+ /**
+ * The meta object literal for the '<em><b>Id</b></em>' attribute feature. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ EAttribute DEVELOPER__ID = eINSTANCE.getDeveloper_Id();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEVELOPER__NAME = eINSTANCE.getDeveloper_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Email</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEVELOPER__EMAIL = eINSTANCE.getDeveloper_Email();
+
+ /**
+ * The meta object literal for the '<em><b>Url</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEVELOPER__URL = eINSTANCE.getDeveloper_Url();
+
+ /**
+ * The meta object literal for the '<em><b>Organization</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEVELOPER__ORGANIZATION = eINSTANCE.getDeveloper_Organization();
+
+ /**
+ * The meta object literal for the '<em><b>Organization Url</b></em>' attribute feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEVELOPER__ORGANIZATION_URL = eINSTANCE.getDeveloper_OrganizationUrl();
+
+ /**
+ * The meta object literal for the '<em><b>Timezone</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEVELOPER__TIMEZONE = eINSTANCE.getDeveloper_Timezone();
+
+ /**
+ * The meta object literal for the '<em><b>Properties</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference DEVELOPER__PROPERTIES = eINSTANCE.getDeveloper_Properties();
+
+ /**
+ * The meta object literal for the '<em><b>Roles</b></em>' attribute list feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DEVELOPER__ROLES = eINSTANCE.getDeveloper_Roles();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl
+ * <em>Distribution Management</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDistributionManagement()
+ * @generated
+ */
+ EClass DISTRIBUTION_MANAGEMENT = eINSTANCE.getDistributionManagement();
+
+ /**
+ * The meta object literal for the '<em><b>Repository</b></em>' containment reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference DISTRIBUTION_MANAGEMENT__REPOSITORY = eINSTANCE.getDistributionManagement_Repository();
+
+ /**
+ * The meta object literal for the '<em><b>Snapshot Repository</b></em>' containment reference feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY = eINSTANCE.getDistributionManagement_SnapshotRepository();
+
+ /**
+ * The meta object literal for the '<em><b>Site</b></em>' containment reference feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference DISTRIBUTION_MANAGEMENT__SITE = eINSTANCE.getDistributionManagement_Site();
+
+ /**
+ * The meta object literal for the '<em><b>Download Url</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL = eINSTANCE.getDistributionManagement_DownloadUrl();
+
+ /**
+ * The meta object literal for the '<em><b>Relocation</b></em>' containment reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference DISTRIBUTION_MANAGEMENT__RELOCATION = eINSTANCE.getDistributionManagement_Relocation();
+
+ /**
+ * The meta object literal for the '<em><b>Status</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DISTRIBUTION_MANAGEMENT__STATUS = eINSTANCE.getDistributionManagement_Status();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl
+ * <em>Document Root</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
+
+ /**
+ * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed();
+
+ /**
+ * The meta object literal for the '<em><b>XMLNS Prefix Map</b></em>' map feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * The meta object literal for the '<em><b>XSI Schema Location</b></em>' map feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * The meta object literal for the '<em><b>Project</b></em>' containment reference feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__PROJECT = eINSTANCE.getDocumentRoot_Project();
+
+ /**
+ * The meta object literal for the ' {@link org.eclipse.m2e.model.edit.pom.impl.ExclusionImpl <em>Exclusion</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ExclusionImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getExclusion()
+ * @generated
+ */
+ EClass EXCLUSION = eINSTANCE.getExclusion();
+
+ /**
+ * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute EXCLUSION__ARTIFACT_ID = eINSTANCE.getExclusion_ArtifactId();
+
+ /**
+ * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute EXCLUSION__GROUP_ID = eINSTANCE.getExclusion_GroupId();
+
+ /**
+ * The meta object literal for the ' {@link org.eclipse.m2e.model.edit.pom.impl.ExtensionImpl <em>Extension</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ExtensionImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getExtension()
+ * @generated
+ */
+ EClass EXTENSION = eINSTANCE.getExtension();
+
+ /**
+ * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute EXTENSION__GROUP_ID = eINSTANCE.getExtension_GroupId();
+
+ /**
+ * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute EXTENSION__ARTIFACT_ID = eINSTANCE.getExtension_ArtifactId();
+
+ /**
+ * The meta object literal for the '<em><b>Version</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute EXTENSION__VERSION = eINSTANCE.getExtension_Version();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.IssueManagementImpl
+ * <em>Issue Management</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.IssueManagementImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getIssueManagement()
+ * @generated
+ */
+ EClass ISSUE_MANAGEMENT = eINSTANCE.getIssueManagement();
+
+ /**
+ * The meta object literal for the '<em><b>System</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ISSUE_MANAGEMENT__SYSTEM = eINSTANCE.getIssueManagement_System();
+
+ /**
+ * The meta object literal for the '<em><b>Url</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ISSUE_MANAGEMENT__URL = eINSTANCE.getIssueManagement_Url();
+
+ /**
+ * The meta object literal for the ' {@link org.eclipse.m2e.model.edit.pom.impl.LicenseImpl <em>License</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.LicenseImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getLicense()
+ * @generated
+ */
+ EClass LICENSE = eINSTANCE.getLicense();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute LICENSE__NAME = eINSTANCE.getLicense_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Url</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute LICENSE__URL = eINSTANCE.getLicense_Url();
+
+ /**
+ * The meta object literal for the '<em><b>Distribution</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute LICENSE__DISTRIBUTION = eINSTANCE.getLicense_Distribution();
+
+ /**
+ * The meta object literal for the '<em><b>Comments</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute LICENSE__COMMENTS = eINSTANCE.getLicense_Comments();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl
+ * <em>Mailing List</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.MailingListImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getMailingList()
+ * @generated
+ */
+ EClass MAILING_LIST = eINSTANCE.getMailingList();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MAILING_LIST__NAME = eINSTANCE.getMailingList_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Subscribe</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MAILING_LIST__SUBSCRIBE = eINSTANCE.getMailingList_Subscribe();
+
+ /**
+ * The meta object literal for the '<em><b>Unsubscribe</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MAILING_LIST__UNSUBSCRIBE = eINSTANCE.getMailingList_Unsubscribe();
+
+ /**
+ * The meta object literal for the '<em><b>Post</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MAILING_LIST__POST = eINSTANCE.getMailingList_Post();
+
+ /**
+ * The meta object literal for the '<em><b>Archive</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MAILING_LIST__ARCHIVE = eINSTANCE.getMailingList_Archive();
+
+ /**
+ * The meta object literal for the '<em><b>Other Archives</b></em>' attribute list feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MAILING_LIST__OTHER_ARCHIVES = eINSTANCE.getMailingList_OtherArchives();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl <em>Model</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ModelImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getModel()
+ * @generated
+ */
+ EClass MODEL = eINSTANCE.getModel();
+
+ /**
+ * The meta object literal for the '<em><b>Parent</b></em>' containment reference feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__PARENT = eINSTANCE.getModel_Parent();
+
+ /**
+ * The meta object literal for the '<em><b>Model Version</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MODEL__MODEL_VERSION = eINSTANCE.getModel_ModelVersion();
+
+ /**
+ * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MODEL__GROUP_ID = eINSTANCE.getModel_GroupId();
+
+ /**
+ * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MODEL__ARTIFACT_ID = eINSTANCE.getModel_ArtifactId();
+
+ /**
+ * The meta object literal for the '<em><b>Packaging</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MODEL__PACKAGING = eINSTANCE.getModel_Packaging();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MODEL__NAME = eINSTANCE.getModel_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Version</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MODEL__VERSION = eINSTANCE.getModel_Version();
+
+ /**
+ * The meta object literal for the '<em><b>Description</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MODEL__DESCRIPTION = eINSTANCE.getModel_Description();
+
+ /**
+ * The meta object literal for the '<em><b>Url</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MODEL__URL = eINSTANCE.getModel_Url();
+
+ /**
+ * The meta object literal for the '<em><b>Prerequisites</b></em>' containment reference feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__PREREQUISITES = eINSTANCE.getModel_Prerequisites();
+
+ /**
+ * The meta object literal for the '<em><b>Issue Management</b></em>' containment reference feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__ISSUE_MANAGEMENT = eINSTANCE.getModel_IssueManagement();
+
+ /**
+ * The meta object literal for the '<em><b>Ci Management</b></em>' containment reference feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__CI_MANAGEMENT = eINSTANCE.getModel_CiManagement();
+
+ /**
+ * The meta object literal for the '<em><b>Inception Year</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MODEL__INCEPTION_YEAR = eINSTANCE.getModel_InceptionYear();
+
+ /**
+ * The meta object literal for the '<em><b>Mailing Lists</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__MAILING_LISTS = eINSTANCE.getModel_MailingLists();
+
+ /**
+ * The meta object literal for the '<em><b>Developers</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__DEVELOPERS = eINSTANCE.getModel_Developers();
+
+ /**
+ * The meta object literal for the '<em><b>Contributors</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__CONTRIBUTORS = eINSTANCE.getModel_Contributors();
+
+ /**
+ * The meta object literal for the '<em><b>Licenses</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__LICENSES = eINSTANCE.getModel_Licenses();
+
+ /**
+ * The meta object literal for the '<em><b>Scm</b></em>' containment reference feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__SCM = eINSTANCE.getModel_Scm();
+
+ /**
+ * The meta object literal for the '<em><b>Organization</b></em>' containment reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__ORGANIZATION = eINSTANCE.getModel_Organization();
+
+ /**
+ * The meta object literal for the '<em><b>Build</b></em>' containment reference feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__BUILD = eINSTANCE.getModel_Build();
+
+ /**
+ * The meta object literal for the '<em><b>Profiles</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__PROFILES = eINSTANCE.getModel_Profiles();
+
+ /**
+ * The meta object literal for the '<em><b>Repositories</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__REPOSITORIES = eINSTANCE.getModel_Repositories();
+
+ /**
+ * The meta object literal for the '<em><b>Plugin Repositories</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__PLUGIN_REPOSITORIES = eINSTANCE.getModel_PluginRepositories();
+
+ /**
+ * The meta object literal for the '<em><b>Dependencies</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__DEPENDENCIES = eINSTANCE.getModel_Dependencies();
+
+ /**
+ * The meta object literal for the '<em><b>Reporting</b></em>' containment reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__REPORTING = eINSTANCE.getModel_Reporting();
+
+ /**
+ * The meta object literal for the '<em><b>Dependency Management</b></em>' containment reference feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__DEPENDENCY_MANAGEMENT = eINSTANCE.getModel_DependencyManagement();
+
+ /**
+ * The meta object literal for the '<em><b>Distribution Management</b></em>' containment reference feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__DISTRIBUTION_MANAGEMENT = eINSTANCE.getModel_DistributionManagement();
+
+ /**
+ * The meta object literal for the '<em><b>Properties</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference MODEL__PROPERTIES = eINSTANCE.getModel_Properties();
+
+ /**
+ * The meta object literal for the '<em><b>Modules</b></em>' attribute list feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute MODEL__MODULES = eINSTANCE.getModel_Modules();
+
+ /**
+ * The meta object literal for the ' {@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl <em>Notifier</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.NotifierImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getNotifier()
+ * @generated
+ */
+ EClass NOTIFIER = eINSTANCE.getNotifier();
+
+ /**
+ * The meta object literal for the '<em><b>Type</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute NOTIFIER__TYPE = eINSTANCE.getNotifier_Type();
+
+ /**
+ * The meta object literal for the '<em><b>Send On Error</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute NOTIFIER__SEND_ON_ERROR = eINSTANCE.getNotifier_SendOnError();
+
+ /**
+ * The meta object literal for the '<em><b>Send On Failure</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute NOTIFIER__SEND_ON_FAILURE = eINSTANCE.getNotifier_SendOnFailure();
+
+ /**
+ * The meta object literal for the '<em><b>Send On Success</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute NOTIFIER__SEND_ON_SUCCESS = eINSTANCE.getNotifier_SendOnSuccess();
+
+ /**
+ * The meta object literal for the '<em><b>Send On Warning</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute NOTIFIER__SEND_ON_WARNING = eINSTANCE.getNotifier_SendOnWarning();
+
+ /**
+ * The meta object literal for the '<em><b>Address</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute NOTIFIER__ADDRESS = eINSTANCE.getNotifier_Address();
+
+ /**
+ * The meta object literal for the '<em><b>Configuration</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference NOTIFIER__CONFIGURATION = eINSTANCE.getNotifier_Configuration();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.OrganizationImpl
+ * <em>Organization</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.OrganizationImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getOrganization()
+ * @generated
+ */
+ EClass ORGANIZATION = eINSTANCE.getOrganization();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ORGANIZATION__NAME = eINSTANCE.getOrganization_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Url</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute ORGANIZATION__URL = eINSTANCE.getOrganization_Url();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ParentImpl <em>Parent</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ParentImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getParent()
+ * @generated
+ */
+ EClass PARENT = eINSTANCE.getParent();
+
+ /**
+ * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PARENT__ARTIFACT_ID = eINSTANCE.getParent_ArtifactId();
+
+ /**
+ * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PARENT__GROUP_ID = eINSTANCE.getParent_GroupId();
+
+ /**
+ * The meta object literal for the '<em><b>Version</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PARENT__VERSION = eINSTANCE.getParent_Version();
+
+ /**
+ * The meta object literal for the '<em><b>Relative Path</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PARENT__RELATIVE_PATH = eINSTANCE.getParent_RelativePath();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl <em>Plugin</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.PluginImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPlugin()
+ * @generated
+ */
+ EClass PLUGIN = eINSTANCE.getPlugin();
+
+ /**
+ * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PLUGIN__GROUP_ID = eINSTANCE.getPlugin_GroupId();
+
+ /**
+ * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PLUGIN__ARTIFACT_ID = eINSTANCE.getPlugin_ArtifactId();
+
+ /**
+ * The meta object literal for the '<em><b>Version</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PLUGIN__VERSION = eINSTANCE.getPlugin_Version();
+
+ /**
+ * The meta object literal for the '<em><b>Extensions</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PLUGIN__EXTENSIONS = eINSTANCE.getPlugin_Extensions();
+
+ /**
+ * The meta object literal for the '<em><b>Executions</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference PLUGIN__EXECUTIONS = eINSTANCE.getPlugin_Executions();
+
+ /**
+ * The meta object literal for the '<em><b>Dependencies</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference PLUGIN__DEPENDENCIES = eINSTANCE.getPlugin_Dependencies();
+
+ /**
+ * The meta object literal for the '<em><b>Inherited</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PLUGIN__INHERITED = eINSTANCE.getPlugin_Inherited();
+
+ /**
+ * The meta object literal for the '<em><b>Configuration</b></em>' reference feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EReference PLUGIN__CONFIGURATION = eINSTANCE.getPlugin_Configuration();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl
+ * <em>Plugin Execution</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPluginExecution()
+ * @generated
+ */
+ EClass PLUGIN_EXECUTION = eINSTANCE.getPluginExecution();
+
+ /**
+ * The meta object literal for the '<em><b>Id</b></em>' attribute feature. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ EAttribute PLUGIN_EXECUTION__ID = eINSTANCE.getPluginExecution_Id();
+
+ /**
+ * The meta object literal for the '<em><b>Phase</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PLUGIN_EXECUTION__PHASE = eINSTANCE.getPluginExecution_Phase();
+
+ /**
+ * The meta object literal for the '<em><b>Inherited</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PLUGIN_EXECUTION__INHERITED = eINSTANCE.getPluginExecution_Inherited();
+
+ /**
+ * The meta object literal for the '<em><b>Goals</b></em>' attribute list feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PLUGIN_EXECUTION__GOALS = eINSTANCE.getPluginExecution_Goals();
+
+ /**
+ * The meta object literal for the '<em><b>Configuration</b></em>' reference feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EReference PLUGIN_EXECUTION__CONFIGURATION = eINSTANCE.getPluginExecution_Configuration();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.PluginManagementImpl
+ * <em>Plugin Management</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.PluginManagementImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPluginManagement()
+ * @generated
+ */
+ EClass PLUGIN_MANAGEMENT = eINSTANCE.getPluginManagement();
+
+ /**
+ * The meta object literal for the '<em><b>Plugins</b></em>' containment reference list feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference PLUGIN_MANAGEMENT__PLUGINS = eINSTANCE.getPluginManagement_Plugins();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.PrerequisitesImpl
+ * <em>Prerequisites</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.PrerequisitesImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPrerequisites()
+ * @generated
+ */
+ EClass PREREQUISITES = eINSTANCE.getPrerequisites();
+
+ /**
+ * The meta object literal for the '<em><b>Maven</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PREREQUISITES__MAVEN = eINSTANCE.getPrerequisites_Maven();
+
+ /**
+ * The meta object literal for the ' {@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl <em>Profile</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ProfileImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getProfile()
+ * @generated
+ */
+ EClass PROFILE = eINSTANCE.getProfile();
+
+ /**
+ * The meta object literal for the '<em><b>Id</b></em>' attribute feature. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ EAttribute PROFILE__ID = eINSTANCE.getProfile_Id();
+
+ /**
+ * The meta object literal for the '<em><b>Activation</b></em>' containment reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference PROFILE__ACTIVATION = eINSTANCE.getProfile_Activation();
+
+ /**
+ * The meta object literal for the '<em><b>Build</b></em>' containment reference feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference PROFILE__BUILD = eINSTANCE.getProfile_Build();
+
+ /**
+ * The meta object literal for the '<em><b>Repositories</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference PROFILE__REPOSITORIES = eINSTANCE.getProfile_Repositories();
+
+ /**
+ * The meta object literal for the '<em><b>Plugin Repositories</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference PROFILE__PLUGIN_REPOSITORIES = eINSTANCE.getProfile_PluginRepositories();
+
+ /**
+ * The meta object literal for the '<em><b>Dependencies</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference PROFILE__DEPENDENCIES = eINSTANCE.getProfile_Dependencies();
+
+ /**
+ * The meta object literal for the '<em><b>Reports</b></em>' containment reference list feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference PROFILE__REPORTS = eINSTANCE.getProfile_Reports();
+
+ /**
+ * The meta object literal for the '<em><b>Dependency Management</b></em>' containment reference feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference PROFILE__DEPENDENCY_MANAGEMENT = eINSTANCE.getProfile_DependencyManagement();
+
+ /**
+ * The meta object literal for the '<em><b>Distribution Management</b></em>' containment reference feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference PROFILE__DISTRIBUTION_MANAGEMENT = eINSTANCE.getProfile_DistributionManagement();
+
+ /**
+ * The meta object literal for the '<em><b>Properties</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference PROFILE__PROPERTIES = eINSTANCE.getProfile_Properties();
+
+ /**
+ * The meta object literal for the '<em><b>Modules</b></em>' attribute list feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PROFILE__MODULES = eINSTANCE.getProfile_Modules();
+
+ /**
+ * The meta object literal for the '<em><b>Reporting</b></em>' reference feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EReference PROFILE__REPORTING = eINSTANCE.getProfile_Reporting();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.RelocationImpl <em>Relocation</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.RelocationImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getRelocation()
+ * @generated
+ */
+ EClass RELOCATION = eINSTANCE.getRelocation();
+
+ /**
+ * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute RELOCATION__GROUP_ID = eINSTANCE.getRelocation_GroupId();
+
+ /**
+ * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute RELOCATION__ARTIFACT_ID = eINSTANCE.getRelocation_ArtifactId();
+
+ /**
+ * The meta object literal for the '<em><b>Version</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute RELOCATION__VERSION = eINSTANCE.getRelocation_Version();
+
+ /**
+ * The meta object literal for the '<em><b>Message</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute RELOCATION__MESSAGE = eINSTANCE.getRelocation_Message();
+
+ /**
+ * The meta object literal for the ' {@link org.eclipse.m2e.model.edit.pom.impl.ReportingImpl <em>Reporting</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ReportingImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getReporting()
+ * @generated
+ */
+ EClass REPORTING = eINSTANCE.getReporting();
+
+ /**
+ * The meta object literal for the '<em><b>Exclude Defaults</b></em>' attribute feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute REPORTING__EXCLUDE_DEFAULTS = eINSTANCE.getReporting_ExcludeDefaults();
+
+ /**
+ * The meta object literal for the '<em><b>Output Directory</b></em>' attribute feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute REPORTING__OUTPUT_DIRECTORY = eINSTANCE.getReporting_OutputDirectory();
+
+ /**
+ * The meta object literal for the '<em><b>Plugins</b></em>' containment reference list feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference REPORTING__PLUGINS = eINSTANCE.getReporting_Plugins();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl
+ * <em>Report Plugin</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getReportPlugin()
+ * @generated
+ */
+ EClass REPORT_PLUGIN = eINSTANCE.getReportPlugin();
+
+ /**
+ * The meta object literal for the '<em><b>Group Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute REPORT_PLUGIN__GROUP_ID = eINSTANCE.getReportPlugin_GroupId();
+
+ /**
+ * The meta object literal for the '<em><b>Artifact Id</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute REPORT_PLUGIN__ARTIFACT_ID = eINSTANCE.getReportPlugin_ArtifactId();
+
+ /**
+ * The meta object literal for the '<em><b>Version</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute REPORT_PLUGIN__VERSION = eINSTANCE.getReportPlugin_Version();
+
+ /**
+ * The meta object literal for the '<em><b>Inherited</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute REPORT_PLUGIN__INHERITED = eINSTANCE.getReportPlugin_Inherited();
+
+ /**
+ * The meta object literal for the '<em><b>Report Sets</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference REPORT_PLUGIN__REPORT_SETS = eINSTANCE.getReportPlugin_ReportSets();
+
+ /**
+ * The meta object literal for the '<em><b>Configuration</b></em>' reference feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EReference REPORT_PLUGIN__CONFIGURATION = eINSTANCE.getReportPlugin_Configuration();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl <em>Report Set</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getReportSet()
+ * @generated
+ */
+ EClass REPORT_SET = eINSTANCE.getReportSet();
+
+ /**
+ * The meta object literal for the '<em><b>Id</b></em>' attribute feature. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ EAttribute REPORT_SET__ID = eINSTANCE.getReportSet_Id();
+
+ /**
+ * The meta object literal for the '<em><b>Inherited</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute REPORT_SET__INHERITED = eINSTANCE.getReportSet_Inherited();
+
+ /**
+ * The meta object literal for the '<em><b>Reports</b></em>' attribute list feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute REPORT_SET__REPORTS = eINSTANCE.getReportSet_Reports();
+
+ /**
+ * The meta object literal for the '<em><b>Configuration</b></em>' reference feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EReference REPORT_SET__CONFIGURATION = eINSTANCE.getReportSet_Configuration();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl <em>Repository</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getRepository()
+ * @generated
+ */
+ EClass REPOSITORY = eINSTANCE.getRepository();
+
+ /**
+ * The meta object literal for the '<em><b>Releases</b></em>' containment reference feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference REPOSITORY__RELEASES = eINSTANCE.getRepository_Releases();
+
+ /**
+ * The meta object literal for the '<em><b>Snapshots</b></em>' containment reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference REPOSITORY__SNAPSHOTS = eINSTANCE.getRepository_Snapshots();
+
+ /**
+ * The meta object literal for the '<em><b>Id</b></em>' attribute feature. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ EAttribute REPOSITORY__ID = eINSTANCE.getRepository_Id();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute REPOSITORY__NAME = eINSTANCE.getRepository_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Url</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute REPOSITORY__URL = eINSTANCE.getRepository_Url();
+
+ /**
+ * The meta object literal for the '<em><b>Layout</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute REPOSITORY__LAYOUT = eINSTANCE.getRepository_Layout();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryPolicyImpl
+ * <em>Repository Policy</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.RepositoryPolicyImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getRepositoryPolicy()
+ * @generated
+ */
+ EClass REPOSITORY_POLICY = eINSTANCE.getRepositoryPolicy();
+
+ /**
+ * The meta object literal for the '<em><b>Enabled</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute REPOSITORY_POLICY__ENABLED = eINSTANCE.getRepositoryPolicy_Enabled();
+
+ /**
+ * The meta object literal for the '<em><b>Update Policy</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute REPOSITORY_POLICY__UPDATE_POLICY = eINSTANCE.getRepositoryPolicy_UpdatePolicy();
+
+ /**
+ * The meta object literal for the '<em><b>Checksum Policy</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute REPOSITORY_POLICY__CHECKSUM_POLICY = eINSTANCE.getRepositoryPolicy_ChecksumPolicy();
+
+ /**
+ * The meta object literal for the ' {@link org.eclipse.m2e.model.edit.pom.impl.ResourceImpl <em>Resource</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ResourceImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getResource()
+ * @generated
+ */
+ EClass RESOURCE = eINSTANCE.getResource();
+
+ /**
+ * The meta object literal for the '<em><b>Target Path</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute RESOURCE__TARGET_PATH = eINSTANCE.getResource_TargetPath();
+
+ /**
+ * The meta object literal for the '<em><b>Filtering</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute RESOURCE__FILTERING = eINSTANCE.getResource_Filtering();
+
+ /**
+ * The meta object literal for the '<em><b>Directory</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute RESOURCE__DIRECTORY = eINSTANCE.getResource_Directory();
+
+ /**
+ * The meta object literal for the '<em><b>Includes</b></em>' attribute list feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute RESOURCE__INCLUDES = eINSTANCE.getResource_Includes();
+
+ /**
+ * The meta object literal for the '<em><b>Excludes</b></em>' attribute list feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute RESOURCE__EXCLUDES = eINSTANCE.getResource_Excludes();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ScmImpl <em>Scm</em>}' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ScmImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getScm()
+ * @generated
+ */
+ EClass SCM = eINSTANCE.getScm();
+
+ /**
+ * The meta object literal for the '<em><b>Connection</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute SCM__CONNECTION = eINSTANCE.getScm_Connection();
+
+ /**
+ * The meta object literal for the '<em><b>Developer Connection</b></em>' attribute feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute SCM__DEVELOPER_CONNECTION = eINSTANCE.getScm_DeveloperConnection();
+
+ /**
+ * The meta object literal for the '<em><b>Tag</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute SCM__TAG = eINSTANCE.getScm_Tag();
+
+ /**
+ * The meta object literal for the '<em><b>Url</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute SCM__URL = eINSTANCE.getScm_Url();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.SiteImpl <em>Site</em>}' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.SiteImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getSite()
+ * @generated
+ */
+ EClass SITE = eINSTANCE.getSite();
+
+ /**
+ * The meta object literal for the '<em><b>Id</b></em>' attribute feature. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ EAttribute SITE__ID = eINSTANCE.getSite_Id();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute SITE__NAME = eINSTANCE.getSite_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Url</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute SITE__URL = eINSTANCE.getSite_Url();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.PropertyElementImpl
+ * <em>Property Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.PropertyElementImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getPropertyElement()
+ * @generated
+ */
+ EClass PROPERTY_ELEMENT = eINSTANCE.getPropertyElement();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PROPERTY_ELEMENT__NAME = eINSTANCE.getPropertyElement_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Value</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute PROPERTY_ELEMENT__VALUE = eINSTANCE.getPropertyElement_Value();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.m2e.model.edit.pom.impl.ConfigurationImpl
+ * <em>Configuration</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.m2e.model.edit.pom.impl.ConfigurationImpl
+ * @see org.eclipse.m2e.model.edit.pom.impl.PomPackageImpl#getConfiguration()
+ * @generated
+ */
+ EClass CONFIGURATION = eINSTANCE.getConfiguration();
+
+ }
} // PomPackage
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Prerequisites.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Prerequisites.java
index 7441b97e..2084e200 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Prerequisites.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Prerequisites.java
@@ -13,18 +13,14 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Prerequisites</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0 Describes the prerequisites a project can
- * have. <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Prerequisites</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 Describes the prerequisites a project can have. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Prerequisites#getMaven <em>Maven
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Prerequisites#getMaven <em>Maven </em>}</li>
* </ul>
* </p>
*
@@ -33,62 +29,55 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Prerequisites extends EObject {
- /**
- * Returns the value of the '<em><b>Maven</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The minimum version of Maven required to build the project, or to use
- * this plugin. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Maven</em>' attribute.
- * @see #isSetMaven()
- * @see #unsetMaven()
- * @see #setMaven(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPrerequisites_Maven()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
- * extendedMetaData
- * ="kind='element' name='maven' namespace='##targetNamespace'"
- * @generated
- */
- String getMaven();
+ /**
+ * Returns the value of the '<em><b>Maven</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The minimum version of Maven required to build the project, or to use this plugin. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Maven</em>' attribute.
+ * @see #isSetMaven()
+ * @see #unsetMaven()
+ * @see #setMaven(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPrerequisites_Maven()
+ * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData
+ * ="kind='element' name='maven' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getMaven();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Prerequisites#getMaven
- * <em>Maven</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Maven</em>' attribute.
- * @see #isSetMaven()
- * @see #unsetMaven()
- * @see #getMaven()
- * @generated
- */
- void setMaven(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Prerequisites#getMaven <em>Maven</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Maven</em>' attribute.
+ * @see #isSetMaven()
+ * @see #unsetMaven()
+ * @see #getMaven()
+ * @generated
+ */
+ void setMaven(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Prerequisites#getMaven
- * <em>Maven</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetMaven()
- * @see #getMaven()
- * @see #setMaven(String)
- * @generated
- */
- void unsetMaven();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Prerequisites#getMaven <em>Maven</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetMaven()
+ * @see #getMaven()
+ * @see #setMaven(String)
+ * @generated
+ */
+ void unsetMaven();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Prerequisites#getMaven
- * <em>Maven</em>}' attribute is set. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return whether the value of the '<em>Maven</em>' attribute is set.
- * @see #unsetMaven()
- * @see #getMaven()
- * @see #setMaven(String)
- * @generated
- */
- boolean isSetMaven();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Prerequisites#getMaven <em>Maven</em>}'
+ * attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Maven</em>' attribute is set.
+ * @see #unsetMaven()
+ * @see #getMaven()
+ * @see #setMaven(String)
+ * @generated
+ */
+ boolean isSetMaven();
} // Prerequisites
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Profile.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Profile.java
index ab79291f..33de078c 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Profile.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Profile.java
@@ -12,43 +12,28 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Profile</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0
- *
- * Modifications to the build process which is activated based on environmental
- * parameters or command line arguments.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Profile</b></em>'. <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Modifications to the build process which is activated based on environmental parameters or
+ * command line arguments. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getId <em>Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getActivation <em>Activation
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getActivation <em>Activation </em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getBuild <em>Build</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getRepositories <em>
- * Repositories</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getPluginRepositories <em>
- * Plugin Repositories</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getDependencies <em>
- * Dependencies</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getRepositories <em> Repositories</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getPluginRepositories <em> Plugin Repositories</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getDependencies <em> Dependencies</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getReports <em>Reports</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getDependencyManagement <em>
- * Dependency Management</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getDistributionManagement
- * <em>Distribution Management</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getProperties <em>Properties
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getDependencyManagement <em> Dependency Management</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getDistributionManagement <em>Distribution Management</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getProperties <em>Properties </em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getModules <em>Modules</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getReporting <em>Reporting
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Profile#getReporting <em>Reporting </em>}</li>
* </ul>
* </p>
*
@@ -57,564 +42,463 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Profile extends EObject {
- /**
- * Returns the value of the '<em><b>Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The identifier of this build profile. This used both for command line
- * activation, and identifies identical profiles to merge with during
- * inheritance. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Id</em>' attribute.
- * @see #setId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Id()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='id' namespace='##targetNamespace'"
- * @generated
- */
- String getId();
-
- /**
- * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Profile#getId
- * <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Id</em>' attribute.
- * @see #getId()
- * @generated
- */
- void setId(String value);
-
- /**
- * Returns the value of the '<em><b>Activation</b></em>' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0 The conditional logic which will automatically
- * trigger the inclusion of this profile. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Activation</em>' containment reference.
- * @see #isSetActivation()
- * @see #unsetActivation()
- * @see #setActivation(Activation)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Activation()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='activation' namespace='##targetNamespace'"
- * @generated
- */
- Activation getActivation();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getActivation
- * <em>Activation</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Activation</em>' containment
- * reference.
- * @see #isSetActivation()
- * @see #unsetActivation()
- * @see #getActivation()
- * @generated
- */
- void setActivation(Activation value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getActivation
- * <em>Activation</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetActivation()
- * @see #getActivation()
- * @see #setActivation(Activation)
- * @generated
- */
- void unsetActivation();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getActivation
- * <em>Activation</em>}' containment reference is set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Activation</em>' containment
- * reference is set.
- * @see #unsetActivation()
- * @see #getActivation()
- * @see #setActivation(Activation)
- * @generated
- */
- boolean isSetActivation();
-
- /**
- * Returns the value of the '<em><b>Build</b></em>' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc -->
- * 4.0.0 Information required to build the project. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Build</em>' containment reference.
- * @see #isSetBuild()
- * @see #unsetBuild()
- * @see #setBuild(BuildBase)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Build()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='build' namespace='##targetNamespace'"
- * @generated
- */
- BuildBase getBuild();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getBuild <em>Build</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Build</em>' containment reference.
- * @see #isSetBuild()
- * @see #unsetBuild()
- * @see #getBuild()
- * @generated
- */
- void setBuild(BuildBase value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getBuild <em>Build</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetBuild()
- * @see #getBuild()
- * @see #setBuild(BuildBase)
- * @generated
- */
- void unsetBuild();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getBuild <em>Build</em>}'
- * containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return whether the value of the '<em>Build</em>' containment reference
- * is set.
- * @see #unsetBuild()
- * @see #getBuild()
- * @see #setBuild(BuildBase)
- * @generated
- */
- boolean isSetBuild();
-
- /**
- * Returns the value of the '<em><b>Repositories</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Repository}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 The lists of the
- * remote repositories for discovering dependencies and extensions. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Repositories</em>' containment reference
- * list.
- * @see #isSetRepositories()
- * @see #unsetRepositories()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Repositories()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='repositories' namespace='##targetNamespace'"
- * @generated
- */
- EList<Repository> getRepositories();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getRepositories
- * <em>Repositories</em>}' containment reference list. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #isSetRepositories()
- * @see #getRepositories()
- * @generated
- */
- void unsetRepositories();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getRepositories
- * <em>Repositories</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Repositories</em>' containment
- * reference list is set.
- * @see #unsetRepositories()
- * @see #getRepositories()
- * @generated
- */
- boolean isSetRepositories();
-
- /**
- * Returns the value of the '<em><b>Plugin Repositories</b></em>'
- * containment reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Repository}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The lists of the remote repositories for discovering plugins for builds
- * and reports. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Plugin Repositories</em>' containment
- * reference list.
- * @see #isSetPluginRepositories()
- * @see #unsetPluginRepositories()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_PluginRepositories()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='pluginRepositories' namespace='##targetNamespace'"
- * @generated
- */
- EList<Repository> getPluginRepositories();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getPluginRepositories
- * <em>Plugin Repositories</em>}' containment reference list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetPluginRepositories()
- * @see #getPluginRepositories()
- * @generated
- */
- void unsetPluginRepositories();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getPluginRepositories
- * <em>Plugin Repositories</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Plugin Repositories</em>'
- * containment reference list is set.
- * @see #unsetPluginRepositories()
- * @see #getPluginRepositories()
- * @generated
- */
- boolean isSetPluginRepositories();
-
- /**
- * Returns the value of the '<em><b>Dependencies</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.Dependency}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * This element describes all of the dependencies associated with a project.
- * These dependencies are used to construct a classpath for your project
- * during the build process. They are automatically downloaded from the
- * repositories defined in this project. See &lt;a href="http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html"
- * &gt;the dependency mechanism&lt;/a&gt; for more information.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Dependencies</em>' containment reference
- * list.
- * @see #isSetDependencies()
- * @see #unsetDependencies()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Dependencies()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='dependencies' namespace='##targetNamespace'"
- * @generated
- */
- EList<Dependency> getDependencies();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getDependencies
- * <em>Dependencies</em>}' containment reference list. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #isSetDependencies()
- * @see #getDependencies()
- * @generated
- */
- void unsetDependencies();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getDependencies
- * <em>Dependencies</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Dependencies</em>' containment
- * reference list is set.
- * @see #unsetDependencies()
- * @see #getDependencies()
- * @generated
- */
- boolean isSetDependencies();
-
- /**
- * Returns the value of the '<em><b>Reports</b></em>' containment reference
- * list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin}. <!-- begin-user-doc
- * --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * &lt;b&gt;Deprecated&lt;/b&gt;. Now ignored by Maven.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Reports</em>' containment reference list.
- * @see #isSetReports()
- * @see #unsetReports()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Reports()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='reports' namespace='##targetNamespace'"
- * @generated
- */
- EList<ReportPlugin> getReports();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getReports <em>Reports</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetReports()
- * @see #getReports()
- * @generated
- */
- void unsetReports();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getReports <em>Reports</em>}'
- * containment reference list is set. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return whether the value of the '<em>Reports</em>' containment reference
- * list is set.
- * @see #unsetReports()
- * @see #getReports()
- * @generated
- */
- boolean isSetReports();
-
- /**
- * Returns the value of the '<em><b>Dependency Management</b></em>'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0
- *
- * Default dependency information for projects that inherit from this one.
- * The dependencies in this section are not immediately resolved. Instead,
- * when a POM derived from this one declares a dependency described by a
- * matching groupId and artifactId, the version and other values from this
- * section are used for that dependency if they were not already specified.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Dependency Management</em>' containment
- * reference.
- * @see #isSetDependencyManagement()
- * @see #unsetDependencyManagement()
- * @see #setDependencyManagement(DependencyManagement)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_DependencyManagement()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='dependencyManagement' namespace='##targetNamespace'"
- * @generated
- */
- DependencyManagement getDependencyManagement();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getDependencyManagement
- * <em>Dependency Management</em>}' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Dependency Management</em>'
- * containment reference.
- * @see #isSetDependencyManagement()
- * @see #unsetDependencyManagement()
- * @see #getDependencyManagement()
- * @generated
- */
- void setDependencyManagement(DependencyManagement value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getDependencyManagement
- * <em>Dependency Management</em>}' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetDependencyManagement()
- * @see #getDependencyManagement()
- * @see #setDependencyManagement(DependencyManagement)
- * @generated
- */
- void unsetDependencyManagement();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getDependencyManagement
- * <em>Dependency Management</em>}' containment reference is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Dependency Management</em>'
- * containment reference is set.
- * @see #unsetDependencyManagement()
- * @see #getDependencyManagement()
- * @see #setDependencyManagement(DependencyManagement)
- * @generated
- */
- boolean isSetDependencyManagement();
-
- /**
- * Returns the value of the '<em><b>Distribution Management</b></em>'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0 Distribution information for a project that
- * enables deployment of the site and artifacts to remote web servers and
- * repositories respectively. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Distribution Management</em>' containment
- * reference.
- * @see #isSetDistributionManagement()
- * @see #unsetDistributionManagement()
- * @see #setDistributionManagement(DistributionManagement)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_DistributionManagement()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='distributionManagement' namespace='##targetNamespace'"
- * @generated
- */
- DistributionManagement getDistributionManagement();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getDistributionManagement
- * <em>Distribution Management</em>}' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Distribution Management</em>'
- * containment reference.
- * @see #isSetDistributionManagement()
- * @see #unsetDistributionManagement()
- * @see #getDistributionManagement()
- * @generated
- */
- void setDistributionManagement(DistributionManagement value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getDistributionManagement
- * <em>Distribution Management</em>}' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetDistributionManagement()
- * @see #getDistributionManagement()
- * @see #setDistributionManagement(DistributionManagement)
- * @generated
- */
- void unsetDistributionManagement();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getDistributionManagement
- * <em>Distribution Management</em>}' containment reference is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Distribution Management</em>'
- * containment reference is set.
- * @see #unsetDistributionManagement()
- * @see #getDistributionManagement()
- * @see #setDistributionManagement(DistributionManagement)
- * @generated
- */
- boolean isSetDistributionManagement();
-
- /**
- * Returns the value of the '<em><b>Properties</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.PropertyElement}. <!-- begin-user-doc
- * --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * Properties that can be used throughout the POM as a substitution, and are
- * used as filters in resources if enabled. The format is
- * &lt;code&gt;&amp;lt;name&amp;gt;value&amp;lt;/name&amp;gt;&lt;/code&gt;.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Properties</em>' containment reference
- * list.
- * @see #isSetProperties()
- * @see #unsetProperties()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Properties()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='properties' namespace='##targetNamespace'"
- * @generated
- */
- EList<PropertyElement> getProperties();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getProperties
- * <em>Properties</em>}' containment reference list. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isSetProperties()
- * @see #getProperties()
- * @generated
- */
- void unsetProperties();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getProperties
- * <em>Properties</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Properties</em>' containment
- * reference list is set.
- * @see #unsetProperties()
- * @see #getProperties()
- * @generated
- */
- boolean isSetProperties();
-
- /**
- * Returns the value of the '<em><b>Modules</b></em>' attribute list. The
- * list contents are of type {@link java.lang.String}. <!-- begin-user-doc
- * -->
- * <p>
- * If the meaning of the '<em>Modules</em>' attribute list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Modules</em>' attribute list.
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Modules()
- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
- * @generated
- */
- EList<String> getModules();
-
- /**
- * Returns the value of the '<em><b>Reporting</b></em>' reference. <!--
- * begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Reporting</em>' reference isn't clear, there
- * really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Reporting</em>' reference.
- * @see #setReporting(Reporting)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Reporting()
- * @model
- * @generated
- */
- Reporting getReporting();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Profile#getReporting
- * <em>Reporting</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Reporting</em>' reference.
- * @see #getReporting()
- * @generated
- */
- void setReporting(Reporting value);
+ /**
+ * Returns the value of the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The identifier of this build profile. This used both for command line activation, and
+ * identifies identical profiles to merge with during inheritance. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Id</em>' attribute.
+ * @see #setId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Id()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='id' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getId();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Profile#getId <em>Id</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Id</em>' attribute.
+ * @see #getId()
+ * @generated
+ */
+ void setId(String value);
+
+ /**
+ * Returns the value of the '<em><b>Activation</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 The conditional logic which will automatically trigger the
+ * inclusion of this profile. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Activation</em>' containment reference.
+ * @see #isSetActivation()
+ * @see #unsetActivation()
+ * @see #setActivation(Activation)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Activation()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='activation' namespace='##targetNamespace'"
+ * @generated
+ */
+ Activation getActivation();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getActivation <em>Activation</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Activation</em>' containment reference.
+ * @see #isSetActivation()
+ * @see #unsetActivation()
+ * @see #getActivation()
+ * @generated
+ */
+ void setActivation(Activation value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getActivation <em>Activation</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetActivation()
+ * @see #getActivation()
+ * @see #setActivation(Activation)
+ * @generated
+ */
+ void unsetActivation();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getActivation <em>Activation</em>}
+ * ' containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Activation</em>' containment reference is set.
+ * @see #unsetActivation()
+ * @see #getActivation()
+ * @see #setActivation(Activation)
+ * @generated
+ */
+ boolean isSetActivation();
+
+ /**
+ * Returns the value of the '<em><b>Build</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 4.0.0 Information required to build the project. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Build</em>' containment reference.
+ * @see #isSetBuild()
+ * @see #unsetBuild()
+ * @see #setBuild(BuildBase)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Build()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='build' namespace='##targetNamespace'"
+ * @generated
+ */
+ BuildBase getBuild();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getBuild <em>Build</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Build</em>' containment reference.
+ * @see #isSetBuild()
+ * @see #unsetBuild()
+ * @see #getBuild()
+ * @generated
+ */
+ void setBuild(BuildBase value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getBuild <em>Build</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetBuild()
+ * @see #getBuild()
+ * @see #setBuild(BuildBase)
+ * @generated
+ */
+ void unsetBuild();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getBuild <em>Build</em>}'
+ * containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Build</em>' containment reference is set.
+ * @see #unsetBuild()
+ * @see #getBuild()
+ * @see #setBuild(BuildBase)
+ * @generated
+ */
+ boolean isSetBuild();
+
+ /**
+ * Returns the value of the '<em><b>Repositories</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Repository}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The lists of the remote repositories for discovering dependencies and extensions. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Repositories</em>' containment reference list.
+ * @see #isSetRepositories()
+ * @see #unsetRepositories()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Repositories()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='repositories' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Repository> getRepositories();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getRepositories <em>Repositories</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetRepositories()
+ * @see #getRepositories()
+ * @generated
+ */
+ void unsetRepositories();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getRepositories
+ * <em>Repositories</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Repositories</em>' containment reference list is set.
+ * @see #unsetRepositories()
+ * @see #getRepositories()
+ * @generated
+ */
+ boolean isSetRepositories();
+
+ /**
+ * Returns the value of the '<em><b>Plugin Repositories</b></em>' containment reference list. The list contents are of
+ * type {@link org.eclipse.m2e.model.edit.pom.Repository}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The lists of the remote repositories for discovering plugins for builds and reports. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Plugin Repositories</em>' containment reference list.
+ * @see #isSetPluginRepositories()
+ * @see #unsetPluginRepositories()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_PluginRepositories()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='pluginRepositories' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Repository> getPluginRepositories();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getPluginRepositories
+ * <em>Plugin Repositories</em>}' containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetPluginRepositories()
+ * @see #getPluginRepositories()
+ * @generated
+ */
+ void unsetPluginRepositories();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getPluginRepositories
+ * <em>Plugin Repositories</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Plugin Repositories</em>' containment reference list is set.
+ * @see #unsetPluginRepositories()
+ * @see #getPluginRepositories()
+ * @generated
+ */
+ boolean isSetPluginRepositories();
+
+ /**
+ * Returns the value of the '<em><b>Dependencies</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.Dependency}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ This element describes all of the dependencies associated with a project. These
+ * dependencies are used to construct a classpath for your project during the build process. They are automatically
+ * downloaded from the repositories defined in this project. See &lt;a
+ * href="http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html" &gt;the dependency
+ * mechanism&lt;/a&gt; for more information. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Dependencies</em>' containment reference list.
+ * @see #isSetDependencies()
+ * @see #unsetDependencies()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Dependencies()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='dependencies' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Dependency> getDependencies();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getDependencies <em>Dependencies</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetDependencies()
+ * @see #getDependencies()
+ * @generated
+ */
+ void unsetDependencies();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getDependencies
+ * <em>Dependencies</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Dependencies</em>' containment reference list is set.
+ * @see #unsetDependencies()
+ * @see #getDependencies()
+ * @generated
+ */
+ boolean isSetDependencies();
+
+ /**
+ * Returns the value of the '<em><b>Reports</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 &lt;b&gt;Deprecated&lt;/b&gt;. Now ignored by Maven. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Reports</em>' containment reference list.
+ * @see #isSetReports()
+ * @see #unsetReports()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Reports()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='reports' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<ReportPlugin> getReports();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getReports <em>Reports</em>}' containment
+ * reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetReports()
+ * @see #getReports()
+ * @generated
+ */
+ void unsetReports();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getReports <em>Reports</em>}'
+ * containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Reports</em>' containment reference list is set.
+ * @see #unsetReports()
+ * @see #getReports()
+ * @generated
+ */
+ boolean isSetReports();
+
+ /**
+ * Returns the value of the '<em><b>Dependency Management</b></em>' containment reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Default dependency information for projects that inherit from
+ * this one. The dependencies in this section are not immediately resolved. Instead, when a POM derived from this one
+ * declares a dependency described by a matching groupId and artifactId, the version and other values from this
+ * section are used for that dependency if they were not already specified. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Dependency Management</em>' containment reference.
+ * @see #isSetDependencyManagement()
+ * @see #unsetDependencyManagement()
+ * @see #setDependencyManagement(DependencyManagement)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_DependencyManagement()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='dependencyManagement' namespace='##targetNamespace'"
+ * @generated
+ */
+ DependencyManagement getDependencyManagement();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getDependencyManagement
+ * <em>Dependency Management</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Dependency Management</em>' containment reference.
+ * @see #isSetDependencyManagement()
+ * @see #unsetDependencyManagement()
+ * @see #getDependencyManagement()
+ * @generated
+ */
+ void setDependencyManagement(DependencyManagement value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getDependencyManagement
+ * <em>Dependency Management</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetDependencyManagement()
+ * @see #getDependencyManagement()
+ * @see #setDependencyManagement(DependencyManagement)
+ * @generated
+ */
+ void unsetDependencyManagement();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getDependencyManagement
+ * <em>Dependency Management</em>}' containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Dependency Management</em>' containment reference is set.
+ * @see #unsetDependencyManagement()
+ * @see #getDependencyManagement()
+ * @see #setDependencyManagement(DependencyManagement)
+ * @generated
+ */
+ boolean isSetDependencyManagement();
+
+ /**
+ * Returns the value of the '<em><b>Distribution Management</b></em>' containment reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Distribution information for a project that enables deployment
+ * of the site and artifacts to remote web servers and repositories respectively. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Distribution Management</em>' containment reference.
+ * @see #isSetDistributionManagement()
+ * @see #unsetDistributionManagement()
+ * @see #setDistributionManagement(DistributionManagement)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_DistributionManagement()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='distributionManagement' namespace='##targetNamespace'"
+ * @generated
+ */
+ DistributionManagement getDistributionManagement();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getDistributionManagement
+ * <em>Distribution Management</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Distribution Management</em>' containment reference.
+ * @see #isSetDistributionManagement()
+ * @see #unsetDistributionManagement()
+ * @see #getDistributionManagement()
+ * @generated
+ */
+ void setDistributionManagement(DistributionManagement value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getDistributionManagement
+ * <em>Distribution Management</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetDistributionManagement()
+ * @see #getDistributionManagement()
+ * @see #setDistributionManagement(DistributionManagement)
+ * @generated
+ */
+ void unsetDistributionManagement();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getDistributionManagement
+ * <em>Distribution Management</em>}' containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Distribution Management</em>' containment reference is set.
+ * @see #unsetDistributionManagement()
+ * @see #getDistributionManagement()
+ * @see #setDistributionManagement(DistributionManagement)
+ * @generated
+ */
+ boolean isSetDistributionManagement();
+
+ /**
+ * Returns the value of the '<em><b>Properties</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.PropertyElement}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Properties that can be used throughout the POM as a substitution, and are used as filters
+ * in resources if enabled. The format is &lt;code&gt;&amp;lt;name&amp;gt;value&amp;lt;/name&amp;gt;&lt;/code&gt;.
+ * <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Properties</em>' containment reference list.
+ * @see #isSetProperties()
+ * @see #unsetProperties()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Properties()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='properties' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<PropertyElement> getProperties();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getProperties <em>Properties</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetProperties()
+ * @see #getProperties()
+ * @generated
+ */
+ void unsetProperties();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getProperties <em>Properties</em>}
+ * ' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Properties</em>' containment reference list is set.
+ * @see #unsetProperties()
+ * @see #getProperties()
+ * @generated
+ */
+ boolean isSetProperties();
+
+ /**
+ * Returns the value of the '<em><b>Modules</b></em>' attribute list. The list contents are of type
+ * {@link java.lang.String}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Modules</em>' attribute list isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Modules</em>' attribute list.
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Modules()
+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
+ * @generated
+ */
+ EList<String> getModules();
+
+ /**
+ * Returns the value of the '<em><b>Reporting</b></em>' reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Reporting</em>' reference isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Reporting</em>' reference.
+ * @see #setReporting(Reporting)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getProfile_Reporting()
+ * @model
+ * @generated
+ */
+ Reporting getReporting();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Profile#getReporting <em>Reporting</em>}' reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Reporting</em>' reference.
+ * @see #getReporting()
+ * @generated
+ */
+ void setReporting(Reporting value);
} // Profile
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PropertyElement.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PropertyElement.java
index fa900d7c..ff6f7430 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PropertyElement.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/PropertyElement.java
@@ -13,17 +13,15 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Property Element</b></em>'. <!-- end-user-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Property Element</b></em>'. <!-- end-user-doc
+ * -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.PropertyElement#getName <em>Name
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.PropertyElement#getValue <em>Value
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.PropertyElement#getName <em>Name </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.PropertyElement#getValue <em>Value </em>}</li>
* </ul>
* </p>
*
@@ -32,62 +30,54 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface PropertyElement extends EObject {
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear, there really
- * should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPropertyElement_Name()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String"
- * @generated
- */
- String getName();
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPropertyElement_Name()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * @generated
+ */
+ String getName();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.PropertyElement#getName
- * <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.PropertyElement#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
- /**
- * Returns the value of the '<em><b>Value</b></em>' attribute. <!--
- * begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Value</em>' attribute isn't clear, there
- * really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Value</em>' attribute.
- * @see #setValue(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPropertyElement_Value()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String"
- * @generated
- */
- String getValue();
+ /**
+ * Returns the value of the '<em><b>Value</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Value</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Value</em>' attribute.
+ * @see #setValue(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getPropertyElement_Value()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * @generated
+ */
+ String getValue();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.PropertyElement#getValue
- * <em>Value</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Value</em>' attribute.
- * @see #getValue()
- * @generated
- */
- void setValue(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.PropertyElement#getValue <em>Value</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Value</em>' attribute.
+ * @see #getValue()
+ * @generated
+ */
+ void setValue(String value);
} // PropertyElement
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Relocation.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Relocation.java
index decefc5a..9985ba67 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Relocation.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Relocation.java
@@ -13,25 +13,18 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Relocation</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0 Describes where an artifact has moved to. If
- * any of the values are omitted, it is assumed to be the same as it was before.
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Relocation</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 Describes where an artifact has moved to. If any of the values are omitted, it is
+ * assumed to be the same as it was before. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Relocation#getGroupId <em>Group Id
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Relocation#getArtifactId <em>Artifact
- * Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Relocation#getVersion <em>Version
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Relocation#getMessage <em>Message
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Relocation#getGroupId <em>Group Id </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Relocation#getArtifactId <em>Artifact Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Relocation#getVersion <em>Version </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Relocation#getMessage <em>Message </em>}</li>
* </ul>
* </p>
*
@@ -40,113 +33,97 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Relocation extends EObject {
- /**
- * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The group ID the artifact has moved to. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Group Id</em>' attribute.
- * @see #setGroupId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRelocation_GroupId()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='groupId' namespace='##targetNamespace'"
- * @generated
- */
- String getGroupId();
+ /**
+ * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The group ID the artifact has moved to. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Group Id</em>' attribute.
+ * @see #setGroupId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRelocation_GroupId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='groupId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getGroupId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Relocation#getGroupId
- * <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Group Id</em>' attribute.
- * @see #getGroupId()
- * @generated
- */
- void setGroupId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Relocation#getGroupId <em>Group Id</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Group Id</em>' attribute.
+ * @see #getGroupId()
+ * @generated
+ */
+ void setGroupId(String value);
- /**
- * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The new artifact ID of the artifact. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Artifact Id</em>' attribute.
- * @see #setArtifactId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRelocation_ArtifactId()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='artifactId' namespace='##targetNamespace'"
- * @generated
- */
- String getArtifactId();
+ /**
+ * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 The new artifact ID of the artifact. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Artifact Id</em>' attribute.
+ * @see #setArtifactId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRelocation_ArtifactId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='artifactId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getArtifactId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Relocation#getArtifactId
- * <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Artifact Id</em>' attribute.
- * @see #getArtifactId()
- * @generated
- */
- void setArtifactId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Relocation#getArtifactId <em>Artifact Id</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Artifact Id</em>' attribute.
+ * @see #getArtifactId()
+ * @generated
+ */
+ void setArtifactId(String value);
- /**
- * Returns the value of the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The new version of the artifact. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Version</em>' attribute.
- * @see #setVersion(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRelocation_Version()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='version' namespace='##targetNamespace'"
- * @generated
- */
- String getVersion();
+ /**
+ * Returns the value of the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The new version of the artifact. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Version</em>' attribute.
+ * @see #setVersion(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRelocation_Version()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='version' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getVersion();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Relocation#getVersion
- * <em>Version</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Version</em>' attribute.
- * @see #getVersion()
- * @generated
- */
- void setVersion(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Relocation#getVersion <em>Version</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Version</em>' attribute.
+ * @see #getVersion()
+ * @generated
+ */
+ void setVersion(String value);
- /**
- * Returns the value of the '<em><b>Message</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * An additional message to show the user about the move, such as the
- * reason. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Message</em>' attribute.
- * @see #setMessage(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRelocation_Message()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='message' namespace='##targetNamespace'"
- * @generated
- */
- String getMessage();
+ /**
+ * Returns the value of the '<em><b>Message</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 An additional message to show the user about the move, such as the reason. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Message</em>' attribute.
+ * @see #setMessage(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRelocation_Message()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='message' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getMessage();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Relocation#getMessage
- * <em>Message</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Message</em>' attribute.
- * @see #getMessage()
- * @generated
- */
- void setMessage(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Relocation#getMessage <em>Message</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Message</em>' attribute.
+ * @see #getMessage()
+ * @generated
+ */
+ void setMessage(String value);
} // Relocation
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ReportPlugin.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ReportPlugin.java
index 928d22a2..799ab19f 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ReportPlugin.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ReportPlugin.java
@@ -12,30 +12,21 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Report Plugin</b></em>'. <!-- end-user-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Report Plugin</b></em>'. <!-- end-user-doc -->
* <!-- begin-model-doc --> 4.0.0 <!-- end-model-doc -->
- *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getGroupId <em>Group Id
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getArtifactId <em>
- * Artifact Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getVersion <em>Version
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getInherited <em>
- * Inherited</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getReportSets <em>Report
- * Sets</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getConfiguration <em>
- * Configuration</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getGroupId <em>Group Id </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getArtifactId <em> Artifact Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getVersion <em>Version </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getInherited <em> Inherited</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getReportSets <em>Report Sets</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getConfiguration <em> Configuration</em>}</li>
* </ul>
* </p>
*
@@ -44,223 +35,188 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface ReportPlugin extends EObject {
- /**
- * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The group ID of the reporting plugin in the repository. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Group Id</em>' attribute.
- * @see #isSetGroupId()
- * @see #unsetGroupId()
- * @see #setGroupId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportPlugin_GroupId()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
- * extendedMetaData
- * ="kind='element' name='groupId' namespace='##targetNamespace'"
- * @generated
- */
- String getGroupId();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getGroupId
- * <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Group Id</em>' attribute.
- * @see #isSetGroupId()
- * @see #unsetGroupId()
- * @see #getGroupId()
- * @generated
- */
- void setGroupId(String value);
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getGroupId
- * <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #isSetGroupId()
- * @see #getGroupId()
- * @see #setGroupId(String)
- * @generated
- */
- void unsetGroupId();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getGroupId
- * <em>Group Id</em>}' attribute is set. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return whether the value of the '<em>Group Id</em>' attribute is set.
- * @see #unsetGroupId()
- * @see #getGroupId()
- * @see #setGroupId(String)
- * @generated
- */
- boolean isSetGroupId();
-
- /**
- * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The artifact ID of the reporting plugin in the repository. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Artifact Id</em>' attribute.
- * @see #setArtifactId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportPlugin_ArtifactId()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='artifactId' namespace='##targetNamespace'"
- * @generated
- */
- String getArtifactId();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getArtifactId
- * <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Artifact Id</em>' attribute.
- * @see #getArtifactId()
- * @generated
- */
- void setArtifactId(String value);
-
- /**
- * Returns the value of the '<em><b>Version</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * The version of the reporting plugin to be used. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Version</em>' attribute.
- * @see #setVersion(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportPlugin_Version()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='version' namespace='##targetNamespace'"
- * @generated
- */
- String getVersion();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getVersion
- * <em>Version</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Version</em>' attribute.
- * @see #getVersion()
- * @generated
- */
- void setVersion(String value);
-
- /**
- * Returns the value of the '<em><b>Inherited</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- * Whether the configuration in this plugin should be made available to
- * projects that inherit from this one. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Inherited</em>' attribute.
- * @see #setInherited(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportPlugin_Inherited()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='inherited' namespace='##targetNamespace'"
- * @generated
- */
- String getInherited();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getInherited
- * <em>Inherited</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Inherited</em>' attribute.
- * @see #getInherited()
- * @generated
- */
- void setInherited(String value);
-
- /**
- * Returns the value of the '<em><b>Report Sets</b></em>' containment
- * reference list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.ReportSet}. <!-- begin-user-doc -->
- * <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Multiple
- * specifications of a set of reports, each having (possibly) different
- * configuration. This is the reporting parallel to an
- * &lt;code&gt;execution&lt;/code&gt; in the build. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Report Sets</em>' containment reference
- * list.
- * @see #isSetReportSets()
- * @see #unsetReportSets()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportPlugin_ReportSets()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='reportSets' namespace='##targetNamespace'"
- * @generated
- */
- EList<ReportSet> getReportSets();
-
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getReportSets
- * <em>Report Sets</em>}' containment reference list. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #isSetReportSets()
- * @see #getReportSets()
- * @generated
- */
- void unsetReportSets();
-
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getReportSets
- * <em>Report Sets</em>}' containment reference list is set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Report Sets</em>' containment
- * reference list is set.
- * @see #unsetReportSets()
- * @see #getReportSets()
- * @generated
- */
- boolean isSetReportSets();
-
- /**
- * Returns the value of the '<em><b>Configuration</b></em>' reference. <!--
- * begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Configuration</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Configuration</em>' reference.
- * @see #setConfiguration(Configuration)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportPlugin_Configuration()
- * @model
- * @generated
- */
- Configuration getConfiguration();
-
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getConfiguration
- * <em>Configuration</em>}' reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Configuration</em>' reference.
- * @see #getConfiguration()
- * @generated
- */
- void setConfiguration(Configuration value);
+ /**
+ * Returns the value of the '<em><b>Group Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The group ID of the reporting plugin in the repository. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Group Id</em>' attribute.
+ * @see #isSetGroupId()
+ * @see #unsetGroupId()
+ * @see #setGroupId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportPlugin_GroupId()
+ * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData
+ * ="kind='element' name='groupId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getGroupId();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getGroupId <em>Group Id</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Group Id</em>' attribute.
+ * @see #isSetGroupId()
+ * @see #unsetGroupId()
+ * @see #getGroupId()
+ * @generated
+ */
+ void setGroupId(String value);
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getGroupId <em>Group Id</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetGroupId()
+ * @see #getGroupId()
+ * @see #setGroupId(String)
+ * @generated
+ */
+ void unsetGroupId();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getGroupId <em>Group Id</em>}
+ * ' attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Group Id</em>' attribute is set.
+ * @see #unsetGroupId()
+ * @see #getGroupId()
+ * @see #setGroupId(String)
+ * @generated
+ */
+ boolean isSetGroupId();
+
+ /**
+ * Returns the value of the '<em><b>Artifact Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 The artifact ID of the reporting plugin in the repository. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Artifact Id</em>' attribute.
+ * @see #setArtifactId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportPlugin_ArtifactId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='artifactId' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getArtifactId();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getArtifactId <em>Artifact Id</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Artifact Id</em>' attribute.
+ * @see #getArtifactId()
+ * @generated
+ */
+ void setArtifactId(String value);
+
+ /**
+ * Returns the value of the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The version of the reporting plugin to be used. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Version</em>' attribute.
+ * @see #setVersion(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportPlugin_Version()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='version' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getVersion();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getVersion <em>Version</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Version</em>' attribute.
+ * @see #getVersion()
+ * @generated
+ */
+ void setVersion(String value);
+
+ /**
+ * Returns the value of the '<em><b>Inherited</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Whether the configuration in this plugin should be made available to projects that
+ * inherit from this one. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Inherited</em>' attribute.
+ * @see #setInherited(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportPlugin_Inherited()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='inherited' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getInherited();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getInherited <em>Inherited</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Inherited</em>' attribute.
+ * @see #getInherited()
+ * @generated
+ */
+ void setInherited(String value);
+
+ /**
+ * Returns the value of the '<em><b>Report Sets</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.ReportSet}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Multiple specifications of a set of reports, each having (possibly) different
+ * configuration. This is the reporting parallel to an &lt;code&gt;execution&lt;/code&gt; in the build. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Report Sets</em>' containment reference list.
+ * @see #isSetReportSets()
+ * @see #unsetReportSets()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportPlugin_ReportSets()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='reportSets' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<ReportSet> getReportSets();
+
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getReportSets <em>Report Sets</em>}'
+ * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetReportSets()
+ * @see #getReportSets()
+ * @generated
+ */
+ void unsetReportSets();
+
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getReportSets
+ * <em>Report Sets</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Report Sets</em>' containment reference list is set.
+ * @see #unsetReportSets()
+ * @see #getReportSets()
+ * @generated
+ */
+ boolean isSetReportSets();
+
+ /**
+ * Returns the value of the '<em><b>Configuration</b></em>' reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Configuration</em>' reference isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Configuration</em>' reference.
+ * @see #setConfiguration(Configuration)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportPlugin_Configuration()
+ * @model
+ * @generated
+ */
+ Configuration getConfiguration();
+
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ReportPlugin#getConfiguration <em>Configuration</em>}
+ * ' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Configuration</em>' reference.
+ * @see #getConfiguration()
+ * @generated
+ */
+ void setConfiguration(Configuration value);
} // ReportPlugin
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ReportSet.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ReportSet.java
index b339c9be..9ee64d29 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ReportSet.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/ReportSet.java
@@ -12,26 +12,20 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Report Set</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0 Represents a set of reports and configuration
- * to be used to generate them. <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Report Set</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 Represents a set of reports and configuration to be used to generate them. <!--
+ * end-model-doc -->
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.m2e.model.edit.pom.ReportSet#getId <em>Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.ReportSet#getInherited <em>Inherited
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.ReportSet#getReports <em>Reports
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.ReportSet#getConfiguration <em>
- * Configuration</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.ReportSet#getInherited <em>Inherited </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.ReportSet#getReports <em>Reports </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.ReportSet#getConfiguration <em> Configuration</em>}</li>
* </ul>
* </p>
*
@@ -40,137 +34,120 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface ReportSet extends EObject {
- /**
- * Returns the value of the '<em><b>Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 0.0.0+
- * The unique id for this report set, to be used during POM inheritance.
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Id</em>' attribute.
- * @see #isSetId()
- * @see #unsetId()
- * @see #setId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportSet_Id()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
- * extendedMetaData
- * ="kind='element' name='id' namespace='##targetNamespace'"
- * @generated
- */
- String getId();
+ /**
+ * Returns the value of the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 0.0.0+ The unique id for this report set, to be used during POM inheritance. <!-- end-model-doc
+ * -->
+ *
+ * @return the value of the '<em>Id</em>' attribute.
+ * @see #isSetId()
+ * @see #unsetId()
+ * @see #setId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportSet_Id()
+ * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData
+ * ="kind='element' name='id' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ReportSet#getId <em>Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Id</em>' attribute.
- * @see #isSetId()
- * @see #unsetId()
- * @see #getId()
- * @generated
- */
- void setId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ReportSet#getId <em>Id</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Id</em>' attribute.
+ * @see #isSetId()
+ * @see #unsetId()
+ * @see #getId()
+ * @generated
+ */
+ void setId(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ReportSet#getId <em>Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetId()
- * @see #getId()
- * @see #setId(String)
- * @generated
- */
- void unsetId();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ReportSet#getId <em>Id</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetId()
+ * @see #getId()
+ * @see #setId(String)
+ * @generated
+ */
+ void unsetId();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ReportSet#getId <em>Id</em>}'
- * attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Id</em>' attribute is set.
- * @see #unsetId()
- * @see #getId()
- * @see #setId(String)
- * @generated
- */
- boolean isSetId();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.ReportSet#getId <em>Id</em>}' attribute is
+ * set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Id</em>' attribute is set.
+ * @see #unsetId()
+ * @see #getId()
+ * @see #setId(String)
+ * @generated
+ */
+ boolean isSetId();
- /**
- * Returns the value of the '<em><b>Inherited</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * Whether any configuration should be propagated to child POMs. <!--
- * end-model-doc -->
- *
- * @return the value of the '<em>Inherited</em>' attribute.
- * @see #setInherited(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportSet_Inherited()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='inherited' namespace='##targetNamespace'"
- * @generated
- */
- String getInherited();
+ /**
+ * Returns the value of the '<em><b>Inherited</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Whether any configuration should be propagated to child POMs. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Inherited</em>' attribute.
+ * @see #setInherited(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportSet_Inherited()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='inherited' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getInherited();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ReportSet#getInherited
- * <em>Inherited</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Inherited</em>' attribute.
- * @see #getInherited()
- * @generated
- */
- void setInherited(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ReportSet#getInherited <em>Inherited</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Inherited</em>' attribute.
+ * @see #getInherited()
+ * @generated
+ */
+ void setInherited(String value);
- /**
- * Returns the value of the '<em><b>Reports</b></em>' attribute list. The
- * list contents are of type {@link java.lang.String}. <!-- begin-user-doc
- * -->
- * <p>
- * If the meaning of the '<em>Reports</em>' attribute list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Reports</em>' attribute list.
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportSet_Reports()
- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
- * @generated
- */
- EList<String> getReports();
+ /**
+ * Returns the value of the '<em><b>Reports</b></em>' attribute list. The list contents are of type
+ * {@link java.lang.String}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Reports</em>' attribute list isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Reports</em>' attribute list.
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportSet_Reports()
+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
+ * @generated
+ */
+ EList<String> getReports();
- /**
- * Returns the value of the '<em><b>Configuration</b></em>' reference. <!--
- * begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Configuration</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Configuration</em>' reference.
- * @see #setConfiguration(Configuration)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportSet_Configuration()
- * @model
- * @generated
- */
- Configuration getConfiguration();
+ /**
+ * Returns the value of the '<em><b>Configuration</b></em>' reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Configuration</em>' reference isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Configuration</em>' reference.
+ * @see #setConfiguration(Configuration)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReportSet_Configuration()
+ * @model
+ * @generated
+ */
+ Configuration getConfiguration();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.ReportSet#getConfiguration
- * <em>Configuration</em>}' reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Configuration</em>' reference.
- * @see #getConfiguration()
- * @generated
- */
- void setConfiguration(Configuration value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.ReportSet#getConfiguration <em>Configuration</em>}'
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Configuration</em>' reference.
+ * @see #getConfiguration()
+ * @generated
+ */
+ void setConfiguration(Configuration value);
} // ReportSet
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Reporting.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Reporting.java
index 7cbb6d0b..4edafad4 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Reporting.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Reporting.java
@@ -12,25 +12,18 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Reporting</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0 Section for management of reports and their
- * configuration. <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Reporting</b></em>'. <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Section for management of reports and their configuration. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Reporting#getExcludeDefaults <em>
- * Exclude Defaults</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Reporting#getOutputDirectory <em>
- * Output Directory</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Reporting#getPlugins <em>Plugins
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Reporting#getExcludeDefaults <em> Exclude Defaults</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Reporting#getOutputDirectory <em> Output Directory</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Reporting#getPlugins <em>Plugins </em>}</li>
* </ul>
* </p>
*
@@ -39,141 +32,115 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Reporting extends EObject {
- /**
- * Returns the value of the '<em><b>Exclude Defaults</b></em>' attribute.
- * The default value is <code>"false"</code>. <!-- begin-user-doc --> <!--
- * end-user-doc --> <!-- begin-model-doc --> 4.0.0 If true, then the default
- * reports are not included in the site generation. This includes the
- * reports in the "Project Info" menu. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Exclude Defaults</em>' attribute.
- * @see #isSetExcludeDefaults()
- * @see #unsetExcludeDefaults()
- * @see #setExcludeDefaults(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReporting_ExcludeDefaults()
- * @model default="false" unsettable="true"
- * dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='excludeDefaults' namespace='##targetNamespace'"
- * @generated
- */
- String getExcludeDefaults();
+ /**
+ * Returns the value of the '<em><b>Exclude Defaults</b></em>' attribute. The default value is <code>"false"</code>.
+ * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 If true, then the default reports are
+ * not included in the site generation. This includes the reports in the "Project Info" menu. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Exclude Defaults</em>' attribute.
+ * @see #isSetExcludeDefaults()
+ * @see #unsetExcludeDefaults()
+ * @see #setExcludeDefaults(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReporting_ExcludeDefaults()
+ * @model default="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='excludeDefaults' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getExcludeDefaults();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Reporting#getExcludeDefaults
- * <em>Exclude Defaults</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Exclude Defaults</em>' attribute.
- * @see #isSetExcludeDefaults()
- * @see #unsetExcludeDefaults()
- * @see #getExcludeDefaults()
- * @generated
- */
- void setExcludeDefaults(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Reporting#getExcludeDefaults
+ * <em>Exclude Defaults</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Exclude Defaults</em>' attribute.
+ * @see #isSetExcludeDefaults()
+ * @see #unsetExcludeDefaults()
+ * @see #getExcludeDefaults()
+ * @generated
+ */
+ void setExcludeDefaults(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Reporting#getExcludeDefaults
- * <em>Exclude Defaults</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetExcludeDefaults()
- * @see #getExcludeDefaults()
- * @see #setExcludeDefaults(String)
- * @generated
- */
- void unsetExcludeDefaults();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Reporting#getExcludeDefaults
+ * <em>Exclude Defaults</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetExcludeDefaults()
+ * @see #getExcludeDefaults()
+ * @see #setExcludeDefaults(String)
+ * @generated
+ */
+ void unsetExcludeDefaults();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Reporting#getExcludeDefaults
- * <em>Exclude Defaults</em>}' attribute is set. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Exclude Defaults</em>' attribute is
- * set.
- * @see #unsetExcludeDefaults()
- * @see #getExcludeDefaults()
- * @see #setExcludeDefaults(String)
- * @generated
- */
- boolean isSetExcludeDefaults();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Reporting#getExcludeDefaults
+ * <em>Exclude Defaults</em>}' attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Exclude Defaults</em>' attribute is set.
+ * @see #unsetExcludeDefaults()
+ * @see #getExcludeDefaults()
+ * @see #setExcludeDefaults(String)
+ * @generated
+ */
+ boolean isSetExcludeDefaults();
- /**
- * Returns the value of the '<em><b>Output Directory</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc -->
- * 4.0.0
- *
- * Where to store all of the generated reports. The default is
- * &lt;code&gt;${project.build.directory}/site&lt;/code&gt; .
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Output Directory</em>' attribute.
- * @see #setOutputDirectory(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReporting_OutputDirectory()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='outputDirectory' namespace='##targetNamespace'"
- * @generated
- */
- String getOutputDirectory();
+ /**
+ * Returns the value of the '<em><b>Output Directory</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 4.0.0 Where to store all of the generated reports. The default is
+ * &lt;code&gt;${project.build.directory}/site&lt;/code&gt; . <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Output Directory</em>' attribute.
+ * @see #setOutputDirectory(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReporting_OutputDirectory()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='outputDirectory' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getOutputDirectory();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Reporting#getOutputDirectory
- * <em>Output Directory</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Output Directory</em>' attribute.
- * @see #getOutputDirectory()
- * @generated
- */
- void setOutputDirectory(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Reporting#getOutputDirectory
+ * <em>Output Directory</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Output Directory</em>' attribute.
+ * @see #getOutputDirectory()
+ * @generated
+ */
+ void setOutputDirectory(String value);
- /**
- * Returns the value of the '<em><b>Plugins</b></em>' containment reference
- * list. The list contents are of type
- * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin}. <!-- begin-user-doc
- * --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 The reporting
- * plugins to use and their configuration. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Plugins</em>' containment reference list.
- * @see #isSetPlugins()
- * @see #unsetPlugins()
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReporting_Plugins()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='plugins' namespace='##targetNamespace'"
- * @generated
- */
- EList<ReportPlugin> getPlugins();
+ /**
+ * Returns the value of the '<em><b>Plugins</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The reporting plugins to use and their configuration. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Plugins</em>' containment reference list.
+ * @see #isSetPlugins()
+ * @see #unsetPlugins()
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getReporting_Plugins()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='plugins' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<ReportPlugin> getPlugins();
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Reporting#getPlugins
- * <em>Plugins</em>}' containment reference list. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isSetPlugins()
- * @see #getPlugins()
- * @generated
- */
- void unsetPlugins();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Reporting#getPlugins <em>Plugins</em>}' containment
+ * reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetPlugins()
+ * @see #getPlugins()
+ * @generated
+ */
+ void unsetPlugins();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Reporting#getPlugins
- * <em>Plugins</em>}' containment reference list is set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Plugins</em>' containment reference
- * list is set.
- * @see #unsetPlugins()
- * @see #getPlugins()
- * @generated
- */
- boolean isSetPlugins();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Reporting#getPlugins <em>Plugins</em>}'
+ * containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Plugins</em>' containment reference list is set.
+ * @see #unsetPlugins()
+ * @see #getPlugins()
+ * @generated
+ */
+ boolean isSetPlugins();
} // Reporting
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Repository.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Repository.java
index 32e74f13..1fe940b4 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Repository.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Repository.java
@@ -13,29 +13,20 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Repository</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0
- *
- * A repository contains the information needed for establishing connections
- * with remote repoistory.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Repository</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 A repository contains the information needed for establishing connections with remote
+ * repoistory. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Repository#getReleases <em>Releases
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Repository#getSnapshots <em>Snapshots
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Repository#getReleases <em>Releases </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Repository#getSnapshots <em>Snapshots </em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Repository#getId <em>Id</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Repository#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Repository#getUrl <em>Url</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Repository#getLayout <em>Layout</em>}
- * </li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Repository#getLayout <em>Layout</em>}</li>
* </ul>
* </p>
*
@@ -44,277 +35,228 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Repository extends EObject {
- /**
- * Returns the value of the '<em><b>Releases</b></em>' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0 How to handle downloading of releases from this
- * repository. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Releases</em>' containment reference.
- * @see #isSetReleases()
- * @see #unsetReleases()
- * @see #setReleases(RepositoryPolicy)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Releases()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='releases' namespace='##targetNamespace'"
- * @generated
- */
- RepositoryPolicy getReleases();
+ /**
+ * Returns the value of the '<em><b>Releases</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 How to handle downloading of releases from this repository. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Releases</em>' containment reference.
+ * @see #isSetReleases()
+ * @see #unsetReleases()
+ * @see #setReleases(RepositoryPolicy)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Releases()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='releases' namespace='##targetNamespace'"
+ * @generated
+ */
+ RepositoryPolicy getReleases();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Repository#getReleases
- * <em>Releases</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Releases</em>' containment
- * reference.
- * @see #isSetReleases()
- * @see #unsetReleases()
- * @see #getReleases()
- * @generated
- */
- void setReleases(RepositoryPolicy value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Repository#getReleases <em>Releases</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Releases</em>' containment reference.
+ * @see #isSetReleases()
+ * @see #unsetReleases()
+ * @see #getReleases()
+ * @generated
+ */
+ void setReleases(RepositoryPolicy value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Repository#getReleases
- * <em>Releases</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetReleases()
- * @see #getReleases()
- * @see #setReleases(RepositoryPolicy)
- * @generated
- */
- void unsetReleases();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Repository#getReleases <em>Releases</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetReleases()
+ * @see #getReleases()
+ * @see #setReleases(RepositoryPolicy)
+ * @generated
+ */
+ void unsetReleases();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Repository#getReleases
- * <em>Releases</em>}' containment reference is set. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Releases</em>' containment
- * reference is set.
- * @see #unsetReleases()
- * @see #getReleases()
- * @see #setReleases(RepositoryPolicy)
- * @generated
- */
- boolean isSetReleases();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Repository#getReleases <em>Releases</em>}'
+ * containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Releases</em>' containment reference is set.
+ * @see #unsetReleases()
+ * @see #getReleases()
+ * @see #setReleases(RepositoryPolicy)
+ * @generated
+ */
+ boolean isSetReleases();
- /**
- * Returns the value of the '<em><b>Snapshots</b></em>' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0 How to handle downloading of snapshots from
- * this repository. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Snapshots</em>' containment reference.
- * @see #isSetSnapshots()
- * @see #unsetSnapshots()
- * @see #setSnapshots(RepositoryPolicy)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Snapshots()
- * @model containment="true" unsettable="true" extendedMetaData=
- * "kind='element' name='snapshots' namespace='##targetNamespace'"
- * @generated
- */
- RepositoryPolicy getSnapshots();
+ /**
+ * Returns the value of the '<em><b>Snapshots</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 How to handle downloading of snapshots from this repository. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Snapshots</em>' containment reference.
+ * @see #isSetSnapshots()
+ * @see #unsetSnapshots()
+ * @see #setSnapshots(RepositoryPolicy)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Snapshots()
+ * @model containment="true" unsettable="true" extendedMetaData=
+ * "kind='element' name='snapshots' namespace='##targetNamespace'"
+ * @generated
+ */
+ RepositoryPolicy getSnapshots();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Repository#getSnapshots
- * <em>Snapshots</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Snapshots</em>' containment
- * reference.
- * @see #isSetSnapshots()
- * @see #unsetSnapshots()
- * @see #getSnapshots()
- * @generated
- */
- void setSnapshots(RepositoryPolicy value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Repository#getSnapshots <em>Snapshots</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Snapshots</em>' containment reference.
+ * @see #isSetSnapshots()
+ * @see #unsetSnapshots()
+ * @see #getSnapshots()
+ * @generated
+ */
+ void setSnapshots(RepositoryPolicy value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Repository#getSnapshots
- * <em>Snapshots</em>}' containment reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isSetSnapshots()
- * @see #getSnapshots()
- * @see #setSnapshots(RepositoryPolicy)
- * @generated
- */
- void unsetSnapshots();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Repository#getSnapshots <em>Snapshots</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetSnapshots()
+ * @see #getSnapshots()
+ * @see #setSnapshots(RepositoryPolicy)
+ * @generated
+ */
+ void unsetSnapshots();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Repository#getSnapshots
- * <em>Snapshots</em>}' containment reference is set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Snapshots</em>' containment
- * reference is set.
- * @see #unsetSnapshots()
- * @see #getSnapshots()
- * @see #setSnapshots(RepositoryPolicy)
- * @generated
- */
- boolean isSetSnapshots();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Repository#getSnapshots
+ * <em>Snapshots</em>}' containment reference is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Snapshots</em>' containment reference is set.
+ * @see #unsetSnapshots()
+ * @see #getSnapshots()
+ * @see #setSnapshots(RepositoryPolicy)
+ * @generated
+ */
+ boolean isSetSnapshots();
- /**
- * Returns the value of the '<em><b>Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * A unique identifier for a repository. This is used to match the
- * repository to configuration in the &lt;code&gt;settings.xml&lt;/code&gt;
- * file, for example.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Id</em>' attribute.
- * @see #setId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Id()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='id' namespace='##targetNamespace'"
- * @generated
- */
- String getId();
+ /**
+ * Returns the value of the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 A unique identifier for a repository. This is used to match the repository to
+ * configuration in the &lt;code&gt;settings.xml&lt;/code&gt; file, for example. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Id</em>' attribute.
+ * @see #setId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Id()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='id' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getId();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Repository#getId <em>Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Id</em>' attribute.
- * @see #getId()
- * @generated
- */
- void setId(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Repository#getId <em>Id</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Id</em>' attribute.
+ * @see #getId()
+ * @generated
+ */
+ void setId(String value);
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * Human readable name of the repository.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Name()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='name' namespace='##targetNamespace'"
- * @generated
- */
- String getName();
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Human readable name of the repository. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Name()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='name' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getName();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Repository#getName <em>Name</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Repository#getName <em>Name</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
- /**
- * Returns the value of the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The url of the repository, in the form
- * &lt;code&gt;protocol://hostname/path&lt;/code&gt;.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Url</em>' attribute.
- * @see #setUrl(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Url()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='url' namespace='##targetNamespace'"
- * @generated
- */
- String getUrl();
+ /**
+ * Returns the value of the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The url of the repository, in the form &lt;code&gt;protocol://hostname/path&lt;/code&gt;.
+ * <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Url</em>' attribute.
+ * @see #setUrl(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Url()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='url' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getUrl();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Repository#getUrl <em>Url</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Url</em>' attribute.
- * @see #getUrl()
- * @generated
- */
- void setUrl(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Repository#getUrl <em>Url</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Url</em>' attribute.
+ * @see #getUrl()
+ * @generated
+ */
+ void setUrl(String value);
- /**
- * Returns the value of the '<em><b>Layout</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The type of layout this repository uses for locating and storing
- * artifacts - can be &lt;code&gt;legacy&lt;/code&gt; or
- * &lt;code&gt;default&lt;/code&gt;.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Layout</em>' attribute.
- * @see #isSetLayout()
- * @see #unsetLayout()
- * @see #setLayout(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Layout()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
- * extendedMetaData
- * ="kind='element' name='layout' namespace='##targetNamespace'"
- * @generated
- */
- String getLayout();
+ /**
+ * Returns the value of the '<em><b>Layout</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The type of layout this repository uses for locating and storing artifacts - can be
+ * &lt;code&gt;legacy&lt;/code&gt; or &lt;code&gt;default&lt;/code&gt;. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Layout</em>' attribute.
+ * @see #isSetLayout()
+ * @see #unsetLayout()
+ * @see #setLayout(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepository_Layout()
+ * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData
+ * ="kind='element' name='layout' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getLayout();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Repository#getLayout <em>Layout</em>}
- * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Layout</em>' attribute.
- * @see #isSetLayout()
- * @see #unsetLayout()
- * @see #getLayout()
- * @generated
- */
- void setLayout(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Repository#getLayout <em>Layout</em>} ' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Layout</em>' attribute.
+ * @see #isSetLayout()
+ * @see #unsetLayout()
+ * @see #getLayout()
+ * @generated
+ */
+ void setLayout(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Repository#getLayout <em>Layout</em>}
- * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetLayout()
- * @see #getLayout()
- * @see #setLayout(String)
- * @generated
- */
- void unsetLayout();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Repository#getLayout <em>Layout</em>} ' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetLayout()
+ * @see #getLayout()
+ * @see #setLayout(String)
+ * @generated
+ */
+ void unsetLayout();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Repository#getLayout <em>Layout</em>}
- * ' attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Layout</em>' attribute is set.
- * @see #unsetLayout()
- * @see #getLayout()
- * @see #setLayout(String)
- * @generated
- */
- boolean isSetLayout();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Repository#getLayout <em>Layout</em>} '
+ * attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Layout</em>' attribute is set.
+ * @see #unsetLayout()
+ * @see #getLayout()
+ * @see #setLayout(String)
+ * @generated
+ */
+ boolean isSetLayout();
} // Repository
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/RepositoryPolicy.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/RepositoryPolicy.java
index 69bd03e1..cb4ce04b 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/RepositoryPolicy.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/RepositoryPolicy.java
@@ -13,21 +13,16 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Repository Policy</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0 Download policy <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Repository Policy</b></em>'. <!-- end-user-doc
+ * --> <!-- begin-model-doc --> 4.0.0 Download policy <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getEnabled <em>
- * Enabled</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getUpdatePolicy <em>
- * Update Policy</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getChecksumPolicy
- * <em>Checksum Policy</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getEnabled <em> Enabled</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getUpdatePolicy <em> Update Policy</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getChecksumPolicy <em>Checksum Policy</em>}</li>
* </ul>
* </p>
*
@@ -36,130 +31,105 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface RepositoryPolicy extends EObject {
- /**
- * Returns the value of the '<em><b>Enabled</b></em>' attribute. The default
- * value is <code>"true"</code>. <!-- begin-user-doc --> <!-- end-user-doc
- * --> <!-- begin-model-doc --> 4.0.0 Whether to use this repository for
- * downloading this type of artifact. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Enabled</em>' attribute.
- * @see #isSetEnabled()
- * @see #unsetEnabled()
- * @see #setEnabled(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepositoryPolicy_Enabled()
- * @model default="true" unsettable="true"
- * dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='enabled' namespace='##targetNamespace'"
- * @generated
- */
- String getEnabled();
+ /**
+ * Returns the value of the '<em><b>Enabled</b></em>' attribute. The default value is <code>"true"</code>. <!--
+ * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0 Whether to use this repository for
+ * downloading this type of artifact. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Enabled</em>' attribute.
+ * @see #isSetEnabled()
+ * @see #unsetEnabled()
+ * @see #setEnabled(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepositoryPolicy_Enabled()
+ * @model default="true" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='enabled' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getEnabled();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getEnabled
- * <em>Enabled</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Enabled</em>' attribute.
- * @see #isSetEnabled()
- * @see #unsetEnabled()
- * @see #getEnabled()
- * @generated
- */
- void setEnabled(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getEnabled <em>Enabled</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Enabled</em>' attribute.
+ * @see #isSetEnabled()
+ * @see #unsetEnabled()
+ * @see #getEnabled()
+ * @generated
+ */
+ void setEnabled(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getEnabled
- * <em>Enabled</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #isSetEnabled()
- * @see #getEnabled()
- * @see #setEnabled(String)
- * @generated
- */
- void unsetEnabled();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getEnabled <em>Enabled</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetEnabled()
+ * @see #getEnabled()
+ * @see #setEnabled(String)
+ * @generated
+ */
+ void unsetEnabled();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getEnabled
- * <em>Enabled</em>}' attribute is set. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return whether the value of the '<em>Enabled</em>' attribute is set.
- * @see #unsetEnabled()
- * @see #getEnabled()
- * @see #setEnabled(String)
- * @generated
- */
- boolean isSetEnabled();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getEnabled
+ * <em>Enabled</em>}' attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Enabled</em>' attribute is set.
+ * @see #unsetEnabled()
+ * @see #getEnabled()
+ * @see #setEnabled(String)
+ * @generated
+ */
+ boolean isSetEnabled();
- /**
- * Returns the value of the '<em><b>Update Policy</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The frequency for downloading updates - can be
- * &lt;code&gt;always,&lt;/code&gt; &lt;code&gt;daily&lt;/code&gt;
- * (default), &lt;code&gt;interval:XXX&lt;/code&gt; (in minutes) or
- * &lt;code&gt;never&lt;/code&gt; (only if it doesn't exist locally).
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Update Policy</em>' attribute.
- * @see #setUpdatePolicy(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepositoryPolicy_UpdatePolicy()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='updatePolicy' namespace='##targetNamespace'"
- * @generated
- */
- String getUpdatePolicy();
+ /**
+ * Returns the value of the '<em><b>Update Policy</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 The frequency for downloading updates - can be &lt;code&gt;always,&lt;/code&gt;
+ * &lt;code&gt;daily&lt;/code&gt; (default), &lt;code&gt;interval:XXX&lt;/code&gt; (in minutes) or
+ * &lt;code&gt;never&lt;/code&gt; (only if it doesn't exist locally). <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Update Policy</em>' attribute.
+ * @see #setUpdatePolicy(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepositoryPolicy_UpdatePolicy()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='updatePolicy' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getUpdatePolicy();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getUpdatePolicy
- * <em>Update Policy</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Update Policy</em>' attribute.
- * @see #getUpdatePolicy()
- * @generated
- */
- void setUpdatePolicy(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getUpdatePolicy
+ * <em>Update Policy</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Update Policy</em>' attribute.
+ * @see #getUpdatePolicy()
+ * @generated
+ */
+ void setUpdatePolicy(String value);
- /**
- * Returns the value of the '<em><b>Checksum Policy</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc -->
- * 4.0.0
- *
- * What to do when verification of an artifact checksum fails. Valid values
- * are &lt;code&gt;ignore&lt;/code&gt; , &lt;code&gt;fail&lt;/code&gt; or
- * &lt;code&gt;warn&lt;/code&gt; (the default).
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Checksum Policy</em>' attribute.
- * @see #setChecksumPolicy(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepositoryPolicy_ChecksumPolicy()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='checksumPolicy' namespace='##targetNamespace'"
- * @generated
- */
- String getChecksumPolicy();
+ /**
+ * Returns the value of the '<em><b>Checksum Policy</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 4.0.0 What to do when verification of an artifact checksum fails. Valid values are
+ * &lt;code&gt;ignore&lt;/code&gt; , &lt;code&gt;fail&lt;/code&gt; or &lt;code&gt;warn&lt;/code&gt; (the default).
+ * <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Checksum Policy</em>' attribute.
+ * @see #setChecksumPolicy(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getRepositoryPolicy_ChecksumPolicy()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='checksumPolicy' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getChecksumPolicy();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getChecksumPolicy
- * <em>Checksum Policy</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Checksum Policy</em>' attribute.
- * @see #getChecksumPolicy()
- * @generated
- */
- void setChecksumPolicy(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy#getChecksumPolicy
+ * <em>Checksum Policy</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Checksum Policy</em>' attribute.
+ * @see #getChecksumPolicy()
+ * @generated
+ */
+ void setChecksumPolicy(String value);
} // RepositoryPolicy
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Resource.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Resource.java
index d52ea7dc..b1547549 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Resource.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Resource.java
@@ -12,33 +12,21 @@
package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Resource</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 3.0.0+
- *
- * This element describes all of the classpath resources associated with a
- * project or unit tests.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Resource</b></em>'. <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ This element describes all of the classpath resources associated with a project or unit
+ * tests. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Resource#getTargetPath <em>Target
- * Path</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Resource#getFiltering <em>Filtering
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Resource#getDirectory <em>Directory
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Resource#getIncludes <em>Includes
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Resource#getExcludes <em>Excludes
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Resource#getTargetPath <em>Target Path</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Resource#getFiltering <em>Filtering </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Resource#getDirectory <em>Directory </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Resource#getIncludes <em>Includes </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Resource#getExcludes <em>Excludes </em>}</li>
* </ul>
* </p>
*
@@ -47,171 +35,138 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Resource extends EObject {
- /**
- * Returns the value of the '<em><b>Target Path</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * Describe the resource target path. For example, if you want that resource
- * to appear in a specific package
- * (&lt;code&gt;org.apache.maven.messages&lt;/code&gt;), you must specify
- * this element with this value:
- * &lt;code&gt;org/apache/maven/messages&lt;/code&gt;. This is not required
- * if you simply put the resources in that directory structure at the
- * source, however.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Target Path</em>' attribute.
- * @see #setTargetPath(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getResource_TargetPath()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='targetPath' namespace='##targetNamespace'"
- * @generated
- */
- String getTargetPath();
+ /**
+ * Returns the value of the '<em><b>Target Path</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> 3.0.0+ Describe the resource target path. For example, if you want that resource to appear
+ * in a specific package (&lt;code&gt;org.apache.maven.messages&lt;/code&gt;), you must specify this element with this
+ * value: &lt;code&gt;org/apache/maven/messages&lt;/code&gt;. This is not required if you simply put the resources in
+ * that directory structure at the source, however. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Target Path</em>' attribute.
+ * @see #setTargetPath(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getResource_TargetPath()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='targetPath' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getTargetPath();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Resource#getTargetPath
- * <em>Target Path</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Target Path</em>' attribute.
- * @see #getTargetPath()
- * @generated
- */
- void setTargetPath(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Resource#getTargetPath <em>Target Path</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Target Path</em>' attribute.
+ * @see #getTargetPath()
+ * @generated
+ */
+ void setTargetPath(String value);
- /**
- * Returns the value of the '<em><b>Filtering</b></em>' attribute. The
- * default value is <code>"false"</code>. <!-- begin-user-doc --> <!--
- * end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * Whether resources are filtered to replace tokens with parameterised
- * values or not. The values are taken from the
- * &lt;code&gt;properties&lt;/code&gt; element and from the properties in
- * the files listed in the &lt;code&gt;filters&lt;/code&gt; element.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Filtering</em>' attribute.
- * @see #isSetFiltering()
- * @see #unsetFiltering()
- * @see #setFiltering(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getResource_Filtering()
- * @model default="false" unsettable="true"
- * dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='filtering' namespace='##targetNamespace'"
- * @generated
- */
- String getFiltering();
+ /**
+ * Returns the value of the '<em><b>Filtering</b></em>' attribute. The default value is <code>"false"</code>. <!--
+ * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+ Whether resources are filtered to replace
+ * tokens with parameterised values or not. The values are taken from the &lt;code&gt;properties&lt;/code&gt; element
+ * and from the properties in the files listed in the &lt;code&gt;filters&lt;/code&gt; element. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Filtering</em>' attribute.
+ * @see #isSetFiltering()
+ * @see #unsetFiltering()
+ * @see #setFiltering(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getResource_Filtering()
+ * @model default="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='filtering' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getFiltering();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Resource#getFiltering
- * <em>Filtering</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Filtering</em>' attribute.
- * @see #isSetFiltering()
- * @see #unsetFiltering()
- * @see #getFiltering()
- * @generated
- */
- void setFiltering(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Resource#getFiltering <em>Filtering</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Filtering</em>' attribute.
+ * @see #isSetFiltering()
+ * @see #unsetFiltering()
+ * @see #getFiltering()
+ * @generated
+ */
+ void setFiltering(String value);
- /**
- * Unsets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Resource#getFiltering
- * <em>Filtering</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #isSetFiltering()
- * @see #getFiltering()
- * @see #setFiltering(String)
- * @generated
- */
- void unsetFiltering();
+ /**
+ * Unsets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Resource#getFiltering <em>Filtering</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetFiltering()
+ * @see #getFiltering()
+ * @see #setFiltering(String)
+ * @generated
+ */
+ void unsetFiltering();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Resource#getFiltering
- * <em>Filtering</em>}' attribute is set. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return whether the value of the '<em>Filtering</em>' attribute is set.
- * @see #unsetFiltering()
- * @see #getFiltering()
- * @see #setFiltering(String)
- * @generated
- */
- boolean isSetFiltering();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Resource#getFiltering <em>Filtering</em>}'
+ * attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Filtering</em>' attribute is set.
+ * @see #unsetFiltering()
+ * @see #getFiltering()
+ * @see #setFiltering(String)
+ * @generated
+ */
+ boolean isSetFiltering();
- /**
- * Returns the value of the '<em><b>Directory</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 3.0.0+
- *
- * Describe the directory where the resources are stored. The path is
- * relative to the POM.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Directory</em>' attribute.
- * @see #setDirectory(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getResource_Directory()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='directory' namespace='##targetNamespace'"
- * @generated
- */
- String getDirectory();
+ /**
+ * Returns the value of the '<em><b>Directory</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 3.0.0+ Describe the directory where the resources are stored. The path is relative to the POM.
+ * <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Directory</em>' attribute.
+ * @see #setDirectory(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getResource_Directory()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='directory' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getDirectory();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Resource#getDirectory
- * <em>Directory</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @param value
- * the new value of the '<em>Directory</em>' attribute.
- * @see #getDirectory()
- * @generated
- */
- void setDirectory(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Resource#getDirectory <em>Directory</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Directory</em>' attribute.
+ * @see #getDirectory()
+ * @generated
+ */
+ void setDirectory(String value);
- /**
- * Returns the value of the '<em><b>Includes</b></em>' attribute list. The
- * list contents are of type {@link java.lang.String}. <!-- begin-user-doc
- * -->
- * <p>
- * If the meaning of the '<em>Includes</em>' attribute list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Includes</em>' attribute list.
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getResource_Includes()
- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
- * @generated
- */
- EList<String> getIncludes();
+ /**
+ * Returns the value of the '<em><b>Includes</b></em>' attribute list. The list contents are of type
+ * {@link java.lang.String}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Includes</em>' attribute list isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Includes</em>' attribute list.
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getResource_Includes()
+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
+ * @generated
+ */
+ EList<String> getIncludes();
- /**
- * Returns the value of the '<em><b>Excludes</b></em>' attribute list. The
- * list contents are of type {@link java.lang.String}. <!-- begin-user-doc
- * -->
- * <p>
- * If the meaning of the '<em>Excludes</em>' attribute list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Excludes</em>' attribute list.
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getResource_Excludes()
- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
- * @generated
- */
- EList<String> getExcludes();
+ /**
+ * Returns the value of the '<em><b>Excludes</b></em>' attribute list. The list contents are of type
+ * {@link java.lang.String}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Excludes</em>' attribute list isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Excludes</em>' attribute list.
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getResource_Excludes()
+ * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
+ * @generated
+ */
+ EList<String> getExcludes();
} // Resource
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Scm.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Scm.java
index eaac755a..35f9549d 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Scm.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Scm.java
@@ -13,19 +13,15 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Scm</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0 <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Scm</b></em>'. <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Scm#getConnection <em>Connection
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.Scm#getDeveloperConnection <em>
- * Developer Connection</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Scm#getConnection <em>Connection </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.Scm#getDeveloperConnection <em> Developer Connection</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Scm#getTag <em>Tag</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.Scm#getUrl <em>Url</em>}</li>
* </ul>
@@ -36,156 +32,130 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Scm extends EObject {
- /**
- * Returns the value of the '<em><b>Connection</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The source control management system URL that describes the repository
- * and how to connect to the repository. For more information, see the &lt;a
- * href="http://maven.apache.org/scm/scm-url-format.html"&gt;URL
- * format&lt;/a&gt; and &lt;a
- * href="http://maven.apache.org/scm/scms-overview.html"&gt;list of
- * supported SCMs&lt;/a&gt;. This connection is read-only.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Connection</em>' attribute.
- * @see #setConnection(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getScm_Connection()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='connection' namespace='##targetNamespace'"
- * @generated
- */
- String getConnection();
+ /**
+ * Returns the value of the '<em><b>Connection</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The source control management system URL that describes the repository and how to connect
+ * to the repository. For more information, see the &lt;a
+ * href="http://maven.apache.org/scm/scm-url-format.html"&gt;URL format&lt;/a&gt; and &lt;a
+ * href="http://maven.apache.org/scm/scms-overview.html"&gt;list of supported SCMs&lt;/a&gt;. This connection is
+ * read-only. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Connection</em>' attribute.
+ * @see #setConnection(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getScm_Connection()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='connection' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getConnection();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Scm#getConnection
- * <em>Connection</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Connection</em>' attribute.
- * @see #getConnection()
- * @generated
- */
- void setConnection(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Scm#getConnection <em>Connection</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Connection</em>' attribute.
+ * @see #getConnection()
+ * @generated
+ */
+ void setConnection(String value);
- /**
- * Returns the value of the '<em><b>Developer Connection</b></em>'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
- * begin-model-doc --> 4.0.0
- *
- * Just like &lt;code&gt;connection&lt;/code&gt;, but for developers, i.e.
- * this scm connection will not be read only.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Developer Connection</em>' attribute.
- * @see #setDeveloperConnection(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getScm_DeveloperConnection()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='developerConnection' namespace='##targetNamespace'"
- * @generated
- */
- String getDeveloperConnection();
+ /**
+ * Returns the value of the '<em><b>Developer Connection</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc --> <!-- begin-model-doc --> 4.0.0 Just like &lt;code&gt;connection&lt;/code&gt;, but for developers,
+ * i.e. this scm connection will not be read only. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Developer Connection</em>' attribute.
+ * @see #setDeveloperConnection(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getScm_DeveloperConnection()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='developerConnection' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getDeveloperConnection();
- /**
- * Sets the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Scm#getDeveloperConnection
- * <em>Developer Connection</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Developer Connection</em>'
- * attribute.
- * @see #getDeveloperConnection()
- * @generated
- */
- void setDeveloperConnection(String value);
+ /**
+ * Sets the value of the ' {@link org.eclipse.m2e.model.edit.pom.Scm#getDeveloperConnection
+ * <em>Developer Connection</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Developer Connection</em>' attribute.
+ * @see #getDeveloperConnection()
+ * @generated
+ */
+ void setDeveloperConnection(String value);
- /**
- * Returns the value of the '<em><b>Tag</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The tag of current code. By default, it's set to HEAD during development.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Tag</em>' attribute.
- * @see #isSetTag()
- * @see #unsetTag()
- * @see #setTag(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getScm_Tag()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
- * extendedMetaData
- * ="kind='element' name='tag' namespace='##targetNamespace'"
- * @generated
- */
- String getTag();
+ /**
+ * Returns the value of the '<em><b>Tag</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The tag of current code. By default, it's set to HEAD during development. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Tag</em>' attribute.
+ * @see #isSetTag()
+ * @see #unsetTag()
+ * @see #setTag(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getScm_Tag()
+ * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData
+ * ="kind='element' name='tag' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getTag();
- /**
- * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Scm#getTag
- * <em>Tag</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Tag</em>' attribute.
- * @see #isSetTag()
- * @see #unsetTag()
- * @see #getTag()
- * @generated
- */
- void setTag(String value);
+ /**
+ * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Scm#getTag <em>Tag</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Tag</em>' attribute.
+ * @see #isSetTag()
+ * @see #unsetTag()
+ * @see #getTag()
+ * @generated
+ */
+ void setTag(String value);
- /**
- * Unsets the value of the '{@link org.eclipse.m2e.model.edit.pom.Scm#getTag
- * <em>Tag</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isSetTag()
- * @see #getTag()
- * @see #setTag(String)
- * @generated
- */
- void unsetTag();
+ /**
+ * Unsets the value of the '{@link org.eclipse.m2e.model.edit.pom.Scm#getTag <em>Tag</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetTag()
+ * @see #getTag()
+ * @see #setTag(String)
+ * @generated
+ */
+ void unsetTag();
- /**
- * Returns whether the value of the '
- * {@link org.eclipse.m2e.model.edit.pom.Scm#getTag <em>Tag</em>}' attribute
- * is set. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return whether the value of the '<em>Tag</em>' attribute is set.
- * @see #unsetTag()
- * @see #getTag()
- * @see #setTag(String)
- * @generated
- */
- boolean isSetTag();
+ /**
+ * Returns whether the value of the ' {@link org.eclipse.m2e.model.edit.pom.Scm#getTag <em>Tag</em>}' attribute is
+ * set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Tag</em>' attribute is set.
+ * @see #unsetTag()
+ * @see #getTag()
+ * @see #setTag(String)
+ * @generated
+ */
+ boolean isSetTag();
- /**
- * Returns the value of the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The URL to the project's browsable SCM repository, such as ViewVC or
- * Fisheye. <!-- end-model-doc -->
- *
- * @return the value of the '<em>Url</em>' attribute.
- * @see #setUrl(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getScm_Url()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='url' namespace='##targetNamespace'"
- * @generated
- */
- String getUrl();
+ /**
+ * Returns the value of the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The URL to the project's browsable SCM repository, such as ViewVC or Fisheye. <!--
+ * end-model-doc -->
+ *
+ * @return the value of the '<em>Url</em>' attribute.
+ * @see #setUrl(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getScm_Url()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='url' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getUrl();
- /**
- * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Scm#getUrl
- * <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Url</em>' attribute.
- * @see #getUrl()
- * @generated
- */
- void setUrl(String value);
+ /**
+ * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Scm#getUrl <em>Url</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Url</em>' attribute.
+ * @see #getUrl()
+ * @generated
+ */
+ void setUrl(String value);
} // Scm
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Site.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Site.java
index 8520dff4..a611c3f9 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Site.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/Site.java
@@ -13,16 +13,10 @@ package org.eclipse.m2e.model.edit.pom;
import org.eclipse.emf.ecore.EObject;
+
/**
- * <!-- begin-user-doc --> A representation of the model object '
- * <em><b>Site</b></em>'. <!-- end-user-doc -->
- *
- * <!-- begin-model-doc --> 4.0.0
- *
- * Contains the information needed for deploying websites.
- *
- * <!-- end-model-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object ' <em><b>Site</b></em>'. <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Contains the information needed for deploying websites. <!-- end-model-doc -->
* <p>
* The following features are supported:
* <ul>
@@ -37,91 +31,75 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Site extends EObject {
- /**
- * Returns the value of the '<em><b>Id</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * A unique identifier for a deployment locataion. This is used to match the
- * site to configuration in the &lt;code&gt;settings.xml&lt;/code&gt; file,
- * for example.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Id</em>' attribute.
- * @see #setId(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getSite_Id()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='id' namespace='##targetNamespace'"
- * @generated
- */
- String getId();
+ /**
+ * Returns the value of the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 A unique identifier for a deployment locataion. This is used to match the site to
+ * configuration in the &lt;code&gt;settings.xml&lt;/code&gt; file, for example. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Id</em>' attribute.
+ * @see #setId(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getSite_Id()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='id' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getId();
- /**
- * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Site#getId
- * <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Id</em>' attribute.
- * @see #getId()
- * @generated
- */
- void setId(String value);
+ /**
+ * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Site#getId <em>Id</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Id</em>' attribute.
+ * @see #getId()
+ * @generated
+ */
+ void setId(String value);
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * Human readable name of the deployment location.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getSite_Name()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='name' namespace='##targetNamespace'"
- * @generated
- */
- String getName();
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 Human readable name of the deployment location. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getSite_Name()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='name' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getName();
- /**
- * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Site#getName
- * <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
+ /**
+ * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Site#getName <em>Name</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
- /**
- * Returns the value of the '<em><b>Url</b></em>' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> 4.0.0
- *
- * The url of the location where website is deployed, in the form
- * &lt;code&gt;protocol://hostname/path&lt;/code&gt;.
- *
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Url</em>' attribute.
- * @see #setUrl(String)
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#getSite_Url()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
- * "kind='element' name='url' namespace='##targetNamespace'"
- * @generated
- */
- String getUrl();
+ /**
+ * Returns the value of the '<em><b>Url</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> 4.0.0 The url of the location where website is deployed, in the form
+ * &lt;code&gt;protocol://hostname/path&lt;/code&gt;. <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Url</em>' attribute.
+ * @see #setUrl(String)
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#getSite_Url()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String" extendedMetaData=
+ * "kind='element' name='url' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getUrl();
- /**
- * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Site#getUrl
- * <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Url</em>' attribute.
- * @see #getUrl()
- * @generated
- */
- void setUrl(String value);
+ /**
+ * Sets the value of the '{@link org.eclipse.m2e.model.edit.pom.Site#getUrl <em>Url</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value the new value of the '<em>Url</em>' attribute.
+ * @see #getUrl()
+ * @generated
+ */
+ void setUrl(String value);
} // Site
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationFileImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationFileImpl.java
index 9af20d7f..343cc7ed 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationFileImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationFileImpl.java
@@ -12,221 +12,214 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.ActivationFile;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Activation File</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Activation File</b></em>'. <!-- end-user-doc
+ * -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationFileImpl#getMissing
- * <em>Missing</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationFileImpl#getExists
- * <em>Exists</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationFileImpl#getMissing <em>Missing</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationFileImpl#getExists <em>Exists</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ActivationFileImpl extends EObjectImpl implements ActivationFile {
- /**
- * The default value of the '{@link #getMissing() <em>Missing</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getMissing()
- * @generated
- * @ordered
- */
- protected static final String MISSING_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getMissing() <em>Missing</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getMissing()
- * @generated
- * @ordered
- */
- protected String missing = MISSING_EDEFAULT;
-
- /**
- * The default value of the '{@link #getExists() <em>Exists</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getExists()
- * @generated
- * @ordered
- */
- protected static final String EXISTS_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getExists() <em>Exists</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getExists()
- * @generated
- * @ordered
- */
- protected String exists = EXISTS_EDEFAULT;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ActivationFileImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.ACTIVATION_FILE;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getMissing() {
- return missing;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setMissing(String newMissing) {
- String oldMissing = missing;
- missing = newMissing;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ACTIVATION_FILE__MISSING, oldMissing, missing));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getExists() {
- return exists;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setExists(String newExists) {
- String oldExists = exists;
- exists = newExists;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ACTIVATION_FILE__EXISTS, oldExists, exists));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.ACTIVATION_FILE__MISSING:
- return getMissing();
- case PomPackage.ACTIVATION_FILE__EXISTS:
- return getExists();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.ACTIVATION_FILE__MISSING:
- setMissing((String) newValue);
- return;
- case PomPackage.ACTIVATION_FILE__EXISTS:
- setExists((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.ACTIVATION_FILE__MISSING:
- setMissing(MISSING_EDEFAULT);
- return;
- case PomPackage.ACTIVATION_FILE__EXISTS:
- setExists(EXISTS_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.ACTIVATION_FILE__MISSING:
- return MISSING_EDEFAULT == null ? missing != null
- : !MISSING_EDEFAULT.equals(missing);
- case PomPackage.ACTIVATION_FILE__EXISTS:
- return EXISTS_EDEFAULT == null ? exists != null : !EXISTS_EDEFAULT
- .equals(exists);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (missing: "); //$NON-NLS-1$
- result.append(missing);
- result.append(", exists: "); //$NON-NLS-1$
- result.append(exists);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getMissing() <em>Missing</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getMissing()
+ * @generated
+ * @ordered
+ */
+ protected static final String MISSING_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getMissing() <em>Missing</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getMissing()
+ * @generated
+ * @ordered
+ */
+ protected String missing = MISSING_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getExists() <em>Exists</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getExists()
+ * @generated
+ * @ordered
+ */
+ protected static final String EXISTS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getExists() <em>Exists</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getExists()
+ * @generated
+ * @ordered
+ */
+ protected String exists = EXISTS_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ActivationFileImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.ACTIVATION_FILE;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getMissing() {
+ return missing;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setMissing(String newMissing) {
+ String oldMissing = missing;
+ missing = newMissing;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION_FILE__MISSING, oldMissing, missing));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getExists() {
+ return exists;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setExists(String newExists) {
+ String oldExists = exists;
+ exists = newExists;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION_FILE__EXISTS, oldExists, exists));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION_FILE__MISSING:
+ return getMissing();
+ case PomPackage.ACTIVATION_FILE__EXISTS:
+ return getExists();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION_FILE__MISSING:
+ setMissing((String) newValue);
+ return;
+ case PomPackage.ACTIVATION_FILE__EXISTS:
+ setExists((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION_FILE__MISSING:
+ setMissing(MISSING_EDEFAULT);
+ return;
+ case PomPackage.ACTIVATION_FILE__EXISTS:
+ setExists(EXISTS_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION_FILE__MISSING:
+ return MISSING_EDEFAULT == null ? missing != null : !MISSING_EDEFAULT.equals(missing);
+ case PomPackage.ACTIVATION_FILE__EXISTS:
+ return EXISTS_EDEFAULT == null ? exists != null : !EXISTS_EDEFAULT.equals(exists);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (missing: "); //$NON-NLS-1$
+ result.append(missing);
+ result.append(", exists: "); //$NON-NLS-1$
+ result.append(exists);
+ result.append(')');
+ return result.toString();
+ }
} // ActivationFileImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationImpl.java
index f4f2cc03..ce4206e0 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationImpl.java
@@ -13,12 +13,11 @@ package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.Activation;
import org.eclipse.m2e.model.edit.pom.ActivationFile;
import org.eclipse.m2e.model.edit.pom.ActivationOS;
@@ -27,712 +26,667 @@ import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Activation</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Activation</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.ActivationImpl#getActiveByDefault
- * <em>Active By Default</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationImpl#getJdk <em>Jdk
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationImpl#getOs <em>Os
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationImpl#getProperty <em>
- * Property</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationImpl#getFile <em>File
- * </em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.ActivationImpl#getActiveByDefault <em>Active By Default</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationImpl#getJdk <em>Jdk </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationImpl#getOs <em>Os </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationImpl#getProperty <em> Property</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationImpl#getFile <em>File </em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ActivationImpl extends EObjectImpl implements Activation {
- /**
- * The default value of the '{@link #getActiveByDefault()
- * <em>Active By Default</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getActiveByDefault()
- * @generated
- * @ordered
- */
- protected static final String ACTIVE_BY_DEFAULT_EDEFAULT = "false"; //$NON-NLS-1$
-
- /**
- * The cached value of the '{@link #getActiveByDefault()
- * <em>Active By Default</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getActiveByDefault()
- * @generated
- * @ordered
- */
- protected String activeByDefault = ACTIVE_BY_DEFAULT_EDEFAULT;
-
- /**
- * This is true if the Active By Default attribute has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean activeByDefaultESet;
-
- /**
- * The default value of the '{@link #getJdk() <em>Jdk</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getJdk()
- * @generated
- * @ordered
- */
- protected static final String JDK_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getJdk() <em>Jdk</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getJdk()
- * @generated
- * @ordered
- */
- protected String jdk = JDK_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getOs() <em>Os</em>}' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getOs()
- * @generated
- * @ordered
- */
- protected ActivationOS os;
-
- /**
- * This is true if the Os containment reference has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean osESet;
-
- /**
- * The cached value of the '{@link #getProperty() <em>Property</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getProperty()
- * @generated
- * @ordered
- */
- protected ActivationProperty property;
-
- /**
- * This is true if the Property containment reference has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean propertyESet;
-
- /**
- * The cached value of the '{@link #getFile() <em>File</em>}' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getFile()
- * @generated
- * @ordered
- */
- protected ActivationFile file;
-
- /**
- * This is true if the File containment reference has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean fileESet;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ActivationImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.ACTIVATION;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getActiveByDefault() {
- return activeByDefault;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setActiveByDefault(String newActiveByDefault) {
- String oldActiveByDefault = activeByDefault;
- activeByDefault = newActiveByDefault;
- boolean oldActiveByDefaultESet = activeByDefaultESet;
- activeByDefaultESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ACTIVATION__ACTIVE_BY_DEFAULT,
- oldActiveByDefault, activeByDefault,
- !oldActiveByDefaultESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetActiveByDefault() {
- String oldActiveByDefault = activeByDefault;
- boolean oldActiveByDefaultESet = activeByDefaultESet;
- activeByDefault = ACTIVE_BY_DEFAULT_EDEFAULT;
- activeByDefaultESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.ACTIVATION__ACTIVE_BY_DEFAULT,
- oldActiveByDefault, ACTIVE_BY_DEFAULT_EDEFAULT,
- oldActiveByDefaultESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetActiveByDefault() {
- return activeByDefaultESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getJdk() {
- return jdk;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setJdk(String newJdk) {
- String oldJdk = jdk;
- jdk = newJdk;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ACTIVATION__JDK, oldJdk, jdk));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivationOS getOs() {
- return os;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetOs(ActivationOS newOs,
- NotificationChain msgs) {
- ActivationOS oldOs = os;
- os = newOs;
- boolean oldOsESet = osESet;
- osESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.ACTIVATION__OS, oldOs, newOs,
- !oldOsESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setOs(ActivationOS newOs) {
- if (newOs != os) {
- NotificationChain msgs = null;
- if (os != null)
- msgs = ((InternalEObject) os).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.ACTIVATION__OS,
- null, msgs);
- if (newOs != null)
- msgs = ((InternalEObject) newOs).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.ACTIVATION__OS,
- null, msgs);
- msgs = basicSetOs(newOs, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldOsESet = osESet;
- osESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ACTIVATION__OS, newOs, newOs, !oldOsESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetOs(NotificationChain msgs) {
- ActivationOS oldOs = os;
- os = null;
- boolean oldOsESet = osESet;
- osESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET, PomPackage.ACTIVATION__OS, oldOs, null,
- oldOsESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetOs() {
- if (os != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) os).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.ACTIVATION__OS, null,
- msgs);
- msgs = basicUnsetOs(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldOsESet = osESet;
- osESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.ACTIVATION__OS, null, null, oldOsESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetOs() {
- return osESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivationProperty getProperty() {
- return property;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetProperty(ActivationProperty newProperty,
- NotificationChain msgs) {
- ActivationProperty oldProperty = property;
- property = newProperty;
- boolean oldPropertyESet = propertyESet;
- propertyESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.ACTIVATION__PROPERTY,
- oldProperty, newProperty, !oldPropertyESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setProperty(ActivationProperty newProperty) {
- if (newProperty != property) {
- NotificationChain msgs = null;
- if (property != null)
- msgs = ((InternalEObject) property).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.ACTIVATION__PROPERTY, null, msgs);
- if (newProperty != null)
- msgs = ((InternalEObject) newProperty).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.ACTIVATION__PROPERTY, null, msgs);
- msgs = basicSetProperty(newProperty, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldPropertyESet = propertyESet;
- propertyESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ACTIVATION__PROPERTY, newProperty,
- newProperty, !oldPropertyESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetProperty(NotificationChain msgs) {
- ActivationProperty oldProperty = property;
- property = null;
- boolean oldPropertyESet = propertyESet;
- propertyESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET, PomPackage.ACTIVATION__PROPERTY,
- oldProperty, null, oldPropertyESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetProperty() {
- if (property != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) property).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.ACTIVATION__PROPERTY,
- null, msgs);
- msgs = basicUnsetProperty(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldPropertyESet = propertyESet;
- propertyESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.ACTIVATION__PROPERTY, null, null,
- oldPropertyESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetProperty() {
- return propertyESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivationFile getFile() {
- return file;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetFile(ActivationFile newFile,
- NotificationChain msgs) {
- ActivationFile oldFile = file;
- file = newFile;
- boolean oldFileESet = fileESet;
- fileESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.ACTIVATION__FILE, oldFile,
- newFile, !oldFileESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setFile(ActivationFile newFile) {
- if (newFile != file) {
- NotificationChain msgs = null;
- if (file != null)
- msgs = ((InternalEObject) file).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.ACTIVATION__FILE,
- null, msgs);
- if (newFile != null)
- msgs = ((InternalEObject) newFile).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.ACTIVATION__FILE,
- null, msgs);
- msgs = basicSetFile(newFile, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldFileESet = fileESet;
- fileESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ACTIVATION__FILE, newFile, newFile,
- !oldFileESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetFile(NotificationChain msgs) {
- ActivationFile oldFile = file;
- file = null;
- boolean oldFileESet = fileESet;
- fileESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET, PomPackage.ACTIVATION__FILE, oldFile,
- null, oldFileESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetFile() {
- if (file != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) file).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.ACTIVATION__FILE, null,
- msgs);
- msgs = basicUnsetFile(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldFileESet = fileESet;
- fileESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.ACTIVATION__FILE, null, null, oldFileESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetFile() {
- return fileESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.ACTIVATION__OS:
- return basicUnsetOs(msgs);
- case PomPackage.ACTIVATION__PROPERTY:
- return basicUnsetProperty(msgs);
- case PomPackage.ACTIVATION__FILE:
- return basicUnsetFile(msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.ACTIVATION__ACTIVE_BY_DEFAULT:
- return getActiveByDefault();
- case PomPackage.ACTIVATION__JDK:
- return getJdk();
- case PomPackage.ACTIVATION__OS:
- return getOs();
- case PomPackage.ACTIVATION__PROPERTY:
- return getProperty();
- case PomPackage.ACTIVATION__FILE:
- return getFile();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.ACTIVATION__ACTIVE_BY_DEFAULT:
- setActiveByDefault((String) newValue);
- return;
- case PomPackage.ACTIVATION__JDK:
- setJdk((String) newValue);
- return;
- case PomPackage.ACTIVATION__OS:
- setOs((ActivationOS) newValue);
- return;
- case PomPackage.ACTIVATION__PROPERTY:
- setProperty((ActivationProperty) newValue);
- return;
- case PomPackage.ACTIVATION__FILE:
- setFile((ActivationFile) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.ACTIVATION__ACTIVE_BY_DEFAULT:
- unsetActiveByDefault();
- return;
- case PomPackage.ACTIVATION__JDK:
- setJdk(JDK_EDEFAULT);
- return;
- case PomPackage.ACTIVATION__OS:
- unsetOs();
- return;
- case PomPackage.ACTIVATION__PROPERTY:
- unsetProperty();
- return;
- case PomPackage.ACTIVATION__FILE:
- unsetFile();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.ACTIVATION__ACTIVE_BY_DEFAULT:
- return isSetActiveByDefault();
- case PomPackage.ACTIVATION__JDK:
- return JDK_EDEFAULT == null ? jdk != null : !JDK_EDEFAULT
- .equals(jdk);
- case PomPackage.ACTIVATION__OS:
- return isSetOs();
- case PomPackage.ACTIVATION__PROPERTY:
- return isSetProperty();
- case PomPackage.ACTIVATION__FILE:
- return isSetFile();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (activeByDefault: "); //$NON-NLS-1$
- if (activeByDefaultESet)
- result.append(activeByDefault);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", jdk: "); //$NON-NLS-1$
- result.append(jdk);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getActiveByDefault() <em>Active By Default</em>}' attribute. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getActiveByDefault()
+ * @generated
+ * @ordered
+ */
+ protected static final String ACTIVE_BY_DEFAULT_EDEFAULT = "false"; //$NON-NLS-1$
+
+ /**
+ * The cached value of the '{@link #getActiveByDefault() <em>Active By Default</em>}' attribute. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getActiveByDefault()
+ * @generated
+ * @ordered
+ */
+ protected String activeByDefault = ACTIVE_BY_DEFAULT_EDEFAULT;
+
+ /**
+ * This is true if the Active By Default attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean activeByDefaultESet;
+
+ /**
+ * The default value of the '{@link #getJdk() <em>Jdk</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getJdk()
+ * @generated
+ * @ordered
+ */
+ protected static final String JDK_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getJdk() <em>Jdk</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getJdk()
+ * @generated
+ * @ordered
+ */
+ protected String jdk = JDK_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getOs() <em>Os</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getOs()
+ * @generated
+ * @ordered
+ */
+ protected ActivationOS os;
+
+ /**
+ * This is true if the Os containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean osESet;
+
+ /**
+ * The cached value of the '{@link #getProperty() <em>Property</em>}' containment reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getProperty()
+ * @generated
+ * @ordered
+ */
+ protected ActivationProperty property;
+
+ /**
+ * This is true if the Property containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean propertyESet;
+
+ /**
+ * The cached value of the '{@link #getFile() <em>File</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getFile()
+ * @generated
+ * @ordered
+ */
+ protected ActivationFile file;
+
+ /**
+ * This is true if the File containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean fileESet;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ActivationImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.ACTIVATION;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getActiveByDefault() {
+ return activeByDefault;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setActiveByDefault(String newActiveByDefault) {
+ String oldActiveByDefault = activeByDefault;
+ activeByDefault = newActiveByDefault;
+ boolean oldActiveByDefaultESet = activeByDefaultESet;
+ activeByDefaultESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION__ACTIVE_BY_DEFAULT,
+ oldActiveByDefault, activeByDefault, !oldActiveByDefaultESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetActiveByDefault() {
+ String oldActiveByDefault = activeByDefault;
+ boolean oldActiveByDefaultESet = activeByDefaultESet;
+ activeByDefault = ACTIVE_BY_DEFAULT_EDEFAULT;
+ activeByDefaultESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.ACTIVATION__ACTIVE_BY_DEFAULT,
+ oldActiveByDefault, ACTIVE_BY_DEFAULT_EDEFAULT, oldActiveByDefaultESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetActiveByDefault() {
+ return activeByDefaultESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getJdk() {
+ return jdk;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setJdk(String newJdk) {
+ String oldJdk = jdk;
+ jdk = newJdk;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION__JDK, oldJdk, jdk));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ActivationOS getOs() {
+ return os;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetOs(ActivationOS newOs, NotificationChain msgs) {
+ ActivationOS oldOs = os;
+ os = newOs;
+ boolean oldOsESet = osESet;
+ osESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION__OS, oldOs,
+ newOs, !oldOsESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setOs(ActivationOS newOs) {
+ if(newOs != os) {
+ NotificationChain msgs = null;
+ if(os != null)
+ msgs = ((InternalEObject) os).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PomPackage.ACTIVATION__OS, null,
+ msgs);
+ if(newOs != null)
+ msgs = ((InternalEObject) newOs).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PomPackage.ACTIVATION__OS, null,
+ msgs);
+ msgs = basicSetOs(newOs, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldOsESet = osESet;
+ osESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION__OS, newOs, newOs, !oldOsESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetOs(NotificationChain msgs) {
+ ActivationOS oldOs = os;
+ os = null;
+ boolean oldOsESet = osESet;
+ osESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET, PomPackage.ACTIVATION__OS,
+ oldOs, null, oldOsESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetOs() {
+ if(os != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) os)
+ .eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PomPackage.ACTIVATION__OS, null, msgs);
+ msgs = basicUnsetOs(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldOsESet = osESet;
+ osESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.ACTIVATION__OS, null, null, oldOsESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetOs() {
+ return osESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ActivationProperty getProperty() {
+ return property;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetProperty(ActivationProperty newProperty, NotificationChain msgs) {
+ ActivationProperty oldProperty = property;
+ property = newProperty;
+ boolean oldPropertyESet = propertyESet;
+ propertyESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION__PROPERTY,
+ oldProperty, newProperty, !oldPropertyESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setProperty(ActivationProperty newProperty) {
+ if(newProperty != property) {
+ NotificationChain msgs = null;
+ if(property != null)
+ msgs = ((InternalEObject) property).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.ACTIVATION__PROPERTY, null, msgs);
+ if(newProperty != null)
+ msgs = ((InternalEObject) newProperty).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.ACTIVATION__PROPERTY, null, msgs);
+ msgs = basicSetProperty(newProperty, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldPropertyESet = propertyESet;
+ propertyESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION__PROPERTY, newProperty,
+ newProperty, !oldPropertyESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetProperty(NotificationChain msgs) {
+ ActivationProperty oldProperty = property;
+ property = null;
+ boolean oldPropertyESet = propertyESet;
+ propertyESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET, PomPackage.ACTIVATION__PROPERTY,
+ oldProperty, null, oldPropertyESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetProperty() {
+ if(property != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) property).eInverseRemove(this,
+ EOPPOSITE_FEATURE_BASE - PomPackage.ACTIVATION__PROPERTY, null, msgs);
+ msgs = basicUnsetProperty(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldPropertyESet = propertyESet;
+ propertyESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.ACTIVATION__PROPERTY, null, null,
+ oldPropertyESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetProperty() {
+ return propertyESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ActivationFile getFile() {
+ return file;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetFile(ActivationFile newFile, NotificationChain msgs) {
+ ActivationFile oldFile = file;
+ file = newFile;
+ boolean oldFileESet = fileESet;
+ fileESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION__FILE,
+ oldFile, newFile, !oldFileESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setFile(ActivationFile newFile) {
+ if(newFile != file) {
+ NotificationChain msgs = null;
+ if(file != null)
+ msgs = ((InternalEObject) file).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PomPackage.ACTIVATION__FILE,
+ null, msgs);
+ if(newFile != null)
+ msgs = ((InternalEObject) newFile).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PomPackage.ACTIVATION__FILE,
+ null, msgs);
+ msgs = basicSetFile(newFile, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldFileESet = fileESet;
+ fileESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION__FILE, newFile, newFile,
+ !oldFileESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetFile(NotificationChain msgs) {
+ ActivationFile oldFile = file;
+ file = null;
+ boolean oldFileESet = fileESet;
+ fileESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET, PomPackage.ACTIVATION__FILE,
+ oldFile, null, oldFileESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetFile() {
+ if(file != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) file).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PomPackage.ACTIVATION__FILE, null,
+ msgs);
+ msgs = basicUnsetFile(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldFileESet = fileESet;
+ fileESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.ACTIVATION__FILE, null, null, oldFileESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetFile() {
+ return fileESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION__OS:
+ return basicUnsetOs(msgs);
+ case PomPackage.ACTIVATION__PROPERTY:
+ return basicUnsetProperty(msgs);
+ case PomPackage.ACTIVATION__FILE:
+ return basicUnsetFile(msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION__ACTIVE_BY_DEFAULT:
+ return getActiveByDefault();
+ case PomPackage.ACTIVATION__JDK:
+ return getJdk();
+ case PomPackage.ACTIVATION__OS:
+ return getOs();
+ case PomPackage.ACTIVATION__PROPERTY:
+ return getProperty();
+ case PomPackage.ACTIVATION__FILE:
+ return getFile();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION__ACTIVE_BY_DEFAULT:
+ setActiveByDefault((String) newValue);
+ return;
+ case PomPackage.ACTIVATION__JDK:
+ setJdk((String) newValue);
+ return;
+ case PomPackage.ACTIVATION__OS:
+ setOs((ActivationOS) newValue);
+ return;
+ case PomPackage.ACTIVATION__PROPERTY:
+ setProperty((ActivationProperty) newValue);
+ return;
+ case PomPackage.ACTIVATION__FILE:
+ setFile((ActivationFile) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION__ACTIVE_BY_DEFAULT:
+ unsetActiveByDefault();
+ return;
+ case PomPackage.ACTIVATION__JDK:
+ setJdk(JDK_EDEFAULT);
+ return;
+ case PomPackage.ACTIVATION__OS:
+ unsetOs();
+ return;
+ case PomPackage.ACTIVATION__PROPERTY:
+ unsetProperty();
+ return;
+ case PomPackage.ACTIVATION__FILE:
+ unsetFile();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION__ACTIVE_BY_DEFAULT:
+ return isSetActiveByDefault();
+ case PomPackage.ACTIVATION__JDK:
+ return JDK_EDEFAULT == null ? jdk != null : !JDK_EDEFAULT.equals(jdk);
+ case PomPackage.ACTIVATION__OS:
+ return isSetOs();
+ case PomPackage.ACTIVATION__PROPERTY:
+ return isSetProperty();
+ case PomPackage.ACTIVATION__FILE:
+ return isSetFile();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (activeByDefault: "); //$NON-NLS-1$
+ if(activeByDefaultESet)
+ result.append(activeByDefault);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", jdk: "); //$NON-NLS-1$
+ result.append(jdk);
+ result.append(')');
+ return result.toString();
+ }
} // ActivationImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationOSImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationOSImpl.java
index 778b6ae4..41b22d3c 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationOSImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationOSImpl.java
@@ -12,335 +12,319 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.ActivationOS;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Activation OS</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Activation OS</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl#getName <em>
- * Name</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl#getFamily <em>
- * Family</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl#getArch <em>
- * Arch</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl#getVersion <em>
- * Version</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl#getName <em> Name</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl#getFamily <em> Family</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl#getArch <em> Arch</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationOSImpl#getVersion <em> Version</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ActivationOSImpl extends EObjectImpl implements ActivationOS {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getFamily() <em>Family</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getFamily()
- * @generated
- * @ordered
- */
- protected static final String FAMILY_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getFamily() <em>Family</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getFamily()
+ * @generated
+ * @ordered
+ */
+ protected static final String FAMILY_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getFamily() <em>Family</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getFamily()
- * @generated
- * @ordered
- */
- protected String family = FAMILY_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getFamily() <em>Family</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getFamily()
+ * @generated
+ * @ordered
+ */
+ protected String family = FAMILY_EDEFAULT;
- /**
- * The default value of the '{@link #getArch() <em>Arch</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArch()
- * @generated
- * @ordered
- */
- protected static final String ARCH_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getArch() <em>Arch</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getArch()
+ * @generated
+ * @ordered
+ */
+ protected static final String ARCH_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getArch() <em>Arch</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArch()
- * @generated
- * @ordered
- */
- protected String arch = ARCH_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getArch() <em>Arch</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getArch()
+ * @generated
+ * @ordered
+ */
+ protected String arch = ARCH_EDEFAULT;
- /**
- * The default value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected static final String VERSION_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected static final String VERSION_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected String version = VERSION_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected String version = VERSION_EDEFAULT;
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ActivationOSImpl() {
- super();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ActivationOSImpl() {
+ super();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.ACTIVATION_OS;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.ACTIVATION_OS;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ACTIVATION_OS__NAME, oldName, name));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION_OS__NAME, oldName, name));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getFamily() {
- return family;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getFamily() {
+ return family;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setFamily(String newFamily) {
- String oldFamily = family;
- family = newFamily;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ACTIVATION_OS__FAMILY, oldFamily, family));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setFamily(String newFamily) {
+ String oldFamily = family;
+ family = newFamily;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION_OS__FAMILY, oldFamily, family));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getArch() {
- return arch;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getArch() {
+ return arch;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setArch(String newArch) {
- String oldArch = arch;
- arch = newArch;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ACTIVATION_OS__ARCH, oldArch, arch));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setArch(String newArch) {
+ String oldArch = arch;
+ arch = newArch;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION_OS__ARCH, oldArch, arch));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getVersion() {
- return version;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getVersion() {
+ return version;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setVersion(String newVersion) {
- String oldVersion = version;
- version = newVersion;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ACTIVATION_OS__VERSION, oldVersion, version));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setVersion(String newVersion) {
+ String oldVersion = version;
+ version = newVersion;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION_OS__VERSION, oldVersion, version));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.ACTIVATION_OS__NAME:
- return getName();
- case PomPackage.ACTIVATION_OS__FAMILY:
- return getFamily();
- case PomPackage.ACTIVATION_OS__ARCH:
- return getArch();
- case PomPackage.ACTIVATION_OS__VERSION:
- return getVersion();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION_OS__NAME:
+ return getName();
+ case PomPackage.ACTIVATION_OS__FAMILY:
+ return getFamily();
+ case PomPackage.ACTIVATION_OS__ARCH:
+ return getArch();
+ case PomPackage.ACTIVATION_OS__VERSION:
+ return getVersion();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.ACTIVATION_OS__NAME:
- setName((String) newValue);
- return;
- case PomPackage.ACTIVATION_OS__FAMILY:
- setFamily((String) newValue);
- return;
- case PomPackage.ACTIVATION_OS__ARCH:
- setArch((String) newValue);
- return;
- case PomPackage.ACTIVATION_OS__VERSION:
- setVersion((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION_OS__NAME:
+ setName((String) newValue);
+ return;
+ case PomPackage.ACTIVATION_OS__FAMILY:
+ setFamily((String) newValue);
+ return;
+ case PomPackage.ACTIVATION_OS__ARCH:
+ setArch((String) newValue);
+ return;
+ case PomPackage.ACTIVATION_OS__VERSION:
+ setVersion((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.ACTIVATION_OS__NAME:
- setName(NAME_EDEFAULT);
- return;
- case PomPackage.ACTIVATION_OS__FAMILY:
- setFamily(FAMILY_EDEFAULT);
- return;
- case PomPackage.ACTIVATION_OS__ARCH:
- setArch(ARCH_EDEFAULT);
- return;
- case PomPackage.ACTIVATION_OS__VERSION:
- setVersion(VERSION_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION_OS__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case PomPackage.ACTIVATION_OS__FAMILY:
+ setFamily(FAMILY_EDEFAULT);
+ return;
+ case PomPackage.ACTIVATION_OS__ARCH:
+ setArch(ARCH_EDEFAULT);
+ return;
+ case PomPackage.ACTIVATION_OS__VERSION:
+ setVersion(VERSION_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.ACTIVATION_OS__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT
- .equals(name);
- case PomPackage.ACTIVATION_OS__FAMILY:
- return FAMILY_EDEFAULT == null ? family != null : !FAMILY_EDEFAULT
- .equals(family);
- case PomPackage.ACTIVATION_OS__ARCH:
- return ARCH_EDEFAULT == null ? arch != null : !ARCH_EDEFAULT
- .equals(arch);
- case PomPackage.ACTIVATION_OS__VERSION:
- return VERSION_EDEFAULT == null ? version != null
- : !VERSION_EDEFAULT.equals(version);
- }
- return super.eIsSet(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION_OS__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case PomPackage.ACTIVATION_OS__FAMILY:
+ return FAMILY_EDEFAULT == null ? family != null : !FAMILY_EDEFAULT.equals(family);
+ case PomPackage.ACTIVATION_OS__ARCH:
+ return ARCH_EDEFAULT == null ? arch != null : !ARCH_EDEFAULT.equals(arch);
+ case PomPackage.ACTIVATION_OS__VERSION:
+ return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version);
+ }
+ return super.eIsSet(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: "); //$NON-NLS-1$
- result.append(name);
- result.append(", family: "); //$NON-NLS-1$
- result.append(family);
- result.append(", arch: "); //$NON-NLS-1$
- result.append(arch);
- result.append(", version: "); //$NON-NLS-1$
- result.append(version);
- result.append(')');
- return result.toString();
- }
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: "); //$NON-NLS-1$
+ result.append(name);
+ result.append(", family: "); //$NON-NLS-1$
+ result.append(family);
+ result.append(", arch: "); //$NON-NLS-1$
+ result.append(arch);
+ result.append(", version: "); //$NON-NLS-1$
+ result.append(version);
+ result.append(')');
+ return result.toString();
+ }
} // ActivationOSImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationPropertyImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationPropertyImpl.java
index f24a0fc7..1f06bd84 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationPropertyImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ActivationPropertyImpl.java
@@ -12,222 +12,213 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.ActivationProperty;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Activation Property</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Activation Property</b></em>'. <!--
+ * end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationPropertyImpl#getName
- * <em>Name</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationPropertyImpl#getValue
- * <em>Value</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationPropertyImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ActivationPropertyImpl#getValue <em>Value</em>}</li>
* </ul>
* </p>
*
* @generated
*/
-public class ActivationPropertyImpl extends EObjectImpl implements
- ActivationProperty {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected static final String VALUE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected String value = VALUE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ActivationPropertyImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.ACTIVATION_PROPERTY;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ACTIVATION_PROPERTY__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setValue(String newValue) {
- String oldValue = value;
- value = newValue;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ACTIVATION_PROPERTY__VALUE, oldValue, value));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.ACTIVATION_PROPERTY__NAME:
- return getName();
- case PomPackage.ACTIVATION_PROPERTY__VALUE:
- return getValue();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.ACTIVATION_PROPERTY__NAME:
- setName((String) newValue);
- return;
- case PomPackage.ACTIVATION_PROPERTY__VALUE:
- setValue((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.ACTIVATION_PROPERTY__NAME:
- setName(NAME_EDEFAULT);
- return;
- case PomPackage.ACTIVATION_PROPERTY__VALUE:
- setValue(VALUE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.ACTIVATION_PROPERTY__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT
- .equals(name);
- case PomPackage.ACTIVATION_PROPERTY__VALUE:
- return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT
- .equals(value);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: "); //$NON-NLS-1$
- result.append(name);
- result.append(", value: "); //$NON-NLS-1$
- result.append(value);
- result.append(')');
- return result.toString();
- }
+public class ActivationPropertyImpl extends EObjectImpl implements ActivationProperty {
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getValue() <em>Value</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected static final String VALUE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected String value = VALUE_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ActivationPropertyImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.ACTIVATION_PROPERTY;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION_PROPERTY__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setValue(String newValue) {
+ String oldValue = value;
+ value = newValue;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ACTIVATION_PROPERTY__VALUE, oldValue, value));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION_PROPERTY__NAME:
+ return getName();
+ case PomPackage.ACTIVATION_PROPERTY__VALUE:
+ return getValue();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION_PROPERTY__NAME:
+ setName((String) newValue);
+ return;
+ case PomPackage.ACTIVATION_PROPERTY__VALUE:
+ setValue((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION_PROPERTY__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case PomPackage.ACTIVATION_PROPERTY__VALUE:
+ setValue(VALUE_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.ACTIVATION_PROPERTY__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case PomPackage.ACTIVATION_PROPERTY__VALUE:
+ return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: "); //$NON-NLS-1$
+ result.append(name);
+ result.append(", value: "); //$NON-NLS-1$
+ result.append(value);
+ result.append(')');
+ return result.toString();
+ }
} // ActivationPropertyImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/BuildBaseImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/BuildBaseImpl.java
index 4eb5a60b..12d1d824 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/BuildBaseImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/BuildBaseImpl.java
@@ -15,18 +15,15 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EDataTypeEList;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.BuildBase;
import org.eclipse.m2e.model.edit.pom.Plugin;
import org.eclipse.m2e.model.edit.pom.PluginManagement;
@@ -35,657 +32,616 @@ import org.eclipse.m2e.model.edit.pom.Resource;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Build Base</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Build Base</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getDefaultGoal
- * <em>Default Goal</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getResources <em>
- * Resources</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getTestResources
- * <em>Test Resources</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getDirectory <em>
- * Directory</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getFinalName <em>
- * Final Name</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getDefaultGoal <em>Default Goal</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getResources <em> Resources</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getTestResources <em>Test Resources</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getDirectory <em> Directory</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getFinalName <em> Final Name</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getPluginManagement
- * <em>Plugin Management</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getPlugins <em>
- * Plugins</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getFilters <em>
- * Filters</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getPluginManagement <em>Plugin Management</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getPlugins <em> Plugins</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildBaseImpl#getFilters <em> Filters</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class BuildBaseImpl extends EObjectImpl implements BuildBase {
- /**
- * The default value of the '{@link #getDefaultGoal() <em>Default Goal</em>}
- * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDefaultGoal()
- * @generated
- * @ordered
- */
- protected static final String DEFAULT_GOAL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDefaultGoal() <em>Default Goal</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDefaultGoal()
- * @generated
- * @ordered
- */
- protected String defaultGoal = DEFAULT_GOAL_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getResources() <em>Resources</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getResources()
- * @generated
- * @ordered
- */
- protected EList<Resource> resources;
-
- /**
- * The cached value of the '{@link #getTestResources()
- * <em>Test Resources</em>}' containment reference list. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #getTestResources()
- * @generated
- * @ordered
- */
- protected EList<Resource> testResources;
-
- /**
- * The default value of the '{@link #getDirectory() <em>Directory</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDirectory()
- * @generated
- * @ordered
- */
- protected static final String DIRECTORY_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDirectory() <em>Directory</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDirectory()
- * @generated
- * @ordered
- */
- protected String directory = DIRECTORY_EDEFAULT;
-
- /**
- * The default value of the '{@link #getFinalName() <em>Final Name</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getFinalName()
- * @generated
- * @ordered
- */
- protected static final String FINAL_NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getFinalName() <em>Final Name</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getFinalName()
- * @generated
- * @ordered
- */
- protected String finalName = FINAL_NAME_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getPluginManagement()
- * <em>Plugin Management</em>}' containment reference. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #getPluginManagement()
- * @generated
- * @ordered
- */
- protected PluginManagement pluginManagement;
-
- /**
- * This is true if the Plugin Management containment reference has been set.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean pluginManagementESet;
-
- /**
- * The cached value of the '{@link #getPlugins() <em>Plugins</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getPlugins()
- * @generated
- * @ordered
- */
- protected EList<Plugin> plugins;
-
- /**
- * The cached value of the '{@link #getFilters() <em>Filters</em>}'
- * attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getFilters()
- * @generated
- * @ordered
- */
- protected EList<String> filters;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected BuildBaseImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.BUILD_BASE;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getDefaultGoal() {
- return defaultGoal;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDefaultGoal(String newDefaultGoal) {
- String oldDefaultGoal = defaultGoal;
- defaultGoal = newDefaultGoal;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.BUILD_BASE__DEFAULT_GOAL, oldDefaultGoal,
- defaultGoal));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Resource> getResources() {
- if (resources == null) {
- resources = new EObjectContainmentEList.Unsettable<Resource>(
- Resource.class, this, PomPackage.BUILD_BASE__RESOURCES);
- }
- return resources;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetResources() {
- if (resources != null)
- ((InternalEList.Unsettable<?>) resources).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetResources() {
- return resources != null
- && ((InternalEList.Unsettable<?>) resources).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Resource> getTestResources() {
- if (testResources == null) {
- testResources = new EObjectContainmentEList.Unsettable<Resource>(
- Resource.class, this, PomPackage.BUILD_BASE__TEST_RESOURCES);
- }
- return testResources;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetTestResources() {
- if (testResources != null)
- ((InternalEList.Unsettable<?>) testResources).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetTestResources() {
- return testResources != null
- && ((InternalEList.Unsettable<?>) testResources).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getDirectory() {
- return directory;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDirectory(String newDirectory) {
- String oldDirectory = directory;
- directory = newDirectory;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.BUILD_BASE__DIRECTORY, oldDirectory, directory));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getFinalName() {
- return finalName;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setFinalName(String newFinalName) {
- String oldFinalName = finalName;
- finalName = newFinalName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.BUILD_BASE__FINAL_NAME, oldFinalName, finalName));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public PluginManagement getPluginManagement() {
- return pluginManagement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetPluginManagement(
- PluginManagement newPluginManagement, NotificationChain msgs) {
- PluginManagement oldPluginManagement = pluginManagement;
- pluginManagement = newPluginManagement;
- boolean oldPluginManagementESet = pluginManagementESet;
- pluginManagementESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT,
- oldPluginManagement, newPluginManagement,
- !oldPluginManagementESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setPluginManagement(PluginManagement newPluginManagement) {
- if (newPluginManagement != pluginManagement) {
- NotificationChain msgs = null;
- if (pluginManagement != null)
- msgs = ((InternalEObject) pluginManagement).eInverseRemove(
- this, EOPPOSITE_FEATURE_BASE
- - PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT,
- null, msgs);
- if (newPluginManagement != null)
- msgs = ((InternalEObject) newPluginManagement).eInverseAdd(
- this, EOPPOSITE_FEATURE_BASE
- - PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT,
- null, msgs);
- msgs = basicSetPluginManagement(newPluginManagement, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldPluginManagementESet = pluginManagementESet;
- pluginManagementESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT,
- newPluginManagement, newPluginManagement,
- !oldPluginManagementESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetPluginManagement(NotificationChain msgs) {
- PluginManagement oldPluginManagement = pluginManagement;
- pluginManagement = null;
- boolean oldPluginManagementESet = pluginManagementESet;
- pluginManagementESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET,
- PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT,
- oldPluginManagement, null, oldPluginManagementESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetPluginManagement() {
- if (pluginManagement != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) pluginManagement).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT, null,
- msgs);
- msgs = basicUnsetPluginManagement(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldPluginManagementESet = pluginManagementESet;
- pluginManagementESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT, null, null,
- oldPluginManagementESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetPluginManagement() {
- return pluginManagementESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Plugin> getPlugins() {
- if (plugins == null) {
- plugins = new EObjectContainmentEList.Unsettable<Plugin>(
- Plugin.class, this, PomPackage.BUILD_BASE__PLUGINS);
- }
- return plugins;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetPlugins() {
- if (plugins != null)
- ((InternalEList.Unsettable<?>) plugins).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetPlugins() {
- return plugins != null
- && ((InternalEList.Unsettable<?>) plugins).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getFilters() {
- if (filters == null) {
- filters = new EDataTypeEList<String>(String.class, this,
- PomPackage.BUILD_BASE__FILTERS);
- }
- return filters;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.BUILD_BASE__RESOURCES:
- return ((InternalEList<?>) getResources()).basicRemove(otherEnd,
- msgs);
- case PomPackage.BUILD_BASE__TEST_RESOURCES:
- return ((InternalEList<?>) getTestResources()).basicRemove(
- otherEnd, msgs);
- case PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT:
- return basicUnsetPluginManagement(msgs);
- case PomPackage.BUILD_BASE__PLUGINS:
- return ((InternalEList<?>) getPlugins())
- .basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.BUILD_BASE__DEFAULT_GOAL:
- return getDefaultGoal();
- case PomPackage.BUILD_BASE__RESOURCES:
- return getResources();
- case PomPackage.BUILD_BASE__TEST_RESOURCES:
- return getTestResources();
- case PomPackage.BUILD_BASE__DIRECTORY:
- return getDirectory();
- case PomPackage.BUILD_BASE__FINAL_NAME:
- return getFinalName();
- case PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT:
- return getPluginManagement();
- case PomPackage.BUILD_BASE__PLUGINS:
- return getPlugins();
- case PomPackage.BUILD_BASE__FILTERS:
- return getFilters();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.BUILD_BASE__DEFAULT_GOAL:
- setDefaultGoal((String) newValue);
- return;
- case PomPackage.BUILD_BASE__RESOURCES:
- getResources().clear();
- getResources().addAll((Collection<? extends Resource>) newValue);
- return;
- case PomPackage.BUILD_BASE__TEST_RESOURCES:
- getTestResources().clear();
- getTestResources()
- .addAll((Collection<? extends Resource>) newValue);
- return;
- case PomPackage.BUILD_BASE__DIRECTORY:
- setDirectory((String) newValue);
- return;
- case PomPackage.BUILD_BASE__FINAL_NAME:
- setFinalName((String) newValue);
- return;
- case PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT:
- setPluginManagement((PluginManagement) newValue);
- return;
- case PomPackage.BUILD_BASE__PLUGINS:
- getPlugins().clear();
- getPlugins().addAll((Collection<? extends Plugin>) newValue);
- return;
- case PomPackage.BUILD_BASE__FILTERS:
- getFilters().clear();
- getFilters().addAll((Collection<? extends String>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.BUILD_BASE__DEFAULT_GOAL:
- setDefaultGoal(DEFAULT_GOAL_EDEFAULT);
- return;
- case PomPackage.BUILD_BASE__RESOURCES:
- unsetResources();
- return;
- case PomPackage.BUILD_BASE__TEST_RESOURCES:
- unsetTestResources();
- return;
- case PomPackage.BUILD_BASE__DIRECTORY:
- setDirectory(DIRECTORY_EDEFAULT);
- return;
- case PomPackage.BUILD_BASE__FINAL_NAME:
- setFinalName(FINAL_NAME_EDEFAULT);
- return;
- case PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT:
- unsetPluginManagement();
- return;
- case PomPackage.BUILD_BASE__PLUGINS:
- unsetPlugins();
- return;
- case PomPackage.BUILD_BASE__FILTERS:
- getFilters().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.BUILD_BASE__DEFAULT_GOAL:
- return DEFAULT_GOAL_EDEFAULT == null ? defaultGoal != null
- : !DEFAULT_GOAL_EDEFAULT.equals(defaultGoal);
- case PomPackage.BUILD_BASE__RESOURCES:
- return isSetResources();
- case PomPackage.BUILD_BASE__TEST_RESOURCES:
- return isSetTestResources();
- case PomPackage.BUILD_BASE__DIRECTORY:
- return DIRECTORY_EDEFAULT == null ? directory != null
- : !DIRECTORY_EDEFAULT.equals(directory);
- case PomPackage.BUILD_BASE__FINAL_NAME:
- return FINAL_NAME_EDEFAULT == null ? finalName != null
- : !FINAL_NAME_EDEFAULT.equals(finalName);
- case PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT:
- return isSetPluginManagement();
- case PomPackage.BUILD_BASE__PLUGINS:
- return isSetPlugins();
- case PomPackage.BUILD_BASE__FILTERS:
- return filters != null && !filters.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (defaultGoal: "); //$NON-NLS-1$
- result.append(defaultGoal);
- result.append(", directory: "); //$NON-NLS-1$
- result.append(directory);
- result.append(", finalName: "); //$NON-NLS-1$
- result.append(finalName);
- result.append(", filters: "); //$NON-NLS-1$
- result.append(filters);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getDefaultGoal() <em>Default Goal</em>} ' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getDefaultGoal()
+ * @generated
+ * @ordered
+ */
+ protected static final String DEFAULT_GOAL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDefaultGoal() <em>Default Goal</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getDefaultGoal()
+ * @generated
+ * @ordered
+ */
+ protected String defaultGoal = DEFAULT_GOAL_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getResources() <em>Resources</em>}' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getResources()
+ * @generated
+ * @ordered
+ */
+ protected EList<Resource> resources;
+
+ /**
+ * The cached value of the '{@link #getTestResources() <em>Test Resources</em>}' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getTestResources()
+ * @generated
+ * @ordered
+ */
+ protected EList<Resource> testResources;
+
+ /**
+ * The default value of the '{@link #getDirectory() <em>Directory</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getDirectory()
+ * @generated
+ * @ordered
+ */
+ protected static final String DIRECTORY_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDirectory() <em>Directory</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getDirectory()
+ * @generated
+ * @ordered
+ */
+ protected String directory = DIRECTORY_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getFinalName() <em>Final Name</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getFinalName()
+ * @generated
+ * @ordered
+ */
+ protected static final String FINAL_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getFinalName() <em>Final Name</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getFinalName()
+ * @generated
+ * @ordered
+ */
+ protected String finalName = FINAL_NAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getPluginManagement() <em>Plugin Management</em>}' containment reference. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getPluginManagement()
+ * @generated
+ * @ordered
+ */
+ protected PluginManagement pluginManagement;
+
+ /**
+ * This is true if the Plugin Management containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean pluginManagementESet;
+
+ /**
+ * The cached value of the '{@link #getPlugins() <em>Plugins</em>}' containment reference list. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getPlugins()
+ * @generated
+ * @ordered
+ */
+ protected EList<Plugin> plugins;
+
+ /**
+ * The cached value of the '{@link #getFilters() <em>Filters</em>}' attribute list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getFilters()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> filters;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected BuildBaseImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.BUILD_BASE;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getDefaultGoal() {
+ return defaultGoal;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setDefaultGoal(String newDefaultGoal) {
+ String oldDefaultGoal = defaultGoal;
+ defaultGoal = newDefaultGoal;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.BUILD_BASE__DEFAULT_GOAL, oldDefaultGoal,
+ defaultGoal));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Resource> getResources() {
+ if(resources == null) {
+ resources = new EObjectContainmentEList.Unsettable<Resource>(Resource.class, this,
+ PomPackage.BUILD_BASE__RESOURCES);
+ }
+ return resources;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetResources() {
+ if(resources != null)
+ ((InternalEList.Unsettable<?>) resources).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetResources() {
+ return resources != null && ((InternalEList.Unsettable<?>) resources).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Resource> getTestResources() {
+ if(testResources == null) {
+ testResources = new EObjectContainmentEList.Unsettable<Resource>(Resource.class, this,
+ PomPackage.BUILD_BASE__TEST_RESOURCES);
+ }
+ return testResources;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetTestResources() {
+ if(testResources != null)
+ ((InternalEList.Unsettable<?>) testResources).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetTestResources() {
+ return testResources != null && ((InternalEList.Unsettable<?>) testResources).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getDirectory() {
+ return directory;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setDirectory(String newDirectory) {
+ String oldDirectory = directory;
+ directory = newDirectory;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.BUILD_BASE__DIRECTORY, oldDirectory, directory));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getFinalName() {
+ return finalName;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setFinalName(String newFinalName) {
+ String oldFinalName = finalName;
+ finalName = newFinalName;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.BUILD_BASE__FINAL_NAME, oldFinalName, finalName));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PluginManagement getPluginManagement() {
+ return pluginManagement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetPluginManagement(PluginManagement newPluginManagement, NotificationChain msgs) {
+ PluginManagement oldPluginManagement = pluginManagement;
+ pluginManagement = newPluginManagement;
+ boolean oldPluginManagementESet = pluginManagementESet;
+ pluginManagementESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT, oldPluginManagement, newPluginManagement, !oldPluginManagementESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setPluginManagement(PluginManagement newPluginManagement) {
+ if(newPluginManagement != pluginManagement) {
+ NotificationChain msgs = null;
+ if(pluginManagement != null)
+ msgs = ((InternalEObject) pluginManagement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT, null, msgs);
+ if(newPluginManagement != null)
+ msgs = ((InternalEObject) newPluginManagement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT, null, msgs);
+ msgs = basicSetPluginManagement(newPluginManagement, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldPluginManagementESet = pluginManagementESet;
+ pluginManagementESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT,
+ newPluginManagement, newPluginManagement, !oldPluginManagementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetPluginManagement(NotificationChain msgs) {
+ PluginManagement oldPluginManagement = pluginManagement;
+ pluginManagement = null;
+ boolean oldPluginManagementESet = pluginManagementESet;
+ pluginManagementESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET,
+ PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT, oldPluginManagement, null, oldPluginManagementESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetPluginManagement() {
+ if(pluginManagement != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) pluginManagement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT, null, msgs);
+ msgs = basicUnsetPluginManagement(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldPluginManagementESet = pluginManagementESet;
+ pluginManagementESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT, null, null,
+ oldPluginManagementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetPluginManagement() {
+ return pluginManagementESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Plugin> getPlugins() {
+ if(plugins == null) {
+ plugins = new EObjectContainmentEList.Unsettable<Plugin>(Plugin.class, this, PomPackage.BUILD_BASE__PLUGINS);
+ }
+ return plugins;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetPlugins() {
+ if(plugins != null)
+ ((InternalEList.Unsettable<?>) plugins).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetPlugins() {
+ return plugins != null && ((InternalEList.Unsettable<?>) plugins).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<String> getFilters() {
+ if(filters == null) {
+ filters = new EDataTypeEList<String>(String.class, this, PomPackage.BUILD_BASE__FILTERS);
+ }
+ return filters;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.BUILD_BASE__RESOURCES:
+ return ((InternalEList<?>) getResources()).basicRemove(otherEnd, msgs);
+ case PomPackage.BUILD_BASE__TEST_RESOURCES:
+ return ((InternalEList<?>) getTestResources()).basicRemove(otherEnd, msgs);
+ case PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT:
+ return basicUnsetPluginManagement(msgs);
+ case PomPackage.BUILD_BASE__PLUGINS:
+ return ((InternalEList<?>) getPlugins()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.BUILD_BASE__DEFAULT_GOAL:
+ return getDefaultGoal();
+ case PomPackage.BUILD_BASE__RESOURCES:
+ return getResources();
+ case PomPackage.BUILD_BASE__TEST_RESOURCES:
+ return getTestResources();
+ case PomPackage.BUILD_BASE__DIRECTORY:
+ return getDirectory();
+ case PomPackage.BUILD_BASE__FINAL_NAME:
+ return getFinalName();
+ case PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT:
+ return getPluginManagement();
+ case PomPackage.BUILD_BASE__PLUGINS:
+ return getPlugins();
+ case PomPackage.BUILD_BASE__FILTERS:
+ return getFilters();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.BUILD_BASE__DEFAULT_GOAL:
+ setDefaultGoal((String) newValue);
+ return;
+ case PomPackage.BUILD_BASE__RESOURCES:
+ getResources().clear();
+ getResources().addAll((Collection<? extends Resource>) newValue);
+ return;
+ case PomPackage.BUILD_BASE__TEST_RESOURCES:
+ getTestResources().clear();
+ getTestResources().addAll((Collection<? extends Resource>) newValue);
+ return;
+ case PomPackage.BUILD_BASE__DIRECTORY:
+ setDirectory((String) newValue);
+ return;
+ case PomPackage.BUILD_BASE__FINAL_NAME:
+ setFinalName((String) newValue);
+ return;
+ case PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT:
+ setPluginManagement((PluginManagement) newValue);
+ return;
+ case PomPackage.BUILD_BASE__PLUGINS:
+ getPlugins().clear();
+ getPlugins().addAll((Collection<? extends Plugin>) newValue);
+ return;
+ case PomPackage.BUILD_BASE__FILTERS:
+ getFilters().clear();
+ getFilters().addAll((Collection<? extends String>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.BUILD_BASE__DEFAULT_GOAL:
+ setDefaultGoal(DEFAULT_GOAL_EDEFAULT);
+ return;
+ case PomPackage.BUILD_BASE__RESOURCES:
+ unsetResources();
+ return;
+ case PomPackage.BUILD_BASE__TEST_RESOURCES:
+ unsetTestResources();
+ return;
+ case PomPackage.BUILD_BASE__DIRECTORY:
+ setDirectory(DIRECTORY_EDEFAULT);
+ return;
+ case PomPackage.BUILD_BASE__FINAL_NAME:
+ setFinalName(FINAL_NAME_EDEFAULT);
+ return;
+ case PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT:
+ unsetPluginManagement();
+ return;
+ case PomPackage.BUILD_BASE__PLUGINS:
+ unsetPlugins();
+ return;
+ case PomPackage.BUILD_BASE__FILTERS:
+ getFilters().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.BUILD_BASE__DEFAULT_GOAL:
+ return DEFAULT_GOAL_EDEFAULT == null ? defaultGoal != null : !DEFAULT_GOAL_EDEFAULT.equals(defaultGoal);
+ case PomPackage.BUILD_BASE__RESOURCES:
+ return isSetResources();
+ case PomPackage.BUILD_BASE__TEST_RESOURCES:
+ return isSetTestResources();
+ case PomPackage.BUILD_BASE__DIRECTORY:
+ return DIRECTORY_EDEFAULT == null ? directory != null : !DIRECTORY_EDEFAULT.equals(directory);
+ case PomPackage.BUILD_BASE__FINAL_NAME:
+ return FINAL_NAME_EDEFAULT == null ? finalName != null : !FINAL_NAME_EDEFAULT.equals(finalName);
+ case PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT:
+ return isSetPluginManagement();
+ case PomPackage.BUILD_BASE__PLUGINS:
+ return isSetPlugins();
+ case PomPackage.BUILD_BASE__FILTERS:
+ return filters != null && !filters.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (defaultGoal: "); //$NON-NLS-1$
+ result.append(defaultGoal);
+ result.append(", directory: "); //$NON-NLS-1$
+ result.append(directory);
+ result.append(", finalName: "); //$NON-NLS-1$
+ result.append(finalName);
+ result.append(", filters: "); //$NON-NLS-1$
+ result.append(filters);
+ result.append(')');
+ return result.toString();
+ }
} // BuildBaseImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/BuildImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/BuildImpl.java
index b1961f08..1ef17714 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/BuildImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/BuildImpl.java
@@ -15,492 +15,461 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.Build;
import org.eclipse.m2e.model.edit.pom.Extension;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Build</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Build</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl#getSourceDirectory
- * <em>Source Directory</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl#getSourceDirectory <em>Source Directory</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl#getScriptSourceDirectory
- * <em>Script Source Directory</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl#getScriptSourceDirectory <em>Script Source Directory</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl#getTestSourceDirectory
- * <em>Test Source Directory</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl#getOutputDirectory
- * <em>Output Directory</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl#getTestSourceDirectory <em>Test Source Directory</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl#getOutputDirectory <em>Output Directory</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl#getTestOutputDirectory
- * <em>Test Output Directory</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl#getExtensions <em>
- * Extensions</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl#getTestOutputDirectory <em>Test Output Directory</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.BuildImpl#getExtensions <em> Extensions</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class BuildImpl extends BuildBaseImpl implements Build {
- /**
- * The default value of the '{@link #getSourceDirectory()
- * <em>Source Directory</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getSourceDirectory()
- * @generated
- * @ordered
- */
- protected static final String SOURCE_DIRECTORY_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getSourceDirectory()
- * <em>Source Directory</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getSourceDirectory()
- * @generated
- * @ordered
- */
- protected String sourceDirectory = SOURCE_DIRECTORY_EDEFAULT;
-
- /**
- * The default value of the '{@link #getScriptSourceDirectory()
- * <em>Script Source Directory</em>}' attribute. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getScriptSourceDirectory()
- * @generated
- * @ordered
- */
- protected static final String SCRIPT_SOURCE_DIRECTORY_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getScriptSourceDirectory()
- * <em>Script Source Directory</em>}' attribute. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getScriptSourceDirectory()
- * @generated
- * @ordered
- */
- protected String scriptSourceDirectory = SCRIPT_SOURCE_DIRECTORY_EDEFAULT;
-
- /**
- * The default value of the '{@link #getTestSourceDirectory()
- * <em>Test Source Directory</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getTestSourceDirectory()
- * @generated
- * @ordered
- */
- protected static final String TEST_SOURCE_DIRECTORY_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTestSourceDirectory()
- * <em>Test Source Directory</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getTestSourceDirectory()
- * @generated
- * @ordered
- */
- protected String testSourceDirectory = TEST_SOURCE_DIRECTORY_EDEFAULT;
-
- /**
- * The default value of the '{@link #getOutputDirectory()
- * <em>Output Directory</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getOutputDirectory()
- * @generated
- * @ordered
- */
- protected static final String OUTPUT_DIRECTORY_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getOutputDirectory()
- * <em>Output Directory</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getOutputDirectory()
- * @generated
- * @ordered
- */
- protected String outputDirectory = OUTPUT_DIRECTORY_EDEFAULT;
-
- /**
- * The default value of the '{@link #getTestOutputDirectory()
- * <em>Test Output Directory</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getTestOutputDirectory()
- * @generated
- * @ordered
- */
- protected static final String TEST_OUTPUT_DIRECTORY_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTestOutputDirectory()
- * <em>Test Output Directory</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getTestOutputDirectory()
- * @generated
- * @ordered
- */
- protected String testOutputDirectory = TEST_OUTPUT_DIRECTORY_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getExtensions() <em>Extensions</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getExtensions()
- * @generated
- * @ordered
- */
- protected EList<Extension> extensions;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected BuildImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.BUILD;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getSourceDirectory() {
- return sourceDirectory;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setSourceDirectory(String newSourceDirectory) {
- String oldSourceDirectory = sourceDirectory;
- sourceDirectory = newSourceDirectory;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.BUILD__SOURCE_DIRECTORY, oldSourceDirectory,
- sourceDirectory));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getScriptSourceDirectory() {
- return scriptSourceDirectory;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setScriptSourceDirectory(String newScriptSourceDirectory) {
- String oldScriptSourceDirectory = scriptSourceDirectory;
- scriptSourceDirectory = newScriptSourceDirectory;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.BUILD__SCRIPT_SOURCE_DIRECTORY,
- oldScriptSourceDirectory, scriptSourceDirectory));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getTestSourceDirectory() {
- return testSourceDirectory;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setTestSourceDirectory(String newTestSourceDirectory) {
- String oldTestSourceDirectory = testSourceDirectory;
- testSourceDirectory = newTestSourceDirectory;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.BUILD__TEST_SOURCE_DIRECTORY,
- oldTestSourceDirectory, testSourceDirectory));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getOutputDirectory() {
- return outputDirectory;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setOutputDirectory(String newOutputDirectory) {
- String oldOutputDirectory = outputDirectory;
- outputDirectory = newOutputDirectory;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.BUILD__OUTPUT_DIRECTORY, oldOutputDirectory,
- outputDirectory));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getTestOutputDirectory() {
- return testOutputDirectory;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setTestOutputDirectory(String newTestOutputDirectory) {
- String oldTestOutputDirectory = testOutputDirectory;
- testOutputDirectory = newTestOutputDirectory;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.BUILD__TEST_OUTPUT_DIRECTORY,
- oldTestOutputDirectory, testOutputDirectory));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Extension> getExtensions() {
- if (extensions == null) {
- extensions = new EObjectContainmentEList.Unsettable<Extension>(
- Extension.class, this, PomPackage.BUILD__EXTENSIONS);
- }
- return extensions;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetExtensions() {
- if (extensions != null)
- ((InternalEList.Unsettable<?>) extensions).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetExtensions() {
- return extensions != null
- && ((InternalEList.Unsettable<?>) extensions).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.BUILD__EXTENSIONS:
- return ((InternalEList<?>) getExtensions()).basicRemove(otherEnd,
- msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.BUILD__SOURCE_DIRECTORY:
- return getSourceDirectory();
- case PomPackage.BUILD__SCRIPT_SOURCE_DIRECTORY:
- return getScriptSourceDirectory();
- case PomPackage.BUILD__TEST_SOURCE_DIRECTORY:
- return getTestSourceDirectory();
- case PomPackage.BUILD__OUTPUT_DIRECTORY:
- return getOutputDirectory();
- case PomPackage.BUILD__TEST_OUTPUT_DIRECTORY:
- return getTestOutputDirectory();
- case PomPackage.BUILD__EXTENSIONS:
- return getExtensions();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.BUILD__SOURCE_DIRECTORY:
- setSourceDirectory((String) newValue);
- return;
- case PomPackage.BUILD__SCRIPT_SOURCE_DIRECTORY:
- setScriptSourceDirectory((String) newValue);
- return;
- case PomPackage.BUILD__TEST_SOURCE_DIRECTORY:
- setTestSourceDirectory((String) newValue);
- return;
- case PomPackage.BUILD__OUTPUT_DIRECTORY:
- setOutputDirectory((String) newValue);
- return;
- case PomPackage.BUILD__TEST_OUTPUT_DIRECTORY:
- setTestOutputDirectory((String) newValue);
- return;
- case PomPackage.BUILD__EXTENSIONS:
- getExtensions().clear();
- getExtensions().addAll((Collection<? extends Extension>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.BUILD__SOURCE_DIRECTORY:
- setSourceDirectory(SOURCE_DIRECTORY_EDEFAULT);
- return;
- case PomPackage.BUILD__SCRIPT_SOURCE_DIRECTORY:
- setScriptSourceDirectory(SCRIPT_SOURCE_DIRECTORY_EDEFAULT);
- return;
- case PomPackage.BUILD__TEST_SOURCE_DIRECTORY:
- setTestSourceDirectory(TEST_SOURCE_DIRECTORY_EDEFAULT);
- return;
- case PomPackage.BUILD__OUTPUT_DIRECTORY:
- setOutputDirectory(OUTPUT_DIRECTORY_EDEFAULT);
- return;
- case PomPackage.BUILD__TEST_OUTPUT_DIRECTORY:
- setTestOutputDirectory(TEST_OUTPUT_DIRECTORY_EDEFAULT);
- return;
- case PomPackage.BUILD__EXTENSIONS:
- unsetExtensions();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.BUILD__SOURCE_DIRECTORY:
- return SOURCE_DIRECTORY_EDEFAULT == null ? sourceDirectory != null
- : !SOURCE_DIRECTORY_EDEFAULT.equals(sourceDirectory);
- case PomPackage.BUILD__SCRIPT_SOURCE_DIRECTORY:
- return SCRIPT_SOURCE_DIRECTORY_EDEFAULT == null ? scriptSourceDirectory != null
- : !SCRIPT_SOURCE_DIRECTORY_EDEFAULT
- .equals(scriptSourceDirectory);
- case PomPackage.BUILD__TEST_SOURCE_DIRECTORY:
- return TEST_SOURCE_DIRECTORY_EDEFAULT == null ? testSourceDirectory != null
- : !TEST_SOURCE_DIRECTORY_EDEFAULT
- .equals(testSourceDirectory);
- case PomPackage.BUILD__OUTPUT_DIRECTORY:
- return OUTPUT_DIRECTORY_EDEFAULT == null ? outputDirectory != null
- : !OUTPUT_DIRECTORY_EDEFAULT.equals(outputDirectory);
- case PomPackage.BUILD__TEST_OUTPUT_DIRECTORY:
- return TEST_OUTPUT_DIRECTORY_EDEFAULT == null ? testOutputDirectory != null
- : !TEST_OUTPUT_DIRECTORY_EDEFAULT
- .equals(testOutputDirectory);
- case PomPackage.BUILD__EXTENSIONS:
- return isSetExtensions();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (sourceDirectory: "); //$NON-NLS-1$
- result.append(sourceDirectory);
- result.append(", scriptSourceDirectory: "); //$NON-NLS-1$
- result.append(scriptSourceDirectory);
- result.append(", testSourceDirectory: "); //$NON-NLS-1$
- result.append(testSourceDirectory);
- result.append(", outputDirectory: "); //$NON-NLS-1$
- result.append(outputDirectory);
- result.append(", testOutputDirectory: "); //$NON-NLS-1$
- result.append(testOutputDirectory);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getSourceDirectory() <em>Source Directory</em>}' attribute. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getSourceDirectory()
+ * @generated
+ * @ordered
+ */
+ protected static final String SOURCE_DIRECTORY_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSourceDirectory() <em>Source Directory</em>}' attribute. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getSourceDirectory()
+ * @generated
+ * @ordered
+ */
+ protected String sourceDirectory = SOURCE_DIRECTORY_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getScriptSourceDirectory() <em>Script Source Directory</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getScriptSourceDirectory()
+ * @generated
+ * @ordered
+ */
+ protected static final String SCRIPT_SOURCE_DIRECTORY_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getScriptSourceDirectory() <em>Script Source Directory</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getScriptSourceDirectory()
+ * @generated
+ * @ordered
+ */
+ protected String scriptSourceDirectory = SCRIPT_SOURCE_DIRECTORY_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTestSourceDirectory() <em>Test Source Directory</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getTestSourceDirectory()
+ * @generated
+ * @ordered
+ */
+ protected static final String TEST_SOURCE_DIRECTORY_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTestSourceDirectory() <em>Test Source Directory</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getTestSourceDirectory()
+ * @generated
+ * @ordered
+ */
+ protected String testSourceDirectory = TEST_SOURCE_DIRECTORY_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getOutputDirectory() <em>Output Directory</em>}' attribute. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getOutputDirectory()
+ * @generated
+ * @ordered
+ */
+ protected static final String OUTPUT_DIRECTORY_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOutputDirectory() <em>Output Directory</em>}' attribute. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getOutputDirectory()
+ * @generated
+ * @ordered
+ */
+ protected String outputDirectory = OUTPUT_DIRECTORY_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTestOutputDirectory() <em>Test Output Directory</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getTestOutputDirectory()
+ * @generated
+ * @ordered
+ */
+ protected static final String TEST_OUTPUT_DIRECTORY_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTestOutputDirectory() <em>Test Output Directory</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getTestOutputDirectory()
+ * @generated
+ * @ordered
+ */
+ protected String testOutputDirectory = TEST_OUTPUT_DIRECTORY_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getExtensions() <em>Extensions</em>}' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getExtensions()
+ * @generated
+ * @ordered
+ */
+ protected EList<Extension> extensions;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected BuildImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.BUILD;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getSourceDirectory() {
+ return sourceDirectory;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setSourceDirectory(String newSourceDirectory) {
+ String oldSourceDirectory = sourceDirectory;
+ sourceDirectory = newSourceDirectory;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.BUILD__SOURCE_DIRECTORY, oldSourceDirectory,
+ sourceDirectory));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getScriptSourceDirectory() {
+ return scriptSourceDirectory;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setScriptSourceDirectory(String newScriptSourceDirectory) {
+ String oldScriptSourceDirectory = scriptSourceDirectory;
+ scriptSourceDirectory = newScriptSourceDirectory;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.BUILD__SCRIPT_SOURCE_DIRECTORY,
+ oldScriptSourceDirectory, scriptSourceDirectory));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getTestSourceDirectory() {
+ return testSourceDirectory;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setTestSourceDirectory(String newTestSourceDirectory) {
+ String oldTestSourceDirectory = testSourceDirectory;
+ testSourceDirectory = newTestSourceDirectory;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.BUILD__TEST_SOURCE_DIRECTORY,
+ oldTestSourceDirectory, testSourceDirectory));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getOutputDirectory() {
+ return outputDirectory;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setOutputDirectory(String newOutputDirectory) {
+ String oldOutputDirectory = outputDirectory;
+ outputDirectory = newOutputDirectory;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.BUILD__OUTPUT_DIRECTORY, oldOutputDirectory,
+ outputDirectory));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getTestOutputDirectory() {
+ return testOutputDirectory;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setTestOutputDirectory(String newTestOutputDirectory) {
+ String oldTestOutputDirectory = testOutputDirectory;
+ testOutputDirectory = newTestOutputDirectory;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.BUILD__TEST_OUTPUT_DIRECTORY,
+ oldTestOutputDirectory, testOutputDirectory));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Extension> getExtensions() {
+ if(extensions == null) {
+ extensions = new EObjectContainmentEList.Unsettable<Extension>(Extension.class, this,
+ PomPackage.BUILD__EXTENSIONS);
+ }
+ return extensions;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetExtensions() {
+ if(extensions != null)
+ ((InternalEList.Unsettable<?>) extensions).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetExtensions() {
+ return extensions != null && ((InternalEList.Unsettable<?>) extensions).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.BUILD__EXTENSIONS:
+ return ((InternalEList<?>) getExtensions()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.BUILD__SOURCE_DIRECTORY:
+ return getSourceDirectory();
+ case PomPackage.BUILD__SCRIPT_SOURCE_DIRECTORY:
+ return getScriptSourceDirectory();
+ case PomPackage.BUILD__TEST_SOURCE_DIRECTORY:
+ return getTestSourceDirectory();
+ case PomPackage.BUILD__OUTPUT_DIRECTORY:
+ return getOutputDirectory();
+ case PomPackage.BUILD__TEST_OUTPUT_DIRECTORY:
+ return getTestOutputDirectory();
+ case PomPackage.BUILD__EXTENSIONS:
+ return getExtensions();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.BUILD__SOURCE_DIRECTORY:
+ setSourceDirectory((String) newValue);
+ return;
+ case PomPackage.BUILD__SCRIPT_SOURCE_DIRECTORY:
+ setScriptSourceDirectory((String) newValue);
+ return;
+ case PomPackage.BUILD__TEST_SOURCE_DIRECTORY:
+ setTestSourceDirectory((String) newValue);
+ return;
+ case PomPackage.BUILD__OUTPUT_DIRECTORY:
+ setOutputDirectory((String) newValue);
+ return;
+ case PomPackage.BUILD__TEST_OUTPUT_DIRECTORY:
+ setTestOutputDirectory((String) newValue);
+ return;
+ case PomPackage.BUILD__EXTENSIONS:
+ getExtensions().clear();
+ getExtensions().addAll((Collection<? extends Extension>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.BUILD__SOURCE_DIRECTORY:
+ setSourceDirectory(SOURCE_DIRECTORY_EDEFAULT);
+ return;
+ case PomPackage.BUILD__SCRIPT_SOURCE_DIRECTORY:
+ setScriptSourceDirectory(SCRIPT_SOURCE_DIRECTORY_EDEFAULT);
+ return;
+ case PomPackage.BUILD__TEST_SOURCE_DIRECTORY:
+ setTestSourceDirectory(TEST_SOURCE_DIRECTORY_EDEFAULT);
+ return;
+ case PomPackage.BUILD__OUTPUT_DIRECTORY:
+ setOutputDirectory(OUTPUT_DIRECTORY_EDEFAULT);
+ return;
+ case PomPackage.BUILD__TEST_OUTPUT_DIRECTORY:
+ setTestOutputDirectory(TEST_OUTPUT_DIRECTORY_EDEFAULT);
+ return;
+ case PomPackage.BUILD__EXTENSIONS:
+ unsetExtensions();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.BUILD__SOURCE_DIRECTORY:
+ return SOURCE_DIRECTORY_EDEFAULT == null ? sourceDirectory != null : !SOURCE_DIRECTORY_EDEFAULT
+ .equals(sourceDirectory);
+ case PomPackage.BUILD__SCRIPT_SOURCE_DIRECTORY:
+ return SCRIPT_SOURCE_DIRECTORY_EDEFAULT == null ? scriptSourceDirectory != null
+ : !SCRIPT_SOURCE_DIRECTORY_EDEFAULT.equals(scriptSourceDirectory);
+ case PomPackage.BUILD__TEST_SOURCE_DIRECTORY:
+ return TEST_SOURCE_DIRECTORY_EDEFAULT == null ? testSourceDirectory != null : !TEST_SOURCE_DIRECTORY_EDEFAULT
+ .equals(testSourceDirectory);
+ case PomPackage.BUILD__OUTPUT_DIRECTORY:
+ return OUTPUT_DIRECTORY_EDEFAULT == null ? outputDirectory != null : !OUTPUT_DIRECTORY_EDEFAULT
+ .equals(outputDirectory);
+ case PomPackage.BUILD__TEST_OUTPUT_DIRECTORY:
+ return TEST_OUTPUT_DIRECTORY_EDEFAULT == null ? testOutputDirectory != null : !TEST_OUTPUT_DIRECTORY_EDEFAULT
+ .equals(testOutputDirectory);
+ case PomPackage.BUILD__EXTENSIONS:
+ return isSetExtensions();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (sourceDirectory: "); //$NON-NLS-1$
+ result.append(sourceDirectory);
+ result.append(", scriptSourceDirectory: "); //$NON-NLS-1$
+ result.append(scriptSourceDirectory);
+ result.append(", testSourceDirectory: "); //$NON-NLS-1$
+ result.append(testSourceDirectory);
+ result.append(", outputDirectory: "); //$NON-NLS-1$
+ result.append(outputDirectory);
+ result.append(", testOutputDirectory: "); //$NON-NLS-1$
+ result.append(testOutputDirectory);
+ result.append(')');
+ return result.toString();
+ }
} // BuildImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/CiManagementImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/CiManagementImpl.java
index 2508a02a..0eb899cb 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/CiManagementImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/CiManagementImpl.java
@@ -15,301 +15,285 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.CiManagement;
import org.eclipse.m2e.model.edit.pom.Notifier;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Ci Management</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Ci Management</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.CiManagementImpl#getSystem <em>
- * System</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.CiManagementImpl#getUrl <em>Url
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.CiManagementImpl#getNotifiers
- * <em>Notifiers</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.CiManagementImpl#getSystem <em> System</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.CiManagementImpl#getUrl <em>Url </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.CiManagementImpl#getNotifiers <em>Notifiers</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class CiManagementImpl extends EObjectImpl implements CiManagement {
- /**
- * The default value of the '{@link #getSystem() <em>System</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getSystem()
- * @generated
- * @ordered
- */
- protected static final String SYSTEM_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getSystem() <em>System</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getSystem()
+ * @generated
+ * @ordered
+ */
+ protected static final String SYSTEM_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getSystem() <em>System</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getSystem()
- * @generated
- * @ordered
- */
- protected String system = SYSTEM_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getSystem() <em>System</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getSystem()
+ * @generated
+ * @ordered
+ */
+ protected String system = SYSTEM_EDEFAULT;
- /**
- * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected static final String URL_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String URL_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected String url = URL_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected String url = URL_EDEFAULT;
- /**
- * The cached value of the '{@link #getNotifiers() <em>Notifiers</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getNotifiers()
- * @generated
- * @ordered
- */
- protected EList<Notifier> notifiers;
+ /**
+ * The cached value of the '{@link #getNotifiers() <em>Notifiers</em>}' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getNotifiers()
+ * @generated
+ * @ordered
+ */
+ protected EList<Notifier> notifiers;
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected CiManagementImpl() {
- super();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected CiManagementImpl() {
+ super();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.CI_MANAGEMENT;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.CI_MANAGEMENT;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getSystem() {
- return system;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getSystem() {
+ return system;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setSystem(String newSystem) {
- String oldSystem = system;
- system = newSystem;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.CI_MANAGEMENT__SYSTEM, oldSystem, system));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setSystem(String newSystem) {
+ String oldSystem = system;
+ system = newSystem;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.CI_MANAGEMENT__SYSTEM, oldSystem, system));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getUrl() {
- return url;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getUrl() {
+ return url;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setUrl(String newUrl) {
- String oldUrl = url;
- url = newUrl;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.CI_MANAGEMENT__URL, oldUrl, url));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setUrl(String newUrl) {
+ String oldUrl = url;
+ url = newUrl;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.CI_MANAGEMENT__URL, oldUrl, url));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Notifier> getNotifiers() {
- if (notifiers == null) {
- notifiers = new EObjectContainmentEList.Unsettable<Notifier>(
- Notifier.class, this, PomPackage.CI_MANAGEMENT__NOTIFIERS);
- }
- return notifiers;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Notifier> getNotifiers() {
+ if(notifiers == null) {
+ notifiers = new EObjectContainmentEList.Unsettable<Notifier>(Notifier.class, this,
+ PomPackage.CI_MANAGEMENT__NOTIFIERS);
+ }
+ return notifiers;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetNotifiers() {
- if (notifiers != null)
- ((InternalEList.Unsettable<?>) notifiers).unset();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetNotifiers() {
+ if(notifiers != null)
+ ((InternalEList.Unsettable<?>) notifiers).unset();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetNotifiers() {
- return notifiers != null
- && ((InternalEList.Unsettable<?>) notifiers).isSet();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetNotifiers() {
+ return notifiers != null && ((InternalEList.Unsettable<?>) notifiers).isSet();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.CI_MANAGEMENT__NOTIFIERS:
- return ((InternalEList<?>) getNotifiers()).basicRemove(otherEnd,
- msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.CI_MANAGEMENT__NOTIFIERS:
+ return ((InternalEList<?>) getNotifiers()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.CI_MANAGEMENT__SYSTEM:
- return getSystem();
- case PomPackage.CI_MANAGEMENT__URL:
- return getUrl();
- case PomPackage.CI_MANAGEMENT__NOTIFIERS:
- return getNotifiers();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.CI_MANAGEMENT__SYSTEM:
+ return getSystem();
+ case PomPackage.CI_MANAGEMENT__URL:
+ return getUrl();
+ case PomPackage.CI_MANAGEMENT__NOTIFIERS:
+ return getNotifiers();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.CI_MANAGEMENT__SYSTEM:
- setSystem((String) newValue);
- return;
- case PomPackage.CI_MANAGEMENT__URL:
- setUrl((String) newValue);
- return;
- case PomPackage.CI_MANAGEMENT__NOTIFIERS:
- getNotifiers().clear();
- getNotifiers().addAll((Collection<? extends Notifier>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.CI_MANAGEMENT__SYSTEM:
+ setSystem((String) newValue);
+ return;
+ case PomPackage.CI_MANAGEMENT__URL:
+ setUrl((String) newValue);
+ return;
+ case PomPackage.CI_MANAGEMENT__NOTIFIERS:
+ getNotifiers().clear();
+ getNotifiers().addAll((Collection<? extends Notifier>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.CI_MANAGEMENT__SYSTEM:
- setSystem(SYSTEM_EDEFAULT);
- return;
- case PomPackage.CI_MANAGEMENT__URL:
- setUrl(URL_EDEFAULT);
- return;
- case PomPackage.CI_MANAGEMENT__NOTIFIERS:
- unsetNotifiers();
- return;
- }
- super.eUnset(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.CI_MANAGEMENT__SYSTEM:
+ setSystem(SYSTEM_EDEFAULT);
+ return;
+ case PomPackage.CI_MANAGEMENT__URL:
+ setUrl(URL_EDEFAULT);
+ return;
+ case PomPackage.CI_MANAGEMENT__NOTIFIERS:
+ unsetNotifiers();
+ return;
+ }
+ super.eUnset(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.CI_MANAGEMENT__SYSTEM:
- return SYSTEM_EDEFAULT == null ? system != null : !SYSTEM_EDEFAULT
- .equals(system);
- case PomPackage.CI_MANAGEMENT__URL:
- return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT
- .equals(url);
- case PomPackage.CI_MANAGEMENT__NOTIFIERS:
- return isSetNotifiers();
- }
- return super.eIsSet(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.CI_MANAGEMENT__SYSTEM:
+ return SYSTEM_EDEFAULT == null ? system != null : !SYSTEM_EDEFAULT.equals(system);
+ case PomPackage.CI_MANAGEMENT__URL:
+ return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url);
+ case PomPackage.CI_MANAGEMENT__NOTIFIERS:
+ return isSetNotifiers();
+ }
+ return super.eIsSet(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (system: "); //$NON-NLS-1$
- result.append(system);
- result.append(", url: "); //$NON-NLS-1$
- result.append(url);
- result.append(')');
- return result.toString();
- }
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (system: "); //$NON-NLS-1$
+ result.append(system);
+ result.append(", url: "); //$NON-NLS-1$
+ result.append(url);
+ result.append(')');
+ return result.toString();
+ }
} // CiManagementImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ConfigurationImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ConfigurationImpl.java
index 065da650..6329f78f 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ConfigurationImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ConfigurationImpl.java
@@ -14,99 +14,105 @@ package org.eclipse.m2e.model.edit.pom.impl;
import java.util.ArrayList;
import java.util.List;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.Text;
+
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.Configuration;
import org.eclipse.m2e.model.edit.pom.PomPackage;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.Text;
+
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Configuration</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Configuration</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ConfigurationImpl#getConfigurationNode <em>Configuration Node</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ConfigurationImpl#getConfigurationNode <em>Configuration Node</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated NOT
*/
public class ConfigurationImpl extends EObjectImpl implements Configuration {
private Node configurationNode;
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- protected ConfigurationImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.CONFIGURATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Node getConfigurationNode() {
- return configurationNode;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setConfigurationNode(Node newConfigurationNode) {
- this.configurationNode = newConfigurationNode;
- }
-
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (configurationNode: "); //$NON-NLS-1$
- result.append(configurationNode);
- result.append(')');
- return result.toString();
- }
-
- public String getStringValue(String xpath) throws RuntimeException {
-
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ConfigurationImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.CONFIGURATION;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Node getConfigurationNode() {
+ return configurationNode;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setConfigurationNode(Node newConfigurationNode) {
+ this.configurationNode = newConfigurationNode;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (configurationNode: "); //$NON-NLS-1$
+ result.append(configurationNode);
+ result.append(')');
+ return result.toString();
+ }
+
+ public String getStringValue(String xpath) throws RuntimeException {
+
NodeList children = configurationNode.getChildNodes();
- for (int i=0; i<children.getLength(); i++) {
+ for(int i = 0; i < children.getLength(); i++ ) {
Node current = children.item(i);
- if (current.getNodeName().equals(xpath)) {
+ if(current.getNodeName().equals(xpath)) {
return children.item(i).getChildNodes().item(0).getNodeValue();
}
}
return null;
}
-
+
public void setStringValue(String xpath, String value) throws RuntimeException {
NodeList children = configurationNode.getChildNodes();
boolean set = false;
- for (int i=0; i<children.getLength(); i++) {
+ for(int i = 0; i < children.getLength(); i++ ) {
Node current = children.item(i);
- if (current.getNodeName().equals(xpath)) {
+ if(current.getNodeName().equals(xpath)) {
while(current.getFirstChild() != null) {
current.removeChild(current.getFirstChild());
}
@@ -121,16 +127,16 @@ public class ConfigurationImpl extends EObjectImpl implements Configuration {
configurationNode.appendChild(e);
}
}
-
+
public List<String> getListValue(String xpath) throws RuntimeException {
NodeList children = configurationNode.getChildNodes();
- for (int i=0; i<children.getLength(); i++) {
+ for(int i = 0; i < children.getLength(); i++ ) {
Node current = children.item(i);
- if (current.getNodeName().equals(xpath)) {
+ if(current.getNodeName().equals(xpath)) {
NodeList items = current.getChildNodes();
- List<String> res = new ArrayList<String>();
- for (int j=0; j<items.getLength(); j++) {
- if (items.item(j).getNodeType() == Node.ELEMENT_NODE) {
+ List<String> res = new ArrayList<String>();
+ for(int j = 0; j < items.getLength(); j++ ) {
+ if(items.item(j).getNodeType() == Node.ELEMENT_NODE) {
res.add(items.item(j).getChildNodes().item(0).getNodeValue());
}
}
@@ -146,13 +152,13 @@ public class ConfigurationImpl extends EObjectImpl implements Configuration {
public List<Node> getListNodes(Node node, String xpath) {
NodeList children = node.getChildNodes();
- for (int i=0; i<children.getLength(); i++) {
+ for(int i = 0; i < children.getLength(); i++ ) {
Node current = children.item(i);
- if (current.getNodeName().equals(xpath)) {
+ if(current.getNodeName().equals(xpath)) {
List<Node> res = new ArrayList<Node>();
NodeList items = current.getChildNodes();
- for (int j=0; j<items.getLength(); j++) {
- if (items.item(j).getNodeType() == Node.ELEMENT_NODE) {
+ for(int j = 0; j < items.getLength(); j++ ) {
+ if(items.item(j).getNodeType() == Node.ELEMENT_NODE) {
res.add(items.item(j).getChildNodes().item(0));
}
}
@@ -165,25 +171,25 @@ public class ConfigurationImpl extends EObjectImpl implements Configuration {
public Node getNode(String xpath) {
return getNode(configurationNode, xpath);
}
-
+
public Node getNode(Node node, String xpath) {
NodeList children = node.getChildNodes();
- for (int i=0; i<children.getLength(); i++) {
+ for(int i = 0; i < children.getLength(); i++ ) {
Node current = children.item(i);
- if (current.getNodeName().equals(xpath)) {
+ if(current.getNodeName().equals(xpath)) {
return current;
}
}
return null;
}
-
+
public void setNodeValues(String xpath, String names[], String[] values) {
setNodeValues(configurationNode, xpath, names, values);
}
public void setNodeValues(String xpath, String name, String[] values) {
String[] names = new String[values.length];
- for (int i=0; i<names.length; i++) {
+ for(int i = 0; i < names.length; i++ ) {
names[i] = name;
}
setNodeValues(xpath, names, values);
@@ -202,17 +208,17 @@ public class ConfigurationImpl extends EObjectImpl implements Configuration {
public void setNodeValues(Node node, String xpath, String[] names, String[] values) {
Node parent = getNode(node, xpath);
- if (parent == null) {
+ if(parent == null) {
//create node
parent = node.getOwnerDocument().createElement(xpath);
node.appendChild(parent);
}
-
+
List<Node> nodes = getListNodes(node, xpath);
-
+
//append missing nodes if required
int diff = values.length - nodes.size();
- for (int i=0; i<diff; i++) {
+ for(int i = 0; i < diff; i++ ) {
Node element = parent.getOwnerDocument().createElement(names[i]);
parent.appendChild(element);
Text text = parent.getOwnerDocument().createTextNode(""); //$NON-NLS-1$
@@ -221,13 +227,13 @@ public class ConfigurationImpl extends EObjectImpl implements Configuration {
}
//remove extra nodes if required
- for (int i=0; i<-diff; i++) {
+ for(int i = 0; i < -diff; i++ ) {
Node element = nodes.remove(nodes.size() - 1 - i);
parent.removeChild(element.getParentNode());
}
-
+
//set values
- for (int i=0; i<nodes.size(); i++) {
+ for(int i = 0; i < nodes.size(); i++ ) {
nodes.get(i).setNodeValue(values[i]);
}
}
@@ -236,7 +242,7 @@ public class ConfigurationImpl extends EObjectImpl implements Configuration {
// A catch-all notificator.
// The configuration section can differ with every plugin, so we cannot really have a
// static EMF model. So we'll just notify the subscribers and let them act accordingly.
- if (eNotificationRequired())
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, eventType, PomPackage.CONFIGURATION, oldValue, newValue));
}
} // ConfigurationImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ContributorImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ContributorImpl.java
index 9c0f585e..ba09e481 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ContributorImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ContributorImpl.java
@@ -15,595 +15,560 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EDataTypeEList;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.Contributor;
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.PropertyElement;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Contributor</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Contributor</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getName <em>Name
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getEmail <em>
- * Email</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getUrl <em>Url
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getOrganization
- * <em>Organization</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getName <em>Name </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getEmail <em> Email</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getUrl <em>Url </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getOrganization <em>Organization</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getOrganizationUrl
- * <em>Organization Url</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getTimezone <em>
- * Timezone</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getProperties
- * <em>Properties</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getRoles <em>
- * Roles</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getOrganizationUrl <em>Organization Url</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getTimezone <em> Timezone</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getProperties <em>Properties</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ContributorImpl#getRoles <em> Roles</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ContributorImpl extends EObjectImpl implements Contributor {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getEmail() <em>Email</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getEmail()
- * @generated
- * @ordered
- */
- protected static final String EMAIL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getEmail() <em>Email</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getEmail()
- * @generated
- * @ordered
- */
- protected String email = EMAIL_EDEFAULT;
-
- /**
- * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected static final String URL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected String url = URL_EDEFAULT;
-
- /**
- * The default value of the '{@link #getOrganization()
- * <em>Organization</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getOrganization()
- * @generated
- * @ordered
- */
- protected static final String ORGANIZATION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getOrganization() <em>Organization</em>}
- * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getOrganization()
- * @generated
- * @ordered
- */
- protected String organization = ORGANIZATION_EDEFAULT;
-
- /**
- * The default value of the '{@link #getOrganizationUrl()
- * <em>Organization Url</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getOrganizationUrl()
- * @generated
- * @ordered
- */
- protected static final String ORGANIZATION_URL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getOrganizationUrl()
- * <em>Organization Url</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getOrganizationUrl()
- * @generated
- * @ordered
- */
- protected String organizationUrl = ORGANIZATION_URL_EDEFAULT;
-
- /**
- * The default value of the '{@link #getTimezone() <em>Timezone</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getTimezone()
- * @generated
- * @ordered
- */
- protected static final String TIMEZONE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTimezone() <em>Timezone</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getTimezone()
- * @generated
- * @ordered
- */
- protected String timezone = TIMEZONE_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getProperties() <em>Properties</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getProperties()
- * @generated
- * @ordered
- */
- protected EList<PropertyElement> properties;
-
- /**
- * The cached value of the '{@link #getRoles() <em>Roles</em>}' attribute
- * list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getRoles()
- * @generated
- * @ordered
- */
- protected EList<String> roles;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ContributorImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.CONTRIBUTOR;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.CONTRIBUTOR__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getEmail() {
- return email;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setEmail(String newEmail) {
- String oldEmail = email;
- email = newEmail;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.CONTRIBUTOR__EMAIL, oldEmail, email));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getUrl() {
- return url;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setUrl(String newUrl) {
- String oldUrl = url;
- url = newUrl;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.CONTRIBUTOR__URL, oldUrl, url));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getOrganization() {
- return organization;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setOrganization(String newOrganization) {
- String oldOrganization = organization;
- organization = newOrganization;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.CONTRIBUTOR__ORGANIZATION, oldOrganization,
- organization));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getOrganizationUrl() {
- return organizationUrl;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setOrganizationUrl(String newOrganizationUrl) {
- String oldOrganizationUrl = organizationUrl;
- organizationUrl = newOrganizationUrl;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.CONTRIBUTOR__ORGANIZATION_URL,
- oldOrganizationUrl, organizationUrl));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getTimezone() {
- return timezone;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setTimezone(String newTimezone) {
- String oldTimezone = timezone;
- timezone = newTimezone;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.CONTRIBUTOR__TIMEZONE, oldTimezone, timezone));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<PropertyElement> getProperties() {
- if (properties == null) {
- properties = new EObjectContainmentEList.Unsettable<PropertyElement>(
- PropertyElement.class, this,
- PomPackage.CONTRIBUTOR__PROPERTIES);
- }
- return properties;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetProperties() {
- if (properties != null)
- ((InternalEList.Unsettable<?>) properties).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetProperties() {
- return properties != null
- && ((InternalEList.Unsettable<?>) properties).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getRoles() {
- if (roles == null) {
- roles = new EDataTypeEList.Unsettable<String>(String.class, this,
- PomPackage.CONTRIBUTOR__ROLES);
- }
- return roles;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetRoles() {
- if (roles != null)
- ((InternalEList.Unsettable<?>) roles).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetRoles() {
- return roles != null && ((InternalEList.Unsettable<?>) roles).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.CONTRIBUTOR__PROPERTIES:
- return ((InternalEList<?>) getProperties()).basicRemove(otherEnd,
- msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.CONTRIBUTOR__NAME:
- return getName();
- case PomPackage.CONTRIBUTOR__EMAIL:
- return getEmail();
- case PomPackage.CONTRIBUTOR__URL:
- return getUrl();
- case PomPackage.CONTRIBUTOR__ORGANIZATION:
- return getOrganization();
- case PomPackage.CONTRIBUTOR__ORGANIZATION_URL:
- return getOrganizationUrl();
- case PomPackage.CONTRIBUTOR__TIMEZONE:
- return getTimezone();
- case PomPackage.CONTRIBUTOR__PROPERTIES:
- return getProperties();
- case PomPackage.CONTRIBUTOR__ROLES:
- return getRoles();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.CONTRIBUTOR__NAME:
- setName((String) newValue);
- return;
- case PomPackage.CONTRIBUTOR__EMAIL:
- setEmail((String) newValue);
- return;
- case PomPackage.CONTRIBUTOR__URL:
- setUrl((String) newValue);
- return;
- case PomPackage.CONTRIBUTOR__ORGANIZATION:
- setOrganization((String) newValue);
- return;
- case PomPackage.CONTRIBUTOR__ORGANIZATION_URL:
- setOrganizationUrl((String) newValue);
- return;
- case PomPackage.CONTRIBUTOR__TIMEZONE:
- setTimezone((String) newValue);
- return;
- case PomPackage.CONTRIBUTOR__PROPERTIES:
- getProperties().clear();
- getProperties().addAll(
- (Collection<? extends PropertyElement>) newValue);
- return;
- case PomPackage.CONTRIBUTOR__ROLES:
- getRoles().clear();
- getRoles().addAll((Collection<? extends String>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.CONTRIBUTOR__NAME:
- setName(NAME_EDEFAULT);
- return;
- case PomPackage.CONTRIBUTOR__EMAIL:
- setEmail(EMAIL_EDEFAULT);
- return;
- case PomPackage.CONTRIBUTOR__URL:
- setUrl(URL_EDEFAULT);
- return;
- case PomPackage.CONTRIBUTOR__ORGANIZATION:
- setOrganization(ORGANIZATION_EDEFAULT);
- return;
- case PomPackage.CONTRIBUTOR__ORGANIZATION_URL:
- setOrganizationUrl(ORGANIZATION_URL_EDEFAULT);
- return;
- case PomPackage.CONTRIBUTOR__TIMEZONE:
- setTimezone(TIMEZONE_EDEFAULT);
- return;
- case PomPackage.CONTRIBUTOR__PROPERTIES:
- unsetProperties();
- return;
- case PomPackage.CONTRIBUTOR__ROLES:
- unsetRoles();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.CONTRIBUTOR__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT
- .equals(name);
- case PomPackage.CONTRIBUTOR__EMAIL:
- return EMAIL_EDEFAULT == null ? email != null : !EMAIL_EDEFAULT
- .equals(email);
- case PomPackage.CONTRIBUTOR__URL:
- return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT
- .equals(url);
- case PomPackage.CONTRIBUTOR__ORGANIZATION:
- return ORGANIZATION_EDEFAULT == null ? organization != null
- : !ORGANIZATION_EDEFAULT.equals(organization);
- case PomPackage.CONTRIBUTOR__ORGANIZATION_URL:
- return ORGANIZATION_URL_EDEFAULT == null ? organizationUrl != null
- : !ORGANIZATION_URL_EDEFAULT.equals(organizationUrl);
- case PomPackage.CONTRIBUTOR__TIMEZONE:
- return TIMEZONE_EDEFAULT == null ? timezone != null
- : !TIMEZONE_EDEFAULT.equals(timezone);
- case PomPackage.CONTRIBUTOR__PROPERTIES:
- return isSetProperties();
- case PomPackage.CONTRIBUTOR__ROLES:
- return isSetRoles();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: "); //$NON-NLS-1$
- result.append(name);
- result.append(", email: "); //$NON-NLS-1$
- result.append(email);
- result.append(", url: "); //$NON-NLS-1$
- result.append(url);
- result.append(", organization: "); //$NON-NLS-1$
- result.append(organization);
- result.append(", organizationUrl: "); //$NON-NLS-1$
- result.append(organizationUrl);
- result.append(", timezone: "); //$NON-NLS-1$
- result.append(timezone);
- result.append(", roles: "); //$NON-NLS-1$
- result.append(roles);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getEmail() <em>Email</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getEmail()
+ * @generated
+ * @ordered
+ */
+ protected static final String EMAIL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getEmail() <em>Email</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getEmail()
+ * @generated
+ * @ordered
+ */
+ protected String email = EMAIL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String URL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected String url = URL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getOrganization() <em>Organization</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getOrganization()
+ * @generated
+ * @ordered
+ */
+ protected static final String ORGANIZATION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOrganization() <em>Organization</em>} ' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getOrganization()
+ * @generated
+ * @ordered
+ */
+ protected String organization = ORGANIZATION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getOrganizationUrl() <em>Organization Url</em>}' attribute. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getOrganizationUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String ORGANIZATION_URL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOrganizationUrl() <em>Organization Url</em>}' attribute. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getOrganizationUrl()
+ * @generated
+ * @ordered
+ */
+ protected String organizationUrl = ORGANIZATION_URL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTimezone() <em>Timezone</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getTimezone()
+ * @generated
+ * @ordered
+ */
+ protected static final String TIMEZONE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTimezone() <em>Timezone</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getTimezone()
+ * @generated
+ * @ordered
+ */
+ protected String timezone = TIMEZONE_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getProperties()
+ * @generated
+ * @ordered
+ */
+ protected EList<PropertyElement> properties;
+
+ /**
+ * The cached value of the '{@link #getRoles() <em>Roles</em>}' attribute list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getRoles()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> roles;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ContributorImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.CONTRIBUTOR;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.CONTRIBUTOR__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getEmail() {
+ return email;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setEmail(String newEmail) {
+ String oldEmail = email;
+ email = newEmail;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.CONTRIBUTOR__EMAIL, oldEmail, email));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getUrl() {
+ return url;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setUrl(String newUrl) {
+ String oldUrl = url;
+ url = newUrl;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.CONTRIBUTOR__URL, oldUrl, url));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getOrganization() {
+ return organization;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setOrganization(String newOrganization) {
+ String oldOrganization = organization;
+ organization = newOrganization;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.CONTRIBUTOR__ORGANIZATION, oldOrganization,
+ organization));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getOrganizationUrl() {
+ return organizationUrl;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setOrganizationUrl(String newOrganizationUrl) {
+ String oldOrganizationUrl = organizationUrl;
+ organizationUrl = newOrganizationUrl;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.CONTRIBUTOR__ORGANIZATION_URL,
+ oldOrganizationUrl, organizationUrl));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getTimezone() {
+ return timezone;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setTimezone(String newTimezone) {
+ String oldTimezone = timezone;
+ timezone = newTimezone;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.CONTRIBUTOR__TIMEZONE, oldTimezone, timezone));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<PropertyElement> getProperties() {
+ if(properties == null) {
+ properties = new EObjectContainmentEList.Unsettable<PropertyElement>(PropertyElement.class, this,
+ PomPackage.CONTRIBUTOR__PROPERTIES);
+ }
+ return properties;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetProperties() {
+ if(properties != null)
+ ((InternalEList.Unsettable<?>) properties).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetProperties() {
+ return properties != null && ((InternalEList.Unsettable<?>) properties).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<String> getRoles() {
+ if(roles == null) {
+ roles = new EDataTypeEList.Unsettable<String>(String.class, this, PomPackage.CONTRIBUTOR__ROLES);
+ }
+ return roles;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetRoles() {
+ if(roles != null)
+ ((InternalEList.Unsettable<?>) roles).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetRoles() {
+ return roles != null && ((InternalEList.Unsettable<?>) roles).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.CONTRIBUTOR__PROPERTIES:
+ return ((InternalEList<?>) getProperties()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.CONTRIBUTOR__NAME:
+ return getName();
+ case PomPackage.CONTRIBUTOR__EMAIL:
+ return getEmail();
+ case PomPackage.CONTRIBUTOR__URL:
+ return getUrl();
+ case PomPackage.CONTRIBUTOR__ORGANIZATION:
+ return getOrganization();
+ case PomPackage.CONTRIBUTOR__ORGANIZATION_URL:
+ return getOrganizationUrl();
+ case PomPackage.CONTRIBUTOR__TIMEZONE:
+ return getTimezone();
+ case PomPackage.CONTRIBUTOR__PROPERTIES:
+ return getProperties();
+ case PomPackage.CONTRIBUTOR__ROLES:
+ return getRoles();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.CONTRIBUTOR__NAME:
+ setName((String) newValue);
+ return;
+ case PomPackage.CONTRIBUTOR__EMAIL:
+ setEmail((String) newValue);
+ return;
+ case PomPackage.CONTRIBUTOR__URL:
+ setUrl((String) newValue);
+ return;
+ case PomPackage.CONTRIBUTOR__ORGANIZATION:
+ setOrganization((String) newValue);
+ return;
+ case PomPackage.CONTRIBUTOR__ORGANIZATION_URL:
+ setOrganizationUrl((String) newValue);
+ return;
+ case PomPackage.CONTRIBUTOR__TIMEZONE:
+ setTimezone((String) newValue);
+ return;
+ case PomPackage.CONTRIBUTOR__PROPERTIES:
+ getProperties().clear();
+ getProperties().addAll((Collection<? extends PropertyElement>) newValue);
+ return;
+ case PomPackage.CONTRIBUTOR__ROLES:
+ getRoles().clear();
+ getRoles().addAll((Collection<? extends String>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.CONTRIBUTOR__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case PomPackage.CONTRIBUTOR__EMAIL:
+ setEmail(EMAIL_EDEFAULT);
+ return;
+ case PomPackage.CONTRIBUTOR__URL:
+ setUrl(URL_EDEFAULT);
+ return;
+ case PomPackage.CONTRIBUTOR__ORGANIZATION:
+ setOrganization(ORGANIZATION_EDEFAULT);
+ return;
+ case PomPackage.CONTRIBUTOR__ORGANIZATION_URL:
+ setOrganizationUrl(ORGANIZATION_URL_EDEFAULT);
+ return;
+ case PomPackage.CONTRIBUTOR__TIMEZONE:
+ setTimezone(TIMEZONE_EDEFAULT);
+ return;
+ case PomPackage.CONTRIBUTOR__PROPERTIES:
+ unsetProperties();
+ return;
+ case PomPackage.CONTRIBUTOR__ROLES:
+ unsetRoles();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.CONTRIBUTOR__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case PomPackage.CONTRIBUTOR__EMAIL:
+ return EMAIL_EDEFAULT == null ? email != null : !EMAIL_EDEFAULT.equals(email);
+ case PomPackage.CONTRIBUTOR__URL:
+ return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url);
+ case PomPackage.CONTRIBUTOR__ORGANIZATION:
+ return ORGANIZATION_EDEFAULT == null ? organization != null : !ORGANIZATION_EDEFAULT.equals(organization);
+ case PomPackage.CONTRIBUTOR__ORGANIZATION_URL:
+ return ORGANIZATION_URL_EDEFAULT == null ? organizationUrl != null : !ORGANIZATION_URL_EDEFAULT
+ .equals(organizationUrl);
+ case PomPackage.CONTRIBUTOR__TIMEZONE:
+ return TIMEZONE_EDEFAULT == null ? timezone != null : !TIMEZONE_EDEFAULT.equals(timezone);
+ case PomPackage.CONTRIBUTOR__PROPERTIES:
+ return isSetProperties();
+ case PomPackage.CONTRIBUTOR__ROLES:
+ return isSetRoles();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: "); //$NON-NLS-1$
+ result.append(name);
+ result.append(", email: "); //$NON-NLS-1$
+ result.append(email);
+ result.append(", url: "); //$NON-NLS-1$
+ result.append(url);
+ result.append(", organization: "); //$NON-NLS-1$
+ result.append(organization);
+ result.append(", organizationUrl: "); //$NON-NLS-1$
+ result.append(organizationUrl);
+ result.append(", timezone: "); //$NON-NLS-1$
+ result.append(timezone);
+ result.append(", roles: "); //$NON-NLS-1$
+ result.append(roles);
+ result.append(')');
+ return result.toString();
+ }
} // ContributorImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DependencyImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DependencyImpl.java
index ff52abe9..0b186b6e 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DependencyImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DependencyImpl.java
@@ -15,723 +15,688 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.Dependency;
import org.eclipse.m2e.model.edit.pom.Exclusion;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Dependency</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Dependency</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getGroupId <em>
- * Group Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getArtifactId
- * <em>Artifact Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getVersion <em>
- * Version</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getType <em>Type
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getClassifier
- * <em>Classifier</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getScope <em>
- * Scope</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getSystemPath
- * <em>System Path</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getExclusions
- * <em>Exclusions</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getOptional <em>
- * Optional</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getGroupId <em> Group Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getArtifactId <em>Artifact Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getVersion <em> Version</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getType <em>Type </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getClassifier <em>Classifier</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getScope <em> Scope</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getSystemPath <em>System Path</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getExclusions <em>Exclusions</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DependencyImpl#getOptional <em> Optional</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class DependencyImpl extends EObjectImpl implements Dependency {
- /**
- * The default value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected static final String GROUP_ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected String groupId = GROUP_ID_EDEFAULT;
-
- /**
- * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected static final String ARTIFACT_ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected String artifactId = ARTIFACT_ID_EDEFAULT;
-
- /**
- * The default value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected static final String VERSION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected String version = VERSION_EDEFAULT;
-
- /**
- * The default value of the '{@link #getType() <em>Type</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getType()
- * @generated
- * @ordered
- */
- protected static final String TYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getType()
- * @generated
- * @ordered
- */
- protected String type = TYPE_EDEFAULT;
-
- /**
- * This is true if the Type attribute has been set. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean typeESet;
-
- /**
- * The default value of the '{@link #getClassifier() <em>Classifier</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getClassifier()
- * @generated
- * @ordered
- */
- protected static final String CLASSIFIER_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getClassifier() <em>Classifier</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getClassifier()
- * @generated
- * @ordered
- */
- protected String classifier = CLASSIFIER_EDEFAULT;
-
- /**
- * The default value of the '{@link #getScope() <em>Scope</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getScope()
- * @generated
- * @ordered
- */
- protected static final String SCOPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getScope() <em>Scope</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getScope()
- * @generated
- * @ordered
- */
- protected String scope = SCOPE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getSystemPath() <em>System Path</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getSystemPath()
- * @generated
- * @ordered
- */
- protected static final String SYSTEM_PATH_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getSystemPath() <em>System Path</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getSystemPath()
- * @generated
- * @ordered
- */
- protected String systemPath = SYSTEM_PATH_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getExclusions() <em>Exclusions</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getExclusions()
- * @generated
- * @ordered
- */
- protected EList<Exclusion> exclusions;
-
- /**
- * The default value of the '{@link #getOptional() <em>Optional</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getOptional()
- * @generated
- * @ordered
- */
- protected static final String OPTIONAL_EDEFAULT = "false"; //$NON-NLS-1$
-
- /**
- * The cached value of the '{@link #getOptional() <em>Optional</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getOptional()
- * @generated
- * @ordered
- */
- protected String optional = OPTIONAL_EDEFAULT;
-
- /**
- * This is true if the Optional attribute has been set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean optionalESet;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DependencyImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.DEPENDENCY;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getGroupId() {
- return groupId;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setGroupId(String newGroupId) {
- String oldGroupId = groupId;
- groupId = newGroupId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEPENDENCY__GROUP_ID, oldGroupId, groupId));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getArtifactId() {
- return artifactId;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setArtifactId(String newArtifactId) {
- String oldArtifactId = artifactId;
- artifactId = newArtifactId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEPENDENCY__ARTIFACT_ID, oldArtifactId,
- artifactId));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getVersion() {
- return version;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setVersion(String newVersion) {
- String oldVersion = version;
- version = newVersion;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEPENDENCY__VERSION, oldVersion, version));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getType() {
- return type;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setType(String newType) {
- String oldType = type;
- type = newType;
- boolean oldTypeESet = typeESet;
- typeESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEPENDENCY__TYPE, oldType, type, !oldTypeESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetType() {
- String oldType = type;
- boolean oldTypeESet = typeESet;
- type = TYPE_EDEFAULT;
- typeESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.DEPENDENCY__TYPE, oldType, TYPE_EDEFAULT,
- oldTypeESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetType() {
- return typeESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getClassifier() {
- return classifier;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setClassifier(String newClassifier) {
- String oldClassifier = classifier;
- classifier = newClassifier;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEPENDENCY__CLASSIFIER, oldClassifier,
- classifier));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getScope() {
- return scope;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setScope(String newScope) {
- String oldScope = scope;
- scope = newScope;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEPENDENCY__SCOPE, oldScope, scope));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getSystemPath() {
- return systemPath;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setSystemPath(String newSystemPath) {
- String oldSystemPath = systemPath;
- systemPath = newSystemPath;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEPENDENCY__SYSTEM_PATH, oldSystemPath,
- systemPath));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Exclusion> getExclusions() {
- if (exclusions == null) {
- exclusions = new EObjectContainmentEList.Unsettable<Exclusion>(
- Exclusion.class, this, PomPackage.DEPENDENCY__EXCLUSIONS);
- }
- return exclusions;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetExclusions() {
- if (exclusions != null)
- ((InternalEList.Unsettable<?>) exclusions).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetExclusions() {
- return exclusions != null
- && ((InternalEList.Unsettable<?>) exclusions).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getOptional() {
- return optional;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setOptional(String newOptional) {
- String oldOptional = optional;
- optional = newOptional;
- boolean oldOptionalESet = optionalESet;
- optionalESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEPENDENCY__OPTIONAL, oldOptional, optional,
- !oldOptionalESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetOptional() {
- String oldOptional = optional;
- boolean oldOptionalESet = optionalESet;
- optional = OPTIONAL_EDEFAULT;
- optionalESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.DEPENDENCY__OPTIONAL, oldOptional,
- OPTIONAL_EDEFAULT, oldOptionalESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetOptional() {
- return optionalESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.DEPENDENCY__EXCLUSIONS:
- return ((InternalEList<?>) getExclusions()).basicRemove(otherEnd,
- msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.DEPENDENCY__GROUP_ID:
- return getGroupId();
- case PomPackage.DEPENDENCY__ARTIFACT_ID:
- return getArtifactId();
- case PomPackage.DEPENDENCY__VERSION:
- return getVersion();
- case PomPackage.DEPENDENCY__TYPE:
- return getType();
- case PomPackage.DEPENDENCY__CLASSIFIER:
- return getClassifier();
- case PomPackage.DEPENDENCY__SCOPE:
- return getScope();
- case PomPackage.DEPENDENCY__SYSTEM_PATH:
- return getSystemPath();
- case PomPackage.DEPENDENCY__EXCLUSIONS:
- return getExclusions();
- case PomPackage.DEPENDENCY__OPTIONAL:
- return getOptional();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.DEPENDENCY__GROUP_ID:
- setGroupId((String) newValue);
- return;
- case PomPackage.DEPENDENCY__ARTIFACT_ID:
- setArtifactId((String) newValue);
- return;
- case PomPackage.DEPENDENCY__VERSION:
- setVersion((String) newValue);
- return;
- case PomPackage.DEPENDENCY__TYPE:
- setType((String) newValue);
- return;
- case PomPackage.DEPENDENCY__CLASSIFIER:
- setClassifier((String) newValue);
- return;
- case PomPackage.DEPENDENCY__SCOPE:
- setScope((String) newValue);
- return;
- case PomPackage.DEPENDENCY__SYSTEM_PATH:
- setSystemPath((String) newValue);
- return;
- case PomPackage.DEPENDENCY__EXCLUSIONS:
- getExclusions().clear();
- getExclusions().addAll((Collection<? extends Exclusion>) newValue);
- return;
- case PomPackage.DEPENDENCY__OPTIONAL:
- setOptional((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.DEPENDENCY__GROUP_ID:
- setGroupId(GROUP_ID_EDEFAULT);
- return;
- case PomPackage.DEPENDENCY__ARTIFACT_ID:
- setArtifactId(ARTIFACT_ID_EDEFAULT);
- return;
- case PomPackage.DEPENDENCY__VERSION:
- setVersion(VERSION_EDEFAULT);
- return;
- case PomPackage.DEPENDENCY__TYPE:
- unsetType();
- return;
- case PomPackage.DEPENDENCY__CLASSIFIER:
- setClassifier(CLASSIFIER_EDEFAULT);
- return;
- case PomPackage.DEPENDENCY__SCOPE:
- setScope(SCOPE_EDEFAULT);
- return;
- case PomPackage.DEPENDENCY__SYSTEM_PATH:
- setSystemPath(SYSTEM_PATH_EDEFAULT);
- return;
- case PomPackage.DEPENDENCY__EXCLUSIONS:
- unsetExclusions();
- return;
- case PomPackage.DEPENDENCY__OPTIONAL:
- unsetOptional();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.DEPENDENCY__GROUP_ID:
- return GROUP_ID_EDEFAULT == null ? groupId != null
- : !GROUP_ID_EDEFAULT.equals(groupId);
- case PomPackage.DEPENDENCY__ARTIFACT_ID:
- return ARTIFACT_ID_EDEFAULT == null ? artifactId != null
- : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
- case PomPackage.DEPENDENCY__VERSION:
- return VERSION_EDEFAULT == null ? version != null
- : !VERSION_EDEFAULT.equals(version);
- case PomPackage.DEPENDENCY__TYPE:
- return isSetType();
- case PomPackage.DEPENDENCY__CLASSIFIER:
- return CLASSIFIER_EDEFAULT == null ? classifier != null
- : !CLASSIFIER_EDEFAULT.equals(classifier);
- case PomPackage.DEPENDENCY__SCOPE:
- return SCOPE_EDEFAULT == null ? scope != null : !SCOPE_EDEFAULT
- .equals(scope);
- case PomPackage.DEPENDENCY__SYSTEM_PATH:
- return SYSTEM_PATH_EDEFAULT == null ? systemPath != null
- : !SYSTEM_PATH_EDEFAULT.equals(systemPath);
- case PomPackage.DEPENDENCY__EXCLUSIONS:
- return isSetExclusions();
- case PomPackage.DEPENDENCY__OPTIONAL:
- return isSetOptional();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (groupId: "); //$NON-NLS-1$
- result.append(groupId);
- result.append(", artifactId: "); //$NON-NLS-1$
- result.append(artifactId);
- result.append(", version: "); //$NON-NLS-1$
- result.append(version);
- result.append(", type: "); //$NON-NLS-1$
- if (typeESet)
- result.append(type);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", classifier: "); //$NON-NLS-1$
- result.append(classifier);
- result.append(", scope: "); //$NON-NLS-1$
- result.append(scope);
- result.append(", systemPath: "); //$NON-NLS-1$
- result.append(systemPath);
- result.append(", optional: "); //$NON-NLS-1$
- if (optionalESet)
- result.append(optional);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected static final String GROUP_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected String groupId = GROUP_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ARTIFACT_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected String artifactId = ARTIFACT_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected static final String VERSION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected String version = VERSION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getType() <em>Type</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected static final String TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getType() <em>Type</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected String type = TYPE_EDEFAULT;
+
+ /**
+ * This is true if the Type attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean typeESet;
+
+ /**
+ * The default value of the '{@link #getClassifier() <em>Classifier</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getClassifier()
+ * @generated
+ * @ordered
+ */
+ protected static final String CLASSIFIER_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getClassifier() <em>Classifier</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getClassifier()
+ * @generated
+ * @ordered
+ */
+ protected String classifier = CLASSIFIER_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getScope() <em>Scope</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getScope()
+ * @generated
+ * @ordered
+ */
+ protected static final String SCOPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getScope() <em>Scope</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getScope()
+ * @generated
+ * @ordered
+ */
+ protected String scope = SCOPE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getSystemPath() <em>System Path</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getSystemPath()
+ * @generated
+ * @ordered
+ */
+ protected static final String SYSTEM_PATH_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSystemPath() <em>System Path</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getSystemPath()
+ * @generated
+ * @ordered
+ */
+ protected String systemPath = SYSTEM_PATH_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getExclusions() <em>Exclusions</em>}' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getExclusions()
+ * @generated
+ * @ordered
+ */
+ protected EList<Exclusion> exclusions;
+
+ /**
+ * The default value of the '{@link #getOptional() <em>Optional</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getOptional()
+ * @generated
+ * @ordered
+ */
+ protected static final String OPTIONAL_EDEFAULT = "false"; //$NON-NLS-1$
+
+ /**
+ * The cached value of the '{@link #getOptional() <em>Optional</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getOptional()
+ * @generated
+ * @ordered
+ */
+ protected String optional = OPTIONAL_EDEFAULT;
+
+ /**
+ * This is true if the Optional attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean optionalESet;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DependencyImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.DEPENDENCY;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getGroupId() {
+ return groupId;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setGroupId(String newGroupId) {
+ String oldGroupId = groupId;
+ groupId = newGroupId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEPENDENCY__GROUP_ID, oldGroupId, groupId));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getArtifactId() {
+ return artifactId;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setArtifactId(String newArtifactId) {
+ String oldArtifactId = artifactId;
+ artifactId = newArtifactId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEPENDENCY__ARTIFACT_ID, oldArtifactId,
+ artifactId));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setVersion(String newVersion) {
+ String oldVersion = version;
+ version = newVersion;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEPENDENCY__VERSION, oldVersion, version));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setType(String newType) {
+ String oldType = type;
+ type = newType;
+ boolean oldTypeESet = typeESet;
+ typeESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEPENDENCY__TYPE, oldType, type, !oldTypeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetType() {
+ String oldType = type;
+ boolean oldTypeESet = typeESet;
+ type = TYPE_EDEFAULT;
+ typeESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.DEPENDENCY__TYPE, oldType, TYPE_EDEFAULT,
+ oldTypeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetType() {
+ return typeESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getClassifier() {
+ return classifier;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setClassifier(String newClassifier) {
+ String oldClassifier = classifier;
+ classifier = newClassifier;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEPENDENCY__CLASSIFIER, oldClassifier,
+ classifier));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getScope() {
+ return scope;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setScope(String newScope) {
+ String oldScope = scope;
+ scope = newScope;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEPENDENCY__SCOPE, oldScope, scope));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getSystemPath() {
+ return systemPath;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setSystemPath(String newSystemPath) {
+ String oldSystemPath = systemPath;
+ systemPath = newSystemPath;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEPENDENCY__SYSTEM_PATH, oldSystemPath,
+ systemPath));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Exclusion> getExclusions() {
+ if(exclusions == null) {
+ exclusions = new EObjectContainmentEList.Unsettable<Exclusion>(Exclusion.class, this,
+ PomPackage.DEPENDENCY__EXCLUSIONS);
+ }
+ return exclusions;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetExclusions() {
+ if(exclusions != null)
+ ((InternalEList.Unsettable<?>) exclusions).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetExclusions() {
+ return exclusions != null && ((InternalEList.Unsettable<?>) exclusions).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getOptional() {
+ return optional;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setOptional(String newOptional) {
+ String oldOptional = optional;
+ optional = newOptional;
+ boolean oldOptionalESet = optionalESet;
+ optionalESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEPENDENCY__OPTIONAL, oldOptional, optional,
+ !oldOptionalESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetOptional() {
+ String oldOptional = optional;
+ boolean oldOptionalESet = optionalESet;
+ optional = OPTIONAL_EDEFAULT;
+ optionalESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.DEPENDENCY__OPTIONAL, oldOptional,
+ OPTIONAL_EDEFAULT, oldOptionalESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetOptional() {
+ return optionalESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.DEPENDENCY__EXCLUSIONS:
+ return ((InternalEList<?>) getExclusions()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.DEPENDENCY__GROUP_ID:
+ return getGroupId();
+ case PomPackage.DEPENDENCY__ARTIFACT_ID:
+ return getArtifactId();
+ case PomPackage.DEPENDENCY__VERSION:
+ return getVersion();
+ case PomPackage.DEPENDENCY__TYPE:
+ return getType();
+ case PomPackage.DEPENDENCY__CLASSIFIER:
+ return getClassifier();
+ case PomPackage.DEPENDENCY__SCOPE:
+ return getScope();
+ case PomPackage.DEPENDENCY__SYSTEM_PATH:
+ return getSystemPath();
+ case PomPackage.DEPENDENCY__EXCLUSIONS:
+ return getExclusions();
+ case PomPackage.DEPENDENCY__OPTIONAL:
+ return getOptional();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.DEPENDENCY__GROUP_ID:
+ setGroupId((String) newValue);
+ return;
+ case PomPackage.DEPENDENCY__ARTIFACT_ID:
+ setArtifactId((String) newValue);
+ return;
+ case PomPackage.DEPENDENCY__VERSION:
+ setVersion((String) newValue);
+ return;
+ case PomPackage.DEPENDENCY__TYPE:
+ setType((String) newValue);
+ return;
+ case PomPackage.DEPENDENCY__CLASSIFIER:
+ setClassifier((String) newValue);
+ return;
+ case PomPackage.DEPENDENCY__SCOPE:
+ setScope((String) newValue);
+ return;
+ case PomPackage.DEPENDENCY__SYSTEM_PATH:
+ setSystemPath((String) newValue);
+ return;
+ case PomPackage.DEPENDENCY__EXCLUSIONS:
+ getExclusions().clear();
+ getExclusions().addAll((Collection<? extends Exclusion>) newValue);
+ return;
+ case PomPackage.DEPENDENCY__OPTIONAL:
+ setOptional((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.DEPENDENCY__GROUP_ID:
+ setGroupId(GROUP_ID_EDEFAULT);
+ return;
+ case PomPackage.DEPENDENCY__ARTIFACT_ID:
+ setArtifactId(ARTIFACT_ID_EDEFAULT);
+ return;
+ case PomPackage.DEPENDENCY__VERSION:
+ setVersion(VERSION_EDEFAULT);
+ return;
+ case PomPackage.DEPENDENCY__TYPE:
+ unsetType();
+ return;
+ case PomPackage.DEPENDENCY__CLASSIFIER:
+ setClassifier(CLASSIFIER_EDEFAULT);
+ return;
+ case PomPackage.DEPENDENCY__SCOPE:
+ setScope(SCOPE_EDEFAULT);
+ return;
+ case PomPackage.DEPENDENCY__SYSTEM_PATH:
+ setSystemPath(SYSTEM_PATH_EDEFAULT);
+ return;
+ case PomPackage.DEPENDENCY__EXCLUSIONS:
+ unsetExclusions();
+ return;
+ case PomPackage.DEPENDENCY__OPTIONAL:
+ unsetOptional();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.DEPENDENCY__GROUP_ID:
+ return GROUP_ID_EDEFAULT == null ? groupId != null : !GROUP_ID_EDEFAULT.equals(groupId);
+ case PomPackage.DEPENDENCY__ARTIFACT_ID:
+ return ARTIFACT_ID_EDEFAULT == null ? artifactId != null : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
+ case PomPackage.DEPENDENCY__VERSION:
+ return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version);
+ case PomPackage.DEPENDENCY__TYPE:
+ return isSetType();
+ case PomPackage.DEPENDENCY__CLASSIFIER:
+ return CLASSIFIER_EDEFAULT == null ? classifier != null : !CLASSIFIER_EDEFAULT.equals(classifier);
+ case PomPackage.DEPENDENCY__SCOPE:
+ return SCOPE_EDEFAULT == null ? scope != null : !SCOPE_EDEFAULT.equals(scope);
+ case PomPackage.DEPENDENCY__SYSTEM_PATH:
+ return SYSTEM_PATH_EDEFAULT == null ? systemPath != null : !SYSTEM_PATH_EDEFAULT.equals(systemPath);
+ case PomPackage.DEPENDENCY__EXCLUSIONS:
+ return isSetExclusions();
+ case PomPackage.DEPENDENCY__OPTIONAL:
+ return isSetOptional();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (groupId: "); //$NON-NLS-1$
+ result.append(groupId);
+ result.append(", artifactId: "); //$NON-NLS-1$
+ result.append(artifactId);
+ result.append(", version: "); //$NON-NLS-1$
+ result.append(version);
+ result.append(", type: "); //$NON-NLS-1$
+ if(typeESet)
+ result.append(type);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", classifier: "); //$NON-NLS-1$
+ result.append(classifier);
+ result.append(", scope: "); //$NON-NLS-1$
+ result.append(scope);
+ result.append(", systemPath: "); //$NON-NLS-1$
+ result.append(systemPath);
+ result.append(", optional: "); //$NON-NLS-1$
+ if(optionalESet)
+ result.append(optional);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(')');
+ return result.toString();
+ }
} // DependencyImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DependencyManagementImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DependencyManagementImpl.java
index 45a89a1a..62e7f3d7 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DependencyManagementImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DependencyManagementImpl.java
@@ -14,176 +14,165 @@ package org.eclipse.m2e.model.edit.pom.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.Dependency;
import org.eclipse.m2e.model.edit.pom.DependencyManagement;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Dependency Management</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Dependency Management</b></em>'. <!--
+ * end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.DependencyManagementImpl#getDependencies
- * <em>Dependencies</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.DependencyManagementImpl#getDependencies <em>Dependencies</em>}</li>
* </ul>
* </p>
*
* @generated
*/
-public class DependencyManagementImpl extends EObjectImpl implements
- DependencyManagement {
- /**
- * The cached value of the '{@link #getDependencies() <em>Dependencies</em>}
- * ' containment reference list. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #getDependencies()
- * @generated
- * @ordered
- */
- protected EList<Dependency> dependencies;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DependencyManagementImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.DEPENDENCY_MANAGEMENT;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Dependency> getDependencies() {
- if (dependencies == null) {
- dependencies = new EObjectContainmentEList.Unsettable<Dependency>(
- Dependency.class, this,
- PomPackage.DEPENDENCY_MANAGEMENT__DEPENDENCIES);
- }
- return dependencies;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetDependencies() {
- if (dependencies != null)
- ((InternalEList.Unsettable<?>) dependencies).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetDependencies() {
- return dependencies != null
- && ((InternalEList.Unsettable<?>) dependencies).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.DEPENDENCY_MANAGEMENT__DEPENDENCIES:
- return ((InternalEList<?>) getDependencies()).basicRemove(otherEnd,
- msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.DEPENDENCY_MANAGEMENT__DEPENDENCIES:
- return getDependencies();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.DEPENDENCY_MANAGEMENT__DEPENDENCIES:
- getDependencies().clear();
- getDependencies().addAll(
- (Collection<? extends Dependency>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.DEPENDENCY_MANAGEMENT__DEPENDENCIES:
- unsetDependencies();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.DEPENDENCY_MANAGEMENT__DEPENDENCIES:
- return isSetDependencies();
- }
- return super.eIsSet(featureID);
- }
+public class DependencyManagementImpl extends EObjectImpl implements DependencyManagement {
+ /**
+ * The cached value of the '{@link #getDependencies() <em>Dependencies</em>} ' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getDependencies()
+ * @generated
+ * @ordered
+ */
+ protected EList<Dependency> dependencies;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DependencyManagementImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.DEPENDENCY_MANAGEMENT;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Dependency> getDependencies() {
+ if(dependencies == null) {
+ dependencies = new EObjectContainmentEList.Unsettable<Dependency>(Dependency.class, this,
+ PomPackage.DEPENDENCY_MANAGEMENT__DEPENDENCIES);
+ }
+ return dependencies;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetDependencies() {
+ if(dependencies != null)
+ ((InternalEList.Unsettable<?>) dependencies).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetDependencies() {
+ return dependencies != null && ((InternalEList.Unsettable<?>) dependencies).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.DEPENDENCY_MANAGEMENT__DEPENDENCIES:
+ return ((InternalEList<?>) getDependencies()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.DEPENDENCY_MANAGEMENT__DEPENDENCIES:
+ return getDependencies();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.DEPENDENCY_MANAGEMENT__DEPENDENCIES:
+ getDependencies().clear();
+ getDependencies().addAll((Collection<? extends Dependency>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.DEPENDENCY_MANAGEMENT__DEPENDENCIES:
+ unsetDependencies();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.DEPENDENCY_MANAGEMENT__DEPENDENCIES:
+ return isSetDependencies();
+ }
+ return super.eIsSet(featureID);
+ }
} // DependencyManagementImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DeploymentRepositoryImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DeploymentRepositoryImpl.java
index 9110e681..ef9f9e41 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DeploymentRepositoryImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DeploymentRepositoryImpl.java
@@ -12,476 +12,450 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.DeploymentRepository;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Deployment Repository</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Deployment Repository</b></em>'. <!--
+ * end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl#getUniqueVersion
- * <em>Unique Version</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl#getId
- * <em>Id</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl#getUniqueVersion <em>Unique Version</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl#getId <em>Id</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl#getName
- * <em>Name</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl#getUrl
- * <em>Url</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl#getUrl <em>Url</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl#getLayout
- * <em>Layout</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.DeploymentRepositoryImpl#getLayout <em>Layout</em>}</li>
* </ul>
* </p>
*
* @generated
*/
-public class DeploymentRepositoryImpl extends EObjectImpl implements
- DeploymentRepository {
- /**
- * The default value of the '{@link #getUniqueVersion()
- * <em>Unique Version</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getUniqueVersion()
- * @generated
- * @ordered
- */
- protected static final String UNIQUE_VERSION_EDEFAULT = "true"; //$NON-NLS-1$
-
- /**
- * The cached value of the '{@link #getUniqueVersion()
- * <em>Unique Version</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getUniqueVersion()
- * @generated
- * @ordered
- */
- protected String uniqueVersion = UNIQUE_VERSION_EDEFAULT;
-
- /**
- * This is true if the Unique Version attribute has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean uniqueVersionESet;
-
- /**
- * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected static final String ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected String id = ID_EDEFAULT;
-
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected static final String URL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected String url = URL_EDEFAULT;
-
- /**
- * The default value of the '{@link #getLayout() <em>Layout</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getLayout()
- * @generated
- * @ordered
- */
- protected static final String LAYOUT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLayout() <em>Layout</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getLayout()
- * @generated
- * @ordered
- */
- protected String layout = LAYOUT_EDEFAULT;
-
- /**
- * This is true if the Layout attribute has been set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean layoutESet;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DeploymentRepositoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.DEPLOYMENT_REPOSITORY;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getUniqueVersion() {
- return uniqueVersion;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setUniqueVersion(String newUniqueVersion) {
- String oldUniqueVersion = uniqueVersion;
- uniqueVersion = newUniqueVersion;
- boolean oldUniqueVersionESet = uniqueVersionESet;
- uniqueVersionESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION,
- oldUniqueVersion, uniqueVersion, !oldUniqueVersionESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetUniqueVersion() {
- String oldUniqueVersion = uniqueVersion;
- boolean oldUniqueVersionESet = uniqueVersionESet;
- uniqueVersion = UNIQUE_VERSION_EDEFAULT;
- uniqueVersionESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION,
- oldUniqueVersion, UNIQUE_VERSION_EDEFAULT,
- oldUniqueVersionESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetUniqueVersion() {
- return uniqueVersionESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getId() {
- return id;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setId(String newId) {
- String oldId = id;
- id = newId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEPLOYMENT_REPOSITORY__ID, oldId, id));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEPLOYMENT_REPOSITORY__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getUrl() {
- return url;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setUrl(String newUrl) {
- String oldUrl = url;
- url = newUrl;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEPLOYMENT_REPOSITORY__URL, oldUrl, url));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getLayout() {
- return layout;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setLayout(String newLayout) {
- String oldLayout = layout;
- layout = newLayout;
- boolean oldLayoutESet = layoutESet;
- layoutESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEPLOYMENT_REPOSITORY__LAYOUT, oldLayout,
- layout, !oldLayoutESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetLayout() {
- String oldLayout = layout;
- boolean oldLayoutESet = layoutESet;
- layout = LAYOUT_EDEFAULT;
- layoutESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.DEPLOYMENT_REPOSITORY__LAYOUT, oldLayout,
- LAYOUT_EDEFAULT, oldLayoutESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetLayout() {
- return layoutESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION:
- return getUniqueVersion();
- case PomPackage.DEPLOYMENT_REPOSITORY__ID:
- return getId();
- case PomPackage.DEPLOYMENT_REPOSITORY__NAME:
- return getName();
- case PomPackage.DEPLOYMENT_REPOSITORY__URL:
- return getUrl();
- case PomPackage.DEPLOYMENT_REPOSITORY__LAYOUT:
- return getLayout();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION:
- setUniqueVersion((String) newValue);
- return;
- case PomPackage.DEPLOYMENT_REPOSITORY__ID:
- setId((String) newValue);
- return;
- case PomPackage.DEPLOYMENT_REPOSITORY__NAME:
- setName((String) newValue);
- return;
- case PomPackage.DEPLOYMENT_REPOSITORY__URL:
- setUrl((String) newValue);
- return;
- case PomPackage.DEPLOYMENT_REPOSITORY__LAYOUT:
- setLayout((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION:
- unsetUniqueVersion();
- return;
- case PomPackage.DEPLOYMENT_REPOSITORY__ID:
- setId(ID_EDEFAULT);
- return;
- case PomPackage.DEPLOYMENT_REPOSITORY__NAME:
- setName(NAME_EDEFAULT);
- return;
- case PomPackage.DEPLOYMENT_REPOSITORY__URL:
- setUrl(URL_EDEFAULT);
- return;
- case PomPackage.DEPLOYMENT_REPOSITORY__LAYOUT:
- unsetLayout();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION:
- return isSetUniqueVersion();
- case PomPackage.DEPLOYMENT_REPOSITORY__ID:
- return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
- case PomPackage.DEPLOYMENT_REPOSITORY__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT
- .equals(name);
- case PomPackage.DEPLOYMENT_REPOSITORY__URL:
- return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT
- .equals(url);
- case PomPackage.DEPLOYMENT_REPOSITORY__LAYOUT:
- return isSetLayout();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (uniqueVersion: "); //$NON-NLS-1$
- if (uniqueVersionESet)
- result.append(uniqueVersion);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", id: "); //$NON-NLS-1$
- result.append(id);
- result.append(", name: "); //$NON-NLS-1$
- result.append(name);
- result.append(", url: "); //$NON-NLS-1$
- result.append(url);
- result.append(", layout: "); //$NON-NLS-1$
- if (layoutESet)
- result.append(layout);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(')');
- return result.toString();
- }
+public class DeploymentRepositoryImpl extends EObjectImpl implements DeploymentRepository {
+ /**
+ * The default value of the '{@link #getUniqueVersion() <em>Unique Version</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getUniqueVersion()
+ * @generated
+ * @ordered
+ */
+ protected static final String UNIQUE_VERSION_EDEFAULT = "true"; //$NON-NLS-1$
+
+ /**
+ * The cached value of the '{@link #getUniqueVersion() <em>Unique Version</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getUniqueVersion()
+ * @generated
+ * @ordered
+ */
+ protected String uniqueVersion = UNIQUE_VERSION_EDEFAULT;
+
+ /**
+ * This is true if the Unique Version attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean uniqueVersionESet;
+
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String URL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected String url = URL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getLayout() <em>Layout</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getLayout()
+ * @generated
+ * @ordered
+ */
+ protected static final String LAYOUT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getLayout() <em>Layout</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getLayout()
+ * @generated
+ * @ordered
+ */
+ protected String layout = LAYOUT_EDEFAULT;
+
+ /**
+ * This is true if the Layout attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean layoutESet;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DeploymentRepositoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.DEPLOYMENT_REPOSITORY;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getUniqueVersion() {
+ return uniqueVersion;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setUniqueVersion(String newUniqueVersion) {
+ String oldUniqueVersion = uniqueVersion;
+ uniqueVersion = newUniqueVersion;
+ boolean oldUniqueVersionESet = uniqueVersionESet;
+ uniqueVersionESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION,
+ oldUniqueVersion, uniqueVersion, !oldUniqueVersionESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetUniqueVersion() {
+ String oldUniqueVersion = uniqueVersion;
+ boolean oldUniqueVersionESet = uniqueVersionESet;
+ uniqueVersion = UNIQUE_VERSION_EDEFAULT;
+ uniqueVersionESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION,
+ oldUniqueVersion, UNIQUE_VERSION_EDEFAULT, oldUniqueVersionESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetUniqueVersion() {
+ return uniqueVersionESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEPLOYMENT_REPOSITORY__ID, oldId, id));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEPLOYMENT_REPOSITORY__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getUrl() {
+ return url;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setUrl(String newUrl) {
+ String oldUrl = url;
+ url = newUrl;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEPLOYMENT_REPOSITORY__URL, oldUrl, url));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getLayout() {
+ return layout;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setLayout(String newLayout) {
+ String oldLayout = layout;
+ layout = newLayout;
+ boolean oldLayoutESet = layoutESet;
+ layoutESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEPLOYMENT_REPOSITORY__LAYOUT, oldLayout,
+ layout, !oldLayoutESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetLayout() {
+ String oldLayout = layout;
+ boolean oldLayoutESet = layoutESet;
+ layout = LAYOUT_EDEFAULT;
+ layoutESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.DEPLOYMENT_REPOSITORY__LAYOUT, oldLayout,
+ LAYOUT_EDEFAULT, oldLayoutESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetLayout() {
+ return layoutESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION:
+ return getUniqueVersion();
+ case PomPackage.DEPLOYMENT_REPOSITORY__ID:
+ return getId();
+ case PomPackage.DEPLOYMENT_REPOSITORY__NAME:
+ return getName();
+ case PomPackage.DEPLOYMENT_REPOSITORY__URL:
+ return getUrl();
+ case PomPackage.DEPLOYMENT_REPOSITORY__LAYOUT:
+ return getLayout();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION:
+ setUniqueVersion((String) newValue);
+ return;
+ case PomPackage.DEPLOYMENT_REPOSITORY__ID:
+ setId((String) newValue);
+ return;
+ case PomPackage.DEPLOYMENT_REPOSITORY__NAME:
+ setName((String) newValue);
+ return;
+ case PomPackage.DEPLOYMENT_REPOSITORY__URL:
+ setUrl((String) newValue);
+ return;
+ case PomPackage.DEPLOYMENT_REPOSITORY__LAYOUT:
+ setLayout((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION:
+ unsetUniqueVersion();
+ return;
+ case PomPackage.DEPLOYMENT_REPOSITORY__ID:
+ setId(ID_EDEFAULT);
+ return;
+ case PomPackage.DEPLOYMENT_REPOSITORY__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case PomPackage.DEPLOYMENT_REPOSITORY__URL:
+ setUrl(URL_EDEFAULT);
+ return;
+ case PomPackage.DEPLOYMENT_REPOSITORY__LAYOUT:
+ unsetLayout();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION:
+ return isSetUniqueVersion();
+ case PomPackage.DEPLOYMENT_REPOSITORY__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case PomPackage.DEPLOYMENT_REPOSITORY__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case PomPackage.DEPLOYMENT_REPOSITORY__URL:
+ return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url);
+ case PomPackage.DEPLOYMENT_REPOSITORY__LAYOUT:
+ return isSetLayout();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (uniqueVersion: "); //$NON-NLS-1$
+ if(uniqueVersionESet)
+ result.append(uniqueVersion);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", id: "); //$NON-NLS-1$
+ result.append(id);
+ result.append(", name: "); //$NON-NLS-1$
+ result.append(name);
+ result.append(", url: "); //$NON-NLS-1$
+ result.append(url);
+ result.append(", layout: "); //$NON-NLS-1$
+ if(layoutESet)
+ result.append(layout);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(')');
+ return result.toString();
+ }
} // DeploymentRepositoryImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DeveloperImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DeveloperImpl.java
index de8844fa..b932f202 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DeveloperImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DeveloperImpl.java
@@ -15,651 +15,612 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EDataTypeEList;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.Developer;
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.PropertyElement;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Developer</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Developer</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getId <em>Id</em>}
- * </li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getName <em>Name
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getEmail <em>Email
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getUrl <em>Url
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getOrganization
- * <em>Organization</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getId <em>Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getName <em>Name </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getEmail <em>Email </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getUrl <em>Url </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getOrganization <em>Organization</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getOrganizationUrl
- * <em>Organization Url</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getTimezone <em>
- * Timezone</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getProperties <em>
- * Properties</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getRoles <em>Roles
- * </em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getOrganizationUrl <em>Organization Url</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getTimezone <em> Timezone</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getProperties <em> Properties</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DeveloperImpl#getRoles <em>Roles </em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class DeveloperImpl extends EObjectImpl implements Developer {
- /**
- * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected static final String ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected String id = ID_EDEFAULT;
-
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getEmail() <em>Email</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getEmail()
- * @generated
- * @ordered
- */
- protected static final String EMAIL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getEmail() <em>Email</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getEmail()
- * @generated
- * @ordered
- */
- protected String email = EMAIL_EDEFAULT;
-
- /**
- * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected static final String URL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected String url = URL_EDEFAULT;
-
- /**
- * The default value of the '{@link #getOrganization()
- * <em>Organization</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getOrganization()
- * @generated
- * @ordered
- */
- protected static final String ORGANIZATION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getOrganization() <em>Organization</em>}
- * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getOrganization()
- * @generated
- * @ordered
- */
- protected String organization = ORGANIZATION_EDEFAULT;
-
- /**
- * The default value of the '{@link #getOrganizationUrl()
- * <em>Organization Url</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getOrganizationUrl()
- * @generated
- * @ordered
- */
- protected static final String ORGANIZATION_URL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getOrganizationUrl()
- * <em>Organization Url</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getOrganizationUrl()
- * @generated
- * @ordered
- */
- protected String organizationUrl = ORGANIZATION_URL_EDEFAULT;
-
- /**
- * The default value of the '{@link #getTimezone() <em>Timezone</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getTimezone()
- * @generated
- * @ordered
- */
- protected static final String TIMEZONE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTimezone() <em>Timezone</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getTimezone()
- * @generated
- * @ordered
- */
- protected String timezone = TIMEZONE_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getProperties() <em>Properties</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getProperties()
- * @generated
- * @ordered
- */
- protected EList<PropertyElement> properties;
-
- /**
- * The cached value of the '{@link #getRoles() <em>Roles</em>}' attribute
- * list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getRoles()
- * @generated
- * @ordered
- */
- protected EList<String> roles;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DeveloperImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.DEVELOPER;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getId() {
- return id;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setId(String newId) {
- String oldId = id;
- id = newId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEVELOPER__ID, oldId, id));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEVELOPER__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getEmail() {
- return email;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setEmail(String newEmail) {
- String oldEmail = email;
- email = newEmail;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEVELOPER__EMAIL, oldEmail, email));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getUrl() {
- return url;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setUrl(String newUrl) {
- String oldUrl = url;
- url = newUrl;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEVELOPER__URL, oldUrl, url));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getOrganization() {
- return organization;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setOrganization(String newOrganization) {
- String oldOrganization = organization;
- organization = newOrganization;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEVELOPER__ORGANIZATION, oldOrganization,
- organization));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getOrganizationUrl() {
- return organizationUrl;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setOrganizationUrl(String newOrganizationUrl) {
- String oldOrganizationUrl = organizationUrl;
- organizationUrl = newOrganizationUrl;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEVELOPER__ORGANIZATION_URL, oldOrganizationUrl,
- organizationUrl));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getTimezone() {
- return timezone;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setTimezone(String newTimezone) {
- String oldTimezone = timezone;
- timezone = newTimezone;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DEVELOPER__TIMEZONE, oldTimezone, timezone));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<PropertyElement> getProperties() {
- if (properties == null) {
- properties = new EObjectContainmentEList.Unsettable<PropertyElement>(
- PropertyElement.class, this,
- PomPackage.DEVELOPER__PROPERTIES);
- }
- return properties;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetProperties() {
- if (properties != null)
- ((InternalEList.Unsettable<?>) properties).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetProperties() {
- return properties != null
- && ((InternalEList.Unsettable<?>) properties).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getRoles() {
- if (roles == null) {
- roles = new EDataTypeEList.Unsettable<String>(String.class, this,
- PomPackage.DEVELOPER__ROLES);
- }
- return roles;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetRoles() {
- if (roles != null)
- ((InternalEList.Unsettable<?>) roles).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetRoles() {
- return roles != null && ((InternalEList.Unsettable<?>) roles).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.DEVELOPER__PROPERTIES:
- return ((InternalEList<?>) getProperties()).basicRemove(otherEnd,
- msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.DEVELOPER__ID:
- return getId();
- case PomPackage.DEVELOPER__NAME:
- return getName();
- case PomPackage.DEVELOPER__EMAIL:
- return getEmail();
- case PomPackage.DEVELOPER__URL:
- return getUrl();
- case PomPackage.DEVELOPER__ORGANIZATION:
- return getOrganization();
- case PomPackage.DEVELOPER__ORGANIZATION_URL:
- return getOrganizationUrl();
- case PomPackage.DEVELOPER__TIMEZONE:
- return getTimezone();
- case PomPackage.DEVELOPER__PROPERTIES:
- return getProperties();
- case PomPackage.DEVELOPER__ROLES:
- return getRoles();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.DEVELOPER__ID:
- setId((String) newValue);
- return;
- case PomPackage.DEVELOPER__NAME:
- setName((String) newValue);
- return;
- case PomPackage.DEVELOPER__EMAIL:
- setEmail((String) newValue);
- return;
- case PomPackage.DEVELOPER__URL:
- setUrl((String) newValue);
- return;
- case PomPackage.DEVELOPER__ORGANIZATION:
- setOrganization((String) newValue);
- return;
- case PomPackage.DEVELOPER__ORGANIZATION_URL:
- setOrganizationUrl((String) newValue);
- return;
- case PomPackage.DEVELOPER__TIMEZONE:
- setTimezone((String) newValue);
- return;
- case PomPackage.DEVELOPER__PROPERTIES:
- getProperties().clear();
- getProperties().addAll(
- (Collection<? extends PropertyElement>) newValue);
- return;
- case PomPackage.DEVELOPER__ROLES:
- getRoles().clear();
- getRoles().addAll((Collection<? extends String>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.DEVELOPER__ID:
- setId(ID_EDEFAULT);
- return;
- case PomPackage.DEVELOPER__NAME:
- setName(NAME_EDEFAULT);
- return;
- case PomPackage.DEVELOPER__EMAIL:
- setEmail(EMAIL_EDEFAULT);
- return;
- case PomPackage.DEVELOPER__URL:
- setUrl(URL_EDEFAULT);
- return;
- case PomPackage.DEVELOPER__ORGANIZATION:
- setOrganization(ORGANIZATION_EDEFAULT);
- return;
- case PomPackage.DEVELOPER__ORGANIZATION_URL:
- setOrganizationUrl(ORGANIZATION_URL_EDEFAULT);
- return;
- case PomPackage.DEVELOPER__TIMEZONE:
- setTimezone(TIMEZONE_EDEFAULT);
- return;
- case PomPackage.DEVELOPER__PROPERTIES:
- unsetProperties();
- return;
- case PomPackage.DEVELOPER__ROLES:
- unsetRoles();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.DEVELOPER__ID:
- return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
- case PomPackage.DEVELOPER__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT
- .equals(name);
- case PomPackage.DEVELOPER__EMAIL:
- return EMAIL_EDEFAULT == null ? email != null : !EMAIL_EDEFAULT
- .equals(email);
- case PomPackage.DEVELOPER__URL:
- return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT
- .equals(url);
- case PomPackage.DEVELOPER__ORGANIZATION:
- return ORGANIZATION_EDEFAULT == null ? organization != null
- : !ORGANIZATION_EDEFAULT.equals(organization);
- case PomPackage.DEVELOPER__ORGANIZATION_URL:
- return ORGANIZATION_URL_EDEFAULT == null ? organizationUrl != null
- : !ORGANIZATION_URL_EDEFAULT.equals(organizationUrl);
- case PomPackage.DEVELOPER__TIMEZONE:
- return TIMEZONE_EDEFAULT == null ? timezone != null
- : !TIMEZONE_EDEFAULT.equals(timezone);
- case PomPackage.DEVELOPER__PROPERTIES:
- return isSetProperties();
- case PomPackage.DEVELOPER__ROLES:
- return isSetRoles();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (id: "); //$NON-NLS-1$
- result.append(id);
- result.append(", name: "); //$NON-NLS-1$
- result.append(name);
- result.append(", email: "); //$NON-NLS-1$
- result.append(email);
- result.append(", url: "); //$NON-NLS-1$
- result.append(url);
- result.append(", organization: "); //$NON-NLS-1$
- result.append(organization);
- result.append(", organizationUrl: "); //$NON-NLS-1$
- result.append(organizationUrl);
- result.append(", timezone: "); //$NON-NLS-1$
- result.append(timezone);
- result.append(", roles: "); //$NON-NLS-1$
- result.append(roles);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getEmail() <em>Email</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getEmail()
+ * @generated
+ * @ordered
+ */
+ protected static final String EMAIL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getEmail() <em>Email</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getEmail()
+ * @generated
+ * @ordered
+ */
+ protected String email = EMAIL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String URL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected String url = URL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getOrganization() <em>Organization</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getOrganization()
+ * @generated
+ * @ordered
+ */
+ protected static final String ORGANIZATION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOrganization() <em>Organization</em>} ' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getOrganization()
+ * @generated
+ * @ordered
+ */
+ protected String organization = ORGANIZATION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getOrganizationUrl() <em>Organization Url</em>}' attribute. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getOrganizationUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String ORGANIZATION_URL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOrganizationUrl() <em>Organization Url</em>}' attribute. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getOrganizationUrl()
+ * @generated
+ * @ordered
+ */
+ protected String organizationUrl = ORGANIZATION_URL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTimezone() <em>Timezone</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getTimezone()
+ * @generated
+ * @ordered
+ */
+ protected static final String TIMEZONE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTimezone() <em>Timezone</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getTimezone()
+ * @generated
+ * @ordered
+ */
+ protected String timezone = TIMEZONE_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getProperties()
+ * @generated
+ * @ordered
+ */
+ protected EList<PropertyElement> properties;
+
+ /**
+ * The cached value of the '{@link #getRoles() <em>Roles</em>}' attribute list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getRoles()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> roles;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DeveloperImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.DEVELOPER;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEVELOPER__ID, oldId, id));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEVELOPER__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getEmail() {
+ return email;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setEmail(String newEmail) {
+ String oldEmail = email;
+ email = newEmail;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEVELOPER__EMAIL, oldEmail, email));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getUrl() {
+ return url;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setUrl(String newUrl) {
+ String oldUrl = url;
+ url = newUrl;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEVELOPER__URL, oldUrl, url));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getOrganization() {
+ return organization;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setOrganization(String newOrganization) {
+ String oldOrganization = organization;
+ organization = newOrganization;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEVELOPER__ORGANIZATION, oldOrganization,
+ organization));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getOrganizationUrl() {
+ return organizationUrl;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setOrganizationUrl(String newOrganizationUrl) {
+ String oldOrganizationUrl = organizationUrl;
+ organizationUrl = newOrganizationUrl;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEVELOPER__ORGANIZATION_URL, oldOrganizationUrl,
+ organizationUrl));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getTimezone() {
+ return timezone;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setTimezone(String newTimezone) {
+ String oldTimezone = timezone;
+ timezone = newTimezone;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DEVELOPER__TIMEZONE, oldTimezone, timezone));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<PropertyElement> getProperties() {
+ if(properties == null) {
+ properties = new EObjectContainmentEList.Unsettable<PropertyElement>(PropertyElement.class, this,
+ PomPackage.DEVELOPER__PROPERTIES);
+ }
+ return properties;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetProperties() {
+ if(properties != null)
+ ((InternalEList.Unsettable<?>) properties).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetProperties() {
+ return properties != null && ((InternalEList.Unsettable<?>) properties).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<String> getRoles() {
+ if(roles == null) {
+ roles = new EDataTypeEList.Unsettable<String>(String.class, this, PomPackage.DEVELOPER__ROLES);
+ }
+ return roles;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetRoles() {
+ if(roles != null)
+ ((InternalEList.Unsettable<?>) roles).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetRoles() {
+ return roles != null && ((InternalEList.Unsettable<?>) roles).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.DEVELOPER__PROPERTIES:
+ return ((InternalEList<?>) getProperties()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.DEVELOPER__ID:
+ return getId();
+ case PomPackage.DEVELOPER__NAME:
+ return getName();
+ case PomPackage.DEVELOPER__EMAIL:
+ return getEmail();
+ case PomPackage.DEVELOPER__URL:
+ return getUrl();
+ case PomPackage.DEVELOPER__ORGANIZATION:
+ return getOrganization();
+ case PomPackage.DEVELOPER__ORGANIZATION_URL:
+ return getOrganizationUrl();
+ case PomPackage.DEVELOPER__TIMEZONE:
+ return getTimezone();
+ case PomPackage.DEVELOPER__PROPERTIES:
+ return getProperties();
+ case PomPackage.DEVELOPER__ROLES:
+ return getRoles();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.DEVELOPER__ID:
+ setId((String) newValue);
+ return;
+ case PomPackage.DEVELOPER__NAME:
+ setName((String) newValue);
+ return;
+ case PomPackage.DEVELOPER__EMAIL:
+ setEmail((String) newValue);
+ return;
+ case PomPackage.DEVELOPER__URL:
+ setUrl((String) newValue);
+ return;
+ case PomPackage.DEVELOPER__ORGANIZATION:
+ setOrganization((String) newValue);
+ return;
+ case PomPackage.DEVELOPER__ORGANIZATION_URL:
+ setOrganizationUrl((String) newValue);
+ return;
+ case PomPackage.DEVELOPER__TIMEZONE:
+ setTimezone((String) newValue);
+ return;
+ case PomPackage.DEVELOPER__PROPERTIES:
+ getProperties().clear();
+ getProperties().addAll((Collection<? extends PropertyElement>) newValue);
+ return;
+ case PomPackage.DEVELOPER__ROLES:
+ getRoles().clear();
+ getRoles().addAll((Collection<? extends String>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.DEVELOPER__ID:
+ setId(ID_EDEFAULT);
+ return;
+ case PomPackage.DEVELOPER__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case PomPackage.DEVELOPER__EMAIL:
+ setEmail(EMAIL_EDEFAULT);
+ return;
+ case PomPackage.DEVELOPER__URL:
+ setUrl(URL_EDEFAULT);
+ return;
+ case PomPackage.DEVELOPER__ORGANIZATION:
+ setOrganization(ORGANIZATION_EDEFAULT);
+ return;
+ case PomPackage.DEVELOPER__ORGANIZATION_URL:
+ setOrganizationUrl(ORGANIZATION_URL_EDEFAULT);
+ return;
+ case PomPackage.DEVELOPER__TIMEZONE:
+ setTimezone(TIMEZONE_EDEFAULT);
+ return;
+ case PomPackage.DEVELOPER__PROPERTIES:
+ unsetProperties();
+ return;
+ case PomPackage.DEVELOPER__ROLES:
+ unsetRoles();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.DEVELOPER__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case PomPackage.DEVELOPER__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case PomPackage.DEVELOPER__EMAIL:
+ return EMAIL_EDEFAULT == null ? email != null : !EMAIL_EDEFAULT.equals(email);
+ case PomPackage.DEVELOPER__URL:
+ return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url);
+ case PomPackage.DEVELOPER__ORGANIZATION:
+ return ORGANIZATION_EDEFAULT == null ? organization != null : !ORGANIZATION_EDEFAULT.equals(organization);
+ case PomPackage.DEVELOPER__ORGANIZATION_URL:
+ return ORGANIZATION_URL_EDEFAULT == null ? organizationUrl != null : !ORGANIZATION_URL_EDEFAULT
+ .equals(organizationUrl);
+ case PomPackage.DEVELOPER__TIMEZONE:
+ return TIMEZONE_EDEFAULT == null ? timezone != null : !TIMEZONE_EDEFAULT.equals(timezone);
+ case PomPackage.DEVELOPER__PROPERTIES:
+ return isSetProperties();
+ case PomPackage.DEVELOPER__ROLES:
+ return isSetRoles();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (id: "); //$NON-NLS-1$
+ result.append(id);
+ result.append(", name: "); //$NON-NLS-1$
+ result.append(name);
+ result.append(", email: "); //$NON-NLS-1$
+ result.append(email);
+ result.append(", url: "); //$NON-NLS-1$
+ result.append(url);
+ result.append(", organization: "); //$NON-NLS-1$
+ result.append(organization);
+ result.append(", organizationUrl: "); //$NON-NLS-1$
+ result.append(organizationUrl);
+ result.append(", timezone: "); //$NON-NLS-1$
+ result.append(timezone);
+ result.append(", roles: "); //$NON-NLS-1$
+ result.append(roles);
+ result.append(')');
+ return result.toString();
+ }
} // DeveloperImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DistributionManagementImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DistributionManagementImpl.java
index f7e63600..fb7ce50d 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DistributionManagementImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DistributionManagementImpl.java
@@ -13,12 +13,11 @@ package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.DeploymentRepository;
import org.eclipse.m2e.model.edit.pom.DistributionManagement;
import org.eclipse.m2e.model.edit.pom.PomPackage;
@@ -27,868 +26,785 @@ import org.eclipse.m2e.model.edit.pom.Site;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Distribution Management</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Distribution Management</b></em>'. <!--
+ * end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl#getRepository
- * <em>Repository</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl#getRepository <em>Repository</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl#getSnapshotRepository
- * <em>Snapshot Repository</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl#getSnapshotRepository <em>Snapshot
+ * Repository</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl#getSite
- * <em>Site</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl#getSite <em>Site</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl#getDownloadUrl
- * <em>Download Url</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl#getDownloadUrl <em>Download Url</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl#getRelocation
- * <em>Relocation</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl#getRelocation <em>Relocation</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl#getStatus
- * <em>Status</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.DistributionManagementImpl#getStatus <em>Status</em>}</li>
* </ul>
* </p>
*
* @generated
*/
-public class DistributionManagementImpl extends EObjectImpl implements
- DistributionManagement {
- /**
- * The cached value of the '{@link #getRepository() <em>Repository</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getRepository()
- * @generated
- * @ordered
- */
- protected DeploymentRepository repository;
-
- /**
- * This is true if the Repository containment reference has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean repositoryESet;
-
- /**
- * The cached value of the '{@link #getSnapshotRepository()
- * <em>Snapshot Repository</em>}' containment reference. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #getSnapshotRepository()
- * @generated
- * @ordered
- */
- protected DeploymentRepository snapshotRepository;
-
- /**
- * This is true if the Snapshot Repository containment reference has been
- * set. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean snapshotRepositoryESet;
-
- /**
- * The cached value of the '{@link #getSite() <em>Site</em>}' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getSite()
- * @generated
- * @ordered
- */
- protected Site site;
-
- /**
- * This is true if the Site containment reference has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean siteESet;
-
- /**
- * The default value of the '{@link #getDownloadUrl() <em>Download Url</em>}
- * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDownloadUrl()
- * @generated
- * @ordered
- */
- protected static final String DOWNLOAD_URL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDownloadUrl() <em>Download Url</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDownloadUrl()
- * @generated
- * @ordered
- */
- protected String downloadUrl = DOWNLOAD_URL_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getRelocation() <em>Relocation</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getRelocation()
- * @generated
- * @ordered
- */
- protected Relocation relocation;
-
- /**
- * This is true if the Relocation containment reference has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean relocationESet;
-
- /**
- * The default value of the '{@link #getStatus() <em>Status</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getStatus()
- * @generated
- * @ordered
- */
- protected static final String STATUS_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getStatus()
- * @generated
- * @ordered
- */
- protected String status = STATUS_EDEFAULT;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DistributionManagementImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.DISTRIBUTION_MANAGEMENT;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DeploymentRepository getRepository() {
- return repository;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetRepository(
- DeploymentRepository newRepository, NotificationChain msgs) {
- DeploymentRepository oldRepository = repository;
- repository = newRepository;
- boolean oldRepositoryESet = repositoryESet;
- repositoryESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET,
- PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY,
- oldRepository, newRepository, !oldRepositoryESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setRepository(DeploymentRepository newRepository) {
- if (newRepository != repository) {
- NotificationChain msgs = null;
- if (repository != null)
- msgs = ((InternalEObject) repository)
- .eInverseRemove(
- this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY,
- null, msgs);
- if (newRepository != null)
- msgs = ((InternalEObject) newRepository)
- .eInverseAdd(
- this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY,
- null, msgs);
- msgs = basicSetRepository(newRepository, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldRepositoryESet = repositoryESet;
- repositoryESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY,
- newRepository, newRepository, !oldRepositoryESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetRepository(NotificationChain msgs) {
- DeploymentRepository oldRepository = repository;
- repository = null;
- boolean oldRepositoryESet = repositoryESet;
- repositoryESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET,
- PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY,
- oldRepository, null, oldRepositoryESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetRepository() {
- if (repository != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) repository).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY,
- null, msgs);
- msgs = basicUnsetRepository(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldRepositoryESet = repositoryESet;
- repositoryESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY, null,
- null, oldRepositoryESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetRepository() {
- return repositoryESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DeploymentRepository getSnapshotRepository() {
- return snapshotRepository;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetSnapshotRepository(
- DeploymentRepository newSnapshotRepository, NotificationChain msgs) {
- DeploymentRepository oldSnapshotRepository = snapshotRepository;
- snapshotRepository = newSnapshotRepository;
- boolean oldSnapshotRepositoryESet = snapshotRepositoryESet;
- snapshotRepositoryESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET,
- PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY,
- oldSnapshotRepository, newSnapshotRepository,
- !oldSnapshotRepositoryESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setSnapshotRepository(DeploymentRepository newSnapshotRepository) {
- if (newSnapshotRepository != snapshotRepository) {
- NotificationChain msgs = null;
- if (snapshotRepository != null)
- msgs = ((InternalEObject) snapshotRepository)
- .eInverseRemove(
- this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY,
- null, msgs);
- if (newSnapshotRepository != null)
- msgs = ((InternalEObject) newSnapshotRepository)
- .eInverseAdd(
- this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY,
- null, msgs);
- msgs = basicSetSnapshotRepository(newSnapshotRepository, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldSnapshotRepositoryESet = snapshotRepositoryESet;
- snapshotRepositoryESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(
- this,
- Notification.SET,
- PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY,
- newSnapshotRepository, newSnapshotRepository,
- !oldSnapshotRepositoryESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetSnapshotRepository(NotificationChain msgs) {
- DeploymentRepository oldSnapshotRepository = snapshotRepository;
- snapshotRepository = null;
- boolean oldSnapshotRepositoryESet = snapshotRepositoryESet;
- snapshotRepositoryESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET,
- PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY,
- oldSnapshotRepository, null, oldSnapshotRepositoryESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetSnapshotRepository() {
- if (snapshotRepository != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) snapshotRepository)
- .eInverseRemove(
- this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY,
- null, msgs);
- msgs = basicUnsetSnapshotRepository(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldSnapshotRepositoryESet = snapshotRepositoryESet;
- snapshotRepositoryESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(
- this,
- Notification.UNSET,
- PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY,
- null, null, oldSnapshotRepositoryESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetSnapshotRepository() {
- return snapshotRepositoryESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Site getSite() {
- return site;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetSite(Site newSite, NotificationChain msgs) {
- Site oldSite = site;
- site = newSite;
- boolean oldSiteESet = siteESet;
- siteESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.DISTRIBUTION_MANAGEMENT__SITE,
- oldSite, newSite, !oldSiteESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setSite(Site newSite) {
- if (newSite != site) {
- NotificationChain msgs = null;
- if (site != null)
- msgs = ((InternalEObject) site).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.DISTRIBUTION_MANAGEMENT__SITE,
- null, msgs);
- if (newSite != null)
- msgs = ((InternalEObject) newSite).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.DISTRIBUTION_MANAGEMENT__SITE,
- null, msgs);
- msgs = basicSetSite(newSite, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldSiteESet = siteESet;
- siteESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DISTRIBUTION_MANAGEMENT__SITE, newSite,
- newSite, !oldSiteESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetSite(NotificationChain msgs) {
- Site oldSite = site;
- site = null;
- boolean oldSiteESet = siteESet;
- siteESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET,
- PomPackage.DISTRIBUTION_MANAGEMENT__SITE, oldSite, null,
- oldSiteESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetSite() {
- if (site != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) site).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.DISTRIBUTION_MANAGEMENT__SITE, null,
- msgs);
- msgs = basicUnsetSite(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldSiteESet = siteESet;
- siteESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.DISTRIBUTION_MANAGEMENT__SITE, null, null,
- oldSiteESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetSite() {
- return siteESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getDownloadUrl() {
- return downloadUrl;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDownloadUrl(String newDownloadUrl) {
- String oldDownloadUrl = downloadUrl;
- downloadUrl = newDownloadUrl;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL,
- oldDownloadUrl, downloadUrl));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Relocation getRelocation() {
- return relocation;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetRelocation(Relocation newRelocation,
- NotificationChain msgs) {
- Relocation oldRelocation = relocation;
- relocation = newRelocation;
- boolean oldRelocationESet = relocationESet;
- relocationESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET,
- PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION,
- oldRelocation, newRelocation, !oldRelocationESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setRelocation(Relocation newRelocation) {
- if (newRelocation != relocation) {
- NotificationChain msgs = null;
- if (relocation != null)
- msgs = ((InternalEObject) relocation)
- .eInverseRemove(
- this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION,
- null, msgs);
- if (newRelocation != null)
- msgs = ((InternalEObject) newRelocation)
- .eInverseAdd(
- this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION,
- null, msgs);
- msgs = basicSetRelocation(newRelocation, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldRelocationESet = relocationESet;
- relocationESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION,
- newRelocation, newRelocation, !oldRelocationESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetRelocation(NotificationChain msgs) {
- Relocation oldRelocation = relocation;
- relocation = null;
- boolean oldRelocationESet = relocationESet;
- relocationESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET,
- PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION,
- oldRelocation, null, oldRelocationESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetRelocation() {
- if (relocation != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) relocation).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION,
- null, msgs);
- msgs = basicUnsetRelocation(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldRelocationESet = relocationESet;
- relocationESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION, null,
- null, oldRelocationESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetRelocation() {
- return relocationESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getStatus() {
- return status;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setStatus(String newStatus) {
- String oldStatus = status;
- status = newStatus;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.DISTRIBUTION_MANAGEMENT__STATUS, oldStatus,
- status));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY:
- return basicUnsetRepository(msgs);
- case PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY:
- return basicUnsetSnapshotRepository(msgs);
- case PomPackage.DISTRIBUTION_MANAGEMENT__SITE:
- return basicUnsetSite(msgs);
- case PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION:
- return basicUnsetRelocation(msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY:
- return getRepository();
- case PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY:
- return getSnapshotRepository();
- case PomPackage.DISTRIBUTION_MANAGEMENT__SITE:
- return getSite();
- case PomPackage.DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL:
- return getDownloadUrl();
- case PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION:
- return getRelocation();
- case PomPackage.DISTRIBUTION_MANAGEMENT__STATUS:
- return getStatus();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY:
- setRepository((DeploymentRepository) newValue);
- return;
- case PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY:
- setSnapshotRepository((DeploymentRepository) newValue);
- return;
- case PomPackage.DISTRIBUTION_MANAGEMENT__SITE:
- setSite((Site) newValue);
- return;
- case PomPackage.DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL:
- setDownloadUrl((String) newValue);
- return;
- case PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION:
- setRelocation((Relocation) newValue);
- return;
- case PomPackage.DISTRIBUTION_MANAGEMENT__STATUS:
- setStatus((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY:
- unsetRepository();
- return;
- case PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY:
- unsetSnapshotRepository();
- return;
- case PomPackage.DISTRIBUTION_MANAGEMENT__SITE:
- unsetSite();
- return;
- case PomPackage.DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL:
- setDownloadUrl(DOWNLOAD_URL_EDEFAULT);
- return;
- case PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION:
- unsetRelocation();
- return;
- case PomPackage.DISTRIBUTION_MANAGEMENT__STATUS:
- setStatus(STATUS_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY:
- return isSetRepository();
- case PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY:
- return isSetSnapshotRepository();
- case PomPackage.DISTRIBUTION_MANAGEMENT__SITE:
- return isSetSite();
- case PomPackage.DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL:
- return DOWNLOAD_URL_EDEFAULT == null ? downloadUrl != null
- : !DOWNLOAD_URL_EDEFAULT.equals(downloadUrl);
- case PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION:
- return isSetRelocation();
- case PomPackage.DISTRIBUTION_MANAGEMENT__STATUS:
- return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT
- .equals(status);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (downloadUrl: "); //$NON-NLS-1$
- result.append(downloadUrl);
- result.append(", status: "); //$NON-NLS-1$
- result.append(status);
- result.append(')');
- return result.toString();
- }
+public class DistributionManagementImpl extends EObjectImpl implements DistributionManagement {
+ /**
+ * The cached value of the '{@link #getRepository() <em>Repository</em>}' containment reference. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getRepository()
+ * @generated
+ * @ordered
+ */
+ protected DeploymentRepository repository;
+
+ /**
+ * This is true if the Repository containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean repositoryESet;
+
+ /**
+ * The cached value of the '{@link #getSnapshotRepository() <em>Snapshot Repository</em>}' containment reference. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getSnapshotRepository()
+ * @generated
+ * @ordered
+ */
+ protected DeploymentRepository snapshotRepository;
+
+ /**
+ * This is true if the Snapshot Repository containment reference has been set. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean snapshotRepositoryESet;
+
+ /**
+ * The cached value of the '{@link #getSite() <em>Site</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getSite()
+ * @generated
+ * @ordered
+ */
+ protected Site site;
+
+ /**
+ * This is true if the Site containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean siteESet;
+
+ /**
+ * The default value of the '{@link #getDownloadUrl() <em>Download Url</em>} ' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getDownloadUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String DOWNLOAD_URL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDownloadUrl() <em>Download Url</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getDownloadUrl()
+ * @generated
+ * @ordered
+ */
+ protected String downloadUrl = DOWNLOAD_URL_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getRelocation() <em>Relocation</em>}' containment reference. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getRelocation()
+ * @generated
+ * @ordered
+ */
+ protected Relocation relocation;
+
+ /**
+ * This is true if the Relocation containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean relocationESet;
+
+ /**
+ * The default value of the '{@link #getStatus() <em>Status</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getStatus()
+ * @generated
+ * @ordered
+ */
+ protected static final String STATUS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getStatus()
+ * @generated
+ * @ordered
+ */
+ protected String status = STATUS_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DistributionManagementImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.DISTRIBUTION_MANAGEMENT;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DeploymentRepository getRepository() {
+ return repository;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetRepository(DeploymentRepository newRepository, NotificationChain msgs) {
+ DeploymentRepository oldRepository = repository;
+ repository = newRepository;
+ boolean oldRepositoryESet = repositoryESet;
+ repositoryESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY, oldRepository, newRepository, !oldRepositoryESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setRepository(DeploymentRepository newRepository) {
+ if(newRepository != repository) {
+ NotificationChain msgs = null;
+ if(repository != null)
+ msgs = ((InternalEObject) repository).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY, null, msgs);
+ if(newRepository != null)
+ msgs = ((InternalEObject) newRepository).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY, null, msgs);
+ msgs = basicSetRepository(newRepository, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldRepositoryESet = repositoryESet;
+ repositoryESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY,
+ newRepository, newRepository, !oldRepositoryESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetRepository(NotificationChain msgs) {
+ DeploymentRepository oldRepository = repository;
+ repository = null;
+ boolean oldRepositoryESet = repositoryESet;
+ repositoryESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET,
+ PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY, oldRepository, null, oldRepositoryESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetRepository() {
+ if(repository != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) repository).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY, null, msgs);
+ msgs = basicUnsetRepository(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldRepositoryESet = repositoryESet;
+ repositoryESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY, null,
+ null, oldRepositoryESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetRepository() {
+ return repositoryESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DeploymentRepository getSnapshotRepository() {
+ return snapshotRepository;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetSnapshotRepository(DeploymentRepository newSnapshotRepository, NotificationChain msgs) {
+ DeploymentRepository oldSnapshotRepository = snapshotRepository;
+ snapshotRepository = newSnapshotRepository;
+ boolean oldSnapshotRepositoryESet = snapshotRepositoryESet;
+ snapshotRepositoryESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY, oldSnapshotRepository, newSnapshotRepository,
+ !oldSnapshotRepositoryESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setSnapshotRepository(DeploymentRepository newSnapshotRepository) {
+ if(newSnapshotRepository != snapshotRepository) {
+ NotificationChain msgs = null;
+ if(snapshotRepository != null)
+ msgs = ((InternalEObject) snapshotRepository).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY, null, msgs);
+ if(newSnapshotRepository != null)
+ msgs = ((InternalEObject) newSnapshotRepository).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY, null, msgs);
+ msgs = basicSetSnapshotRepository(newSnapshotRepository, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldSnapshotRepositoryESet = snapshotRepositoryESet;
+ snapshotRepositoryESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY,
+ newSnapshotRepository, newSnapshotRepository, !oldSnapshotRepositoryESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetSnapshotRepository(NotificationChain msgs) {
+ DeploymentRepository oldSnapshotRepository = snapshotRepository;
+ snapshotRepository = null;
+ boolean oldSnapshotRepositoryESet = snapshotRepositoryESet;
+ snapshotRepositoryESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET,
+ PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY, oldSnapshotRepository, null,
+ oldSnapshotRepositoryESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetSnapshotRepository() {
+ if(snapshotRepository != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) snapshotRepository).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY, null, msgs);
+ msgs = basicUnsetSnapshotRepository(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldSnapshotRepositoryESet = snapshotRepositoryESet;
+ snapshotRepositoryESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
+ PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY, null, null, oldSnapshotRepositoryESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetSnapshotRepository() {
+ return snapshotRepositoryESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Site getSite() {
+ return site;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetSite(Site newSite, NotificationChain msgs) {
+ Site oldSite = site;
+ site = newSite;
+ boolean oldSiteESet = siteESet;
+ siteESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ PomPackage.DISTRIBUTION_MANAGEMENT__SITE, oldSite, newSite, !oldSiteESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setSite(Site newSite) {
+ if(newSite != site) {
+ NotificationChain msgs = null;
+ if(site != null)
+ msgs = ((InternalEObject) site).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.DISTRIBUTION_MANAGEMENT__SITE, null, msgs);
+ if(newSite != null)
+ msgs = ((InternalEObject) newSite).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.DISTRIBUTION_MANAGEMENT__SITE, null, msgs);
+ msgs = basicSetSite(newSite, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldSiteESet = siteESet;
+ siteESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DISTRIBUTION_MANAGEMENT__SITE, newSite,
+ newSite, !oldSiteESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetSite(NotificationChain msgs) {
+ Site oldSite = site;
+ site = null;
+ boolean oldSiteESet = siteESet;
+ siteESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET,
+ PomPackage.DISTRIBUTION_MANAGEMENT__SITE, oldSite, null, oldSiteESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetSite() {
+ if(site != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) site).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.DISTRIBUTION_MANAGEMENT__SITE, null, msgs);
+ msgs = basicUnsetSite(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldSiteESet = siteESet;
+ siteESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.DISTRIBUTION_MANAGEMENT__SITE, null, null,
+ oldSiteESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetSite() {
+ return siteESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getDownloadUrl() {
+ return downloadUrl;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setDownloadUrl(String newDownloadUrl) {
+ String oldDownloadUrl = downloadUrl;
+ downloadUrl = newDownloadUrl;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL,
+ oldDownloadUrl, downloadUrl));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Relocation getRelocation() {
+ return relocation;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetRelocation(Relocation newRelocation, NotificationChain msgs) {
+ Relocation oldRelocation = relocation;
+ relocation = newRelocation;
+ boolean oldRelocationESet = relocationESet;
+ relocationESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION, oldRelocation, newRelocation, !oldRelocationESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setRelocation(Relocation newRelocation) {
+ if(newRelocation != relocation) {
+ NotificationChain msgs = null;
+ if(relocation != null)
+ msgs = ((InternalEObject) relocation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION, null, msgs);
+ if(newRelocation != null)
+ msgs = ((InternalEObject) newRelocation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION, null, msgs);
+ msgs = basicSetRelocation(newRelocation, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldRelocationESet = relocationESet;
+ relocationESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION,
+ newRelocation, newRelocation, !oldRelocationESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetRelocation(NotificationChain msgs) {
+ Relocation oldRelocation = relocation;
+ relocation = null;
+ boolean oldRelocationESet = relocationESet;
+ relocationESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET,
+ PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION, oldRelocation, null, oldRelocationESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetRelocation() {
+ if(relocation != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) relocation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION, null, msgs);
+ msgs = basicUnsetRelocation(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldRelocationESet = relocationESet;
+ relocationESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION, null,
+ null, oldRelocationESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetRelocation() {
+ return relocationESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getStatus() {
+ return status;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setStatus(String newStatus) {
+ String oldStatus = status;
+ status = newStatus;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.DISTRIBUTION_MANAGEMENT__STATUS, oldStatus,
+ status));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY:
+ return basicUnsetRepository(msgs);
+ case PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY:
+ return basicUnsetSnapshotRepository(msgs);
+ case PomPackage.DISTRIBUTION_MANAGEMENT__SITE:
+ return basicUnsetSite(msgs);
+ case PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION:
+ return basicUnsetRelocation(msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY:
+ return getRepository();
+ case PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY:
+ return getSnapshotRepository();
+ case PomPackage.DISTRIBUTION_MANAGEMENT__SITE:
+ return getSite();
+ case PomPackage.DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL:
+ return getDownloadUrl();
+ case PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION:
+ return getRelocation();
+ case PomPackage.DISTRIBUTION_MANAGEMENT__STATUS:
+ return getStatus();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY:
+ setRepository((DeploymentRepository) newValue);
+ return;
+ case PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY:
+ setSnapshotRepository((DeploymentRepository) newValue);
+ return;
+ case PomPackage.DISTRIBUTION_MANAGEMENT__SITE:
+ setSite((Site) newValue);
+ return;
+ case PomPackage.DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL:
+ setDownloadUrl((String) newValue);
+ return;
+ case PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION:
+ setRelocation((Relocation) newValue);
+ return;
+ case PomPackage.DISTRIBUTION_MANAGEMENT__STATUS:
+ setStatus((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY:
+ unsetRepository();
+ return;
+ case PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY:
+ unsetSnapshotRepository();
+ return;
+ case PomPackage.DISTRIBUTION_MANAGEMENT__SITE:
+ unsetSite();
+ return;
+ case PomPackage.DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL:
+ setDownloadUrl(DOWNLOAD_URL_EDEFAULT);
+ return;
+ case PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION:
+ unsetRelocation();
+ return;
+ case PomPackage.DISTRIBUTION_MANAGEMENT__STATUS:
+ setStatus(STATUS_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY:
+ return isSetRepository();
+ case PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY:
+ return isSetSnapshotRepository();
+ case PomPackage.DISTRIBUTION_MANAGEMENT__SITE:
+ return isSetSite();
+ case PomPackage.DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL:
+ return DOWNLOAD_URL_EDEFAULT == null ? downloadUrl != null : !DOWNLOAD_URL_EDEFAULT.equals(downloadUrl);
+ case PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION:
+ return isSetRelocation();
+ case PomPackage.DISTRIBUTION_MANAGEMENT__STATUS:
+ return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (downloadUrl: "); //$NON-NLS-1$
+ result.append(downloadUrl);
+ result.append(", status: "); //$NON-NLS-1$
+ result.append(status);
+ result.append(')');
+ return result.toString();
+ }
} // DistributionManagementImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DocumentRootImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DocumentRootImpl.java
index 0b6d6d44..fefb9db6 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DocumentRootImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/DocumentRootImpl.java
@@ -12,306 +12,285 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EMap;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.EcorePackage;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
-
import org.eclipse.emf.ecore.util.BasicFeatureMap;
import org.eclipse.emf.ecore.util.EcoreEMap;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.DocumentRoot;
import org.eclipse.m2e.model.edit.pom.Model;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Document Root</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Document Root</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl#getMixed <em>
- * Mixed</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl#getMixed <em> Mixed</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl#getXMLNSPrefixMap
- * <em>XMLNS Prefix Map</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl#getXSISchemaLocation
- * <em>XSI Schema Location</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl#getProject <em>
- * Project</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.DocumentRootImpl#getProject <em> Project</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
- /**
- * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute
- * list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getMixed()
- * @generated
- * @ordered
- */
- protected FeatureMap mixed;
+ /**
+ * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getMixed()
+ * @generated
+ * @ordered
+ */
+ protected FeatureMap mixed;
- /**
- * The cached value of the '{@link #getXMLNSPrefixMap()
- * <em>XMLNS Prefix Map</em>}' map. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getXMLNSPrefixMap()
- * @generated
- * @ordered
- */
- protected EMap<String, String> xMLNSPrefixMap;
+ /**
+ * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getXMLNSPrefixMap()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xMLNSPrefixMap;
- /**
- * The cached value of the '{@link #getXSISchemaLocation()
- * <em>XSI Schema Location</em>}' map. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getXSISchemaLocation()
- * @generated
- * @ordered
- */
- protected EMap<String, String> xSISchemaLocation;
+ /**
+ * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getXSISchemaLocation()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xSISchemaLocation;
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DocumentRootImpl() {
- super();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DocumentRootImpl() {
+ super();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.DOCUMENT_ROOT;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.DOCUMENT_ROOT;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public FeatureMap getMixed() {
- if (mixed == null) {
- mixed = new BasicFeatureMap(this, PomPackage.DOCUMENT_ROOT__MIXED);
- }
- return mixed;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if(mixed == null) {
+ mixed = new BasicFeatureMap(this, PomPackage.DOCUMENT_ROOT__MIXED);
+ }
+ return mixed;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EMap<String, String> getXMLNSPrefixMap() {
- if (xMLNSPrefixMap == null) {
- xMLNSPrefixMap = new EcoreEMap<String, String>(
- EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
- EStringToStringMapEntryImpl.class, this,
- PomPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
- }
- return xMLNSPrefixMap;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EMap<String, String> getXMLNSPrefixMap() {
+ if(xMLNSPrefixMap == null) {
+ xMLNSPrefixMap = new EcoreEMap<String, String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
+ EStringToStringMapEntryImpl.class, this, PomPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ }
+ return xMLNSPrefixMap;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EMap<String, String> getXSISchemaLocation() {
- if (xSISchemaLocation == null) {
- xSISchemaLocation = new EcoreEMap<String, String>(
- EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
- EStringToStringMapEntryImpl.class, this,
- PomPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
- }
- return xSISchemaLocation;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EMap<String, String> getXSISchemaLocation() {
+ if(xSISchemaLocation == null) {
+ xSISchemaLocation = new EcoreEMap<String, String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
+ EStringToStringMapEntryImpl.class, this, PomPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Model getProject() {
- return (Model) getMixed().get(
- PomPackage.Literals.DOCUMENT_ROOT__PROJECT, true);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Model getProject() {
+ return (Model) getMixed().get(PomPackage.Literals.DOCUMENT_ROOT__PROJECT, true);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetProject(Model newProject,
- NotificationChain msgs) {
- return ((FeatureMap.Internal) getMixed()).basicAdd(
- PomPackage.Literals.DOCUMENT_ROOT__PROJECT, newProject, msgs);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetProject(Model newProject, NotificationChain msgs) {
+ return ((FeatureMap.Internal) getMixed()).basicAdd(PomPackage.Literals.DOCUMENT_ROOT__PROJECT, newProject, msgs);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setProject(Model newProject) {
- ((FeatureMap.Internal) getMixed()).set(
- PomPackage.Literals.DOCUMENT_ROOT__PROJECT, newProject);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setProject(Model newProject) {
+ ((FeatureMap.Internal) getMixed()).set(PomPackage.Literals.DOCUMENT_ROOT__PROJECT, newProject);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.DOCUMENT_ROOT__MIXED:
- return ((InternalEList<?>) getMixed()).basicRemove(otherEnd, msgs);
- case PomPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
- return ((InternalEList<?>) getXMLNSPrefixMap()).basicRemove(
- otherEnd, msgs);
- case PomPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
- return ((InternalEList<?>) getXSISchemaLocation()).basicRemove(
- otherEnd, msgs);
- case PomPackage.DOCUMENT_ROOT__PROJECT:
- return basicSetProject(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.DOCUMENT_ROOT__MIXED:
+ return ((InternalEList<?>) getMixed()).basicRemove(otherEnd, msgs);
+ case PomPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList<?>) getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case PomPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList<?>) getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case PomPackage.DOCUMENT_ROOT__PROJECT:
+ return basicSetProject(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.DOCUMENT_ROOT__MIXED:
- if (coreType)
- return getMixed();
- return ((FeatureMap.Internal) getMixed()).getWrapper();
- case PomPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
- if (coreType)
- return getXMLNSPrefixMap();
- else
- return getXMLNSPrefixMap().map();
- case PomPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
- if (coreType)
- return getXSISchemaLocation();
- else
- return getXSISchemaLocation().map();
- case PomPackage.DOCUMENT_ROOT__PROJECT:
- return getProject();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.DOCUMENT_ROOT__MIXED:
+ if(coreType)
+ return getMixed();
+ return ((FeatureMap.Internal) getMixed()).getWrapper();
+ case PomPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ if(coreType)
+ return getXMLNSPrefixMap();
+ else
+ return getXMLNSPrefixMap().map();
+ case PomPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ if(coreType)
+ return getXSISchemaLocation();
+ else
+ return getXSISchemaLocation().map();
+ case PomPackage.DOCUMENT_ROOT__PROJECT:
+ return getProject();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.DOCUMENT_ROOT__MIXED:
- ((FeatureMap.Internal) getMixed()).set(newValue);
- return;
- case PomPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
- ((EStructuralFeature.Setting) getXMLNSPrefixMap()).set(newValue);
- return;
- case PomPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
- ((EStructuralFeature.Setting) getXSISchemaLocation()).set(newValue);
- return;
- case PomPackage.DOCUMENT_ROOT__PROJECT:
- setProject((Model) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.DOCUMENT_ROOT__MIXED:
+ ((FeatureMap.Internal) getMixed()).set(newValue);
+ return;
+ case PomPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ ((EStructuralFeature.Setting) getXMLNSPrefixMap()).set(newValue);
+ return;
+ case PomPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ ((EStructuralFeature.Setting) getXSISchemaLocation()).set(newValue);
+ return;
+ case PomPackage.DOCUMENT_ROOT__PROJECT:
+ setProject((Model) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.DOCUMENT_ROOT__MIXED:
- getMixed().clear();
- return;
- case PomPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
- getXMLNSPrefixMap().clear();
- return;
- case PomPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
- getXSISchemaLocation().clear();
- return;
- case PomPackage.DOCUMENT_ROOT__PROJECT:
- setProject((Model) null);
- return;
- }
- super.eUnset(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case PomPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case PomPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case PomPackage.DOCUMENT_ROOT__PROJECT:
+ setProject((Model) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.DOCUMENT_ROOT__MIXED:
- return mixed != null && !mixed.isEmpty();
- case PomPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
- return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
- case PomPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
- return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
- case PomPackage.DOCUMENT_ROOT__PROJECT:
- return getProject() != null;
- }
- return super.eIsSet(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case PomPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case PomPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case PomPackage.DOCUMENT_ROOT__PROJECT:
+ return getProject() != null;
+ }
+ return super.eIsSet(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (mixed: "); //$NON-NLS-1$
- result.append(mixed);
- result.append(')');
- return result.toString();
- }
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (mixed: "); //$NON-NLS-1$
+ result.append(mixed);
+ result.append(')');
+ return result.toString();
+ }
} // DocumentRootImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ExclusionImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ExclusionImpl.java
index 3c9dd2e7..fb198502 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ExclusionImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ExclusionImpl.java
@@ -12,222 +12,214 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.Exclusion;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Exclusion</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Exclusion</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ExclusionImpl#getArtifactId <em>
- * Artifact Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ExclusionImpl#getGroupId <em>
- * Group Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ExclusionImpl#getArtifactId <em> Artifact Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ExclusionImpl#getGroupId <em> Group Id</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ExclusionImpl extends EObjectImpl implements Exclusion {
- /**
- * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected static final String ARTIFACT_ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected String artifactId = ARTIFACT_ID_EDEFAULT;
-
- /**
- * The default value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected static final String GROUP_ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected String groupId = GROUP_ID_EDEFAULT;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ExclusionImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.EXCLUSION;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getArtifactId() {
- return artifactId;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setArtifactId(String newArtifactId) {
- String oldArtifactId = artifactId;
- artifactId = newArtifactId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.EXCLUSION__ARTIFACT_ID, oldArtifactId,
- artifactId));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getGroupId() {
- return groupId;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setGroupId(String newGroupId) {
- String oldGroupId = groupId;
- groupId = newGroupId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.EXCLUSION__GROUP_ID, oldGroupId, groupId));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.EXCLUSION__ARTIFACT_ID:
- return getArtifactId();
- case PomPackage.EXCLUSION__GROUP_ID:
- return getGroupId();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.EXCLUSION__ARTIFACT_ID:
- setArtifactId((String) newValue);
- return;
- case PomPackage.EXCLUSION__GROUP_ID:
- setGroupId((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.EXCLUSION__ARTIFACT_ID:
- setArtifactId(ARTIFACT_ID_EDEFAULT);
- return;
- case PomPackage.EXCLUSION__GROUP_ID:
- setGroupId(GROUP_ID_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.EXCLUSION__ARTIFACT_ID:
- return ARTIFACT_ID_EDEFAULT == null ? artifactId != null
- : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
- case PomPackage.EXCLUSION__GROUP_ID:
- return GROUP_ID_EDEFAULT == null ? groupId != null
- : !GROUP_ID_EDEFAULT.equals(groupId);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (artifactId: "); //$NON-NLS-1$
- result.append(artifactId);
- result.append(", groupId: "); //$NON-NLS-1$
- result.append(groupId);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ARTIFACT_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected String artifactId = ARTIFACT_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected static final String GROUP_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected String groupId = GROUP_ID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ExclusionImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.EXCLUSION;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getArtifactId() {
+ return artifactId;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setArtifactId(String newArtifactId) {
+ String oldArtifactId = artifactId;
+ artifactId = newArtifactId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.EXCLUSION__ARTIFACT_ID, oldArtifactId,
+ artifactId));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getGroupId() {
+ return groupId;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setGroupId(String newGroupId) {
+ String oldGroupId = groupId;
+ groupId = newGroupId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.EXCLUSION__GROUP_ID, oldGroupId, groupId));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.EXCLUSION__ARTIFACT_ID:
+ return getArtifactId();
+ case PomPackage.EXCLUSION__GROUP_ID:
+ return getGroupId();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.EXCLUSION__ARTIFACT_ID:
+ setArtifactId((String) newValue);
+ return;
+ case PomPackage.EXCLUSION__GROUP_ID:
+ setGroupId((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.EXCLUSION__ARTIFACT_ID:
+ setArtifactId(ARTIFACT_ID_EDEFAULT);
+ return;
+ case PomPackage.EXCLUSION__GROUP_ID:
+ setGroupId(GROUP_ID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.EXCLUSION__ARTIFACT_ID:
+ return ARTIFACT_ID_EDEFAULT == null ? artifactId != null : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
+ case PomPackage.EXCLUSION__GROUP_ID:
+ return GROUP_ID_EDEFAULT == null ? groupId != null : !GROUP_ID_EDEFAULT.equals(groupId);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (artifactId: "); //$NON-NLS-1$
+ result.append(artifactId);
+ result.append(", groupId: "); //$NON-NLS-1$
+ result.append(groupId);
+ result.append(')');
+ return result.toString();
+ }
} // ExclusionImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ExtensionImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ExtensionImpl.java
index bd10cf36..34ff217f 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ExtensionImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ExtensionImpl.java
@@ -12,279 +12,268 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.Extension;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Extension</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Extension</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ExtensionImpl#getGroupId <em>
- * Group Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ExtensionImpl#getArtifactId <em>
- * Artifact Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ExtensionImpl#getVersion <em>
- * Version</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ExtensionImpl#getGroupId <em> Group Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ExtensionImpl#getArtifactId <em> Artifact Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ExtensionImpl#getVersion <em> Version</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ExtensionImpl extends EObjectImpl implements Extension {
- /**
- * The default value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected static final String GROUP_ID_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected static final String GROUP_ID_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected String groupId = GROUP_ID_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected String groupId = GROUP_ID_EDEFAULT;
- /**
- * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected static final String ARTIFACT_ID_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ARTIFACT_ID_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected String artifactId = ARTIFACT_ID_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected String artifactId = ARTIFACT_ID_EDEFAULT;
- /**
- * The default value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected static final String VERSION_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected static final String VERSION_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected String version = VERSION_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected String version = VERSION_EDEFAULT;
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ExtensionImpl() {
- super();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ExtensionImpl() {
+ super();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.EXTENSION;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.EXTENSION;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getGroupId() {
- return groupId;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getGroupId() {
+ return groupId;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setGroupId(String newGroupId) {
- String oldGroupId = groupId;
- groupId = newGroupId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.EXTENSION__GROUP_ID, oldGroupId, groupId));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setGroupId(String newGroupId) {
+ String oldGroupId = groupId;
+ groupId = newGroupId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.EXTENSION__GROUP_ID, oldGroupId, groupId));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getArtifactId() {
- return artifactId;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getArtifactId() {
+ return artifactId;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setArtifactId(String newArtifactId) {
- String oldArtifactId = artifactId;
- artifactId = newArtifactId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.EXTENSION__ARTIFACT_ID, oldArtifactId,
- artifactId));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setArtifactId(String newArtifactId) {
+ String oldArtifactId = artifactId;
+ artifactId = newArtifactId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.EXTENSION__ARTIFACT_ID, oldArtifactId,
+ artifactId));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getVersion() {
- return version;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getVersion() {
+ return version;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setVersion(String newVersion) {
- String oldVersion = version;
- version = newVersion;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.EXTENSION__VERSION, oldVersion, version));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setVersion(String newVersion) {
+ String oldVersion = version;
+ version = newVersion;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.EXTENSION__VERSION, oldVersion, version));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.EXTENSION__GROUP_ID:
- return getGroupId();
- case PomPackage.EXTENSION__ARTIFACT_ID:
- return getArtifactId();
- case PomPackage.EXTENSION__VERSION:
- return getVersion();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.EXTENSION__GROUP_ID:
+ return getGroupId();
+ case PomPackage.EXTENSION__ARTIFACT_ID:
+ return getArtifactId();
+ case PomPackage.EXTENSION__VERSION:
+ return getVersion();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.EXTENSION__GROUP_ID:
- setGroupId((String) newValue);
- return;
- case PomPackage.EXTENSION__ARTIFACT_ID:
- setArtifactId((String) newValue);
- return;
- case PomPackage.EXTENSION__VERSION:
- setVersion((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.EXTENSION__GROUP_ID:
+ setGroupId((String) newValue);
+ return;
+ case PomPackage.EXTENSION__ARTIFACT_ID:
+ setArtifactId((String) newValue);
+ return;
+ case PomPackage.EXTENSION__VERSION:
+ setVersion((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.EXTENSION__GROUP_ID:
- setGroupId(GROUP_ID_EDEFAULT);
- return;
- case PomPackage.EXTENSION__ARTIFACT_ID:
- setArtifactId(ARTIFACT_ID_EDEFAULT);
- return;
- case PomPackage.EXTENSION__VERSION:
- setVersion(VERSION_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.EXTENSION__GROUP_ID:
+ setGroupId(GROUP_ID_EDEFAULT);
+ return;
+ case PomPackage.EXTENSION__ARTIFACT_ID:
+ setArtifactId(ARTIFACT_ID_EDEFAULT);
+ return;
+ case PomPackage.EXTENSION__VERSION:
+ setVersion(VERSION_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.EXTENSION__GROUP_ID:
- return GROUP_ID_EDEFAULT == null ? groupId != null
- : !GROUP_ID_EDEFAULT.equals(groupId);
- case PomPackage.EXTENSION__ARTIFACT_ID:
- return ARTIFACT_ID_EDEFAULT == null ? artifactId != null
- : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
- case PomPackage.EXTENSION__VERSION:
- return VERSION_EDEFAULT == null ? version != null
- : !VERSION_EDEFAULT.equals(version);
- }
- return super.eIsSet(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.EXTENSION__GROUP_ID:
+ return GROUP_ID_EDEFAULT == null ? groupId != null : !GROUP_ID_EDEFAULT.equals(groupId);
+ case PomPackage.EXTENSION__ARTIFACT_ID:
+ return ARTIFACT_ID_EDEFAULT == null ? artifactId != null : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
+ case PomPackage.EXTENSION__VERSION:
+ return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version);
+ }
+ return super.eIsSet(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (groupId: "); //$NON-NLS-1$
- result.append(groupId);
- result.append(", artifactId: "); //$NON-NLS-1$
- result.append(artifactId);
- result.append(", version: "); //$NON-NLS-1$
- result.append(version);
- result.append(')');
- return result.toString();
- }
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (groupId: "); //$NON-NLS-1$
+ result.append(groupId);
+ result.append(", artifactId: "); //$NON-NLS-1$
+ result.append(artifactId);
+ result.append(", version: "); //$NON-NLS-1$
+ result.append(version);
+ result.append(')');
+ return result.toString();
+ }
} // ExtensionImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/IssueManagementImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/IssueManagementImpl.java
index bcda5290..4d9e4baa 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/IssueManagementImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/IssueManagementImpl.java
@@ -12,221 +12,212 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.IssueManagement;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Issue Management</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Issue Management</b></em>'. <!-- end-user-doc
+ * -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.IssueManagementImpl#getSystem
- * <em>System</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.IssueManagementImpl#getUrl <em>
- * Url</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.IssueManagementImpl#getSystem <em>System</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.IssueManagementImpl#getUrl <em> Url</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class IssueManagementImpl extends EObjectImpl implements IssueManagement {
- /**
- * The default value of the '{@link #getSystem() <em>System</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getSystem()
- * @generated
- * @ordered
- */
- protected static final String SYSTEM_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getSystem() <em>System</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getSystem()
- * @generated
- * @ordered
- */
- protected String system = SYSTEM_EDEFAULT;
-
- /**
- * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected static final String URL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected String url = URL_EDEFAULT;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected IssueManagementImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.ISSUE_MANAGEMENT;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getSystem() {
- return system;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setSystem(String newSystem) {
- String oldSystem = system;
- system = newSystem;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ISSUE_MANAGEMENT__SYSTEM, oldSystem, system));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getUrl() {
- return url;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setUrl(String newUrl) {
- String oldUrl = url;
- url = newUrl;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ISSUE_MANAGEMENT__URL, oldUrl, url));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.ISSUE_MANAGEMENT__SYSTEM:
- return getSystem();
- case PomPackage.ISSUE_MANAGEMENT__URL:
- return getUrl();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.ISSUE_MANAGEMENT__SYSTEM:
- setSystem((String) newValue);
- return;
- case PomPackage.ISSUE_MANAGEMENT__URL:
- setUrl((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.ISSUE_MANAGEMENT__SYSTEM:
- setSystem(SYSTEM_EDEFAULT);
- return;
- case PomPackage.ISSUE_MANAGEMENT__URL:
- setUrl(URL_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.ISSUE_MANAGEMENT__SYSTEM:
- return SYSTEM_EDEFAULT == null ? system != null : !SYSTEM_EDEFAULT
- .equals(system);
- case PomPackage.ISSUE_MANAGEMENT__URL:
- return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT
- .equals(url);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (system: "); //$NON-NLS-1$
- result.append(system);
- result.append(", url: "); //$NON-NLS-1$
- result.append(url);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getSystem() <em>System</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getSystem()
+ * @generated
+ * @ordered
+ */
+ protected static final String SYSTEM_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSystem() <em>System</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getSystem()
+ * @generated
+ * @ordered
+ */
+ protected String system = SYSTEM_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String URL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected String url = URL_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected IssueManagementImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.ISSUE_MANAGEMENT;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getSystem() {
+ return system;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setSystem(String newSystem) {
+ String oldSystem = system;
+ system = newSystem;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ISSUE_MANAGEMENT__SYSTEM, oldSystem, system));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getUrl() {
+ return url;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setUrl(String newUrl) {
+ String oldUrl = url;
+ url = newUrl;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ISSUE_MANAGEMENT__URL, oldUrl, url));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.ISSUE_MANAGEMENT__SYSTEM:
+ return getSystem();
+ case PomPackage.ISSUE_MANAGEMENT__URL:
+ return getUrl();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.ISSUE_MANAGEMENT__SYSTEM:
+ setSystem((String) newValue);
+ return;
+ case PomPackage.ISSUE_MANAGEMENT__URL:
+ setUrl((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.ISSUE_MANAGEMENT__SYSTEM:
+ setSystem(SYSTEM_EDEFAULT);
+ return;
+ case PomPackage.ISSUE_MANAGEMENT__URL:
+ setUrl(URL_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.ISSUE_MANAGEMENT__SYSTEM:
+ return SYSTEM_EDEFAULT == null ? system != null : !SYSTEM_EDEFAULT.equals(system);
+ case PomPackage.ISSUE_MANAGEMENT__URL:
+ return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (system: "); //$NON-NLS-1$
+ result.append(system);
+ result.append(", url: "); //$NON-NLS-1$
+ result.append(url);
+ result.append(')');
+ return result.toString();
+ }
} // IssueManagementImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/LicenseImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/LicenseImpl.java
index 2e2fdfec..89a5d936 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/LicenseImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/LicenseImpl.java
@@ -12,337 +12,319 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.License;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>License</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>License</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.LicenseImpl#getName <em>Name
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.LicenseImpl#getUrl <em>Url</em>}
- * </li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.LicenseImpl#getDistribution <em>
- * Distribution</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.LicenseImpl#getComments <em>
- * Comments</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.LicenseImpl#getName <em>Name </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.LicenseImpl#getUrl <em>Url</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.LicenseImpl#getDistribution <em> Distribution</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.LicenseImpl#getComments <em> Comments</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class LicenseImpl extends EObjectImpl implements License {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected static final String URL_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String URL_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected String url = URL_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected String url = URL_EDEFAULT;
- /**
- * The default value of the '{@link #getDistribution()
- * <em>Distribution</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getDistribution()
- * @generated
- * @ordered
- */
- protected static final String DISTRIBUTION_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getDistribution() <em>Distribution</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getDistribution()
+ * @generated
+ * @ordered
+ */
+ protected static final String DISTRIBUTION_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getDistribution() <em>Distribution</em>}
- * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDistribution()
- * @generated
- * @ordered
- */
- protected String distribution = DISTRIBUTION_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getDistribution() <em>Distribution</em>} ' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getDistribution()
+ * @generated
+ * @ordered
+ */
+ protected String distribution = DISTRIBUTION_EDEFAULT;
- /**
- * The default value of the '{@link #getComments() <em>Comments</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getComments()
- * @generated
- * @ordered
- */
- protected static final String COMMENTS_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getComments() <em>Comments</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getComments()
+ * @generated
+ * @ordered
+ */
+ protected static final String COMMENTS_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getComments() <em>Comments</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getComments()
- * @generated
- * @ordered
- */
- protected String comments = COMMENTS_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getComments() <em>Comments</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getComments()
+ * @generated
+ * @ordered
+ */
+ protected String comments = COMMENTS_EDEFAULT;
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected LicenseImpl() {
- super();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected LicenseImpl() {
+ super();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.LICENSE;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.LICENSE;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.LICENSE__NAME, oldName, name));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.LICENSE__NAME, oldName, name));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getUrl() {
- return url;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getUrl() {
+ return url;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setUrl(String newUrl) {
- String oldUrl = url;
- url = newUrl;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.LICENSE__URL, oldUrl, url));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setUrl(String newUrl) {
+ String oldUrl = url;
+ url = newUrl;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.LICENSE__URL, oldUrl, url));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getDistribution() {
- return distribution;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getDistribution() {
+ return distribution;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDistribution(String newDistribution) {
- String oldDistribution = distribution;
- distribution = newDistribution;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.LICENSE__DISTRIBUTION, oldDistribution,
- distribution));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setDistribution(String newDistribution) {
+ String oldDistribution = distribution;
+ distribution = newDistribution;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.LICENSE__DISTRIBUTION, oldDistribution,
+ distribution));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getComments() {
- return comments;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getComments() {
+ return comments;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setComments(String newComments) {
- String oldComments = comments;
- comments = newComments;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.LICENSE__COMMENTS, oldComments, comments));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setComments(String newComments) {
+ String oldComments = comments;
+ comments = newComments;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.LICENSE__COMMENTS, oldComments, comments));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.LICENSE__NAME:
- return getName();
- case PomPackage.LICENSE__URL:
- return getUrl();
- case PomPackage.LICENSE__DISTRIBUTION:
- return getDistribution();
- case PomPackage.LICENSE__COMMENTS:
- return getComments();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.LICENSE__NAME:
+ return getName();
+ case PomPackage.LICENSE__URL:
+ return getUrl();
+ case PomPackage.LICENSE__DISTRIBUTION:
+ return getDistribution();
+ case PomPackage.LICENSE__COMMENTS:
+ return getComments();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.LICENSE__NAME:
- setName((String) newValue);
- return;
- case PomPackage.LICENSE__URL:
- setUrl((String) newValue);
- return;
- case PomPackage.LICENSE__DISTRIBUTION:
- setDistribution((String) newValue);
- return;
- case PomPackage.LICENSE__COMMENTS:
- setComments((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.LICENSE__NAME:
+ setName((String) newValue);
+ return;
+ case PomPackage.LICENSE__URL:
+ setUrl((String) newValue);
+ return;
+ case PomPackage.LICENSE__DISTRIBUTION:
+ setDistribution((String) newValue);
+ return;
+ case PomPackage.LICENSE__COMMENTS:
+ setComments((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.LICENSE__NAME:
- setName(NAME_EDEFAULT);
- return;
- case PomPackage.LICENSE__URL:
- setUrl(URL_EDEFAULT);
- return;
- case PomPackage.LICENSE__DISTRIBUTION:
- setDistribution(DISTRIBUTION_EDEFAULT);
- return;
- case PomPackage.LICENSE__COMMENTS:
- setComments(COMMENTS_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.LICENSE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case PomPackage.LICENSE__URL:
+ setUrl(URL_EDEFAULT);
+ return;
+ case PomPackage.LICENSE__DISTRIBUTION:
+ setDistribution(DISTRIBUTION_EDEFAULT);
+ return;
+ case PomPackage.LICENSE__COMMENTS:
+ setComments(COMMENTS_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.LICENSE__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT
- .equals(name);
- case PomPackage.LICENSE__URL:
- return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT
- .equals(url);
- case PomPackage.LICENSE__DISTRIBUTION:
- return DISTRIBUTION_EDEFAULT == null ? distribution != null
- : !DISTRIBUTION_EDEFAULT.equals(distribution);
- case PomPackage.LICENSE__COMMENTS:
- return COMMENTS_EDEFAULT == null ? comments != null
- : !COMMENTS_EDEFAULT.equals(comments);
- }
- return super.eIsSet(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.LICENSE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case PomPackage.LICENSE__URL:
+ return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url);
+ case PomPackage.LICENSE__DISTRIBUTION:
+ return DISTRIBUTION_EDEFAULT == null ? distribution != null : !DISTRIBUTION_EDEFAULT.equals(distribution);
+ case PomPackage.LICENSE__COMMENTS:
+ return COMMENTS_EDEFAULT == null ? comments != null : !COMMENTS_EDEFAULT.equals(comments);
+ }
+ return super.eIsSet(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: "); //$NON-NLS-1$
- result.append(name);
- result.append(", url: "); //$NON-NLS-1$
- result.append(url);
- result.append(", distribution: "); //$NON-NLS-1$
- result.append(distribution);
- result.append(", comments: "); //$NON-NLS-1$
- result.append(comments);
- result.append(')');
- return result.toString();
- }
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: "); //$NON-NLS-1$
+ result.append(name);
+ result.append(", url: "); //$NON-NLS-1$
+ result.append(url);
+ result.append(", distribution: "); //$NON-NLS-1$
+ result.append(distribution);
+ result.append(", comments: "); //$NON-NLS-1$
+ result.append(comments);
+ result.append(')');
+ return result.toString();
+ }
} // LicenseImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/MailingListImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/MailingListImpl.java
index cb7ee9f3..12630fd8 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/MailingListImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/MailingListImpl.java
@@ -14,459 +14,434 @@ package org.eclipse.m2e.model.edit.pom.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EDataTypeEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.MailingList;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Mailing List</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Mailing List</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl#getName <em>Name
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl#getSubscribe
- * <em>Subscribe</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl#getUnsubscribe
- * <em>Unsubscribe</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl#getPost <em>Post
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl#getArchive <em>
- * Archive</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl#getName <em>Name </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl#getSubscribe <em>Subscribe</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl#getUnsubscribe <em>Unsubscribe</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl#getPost <em>Post </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl#getArchive <em> Archive</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl#getOtherArchives
- * <em>Other Archives</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.MailingListImpl#getOtherArchives <em>Other Archives</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class MailingListImpl extends EObjectImpl implements MailingList {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getSubscribe() <em>Subscribe</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getSubscribe()
- * @generated
- * @ordered
- */
- protected static final String SUBSCRIBE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getSubscribe() <em>Subscribe</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getSubscribe()
- * @generated
- * @ordered
- */
- protected String subscribe = SUBSCRIBE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getUnsubscribe() <em>Unsubscribe</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUnsubscribe()
- * @generated
- * @ordered
- */
- protected static final String UNSUBSCRIBE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getUnsubscribe() <em>Unsubscribe</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUnsubscribe()
- * @generated
- * @ordered
- */
- protected String unsubscribe = UNSUBSCRIBE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getPost() <em>Post</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getPost()
- * @generated
- * @ordered
- */
- protected static final String POST_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getPost() <em>Post</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getPost()
- * @generated
- * @ordered
- */
- protected String post = POST_EDEFAULT;
-
- /**
- * The default value of the '{@link #getArchive() <em>Archive</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArchive()
- * @generated
- * @ordered
- */
- protected static final String ARCHIVE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getArchive() <em>Archive</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArchive()
- * @generated
- * @ordered
- */
- protected String archive = ARCHIVE_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getOtherArchives()
- * <em>Other Archives</em>}' attribute list. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getOtherArchives()
- * @generated
- * @ordered
- */
- protected EList<String> otherArchives;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected MailingListImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.MAILING_LIST;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MAILING_LIST__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getSubscribe() {
- return subscribe;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setSubscribe(String newSubscribe) {
- String oldSubscribe = subscribe;
- subscribe = newSubscribe;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MAILING_LIST__SUBSCRIBE, oldSubscribe, subscribe));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getUnsubscribe() {
- return unsubscribe;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setUnsubscribe(String newUnsubscribe) {
- String oldUnsubscribe = unsubscribe;
- unsubscribe = newUnsubscribe;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MAILING_LIST__UNSUBSCRIBE, oldUnsubscribe,
- unsubscribe));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getPost() {
- return post;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setPost(String newPost) {
- String oldPost = post;
- post = newPost;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MAILING_LIST__POST, oldPost, post));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getArchive() {
- return archive;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setArchive(String newArchive) {
- String oldArchive = archive;
- archive = newArchive;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MAILING_LIST__ARCHIVE, oldArchive, archive));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getOtherArchives() {
- if (otherArchives == null) {
- otherArchives = new EDataTypeEList.Unsettable<String>(String.class,
- this, PomPackage.MAILING_LIST__OTHER_ARCHIVES);
- }
- return otherArchives;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetOtherArchives() {
- if (otherArchives != null)
- ((InternalEList.Unsettable<?>) otherArchives).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetOtherArchives() {
- return otherArchives != null
- && ((InternalEList.Unsettable<?>) otherArchives).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.MAILING_LIST__NAME:
- return getName();
- case PomPackage.MAILING_LIST__SUBSCRIBE:
- return getSubscribe();
- case PomPackage.MAILING_LIST__UNSUBSCRIBE:
- return getUnsubscribe();
- case PomPackage.MAILING_LIST__POST:
- return getPost();
- case PomPackage.MAILING_LIST__ARCHIVE:
- return getArchive();
- case PomPackage.MAILING_LIST__OTHER_ARCHIVES:
- return getOtherArchives();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.MAILING_LIST__NAME:
- setName((String) newValue);
- return;
- case PomPackage.MAILING_LIST__SUBSCRIBE:
- setSubscribe((String) newValue);
- return;
- case PomPackage.MAILING_LIST__UNSUBSCRIBE:
- setUnsubscribe((String) newValue);
- return;
- case PomPackage.MAILING_LIST__POST:
- setPost((String) newValue);
- return;
- case PomPackage.MAILING_LIST__ARCHIVE:
- setArchive((String) newValue);
- return;
- case PomPackage.MAILING_LIST__OTHER_ARCHIVES:
- getOtherArchives().clear();
- getOtherArchives().addAll((Collection<? extends String>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.MAILING_LIST__NAME:
- setName(NAME_EDEFAULT);
- return;
- case PomPackage.MAILING_LIST__SUBSCRIBE:
- setSubscribe(SUBSCRIBE_EDEFAULT);
- return;
- case PomPackage.MAILING_LIST__UNSUBSCRIBE:
- setUnsubscribe(UNSUBSCRIBE_EDEFAULT);
- return;
- case PomPackage.MAILING_LIST__POST:
- setPost(POST_EDEFAULT);
- return;
- case PomPackage.MAILING_LIST__ARCHIVE:
- setArchive(ARCHIVE_EDEFAULT);
- return;
- case PomPackage.MAILING_LIST__OTHER_ARCHIVES:
- unsetOtherArchives();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.MAILING_LIST__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT
- .equals(name);
- case PomPackage.MAILING_LIST__SUBSCRIBE:
- return SUBSCRIBE_EDEFAULT == null ? subscribe != null
- : !SUBSCRIBE_EDEFAULT.equals(subscribe);
- case PomPackage.MAILING_LIST__UNSUBSCRIBE:
- return UNSUBSCRIBE_EDEFAULT == null ? unsubscribe != null
- : !UNSUBSCRIBE_EDEFAULT.equals(unsubscribe);
- case PomPackage.MAILING_LIST__POST:
- return POST_EDEFAULT == null ? post != null : !POST_EDEFAULT
- .equals(post);
- case PomPackage.MAILING_LIST__ARCHIVE:
- return ARCHIVE_EDEFAULT == null ? archive != null
- : !ARCHIVE_EDEFAULT.equals(archive);
- case PomPackage.MAILING_LIST__OTHER_ARCHIVES:
- return isSetOtherArchives();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: "); //$NON-NLS-1$
- result.append(name);
- result.append(", subscribe: "); //$NON-NLS-1$
- result.append(subscribe);
- result.append(", unsubscribe: "); //$NON-NLS-1$
- result.append(unsubscribe);
- result.append(", post: "); //$NON-NLS-1$
- result.append(post);
- result.append(", archive: "); //$NON-NLS-1$
- result.append(archive);
- result.append(", otherArchives: "); //$NON-NLS-1$
- result.append(otherArchives);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getSubscribe() <em>Subscribe</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getSubscribe()
+ * @generated
+ * @ordered
+ */
+ protected static final String SUBSCRIBE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSubscribe() <em>Subscribe</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getSubscribe()
+ * @generated
+ * @ordered
+ */
+ protected String subscribe = SUBSCRIBE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUnsubscribe() <em>Unsubscribe</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getUnsubscribe()
+ * @generated
+ * @ordered
+ */
+ protected static final String UNSUBSCRIBE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getUnsubscribe() <em>Unsubscribe</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getUnsubscribe()
+ * @generated
+ * @ordered
+ */
+ protected String unsubscribe = UNSUBSCRIBE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getPost() <em>Post</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getPost()
+ * @generated
+ * @ordered
+ */
+ protected static final String POST_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getPost() <em>Post</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getPost()
+ * @generated
+ * @ordered
+ */
+ protected String post = POST_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getArchive() <em>Archive</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArchive()
+ * @generated
+ * @ordered
+ */
+ protected static final String ARCHIVE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getArchive() <em>Archive</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArchive()
+ * @generated
+ * @ordered
+ */
+ protected String archive = ARCHIVE_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getOtherArchives() <em>Other Archives</em>}' attribute list. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getOtherArchives()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> otherArchives;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected MailingListImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.MAILING_LIST;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MAILING_LIST__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getSubscribe() {
+ return subscribe;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setSubscribe(String newSubscribe) {
+ String oldSubscribe = subscribe;
+ subscribe = newSubscribe;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MAILING_LIST__SUBSCRIBE, oldSubscribe, subscribe));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getUnsubscribe() {
+ return unsubscribe;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setUnsubscribe(String newUnsubscribe) {
+ String oldUnsubscribe = unsubscribe;
+ unsubscribe = newUnsubscribe;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MAILING_LIST__UNSUBSCRIBE, oldUnsubscribe,
+ unsubscribe));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getPost() {
+ return post;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setPost(String newPost) {
+ String oldPost = post;
+ post = newPost;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MAILING_LIST__POST, oldPost, post));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getArchive() {
+ return archive;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setArchive(String newArchive) {
+ String oldArchive = archive;
+ archive = newArchive;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MAILING_LIST__ARCHIVE, oldArchive, archive));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<String> getOtherArchives() {
+ if(otherArchives == null) {
+ otherArchives = new EDataTypeEList.Unsettable<String>(String.class, this, PomPackage.MAILING_LIST__OTHER_ARCHIVES);
+ }
+ return otherArchives;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetOtherArchives() {
+ if(otherArchives != null)
+ ((InternalEList.Unsettable<?>) otherArchives).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetOtherArchives() {
+ return otherArchives != null && ((InternalEList.Unsettable<?>) otherArchives).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.MAILING_LIST__NAME:
+ return getName();
+ case PomPackage.MAILING_LIST__SUBSCRIBE:
+ return getSubscribe();
+ case PomPackage.MAILING_LIST__UNSUBSCRIBE:
+ return getUnsubscribe();
+ case PomPackage.MAILING_LIST__POST:
+ return getPost();
+ case PomPackage.MAILING_LIST__ARCHIVE:
+ return getArchive();
+ case PomPackage.MAILING_LIST__OTHER_ARCHIVES:
+ return getOtherArchives();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.MAILING_LIST__NAME:
+ setName((String) newValue);
+ return;
+ case PomPackage.MAILING_LIST__SUBSCRIBE:
+ setSubscribe((String) newValue);
+ return;
+ case PomPackage.MAILING_LIST__UNSUBSCRIBE:
+ setUnsubscribe((String) newValue);
+ return;
+ case PomPackage.MAILING_LIST__POST:
+ setPost((String) newValue);
+ return;
+ case PomPackage.MAILING_LIST__ARCHIVE:
+ setArchive((String) newValue);
+ return;
+ case PomPackage.MAILING_LIST__OTHER_ARCHIVES:
+ getOtherArchives().clear();
+ getOtherArchives().addAll((Collection<? extends String>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.MAILING_LIST__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case PomPackage.MAILING_LIST__SUBSCRIBE:
+ setSubscribe(SUBSCRIBE_EDEFAULT);
+ return;
+ case PomPackage.MAILING_LIST__UNSUBSCRIBE:
+ setUnsubscribe(UNSUBSCRIBE_EDEFAULT);
+ return;
+ case PomPackage.MAILING_LIST__POST:
+ setPost(POST_EDEFAULT);
+ return;
+ case PomPackage.MAILING_LIST__ARCHIVE:
+ setArchive(ARCHIVE_EDEFAULT);
+ return;
+ case PomPackage.MAILING_LIST__OTHER_ARCHIVES:
+ unsetOtherArchives();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.MAILING_LIST__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case PomPackage.MAILING_LIST__SUBSCRIBE:
+ return SUBSCRIBE_EDEFAULT == null ? subscribe != null : !SUBSCRIBE_EDEFAULT.equals(subscribe);
+ case PomPackage.MAILING_LIST__UNSUBSCRIBE:
+ return UNSUBSCRIBE_EDEFAULT == null ? unsubscribe != null : !UNSUBSCRIBE_EDEFAULT.equals(unsubscribe);
+ case PomPackage.MAILING_LIST__POST:
+ return POST_EDEFAULT == null ? post != null : !POST_EDEFAULT.equals(post);
+ case PomPackage.MAILING_LIST__ARCHIVE:
+ return ARCHIVE_EDEFAULT == null ? archive != null : !ARCHIVE_EDEFAULT.equals(archive);
+ case PomPackage.MAILING_LIST__OTHER_ARCHIVES:
+ return isSetOtherArchives();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: "); //$NON-NLS-1$
+ result.append(name);
+ result.append(", subscribe: "); //$NON-NLS-1$
+ result.append(subscribe);
+ result.append(", unsubscribe: "); //$NON-NLS-1$
+ result.append(unsubscribe);
+ result.append(", post: "); //$NON-NLS-1$
+ result.append(post);
+ result.append(", archive: "); //$NON-NLS-1$
+ result.append(archive);
+ result.append(", otherArchives: "); //$NON-NLS-1$
+ result.append(otherArchives);
+ result.append(')');
+ return result.toString();
+ }
} // MailingListImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ModelImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ModelImpl.java
index 18e5bd55..b97ec342 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ModelImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ModelImpl.java
@@ -15,18 +15,15 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EDataTypeEList;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.Build;
import org.eclipse.m2e.model.edit.pom.CiManagement;
import org.eclipse.m2e.model.edit.pom.Contributor;
@@ -50,2742 +47,2543 @@ import org.eclipse.m2e.model.edit.pom.Scm;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Model</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Model</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getParent <em>Parent
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getModelVersion <em>
- * Model Version</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getGroupId <em>Group
- * Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getArtifactId <em>
- * Artifact Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getPackaging <em>
- * Packaging</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getName <em>Name</em>}
- * </li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getVersion <em>Version
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getDescription <em>
- * Description</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getParent <em>Parent </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getModelVersion <em> Model Version</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getGroupId <em>Group Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getArtifactId <em> Artifact Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getPackaging <em> Packaging</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getVersion <em>Version </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getDescription <em> Description</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getUrl <em>Url</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getPrerequisites <em>
- * Prerequisites</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getIssueManagement
- * <em>Issue Management</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getCiManagement <em>Ci
- * Management</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getInceptionYear <em>
- * Inception Year</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getMailingLists <em>
- * Mailing Lists</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getDevelopers <em>
- * Developers</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getContributors <em>
- * Contributors</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getLicenses <em>
- * Licenses</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getPrerequisites <em> Prerequisites</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getIssueManagement <em>Issue Management</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getCiManagement <em>Ci Management</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getInceptionYear <em> Inception Year</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getMailingLists <em> Mailing Lists</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getDevelopers <em> Developers</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getContributors <em> Contributors</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getLicenses <em> Licenses</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getScm <em>Scm</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getOrganization <em>
- * Organization</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getBuild <em>Build
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getProfiles <em>
- * Profiles</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getRepositories <em>
- * Repositories</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getPluginRepositories
- * <em>Plugin Repositories</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getDependencies <em>
- * Dependencies</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getReporting <em>
- * Reporting</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getOrganization <em> Organization</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getBuild <em>Build </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getProfiles <em> Profiles</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getRepositories <em> Repositories</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getPluginRepositories <em>Plugin Repositories</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getDependencies <em> Dependencies</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getReporting <em> Reporting</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getDependencyManagement
- * <em>Dependency Management</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getDependencyManagement <em>Dependency Management</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getDistributionManagement
- * <em>Distribution Management</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getProperties <em>
- * Properties</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getModules <em>Modules
- * </em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getDistributionManagement <em>Distribution Management</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getProperties <em> Properties</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ModelImpl#getModules <em>Modules </em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ModelImpl extends EObjectImpl implements Model {
- /**
- * The cached value of the '{@link #getParent() <em>Parent</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getParent()
- * @generated
- * @ordered
- */
- protected Parent parent;
-
- /**
- * This is true if the Parent containment reference has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean parentESet;
-
- /**
- * The default value of the '{@link #getModelVersion()
- * <em>Model Version</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getModelVersion()
- * @generated
- * @ordered
- */
- protected static final String MODEL_VERSION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getModelVersion()
- * <em>Model Version</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getModelVersion()
- * @generated
- * @ordered
- */
- protected String modelVersion = MODEL_VERSION_EDEFAULT;
-
- /**
- * The default value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected static final String GROUP_ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected String groupId = GROUP_ID_EDEFAULT;
-
- /**
- * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected static final String ARTIFACT_ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected String artifactId = ARTIFACT_ID_EDEFAULT;
-
- /**
- * The default value of the '{@link #getPackaging() <em>Packaging</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getPackaging()
- * @generated
- * @ordered
- */
- protected static final String PACKAGING_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getPackaging() <em>Packaging</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getPackaging()
- * @generated
- * @ordered
- */
- protected String packaging = PACKAGING_EDEFAULT;
-
- /**
- * This is true if the Packaging attribute has been set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean packagingESet;
-
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected static final String VERSION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected String version = VERSION_EDEFAULT;
-
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDescription() <em>Description</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected String description = DESCRIPTION_EDEFAULT;
-
- /**
- * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected static final String URL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected String url = URL_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getPrerequisites()
- * <em>Prerequisites</em>}' containment reference. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getPrerequisites()
- * @generated
- * @ordered
- */
- protected Prerequisites prerequisites;
-
- /**
- * This is true if the Prerequisites containment reference has been set.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean prerequisitesESet;
-
- /**
- * The cached value of the '{@link #getIssueManagement()
- * <em>Issue Management</em>}' containment reference. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #getIssueManagement()
- * @generated
- * @ordered
- */
- protected IssueManagement issueManagement;
-
- /**
- * This is true if the Issue Management containment reference has been set.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean issueManagementESet;
-
- /**
- * The cached value of the '{@link #getCiManagement()
- * <em>Ci Management</em>}' containment reference. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getCiManagement()
- * @generated
- * @ordered
- */
- protected CiManagement ciManagement;
-
- /**
- * This is true if the Ci Management containment reference has been set.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean ciManagementESet;
-
- /**
- * The default value of the '{@link #getInceptionYear()
- * <em>Inception Year</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getInceptionYear()
- * @generated
- * @ordered
- */
- protected static final String INCEPTION_YEAR_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getInceptionYear()
- * <em>Inception Year</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getInceptionYear()
- * @generated
- * @ordered
- */
- protected String inceptionYear = INCEPTION_YEAR_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getMailingLists()
- * <em>Mailing Lists</em>}' containment reference list. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #getMailingLists()
- * @generated
- * @ordered
- */
- protected EList<MailingList> mailingLists;
-
- /**
- * The cached value of the '{@link #getDevelopers() <em>Developers</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDevelopers()
- * @generated
- * @ordered
- */
- protected EList<Developer> developers;
-
- /**
- * The cached value of the '{@link #getContributors() <em>Contributors</em>}
- * ' containment reference list. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #getContributors()
- * @generated
- * @ordered
- */
- protected EList<Contributor> contributors;
-
- /**
- * The cached value of the '{@link #getLicenses() <em>Licenses</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getLicenses()
- * @generated
- * @ordered
- */
- protected EList<License> licenses;
-
- /**
- * The cached value of the '{@link #getScm() <em>Scm</em>}' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getScm()
- * @generated
- * @ordered
- */
- protected Scm scm;
-
- /**
- * This is true if the Scm containment reference has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean scmESet;
-
- /**
- * The cached value of the '{@link #getOrganization() <em>Organization</em>}
- * ' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getOrganization()
- * @generated
- * @ordered
- */
- protected Organization organization;
-
- /**
- * This is true if the Organization containment reference has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean organizationESet;
-
- /**
- * The cached value of the '{@link #getBuild() <em>Build</em>}' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getBuild()
- * @generated
- * @ordered
- */
- protected Build build;
-
- /**
- * This is true if the Build containment reference has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean buildESet;
-
- /**
- * The cached value of the '{@link #getProfiles() <em>Profiles</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getProfiles()
- * @generated
- * @ordered
- */
- protected EList<Profile> profiles;
-
- /**
- * The cached value of the '{@link #getRepositories() <em>Repositories</em>}
- * ' containment reference list. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #getRepositories()
- * @generated
- * @ordered
- */
- protected EList<Repository> repositories;
-
- /**
- * The cached value of the '{@link #getPluginRepositories()
- * <em>Plugin Repositories</em>}' containment reference list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getPluginRepositories()
- * @generated
- * @ordered
- */
- protected EList<Repository> pluginRepositories;
-
- /**
- * The cached value of the '{@link #getDependencies() <em>Dependencies</em>}
- * ' containment reference list. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #getDependencies()
- * @generated
- * @ordered
- */
- protected EList<Dependency> dependencies;
-
- /**
- * The cached value of the '{@link #getReporting() <em>Reporting</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getReporting()
- * @generated
- * @ordered
- */
- protected Reporting reporting;
-
- /**
- * This is true if the Reporting containment reference has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean reportingESet;
-
- /**
- * The cached value of the '{@link #getDependencyManagement()
- * <em>Dependency Management</em>}' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDependencyManagement()
- * @generated
- * @ordered
- */
- protected DependencyManagement dependencyManagement;
-
- /**
- * This is true if the Dependency Management containment reference has been
- * set. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean dependencyManagementESet;
-
- /**
- * The cached value of the '{@link #getDistributionManagement()
- * <em>Distribution Management</em>}' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDistributionManagement()
- * @generated
- * @ordered
- */
- protected DistributionManagement distributionManagement;
-
- /**
- * This is true if the Distribution Management containment reference has
- * been set. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean distributionManagementESet;
-
- /**
- * The cached value of the '{@link #getProperties() <em>Properties</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getProperties()
- * @generated
- * @ordered
- */
- protected EList<PropertyElement> properties;
-
- /**
- * The cached value of the '{@link #getModules() <em>Modules</em>}'
- * attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getModules()
- * @generated
- * @ordered
- */
- protected EList<String> modules;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ModelImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.MODEL;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Parent getParent() {
- return parent;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetParent(Parent newParent,
- NotificationChain msgs) {
- Parent oldParent = parent;
- parent = newParent;
- boolean oldParentESet = parentESet;
- parentESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.MODEL__PARENT, oldParent,
- newParent, !oldParentESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setParent(Parent newParent) {
- if (newParent != parent) {
- NotificationChain msgs = null;
- if (parent != null)
- msgs = ((InternalEObject) parent).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__PARENT,
- null, msgs);
- if (newParent != null)
- msgs = ((InternalEObject) newParent).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__PARENT,
- null, msgs);
- msgs = basicSetParent(newParent, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldParentESet = parentESet;
- parentESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__PARENT, newParent, newParent,
- !oldParentESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetParent(NotificationChain msgs) {
- Parent oldParent = parent;
- parent = null;
- boolean oldParentESet = parentESet;
- parentESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET, PomPackage.MODEL__PARENT, oldParent,
- null, oldParentESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetParent() {
- if (parent != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) parent).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__PARENT, null,
- msgs);
- msgs = basicUnsetParent(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldParentESet = parentESet;
- parentESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.MODEL__PARENT, null, null, oldParentESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetParent() {
- return parentESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getModelVersion() {
- return modelVersion;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setModelVersion(String newModelVersion) {
- String oldModelVersion = modelVersion;
- modelVersion = newModelVersion;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__MODEL_VERSION, oldModelVersion,
- modelVersion));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getGroupId() {
- return groupId;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setGroupId(String newGroupId) {
- String oldGroupId = groupId;
- groupId = newGroupId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__GROUP_ID, oldGroupId, groupId));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getArtifactId() {
- return artifactId;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setArtifactId(String newArtifactId) {
- String oldArtifactId = artifactId;
- artifactId = newArtifactId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__ARTIFACT_ID, oldArtifactId, artifactId));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getPackaging() {
- return packaging;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setPackaging(String newPackaging) {
- String oldPackaging = packaging;
- packaging = newPackaging;
- boolean oldPackagingESet = packagingESet;
- packagingESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__PACKAGING, oldPackaging, packaging,
- !oldPackagingESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetPackaging() {
- String oldPackaging = packaging;
- boolean oldPackagingESet = packagingESet;
- packaging = PACKAGING_EDEFAULT;
- packagingESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.MODEL__PACKAGING, oldPackaging,
- PACKAGING_EDEFAULT, oldPackagingESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetPackaging() {
- return packagingESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getVersion() {
- return version;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setVersion(String newVersion) {
- String oldVersion = version;
- version = newVersion;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__VERSION, oldVersion, version));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getUrl() {
- return url;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setUrl(String newUrl) {
- String oldUrl = url;
- url = newUrl;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__URL, oldUrl, url));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Prerequisites getPrerequisites() {
- return prerequisites;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetPrerequisites(
- Prerequisites newPrerequisites, NotificationChain msgs) {
- Prerequisites oldPrerequisites = prerequisites;
- prerequisites = newPrerequisites;
- boolean oldPrerequisitesESet = prerequisitesESet;
- prerequisitesESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.MODEL__PREREQUISITES,
- oldPrerequisites, newPrerequisites, !oldPrerequisitesESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setPrerequisites(Prerequisites newPrerequisites) {
- if (newPrerequisites != prerequisites) {
- NotificationChain msgs = null;
- if (prerequisites != null)
- msgs = ((InternalEObject) prerequisites).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.MODEL__PREREQUISITES, null, msgs);
- if (newPrerequisites != null)
- msgs = ((InternalEObject) newPrerequisites).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.MODEL__PREREQUISITES, null, msgs);
- msgs = basicSetPrerequisites(newPrerequisites, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldPrerequisitesESet = prerequisitesESet;
- prerequisitesESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__PREREQUISITES, newPrerequisites,
- newPrerequisites, !oldPrerequisitesESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetPrerequisites(NotificationChain msgs) {
- Prerequisites oldPrerequisites = prerequisites;
- prerequisites = null;
- boolean oldPrerequisitesESet = prerequisitesESet;
- prerequisitesESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET, PomPackage.MODEL__PREREQUISITES,
- oldPrerequisites, null, oldPrerequisitesESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetPrerequisites() {
- if (prerequisites != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) prerequisites).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__PREREQUISITES,
- null, msgs);
- msgs = basicUnsetPrerequisites(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldPrerequisitesESet = prerequisitesESet;
- prerequisitesESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.MODEL__PREREQUISITES, null, null,
- oldPrerequisitesESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetPrerequisites() {
- return prerequisitesESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public IssueManagement getIssueManagement() {
- return issueManagement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetIssueManagement(
- IssueManagement newIssueManagement, NotificationChain msgs) {
- IssueManagement oldIssueManagement = issueManagement;
- issueManagement = newIssueManagement;
- boolean oldIssueManagementESet = issueManagementESet;
- issueManagementESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.MODEL__ISSUE_MANAGEMENT,
- oldIssueManagement, newIssueManagement,
- !oldIssueManagementESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setIssueManagement(IssueManagement newIssueManagement) {
- if (newIssueManagement != issueManagement) {
- NotificationChain msgs = null;
- if (issueManagement != null)
- msgs = ((InternalEObject) issueManagement).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.MODEL__ISSUE_MANAGEMENT, null,
- msgs);
- if (newIssueManagement != null)
- msgs = ((InternalEObject) newIssueManagement).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.MODEL__ISSUE_MANAGEMENT, null,
- msgs);
- msgs = basicSetIssueManagement(newIssueManagement, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldIssueManagementESet = issueManagementESet;
- issueManagementESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__ISSUE_MANAGEMENT, newIssueManagement,
- newIssueManagement, !oldIssueManagementESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetIssueManagement(NotificationChain msgs) {
- IssueManagement oldIssueManagement = issueManagement;
- issueManagement = null;
- boolean oldIssueManagementESet = issueManagementESet;
- issueManagementESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET, PomPackage.MODEL__ISSUE_MANAGEMENT,
- oldIssueManagement, null, oldIssueManagementESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetIssueManagement() {
- if (issueManagement != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) issueManagement)
- .eInverseRemove(this, EOPPOSITE_FEATURE_BASE
- - PomPackage.MODEL__ISSUE_MANAGEMENT, null, msgs);
- msgs = basicUnsetIssueManagement(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldIssueManagementESet = issueManagementESet;
- issueManagementESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.MODEL__ISSUE_MANAGEMENT, null, null,
- oldIssueManagementESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetIssueManagement() {
- return issueManagementESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public CiManagement getCiManagement() {
- return ciManagement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetCiManagement(CiManagement newCiManagement,
- NotificationChain msgs) {
- CiManagement oldCiManagement = ciManagement;
- ciManagement = newCiManagement;
- boolean oldCiManagementESet = ciManagementESet;
- ciManagementESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.MODEL__CI_MANAGEMENT,
- oldCiManagement, newCiManagement, !oldCiManagementESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setCiManagement(CiManagement newCiManagement) {
- if (newCiManagement != ciManagement) {
- NotificationChain msgs = null;
- if (ciManagement != null)
- msgs = ((InternalEObject) ciManagement).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.MODEL__CI_MANAGEMENT, null, msgs);
- if (newCiManagement != null)
- msgs = ((InternalEObject) newCiManagement).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.MODEL__CI_MANAGEMENT, null, msgs);
- msgs = basicSetCiManagement(newCiManagement, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldCiManagementESet = ciManagementESet;
- ciManagementESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__CI_MANAGEMENT, newCiManagement,
- newCiManagement, !oldCiManagementESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetCiManagement(NotificationChain msgs) {
- CiManagement oldCiManagement = ciManagement;
- ciManagement = null;
- boolean oldCiManagementESet = ciManagementESet;
- ciManagementESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET, PomPackage.MODEL__CI_MANAGEMENT,
- oldCiManagement, null, oldCiManagementESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetCiManagement() {
- if (ciManagement != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) ciManagement).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__CI_MANAGEMENT,
- null, msgs);
- msgs = basicUnsetCiManagement(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldCiManagementESet = ciManagementESet;
- ciManagementESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.MODEL__CI_MANAGEMENT, null, null,
- oldCiManagementESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetCiManagement() {
- return ciManagementESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getInceptionYear() {
- return inceptionYear;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setInceptionYear(String newInceptionYear) {
- String oldInceptionYear = inceptionYear;
- inceptionYear = newInceptionYear;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__INCEPTION_YEAR, oldInceptionYear,
- inceptionYear));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<MailingList> getMailingLists() {
- if (mailingLists == null) {
- mailingLists = new EObjectContainmentEList.Unsettable<MailingList>(
- MailingList.class, this, PomPackage.MODEL__MAILING_LISTS);
- }
- return mailingLists;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetMailingLists() {
- if (mailingLists != null)
- ((InternalEList.Unsettable<?>) mailingLists).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetMailingLists() {
- return mailingLists != null
- && ((InternalEList.Unsettable<?>) mailingLists).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Developer> getDevelopers() {
- if (developers == null) {
- developers = new EObjectContainmentEList.Unsettable<Developer>(
- Developer.class, this, PomPackage.MODEL__DEVELOPERS);
- }
- return developers;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetDevelopers() {
- if (developers != null)
- ((InternalEList.Unsettable<?>) developers).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetDevelopers() {
- return developers != null
- && ((InternalEList.Unsettable<?>) developers).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Contributor> getContributors() {
- if (contributors == null) {
- contributors = new EObjectContainmentEList.Unsettable<Contributor>(
- Contributor.class, this, PomPackage.MODEL__CONTRIBUTORS);
- }
- return contributors;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetContributors() {
- if (contributors != null)
- ((InternalEList.Unsettable<?>) contributors).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetContributors() {
- return contributors != null
- && ((InternalEList.Unsettable<?>) contributors).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<License> getLicenses() {
- if (licenses == null) {
- licenses = new EObjectContainmentEList<License>(License.class,
- this, PomPackage.MODEL__LICENSES);
- }
- return licenses;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Scm getScm() {
- return scm;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetScm(Scm newScm, NotificationChain msgs) {
- Scm oldScm = scm;
- scm = newScm;
- boolean oldScmESet = scmESet;
- scmESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.MODEL__SCM, oldScm, newScm,
- !oldScmESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setScm(Scm newScm) {
- if (newScm != scm) {
- NotificationChain msgs = null;
- if (scm != null)
- msgs = ((InternalEObject) scm).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__SCM, null,
- msgs);
- if (newScm != null)
- msgs = ((InternalEObject) newScm).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__SCM, null,
- msgs);
- msgs = basicSetScm(newScm, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldScmESet = scmESet;
- scmESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__SCM, newScm, newScm, !oldScmESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetScm(NotificationChain msgs) {
- Scm oldScm = scm;
- scm = null;
- boolean oldScmESet = scmESet;
- scmESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET, PomPackage.MODEL__SCM, oldScm, null,
- oldScmESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetScm() {
- if (scm != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) scm).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__SCM, null, msgs);
- msgs = basicUnsetScm(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldScmESet = scmESet;
- scmESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.MODEL__SCM, null, null, oldScmESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetScm() {
- return scmESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Organization getOrganization() {
- return organization;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetOrganization(Organization newOrganization,
- NotificationChain msgs) {
- Organization oldOrganization = organization;
- organization = newOrganization;
- boolean oldOrganizationESet = organizationESet;
- organizationESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.MODEL__ORGANIZATION,
- oldOrganization, newOrganization, !oldOrganizationESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setOrganization(Organization newOrganization) {
- if (newOrganization != organization) {
- NotificationChain msgs = null;
- if (organization != null)
- msgs = ((InternalEObject) organization)
- .eInverseRemove(this, EOPPOSITE_FEATURE_BASE
- - PomPackage.MODEL__ORGANIZATION, null, msgs);
- if (newOrganization != null)
- msgs = ((InternalEObject) newOrganization)
- .eInverseAdd(this, EOPPOSITE_FEATURE_BASE
- - PomPackage.MODEL__ORGANIZATION, null, msgs);
- msgs = basicSetOrganization(newOrganization, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldOrganizationESet = organizationESet;
- organizationESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__ORGANIZATION, newOrganization,
- newOrganization, !oldOrganizationESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetOrganization(NotificationChain msgs) {
- Organization oldOrganization = organization;
- organization = null;
- boolean oldOrganizationESet = organizationESet;
- organizationESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET, PomPackage.MODEL__ORGANIZATION,
- oldOrganization, null, oldOrganizationESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetOrganization() {
- if (organization != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) organization).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__ORGANIZATION,
- null, msgs);
- msgs = basicUnsetOrganization(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldOrganizationESet = organizationESet;
- organizationESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.MODEL__ORGANIZATION, null, null,
- oldOrganizationESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetOrganization() {
- return organizationESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Build getBuild() {
- return build;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetBuild(Build newBuild,
- NotificationChain msgs) {
- Build oldBuild = build;
- build = newBuild;
- boolean oldBuildESet = buildESet;
- buildESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.MODEL__BUILD, oldBuild,
- newBuild, !oldBuildESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBuild(Build newBuild) {
- if (newBuild != build) {
- NotificationChain msgs = null;
- if (build != null)
- msgs = ((InternalEObject) build).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__BUILD, null,
- msgs);
- if (newBuild != null)
- msgs = ((InternalEObject) newBuild).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__BUILD, null,
- msgs);
- msgs = basicSetBuild(newBuild, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldBuildESet = buildESet;
- buildESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__BUILD, newBuild, newBuild,
- !oldBuildESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetBuild(NotificationChain msgs) {
- Build oldBuild = build;
- build = null;
- boolean oldBuildESet = buildESet;
- buildESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET, PomPackage.MODEL__BUILD, oldBuild,
- null, oldBuildESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetBuild() {
- if (build != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) build).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__BUILD, null,
- msgs);
- msgs = basicUnsetBuild(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldBuildESet = buildESet;
- buildESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.MODEL__BUILD, null, null, oldBuildESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetBuild() {
- return buildESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Profile> getProfiles() {
- if (profiles == null) {
- profiles = new EObjectContainmentEList.Unsettable<Profile>(
- Profile.class, this, PomPackage.MODEL__PROFILES);
- }
- return profiles;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetProfiles() {
- if (profiles != null)
- ((InternalEList.Unsettable<?>) profiles).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetProfiles() {
- return profiles != null
- && ((InternalEList.Unsettable<?>) profiles).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Repository> getRepositories() {
- if (repositories == null) {
- repositories = new EObjectContainmentEList.Unsettable<Repository>(
- Repository.class, this, PomPackage.MODEL__REPOSITORIES);
- }
- return repositories;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetRepositories() {
- if (repositories != null)
- ((InternalEList.Unsettable<?>) repositories).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetRepositories() {
- return repositories != null
- && ((InternalEList.Unsettable<?>) repositories).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Repository> getPluginRepositories() {
- if (pluginRepositories == null) {
- pluginRepositories = new EObjectContainmentEList.Unsettable<Repository>(
- Repository.class, this,
- PomPackage.MODEL__PLUGIN_REPOSITORIES);
- }
- return pluginRepositories;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetPluginRepositories() {
- if (pluginRepositories != null)
- ((InternalEList.Unsettable<?>) pluginRepositories).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetPluginRepositories() {
- return pluginRepositories != null
- && ((InternalEList.Unsettable<?>) pluginRepositories).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Dependency> getDependencies() {
- if (dependencies == null) {
- dependencies = new EObjectContainmentEList.Unsettable<Dependency>(
- Dependency.class, this, PomPackage.MODEL__DEPENDENCIES);
- }
- return dependencies;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetDependencies() {
- if (dependencies != null)
- ((InternalEList.Unsettable<?>) dependencies).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetDependencies() {
- return dependencies != null
- && ((InternalEList.Unsettable<?>) dependencies).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Reporting getReporting() {
- return reporting;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetReporting(Reporting newReporting,
- NotificationChain msgs) {
- Reporting oldReporting = reporting;
- reporting = newReporting;
- boolean oldReportingESet = reportingESet;
- reportingESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.MODEL__REPORTING,
- oldReporting, newReporting, !oldReportingESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setReporting(Reporting newReporting) {
- if (newReporting != reporting) {
- NotificationChain msgs = null;
- if (reporting != null)
- msgs = ((InternalEObject) reporting).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__REPORTING,
- null, msgs);
- if (newReporting != null)
- msgs = ((InternalEObject) newReporting).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__REPORTING,
- null, msgs);
- msgs = basicSetReporting(newReporting, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldReportingESet = reportingESet;
- reportingESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__REPORTING, newReporting,
- newReporting, !oldReportingESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetReporting(NotificationChain msgs) {
- Reporting oldReporting = reporting;
- reporting = null;
- boolean oldReportingESet = reportingESet;
- reportingESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET, PomPackage.MODEL__REPORTING,
- oldReporting, null, oldReportingESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetReporting() {
- if (reporting != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) reporting).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__REPORTING, null,
- msgs);
- msgs = basicUnsetReporting(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldReportingESet = reportingESet;
- reportingESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.MODEL__REPORTING, null, null,
- oldReportingESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetReporting() {
- return reportingESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DependencyManagement getDependencyManagement() {
- return dependencyManagement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetDependencyManagement(
- DependencyManagement newDependencyManagement, NotificationChain msgs) {
- DependencyManagement oldDependencyManagement = dependencyManagement;
- dependencyManagement = newDependencyManagement;
- boolean oldDependencyManagementESet = dependencyManagementESet;
- dependencyManagementESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.MODEL__DEPENDENCY_MANAGEMENT,
- oldDependencyManagement, newDependencyManagement,
- !oldDependencyManagementESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDependencyManagement(
- DependencyManagement newDependencyManagement) {
- if (newDependencyManagement != dependencyManagement) {
- NotificationChain msgs = null;
- if (dependencyManagement != null)
- msgs = ((InternalEObject) dependencyManagement).eInverseRemove(
- this, EOPPOSITE_FEATURE_BASE
- - PomPackage.MODEL__DEPENDENCY_MANAGEMENT,
- null, msgs);
- if (newDependencyManagement != null)
- msgs = ((InternalEObject) newDependencyManagement).eInverseAdd(
- this, EOPPOSITE_FEATURE_BASE
- - PomPackage.MODEL__DEPENDENCY_MANAGEMENT,
- null, msgs);
- msgs = basicSetDependencyManagement(newDependencyManagement, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldDependencyManagementESet = dependencyManagementESet;
- dependencyManagementESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__DEPENDENCY_MANAGEMENT,
- newDependencyManagement, newDependencyManagement,
- !oldDependencyManagementESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetDependencyManagement(
- NotificationChain msgs) {
- DependencyManagement oldDependencyManagement = dependencyManagement;
- dependencyManagement = null;
- boolean oldDependencyManagementESet = dependencyManagementESet;
- dependencyManagementESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET,
- PomPackage.MODEL__DEPENDENCY_MANAGEMENT,
- oldDependencyManagement, null, oldDependencyManagementESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetDependencyManagement() {
- if (dependencyManagement != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) dependencyManagement).eInverseRemove(
- this, EOPPOSITE_FEATURE_BASE
- - PomPackage.MODEL__DEPENDENCY_MANAGEMENT, null,
- msgs);
- msgs = basicUnsetDependencyManagement(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldDependencyManagementESet = dependencyManagementESet;
- dependencyManagementESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.MODEL__DEPENDENCY_MANAGEMENT, null, null,
- oldDependencyManagementESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetDependencyManagement() {
- return dependencyManagementESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DistributionManagement getDistributionManagement() {
- return distributionManagement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetDistributionManagement(
- DistributionManagement newDistributionManagement,
- NotificationChain msgs) {
- DistributionManagement oldDistributionManagement = distributionManagement;
- distributionManagement = newDistributionManagement;
- boolean oldDistributionManagementESet = distributionManagementESet;
- distributionManagementESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET,
- PomPackage.MODEL__DISTRIBUTION_MANAGEMENT,
- oldDistributionManagement, newDistributionManagement,
- !oldDistributionManagementESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDistributionManagement(
- DistributionManagement newDistributionManagement) {
- if (newDistributionManagement != distributionManagement) {
- NotificationChain msgs = null;
- if (distributionManagement != null)
- msgs = ((InternalEObject) distributionManagement)
- .eInverseRemove(this, EOPPOSITE_FEATURE_BASE
- - PomPackage.MODEL__DISTRIBUTION_MANAGEMENT,
- null, msgs);
- if (newDistributionManagement != null)
- msgs = ((InternalEObject) newDistributionManagement)
- .eInverseAdd(this, EOPPOSITE_FEATURE_BASE
- - PomPackage.MODEL__DISTRIBUTION_MANAGEMENT,
- null, msgs);
- msgs = basicSetDistributionManagement(newDistributionManagement,
- msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldDistributionManagementESet = distributionManagementESet;
- distributionManagementESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.MODEL__DISTRIBUTION_MANAGEMENT,
- newDistributionManagement, newDistributionManagement,
- !oldDistributionManagementESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetDistributionManagement(
- NotificationChain msgs) {
- DistributionManagement oldDistributionManagement = distributionManagement;
- distributionManagement = null;
- boolean oldDistributionManagementESet = distributionManagementESet;
- distributionManagementESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET,
- PomPackage.MODEL__DISTRIBUTION_MANAGEMENT,
- oldDistributionManagement, null,
- oldDistributionManagementESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetDistributionManagement() {
- if (distributionManagement != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) distributionManagement).eInverseRemove(
- this, EOPPOSITE_FEATURE_BASE
- - PomPackage.MODEL__DISTRIBUTION_MANAGEMENT, null,
- msgs);
- msgs = basicUnsetDistributionManagement(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldDistributionManagementESet = distributionManagementESet;
- distributionManagementESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.MODEL__DISTRIBUTION_MANAGEMENT, null, null,
- oldDistributionManagementESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetDistributionManagement() {
- return distributionManagementESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<PropertyElement> getProperties() {
- if (properties == null) {
- properties = new EObjectContainmentEList.Unsettable<PropertyElement>(
- PropertyElement.class, this, PomPackage.MODEL__PROPERTIES);
- }
- return properties;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetProperties() {
- if (properties != null)
- ((InternalEList.Unsettable<?>) properties).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetProperties() {
- return properties != null
- && ((InternalEList.Unsettable<?>) properties).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getModules() {
- if (modules == null) {
- modules = new EDataTypeEList<String>(String.class, this,
- PomPackage.MODEL__MODULES);
- }
- return modules;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.MODEL__PARENT:
- return basicUnsetParent(msgs);
- case PomPackage.MODEL__PREREQUISITES:
- return basicUnsetPrerequisites(msgs);
- case PomPackage.MODEL__ISSUE_MANAGEMENT:
- return basicUnsetIssueManagement(msgs);
- case PomPackage.MODEL__CI_MANAGEMENT:
- return basicUnsetCiManagement(msgs);
- case PomPackage.MODEL__MAILING_LISTS:
- return ((InternalEList<?>) getMailingLists()).basicRemove(otherEnd,
- msgs);
- case PomPackage.MODEL__DEVELOPERS:
- return ((InternalEList<?>) getDevelopers()).basicRemove(otherEnd,
- msgs);
- case PomPackage.MODEL__CONTRIBUTORS:
- return ((InternalEList<?>) getContributors()).basicRemove(otherEnd,
- msgs);
- case PomPackage.MODEL__LICENSES:
- return ((InternalEList<?>) getLicenses()).basicRemove(otherEnd,
- msgs);
- case PomPackage.MODEL__SCM:
- return basicUnsetScm(msgs);
- case PomPackage.MODEL__ORGANIZATION:
- return basicUnsetOrganization(msgs);
- case PomPackage.MODEL__BUILD:
- return basicUnsetBuild(msgs);
- case PomPackage.MODEL__PROFILES:
- return ((InternalEList<?>) getProfiles()).basicRemove(otherEnd,
- msgs);
- case PomPackage.MODEL__REPOSITORIES:
- return ((InternalEList<?>) getRepositories()).basicRemove(otherEnd,
- msgs);
- case PomPackage.MODEL__PLUGIN_REPOSITORIES:
- return ((InternalEList<?>) getPluginRepositories()).basicRemove(
- otherEnd, msgs);
- case PomPackage.MODEL__DEPENDENCIES:
- return ((InternalEList<?>) getDependencies()).basicRemove(otherEnd,
- msgs);
- case PomPackage.MODEL__REPORTING:
- return basicUnsetReporting(msgs);
- case PomPackage.MODEL__DEPENDENCY_MANAGEMENT:
- return basicUnsetDependencyManagement(msgs);
- case PomPackage.MODEL__DISTRIBUTION_MANAGEMENT:
- return basicUnsetDistributionManagement(msgs);
- case PomPackage.MODEL__PROPERTIES:
- return ((InternalEList<?>) getProperties()).basicRemove(otherEnd,
- msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.MODEL__PARENT:
- return getParent();
- case PomPackage.MODEL__MODEL_VERSION:
- return getModelVersion();
- case PomPackage.MODEL__GROUP_ID:
- return getGroupId();
- case PomPackage.MODEL__ARTIFACT_ID:
- return getArtifactId();
- case PomPackage.MODEL__PACKAGING:
- return getPackaging();
- case PomPackage.MODEL__NAME:
- return getName();
- case PomPackage.MODEL__VERSION:
- return getVersion();
- case PomPackage.MODEL__DESCRIPTION:
- return getDescription();
- case PomPackage.MODEL__URL:
- return getUrl();
- case PomPackage.MODEL__PREREQUISITES:
- return getPrerequisites();
- case PomPackage.MODEL__ISSUE_MANAGEMENT:
- return getIssueManagement();
- case PomPackage.MODEL__CI_MANAGEMENT:
- return getCiManagement();
- case PomPackage.MODEL__INCEPTION_YEAR:
- return getInceptionYear();
- case PomPackage.MODEL__MAILING_LISTS:
- return getMailingLists();
- case PomPackage.MODEL__DEVELOPERS:
- return getDevelopers();
- case PomPackage.MODEL__CONTRIBUTORS:
- return getContributors();
- case PomPackage.MODEL__LICENSES:
- return getLicenses();
- case PomPackage.MODEL__SCM:
- return getScm();
- case PomPackage.MODEL__ORGANIZATION:
- return getOrganization();
- case PomPackage.MODEL__BUILD:
- return getBuild();
- case PomPackage.MODEL__PROFILES:
- return getProfiles();
- case PomPackage.MODEL__REPOSITORIES:
- return getRepositories();
- case PomPackage.MODEL__PLUGIN_REPOSITORIES:
- return getPluginRepositories();
- case PomPackage.MODEL__DEPENDENCIES:
- return getDependencies();
- case PomPackage.MODEL__REPORTING:
- return getReporting();
- case PomPackage.MODEL__DEPENDENCY_MANAGEMENT:
- return getDependencyManagement();
- case PomPackage.MODEL__DISTRIBUTION_MANAGEMENT:
- return getDistributionManagement();
- case PomPackage.MODEL__PROPERTIES:
- return getProperties();
- case PomPackage.MODEL__MODULES:
- return getModules();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.MODEL__PARENT:
- setParent((Parent) newValue);
- return;
- case PomPackage.MODEL__MODEL_VERSION:
- setModelVersion((String) newValue);
- return;
- case PomPackage.MODEL__GROUP_ID:
- setGroupId((String) newValue);
- return;
- case PomPackage.MODEL__ARTIFACT_ID:
- setArtifactId((String) newValue);
- return;
- case PomPackage.MODEL__PACKAGING:
- setPackaging((String) newValue);
- return;
- case PomPackage.MODEL__NAME:
- setName((String) newValue);
- return;
- case PomPackage.MODEL__VERSION:
- setVersion((String) newValue);
- return;
- case PomPackage.MODEL__DESCRIPTION:
- setDescription((String) newValue);
- return;
- case PomPackage.MODEL__URL:
- setUrl((String) newValue);
- return;
- case PomPackage.MODEL__PREREQUISITES:
- setPrerequisites((Prerequisites) newValue);
- return;
- case PomPackage.MODEL__ISSUE_MANAGEMENT:
- setIssueManagement((IssueManagement) newValue);
- return;
- case PomPackage.MODEL__CI_MANAGEMENT:
- setCiManagement((CiManagement) newValue);
- return;
- case PomPackage.MODEL__INCEPTION_YEAR:
- setInceptionYear((String) newValue);
- return;
- case PomPackage.MODEL__MAILING_LISTS:
- getMailingLists().clear();
- getMailingLists().addAll(
- (Collection<? extends MailingList>) newValue);
- return;
- case PomPackage.MODEL__DEVELOPERS:
- getDevelopers().clear();
- getDevelopers().addAll((Collection<? extends Developer>) newValue);
- return;
- case PomPackage.MODEL__CONTRIBUTORS:
- getContributors().clear();
- getContributors().addAll(
- (Collection<? extends Contributor>) newValue);
- return;
- case PomPackage.MODEL__LICENSES:
- getLicenses().clear();
- getLicenses().addAll((Collection<? extends License>) newValue);
- return;
- case PomPackage.MODEL__SCM:
- setScm((Scm) newValue);
- return;
- case PomPackage.MODEL__ORGANIZATION:
- setOrganization((Organization) newValue);
- return;
- case PomPackage.MODEL__BUILD:
- setBuild((Build) newValue);
- return;
- case PomPackage.MODEL__PROFILES:
- getProfiles().clear();
- getProfiles().addAll((Collection<? extends Profile>) newValue);
- return;
- case PomPackage.MODEL__REPOSITORIES:
- getRepositories().clear();
- getRepositories().addAll(
- (Collection<? extends Repository>) newValue);
- return;
- case PomPackage.MODEL__PLUGIN_REPOSITORIES:
- getPluginRepositories().clear();
- getPluginRepositories().addAll(
- (Collection<? extends Repository>) newValue);
- return;
- case PomPackage.MODEL__DEPENDENCIES:
- getDependencies().clear();
- getDependencies().addAll(
- (Collection<? extends Dependency>) newValue);
- return;
- case PomPackage.MODEL__REPORTING:
- setReporting((Reporting) newValue);
- return;
- case PomPackage.MODEL__DEPENDENCY_MANAGEMENT:
- setDependencyManagement((DependencyManagement) newValue);
- return;
- case PomPackage.MODEL__DISTRIBUTION_MANAGEMENT:
- setDistributionManagement((DistributionManagement) newValue);
- return;
- case PomPackage.MODEL__PROPERTIES:
- getProperties().clear();
- getProperties().addAll(
- (Collection<? extends PropertyElement>) newValue);
- return;
- case PomPackage.MODEL__MODULES:
- getModules().clear();
- getModules().addAll((Collection<? extends String>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.MODEL__PARENT:
- unsetParent();
- return;
- case PomPackage.MODEL__MODEL_VERSION:
- setModelVersion(MODEL_VERSION_EDEFAULT);
- return;
- case PomPackage.MODEL__GROUP_ID:
- setGroupId(GROUP_ID_EDEFAULT);
- return;
- case PomPackage.MODEL__ARTIFACT_ID:
- setArtifactId(ARTIFACT_ID_EDEFAULT);
- return;
- case PomPackage.MODEL__PACKAGING:
- unsetPackaging();
- return;
- case PomPackage.MODEL__NAME:
- setName(NAME_EDEFAULT);
- return;
- case PomPackage.MODEL__VERSION:
- setVersion(VERSION_EDEFAULT);
- return;
- case PomPackage.MODEL__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case PomPackage.MODEL__URL:
- setUrl(URL_EDEFAULT);
- return;
- case PomPackage.MODEL__PREREQUISITES:
- unsetPrerequisites();
- return;
- case PomPackage.MODEL__ISSUE_MANAGEMENT:
- unsetIssueManagement();
- return;
- case PomPackage.MODEL__CI_MANAGEMENT:
- unsetCiManagement();
- return;
- case PomPackage.MODEL__INCEPTION_YEAR:
- setInceptionYear(INCEPTION_YEAR_EDEFAULT);
- return;
- case PomPackage.MODEL__MAILING_LISTS:
- unsetMailingLists();
- return;
- case PomPackage.MODEL__DEVELOPERS:
- unsetDevelopers();
- return;
- case PomPackage.MODEL__CONTRIBUTORS:
- unsetContributors();
- return;
- case PomPackage.MODEL__LICENSES:
- getLicenses().clear();
- return;
- case PomPackage.MODEL__SCM:
- unsetScm();
- return;
- case PomPackage.MODEL__ORGANIZATION:
- unsetOrganization();
- return;
- case PomPackage.MODEL__BUILD:
- unsetBuild();
- return;
- case PomPackage.MODEL__PROFILES:
- unsetProfiles();
- return;
- case PomPackage.MODEL__REPOSITORIES:
- unsetRepositories();
- return;
- case PomPackage.MODEL__PLUGIN_REPOSITORIES:
- unsetPluginRepositories();
- return;
- case PomPackage.MODEL__DEPENDENCIES:
- unsetDependencies();
- return;
- case PomPackage.MODEL__REPORTING:
- unsetReporting();
- return;
- case PomPackage.MODEL__DEPENDENCY_MANAGEMENT:
- unsetDependencyManagement();
- return;
- case PomPackage.MODEL__DISTRIBUTION_MANAGEMENT:
- unsetDistributionManagement();
- return;
- case PomPackage.MODEL__PROPERTIES:
- unsetProperties();
- return;
- case PomPackage.MODEL__MODULES:
- getModules().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.MODEL__PARENT:
- return isSetParent();
- case PomPackage.MODEL__MODEL_VERSION:
- return MODEL_VERSION_EDEFAULT == null ? modelVersion != null
- : !MODEL_VERSION_EDEFAULT.equals(modelVersion);
- case PomPackage.MODEL__GROUP_ID:
- return GROUP_ID_EDEFAULT == null ? groupId != null
- : !GROUP_ID_EDEFAULT.equals(groupId);
- case PomPackage.MODEL__ARTIFACT_ID:
- return ARTIFACT_ID_EDEFAULT == null ? artifactId != null
- : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
- case PomPackage.MODEL__PACKAGING:
- return isSetPackaging();
- case PomPackage.MODEL__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT
- .equals(name);
- case PomPackage.MODEL__VERSION:
- return VERSION_EDEFAULT == null ? version != null
- : !VERSION_EDEFAULT.equals(version);
- case PomPackage.MODEL__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null
- : !DESCRIPTION_EDEFAULT.equals(description);
- case PomPackage.MODEL__URL:
- return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT
- .equals(url);
- case PomPackage.MODEL__PREREQUISITES:
- return isSetPrerequisites();
- case PomPackage.MODEL__ISSUE_MANAGEMENT:
- return isSetIssueManagement();
- case PomPackage.MODEL__CI_MANAGEMENT:
- return isSetCiManagement();
- case PomPackage.MODEL__INCEPTION_YEAR:
- return INCEPTION_YEAR_EDEFAULT == null ? inceptionYear != null
- : !INCEPTION_YEAR_EDEFAULT.equals(inceptionYear);
- case PomPackage.MODEL__MAILING_LISTS:
- return isSetMailingLists();
- case PomPackage.MODEL__DEVELOPERS:
- return isSetDevelopers();
- case PomPackage.MODEL__CONTRIBUTORS:
- return isSetContributors();
- case PomPackage.MODEL__LICENSES:
- return licenses != null && !licenses.isEmpty();
- case PomPackage.MODEL__SCM:
- return isSetScm();
- case PomPackage.MODEL__ORGANIZATION:
- return isSetOrganization();
- case PomPackage.MODEL__BUILD:
- return isSetBuild();
- case PomPackage.MODEL__PROFILES:
- return isSetProfiles();
- case PomPackage.MODEL__REPOSITORIES:
- return isSetRepositories();
- case PomPackage.MODEL__PLUGIN_REPOSITORIES:
- return isSetPluginRepositories();
- case PomPackage.MODEL__DEPENDENCIES:
- return isSetDependencies();
- case PomPackage.MODEL__REPORTING:
- return isSetReporting();
- case PomPackage.MODEL__DEPENDENCY_MANAGEMENT:
- return isSetDependencyManagement();
- case PomPackage.MODEL__DISTRIBUTION_MANAGEMENT:
- return isSetDistributionManagement();
- case PomPackage.MODEL__PROPERTIES:
- return isSetProperties();
- case PomPackage.MODEL__MODULES:
- return modules != null && !modules.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (modelVersion: "); //$NON-NLS-1$
- result.append(modelVersion);
- result.append(", groupId: "); //$NON-NLS-1$
- result.append(groupId);
- result.append(", artifactId: "); //$NON-NLS-1$
- result.append(artifactId);
- result.append(", packaging: "); //$NON-NLS-1$
- if (packagingESet)
- result.append(packaging);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", name: "); //$NON-NLS-1$
- result.append(name);
- result.append(", version: "); //$NON-NLS-1$
- result.append(version);
- result.append(", description: "); //$NON-NLS-1$
- result.append(description);
- result.append(", url: "); //$NON-NLS-1$
- result.append(url);
- result.append(", inceptionYear: "); //$NON-NLS-1$
- result.append(inceptionYear);
- result.append(", modules: "); //$NON-NLS-1$
- result.append(modules);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The cached value of the '{@link #getParent() <em>Parent</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getParent()
+ * @generated
+ * @ordered
+ */
+ protected Parent parent;
+
+ /**
+ * This is true if the Parent containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean parentESet;
+
+ /**
+ * The default value of the '{@link #getModelVersion() <em>Model Version</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getModelVersion()
+ * @generated
+ * @ordered
+ */
+ protected static final String MODEL_VERSION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getModelVersion() <em>Model Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getModelVersion()
+ * @generated
+ * @ordered
+ */
+ protected String modelVersion = MODEL_VERSION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected static final String GROUP_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected String groupId = GROUP_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ARTIFACT_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected String artifactId = ARTIFACT_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getPackaging() <em>Packaging</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getPackaging()
+ * @generated
+ * @ordered
+ */
+ protected static final String PACKAGING_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getPackaging() <em>Packaging</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getPackaging()
+ * @generated
+ * @ordered
+ */
+ protected String packaging = PACKAGING_EDEFAULT;
+
+ /**
+ * This is true if the Packaging attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean packagingESet;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected static final String VERSION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected String version = VERSION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getDescription()
+ * @generated
+ * @ordered
+ */
+ protected static final String DESCRIPTION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getDescription()
+ * @generated
+ * @ordered
+ */
+ protected String description = DESCRIPTION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String URL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected String url = URL_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getPrerequisites() <em>Prerequisites</em>}' containment reference. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getPrerequisites()
+ * @generated
+ * @ordered
+ */
+ protected Prerequisites prerequisites;
+
+ /**
+ * This is true if the Prerequisites containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean prerequisitesESet;
+
+ /**
+ * The cached value of the '{@link #getIssueManagement() <em>Issue Management</em>}' containment reference. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getIssueManagement()
+ * @generated
+ * @ordered
+ */
+ protected IssueManagement issueManagement;
+
+ /**
+ * This is true if the Issue Management containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean issueManagementESet;
+
+ /**
+ * The cached value of the '{@link #getCiManagement() <em>Ci Management</em>}' containment reference. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getCiManagement()
+ * @generated
+ * @ordered
+ */
+ protected CiManagement ciManagement;
+
+ /**
+ * This is true if the Ci Management containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean ciManagementESet;
+
+ /**
+ * The default value of the '{@link #getInceptionYear() <em>Inception Year</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getInceptionYear()
+ * @generated
+ * @ordered
+ */
+ protected static final String INCEPTION_YEAR_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getInceptionYear() <em>Inception Year</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getInceptionYear()
+ * @generated
+ * @ordered
+ */
+ protected String inceptionYear = INCEPTION_YEAR_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getMailingLists() <em>Mailing Lists</em>}' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getMailingLists()
+ * @generated
+ * @ordered
+ */
+ protected EList<MailingList> mailingLists;
+
+ /**
+ * The cached value of the '{@link #getDevelopers() <em>Developers</em>}' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getDevelopers()
+ * @generated
+ * @ordered
+ */
+ protected EList<Developer> developers;
+
+ /**
+ * The cached value of the '{@link #getContributors() <em>Contributors</em>} ' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getContributors()
+ * @generated
+ * @ordered
+ */
+ protected EList<Contributor> contributors;
+
+ /**
+ * The cached value of the '{@link #getLicenses() <em>Licenses</em>}' containment reference list. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getLicenses()
+ * @generated
+ * @ordered
+ */
+ protected EList<License> licenses;
+
+ /**
+ * The cached value of the '{@link #getScm() <em>Scm</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getScm()
+ * @generated
+ * @ordered
+ */
+ protected Scm scm;
+
+ /**
+ * This is true if the Scm containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean scmESet;
+
+ /**
+ * The cached value of the '{@link #getOrganization() <em>Organization</em>} ' containment reference. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getOrganization()
+ * @generated
+ * @ordered
+ */
+ protected Organization organization;
+
+ /**
+ * This is true if the Organization containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean organizationESet;
+
+ /**
+ * The cached value of the '{@link #getBuild() <em>Build</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getBuild()
+ * @generated
+ * @ordered
+ */
+ protected Build build;
+
+ /**
+ * This is true if the Build containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean buildESet;
+
+ /**
+ * The cached value of the '{@link #getProfiles() <em>Profiles</em>}' containment reference list. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getProfiles()
+ * @generated
+ * @ordered
+ */
+ protected EList<Profile> profiles;
+
+ /**
+ * The cached value of the '{@link #getRepositories() <em>Repositories</em>} ' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getRepositories()
+ * @generated
+ * @ordered
+ */
+ protected EList<Repository> repositories;
+
+ /**
+ * The cached value of the '{@link #getPluginRepositories() <em>Plugin Repositories</em>}' containment reference list.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getPluginRepositories()
+ * @generated
+ * @ordered
+ */
+ protected EList<Repository> pluginRepositories;
+
+ /**
+ * The cached value of the '{@link #getDependencies() <em>Dependencies</em>} ' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getDependencies()
+ * @generated
+ * @ordered
+ */
+ protected EList<Dependency> dependencies;
+
+ /**
+ * The cached value of the '{@link #getReporting() <em>Reporting</em>}' containment reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getReporting()
+ * @generated
+ * @ordered
+ */
+ protected Reporting reporting;
+
+ /**
+ * This is true if the Reporting containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean reportingESet;
+
+ /**
+ * The cached value of the '{@link #getDependencyManagement() <em>Dependency Management</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getDependencyManagement()
+ * @generated
+ * @ordered
+ */
+ protected DependencyManagement dependencyManagement;
+
+ /**
+ * This is true if the Dependency Management containment reference has been set. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean dependencyManagementESet;
+
+ /**
+ * The cached value of the '{@link #getDistributionManagement() <em>Distribution Management</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getDistributionManagement()
+ * @generated
+ * @ordered
+ */
+ protected DistributionManagement distributionManagement;
+
+ /**
+ * This is true if the Distribution Management containment reference has been set. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean distributionManagementESet;
+
+ /**
+ * The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getProperties()
+ * @generated
+ * @ordered
+ */
+ protected EList<PropertyElement> properties;
+
+ /**
+ * The cached value of the '{@link #getModules() <em>Modules</em>}' attribute list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getModules()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> modules;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ModelImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.MODEL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Parent getParent() {
+ return parent;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetParent(Parent newParent, NotificationChain msgs) {
+ Parent oldParent = parent;
+ parent = newParent;
+ boolean oldParentESet = parentESet;
+ parentESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__PARENT,
+ oldParent, newParent, !oldParentESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(Parent newParent) {
+ if(newParent != parent) {
+ NotificationChain msgs = null;
+ if(parent != null)
+ msgs = ((InternalEObject) parent).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__PARENT, null,
+ msgs);
+ if(newParent != null)
+ msgs = ((InternalEObject) newParent).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__PARENT, null,
+ msgs);
+ msgs = basicSetParent(newParent, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldParentESet = parentESet;
+ parentESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__PARENT, newParent, newParent,
+ !oldParentESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetParent(NotificationChain msgs) {
+ Parent oldParent = parent;
+ parent = null;
+ boolean oldParentESet = parentESet;
+ parentESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__PARENT,
+ oldParent, null, oldParentESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetParent() {
+ if(parent != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) parent).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__PARENT, null,
+ msgs);
+ msgs = basicUnsetParent(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldParentESet = parentESet;
+ parentESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__PARENT, null, null, oldParentESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetParent() {
+ return parentESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getModelVersion() {
+ return modelVersion;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setModelVersion(String newModelVersion) {
+ String oldModelVersion = modelVersion;
+ modelVersion = newModelVersion;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__MODEL_VERSION, oldModelVersion,
+ modelVersion));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getGroupId() {
+ return groupId;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setGroupId(String newGroupId) {
+ String oldGroupId = groupId;
+ groupId = newGroupId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__GROUP_ID, oldGroupId, groupId));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getArtifactId() {
+ return artifactId;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setArtifactId(String newArtifactId) {
+ String oldArtifactId = artifactId;
+ artifactId = newArtifactId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__ARTIFACT_ID, oldArtifactId, artifactId));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getPackaging() {
+ return packaging;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setPackaging(String newPackaging) {
+ String oldPackaging = packaging;
+ packaging = newPackaging;
+ boolean oldPackagingESet = packagingESet;
+ packagingESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__PACKAGING, oldPackaging, packaging,
+ !oldPackagingESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetPackaging() {
+ String oldPackaging = packaging;
+ boolean oldPackagingESet = packagingESet;
+ packaging = PACKAGING_EDEFAULT;
+ packagingESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__PACKAGING, oldPackaging,
+ PACKAGING_EDEFAULT, oldPackagingESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetPackaging() {
+ return packagingESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setVersion(String newVersion) {
+ String oldVersion = version;
+ version = newVersion;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__VERSION, oldVersion, version));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setDescription(String newDescription) {
+ String oldDescription = description;
+ description = newDescription;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__DESCRIPTION, oldDescription, description));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getUrl() {
+ return url;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setUrl(String newUrl) {
+ String oldUrl = url;
+ url = newUrl;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__URL, oldUrl, url));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Prerequisites getPrerequisites() {
+ return prerequisites;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetPrerequisites(Prerequisites newPrerequisites, NotificationChain msgs) {
+ Prerequisites oldPrerequisites = prerequisites;
+ prerequisites = newPrerequisites;
+ boolean oldPrerequisitesESet = prerequisitesESet;
+ prerequisitesESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__PREREQUISITES,
+ oldPrerequisites, newPrerequisites, !oldPrerequisitesESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setPrerequisites(Prerequisites newPrerequisites) {
+ if(newPrerequisites != prerequisites) {
+ NotificationChain msgs = null;
+ if(prerequisites != null)
+ msgs = ((InternalEObject) prerequisites).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__PREREQUISITES, null, msgs);
+ if(newPrerequisites != null)
+ msgs = ((InternalEObject) newPrerequisites).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__PREREQUISITES, null, msgs);
+ msgs = basicSetPrerequisites(newPrerequisites, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldPrerequisitesESet = prerequisitesESet;
+ prerequisitesESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__PREREQUISITES, newPrerequisites,
+ newPrerequisites, !oldPrerequisitesESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetPrerequisites(NotificationChain msgs) {
+ Prerequisites oldPrerequisites = prerequisites;
+ prerequisites = null;
+ boolean oldPrerequisitesESet = prerequisitesESet;
+ prerequisitesESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__PREREQUISITES,
+ oldPrerequisites, null, oldPrerequisitesESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetPrerequisites() {
+ if(prerequisites != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) prerequisites).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__PREREQUISITES, null, msgs);
+ msgs = basicUnsetPrerequisites(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldPrerequisitesESet = prerequisitesESet;
+ prerequisitesESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__PREREQUISITES, null, null,
+ oldPrerequisitesESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetPrerequisites() {
+ return prerequisitesESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public IssueManagement getIssueManagement() {
+ return issueManagement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetIssueManagement(IssueManagement newIssueManagement, NotificationChain msgs) {
+ IssueManagement oldIssueManagement = issueManagement;
+ issueManagement = newIssueManagement;
+ boolean oldIssueManagementESet = issueManagementESet;
+ issueManagementESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ PomPackage.MODEL__ISSUE_MANAGEMENT, oldIssueManagement, newIssueManagement, !oldIssueManagementESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setIssueManagement(IssueManagement newIssueManagement) {
+ if(newIssueManagement != issueManagement) {
+ NotificationChain msgs = null;
+ if(issueManagement != null)
+ msgs = ((InternalEObject) issueManagement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__ISSUE_MANAGEMENT, null, msgs);
+ if(newIssueManagement != null)
+ msgs = ((InternalEObject) newIssueManagement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__ISSUE_MANAGEMENT, null, msgs);
+ msgs = basicSetIssueManagement(newIssueManagement, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldIssueManagementESet = issueManagementESet;
+ issueManagementESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__ISSUE_MANAGEMENT, newIssueManagement,
+ newIssueManagement, !oldIssueManagementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetIssueManagement(NotificationChain msgs) {
+ IssueManagement oldIssueManagement = issueManagement;
+ issueManagement = null;
+ boolean oldIssueManagementESet = issueManagementESet;
+ issueManagementESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET,
+ PomPackage.MODEL__ISSUE_MANAGEMENT, oldIssueManagement, null, oldIssueManagementESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetIssueManagement() {
+ if(issueManagement != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) issueManagement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__ISSUE_MANAGEMENT, null, msgs);
+ msgs = basicUnsetIssueManagement(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldIssueManagementESet = issueManagementESet;
+ issueManagementESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__ISSUE_MANAGEMENT, null, null,
+ oldIssueManagementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetIssueManagement() {
+ return issueManagementESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public CiManagement getCiManagement() {
+ return ciManagement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetCiManagement(CiManagement newCiManagement, NotificationChain msgs) {
+ CiManagement oldCiManagement = ciManagement;
+ ciManagement = newCiManagement;
+ boolean oldCiManagementESet = ciManagementESet;
+ ciManagementESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__CI_MANAGEMENT,
+ oldCiManagement, newCiManagement, !oldCiManagementESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setCiManagement(CiManagement newCiManagement) {
+ if(newCiManagement != ciManagement) {
+ NotificationChain msgs = null;
+ if(ciManagement != null)
+ msgs = ((InternalEObject) ciManagement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__CI_MANAGEMENT, null, msgs);
+ if(newCiManagement != null)
+ msgs = ((InternalEObject) newCiManagement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__CI_MANAGEMENT, null, msgs);
+ msgs = basicSetCiManagement(newCiManagement, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldCiManagementESet = ciManagementESet;
+ ciManagementESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__CI_MANAGEMENT, newCiManagement,
+ newCiManagement, !oldCiManagementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetCiManagement(NotificationChain msgs) {
+ CiManagement oldCiManagement = ciManagement;
+ ciManagement = null;
+ boolean oldCiManagementESet = ciManagementESet;
+ ciManagementESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__CI_MANAGEMENT,
+ oldCiManagement, null, oldCiManagementESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetCiManagement() {
+ if(ciManagement != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) ciManagement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__CI_MANAGEMENT, null, msgs);
+ msgs = basicUnsetCiManagement(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldCiManagementESet = ciManagementESet;
+ ciManagementESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__CI_MANAGEMENT, null, null,
+ oldCiManagementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetCiManagement() {
+ return ciManagementESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getInceptionYear() {
+ return inceptionYear;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setInceptionYear(String newInceptionYear) {
+ String oldInceptionYear = inceptionYear;
+ inceptionYear = newInceptionYear;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__INCEPTION_YEAR, oldInceptionYear,
+ inceptionYear));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<MailingList> getMailingLists() {
+ if(mailingLists == null) {
+ mailingLists = new EObjectContainmentEList.Unsettable<MailingList>(MailingList.class, this,
+ PomPackage.MODEL__MAILING_LISTS);
+ }
+ return mailingLists;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetMailingLists() {
+ if(mailingLists != null)
+ ((InternalEList.Unsettable<?>) mailingLists).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetMailingLists() {
+ return mailingLists != null && ((InternalEList.Unsettable<?>) mailingLists).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Developer> getDevelopers() {
+ if(developers == null) {
+ developers = new EObjectContainmentEList.Unsettable<Developer>(Developer.class, this,
+ PomPackage.MODEL__DEVELOPERS);
+ }
+ return developers;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetDevelopers() {
+ if(developers != null)
+ ((InternalEList.Unsettable<?>) developers).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetDevelopers() {
+ return developers != null && ((InternalEList.Unsettable<?>) developers).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Contributor> getContributors() {
+ if(contributors == null) {
+ contributors = new EObjectContainmentEList.Unsettable<Contributor>(Contributor.class, this,
+ PomPackage.MODEL__CONTRIBUTORS);
+ }
+ return contributors;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetContributors() {
+ if(contributors != null)
+ ((InternalEList.Unsettable<?>) contributors).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetContributors() {
+ return contributors != null && ((InternalEList.Unsettable<?>) contributors).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<License> getLicenses() {
+ if(licenses == null) {
+ licenses = new EObjectContainmentEList<License>(License.class, this, PomPackage.MODEL__LICENSES);
+ }
+ return licenses;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Scm getScm() {
+ return scm;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetScm(Scm newScm, NotificationChain msgs) {
+ Scm oldScm = scm;
+ scm = newScm;
+ boolean oldScmESet = scmESet;
+ scmESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__SCM, oldScm,
+ newScm, !oldScmESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setScm(Scm newScm) {
+ if(newScm != scm) {
+ NotificationChain msgs = null;
+ if(scm != null)
+ msgs = ((InternalEObject) scm).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__SCM, null, msgs);
+ if(newScm != null)
+ msgs = ((InternalEObject) newScm).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__SCM, null, msgs);
+ msgs = basicSetScm(newScm, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldScmESet = scmESet;
+ scmESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__SCM, newScm, newScm, !oldScmESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetScm(NotificationChain msgs) {
+ Scm oldScm = scm;
+ scm = null;
+ boolean oldScmESet = scmESet;
+ scmESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__SCM, oldScm,
+ null, oldScmESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetScm() {
+ if(scm != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) scm).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__SCM, null, msgs);
+ msgs = basicUnsetScm(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldScmESet = scmESet;
+ scmESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__SCM, null, null, oldScmESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetScm() {
+ return scmESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Organization getOrganization() {
+ return organization;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetOrganization(Organization newOrganization, NotificationChain msgs) {
+ Organization oldOrganization = organization;
+ organization = newOrganization;
+ boolean oldOrganizationESet = organizationESet;
+ organizationESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__ORGANIZATION,
+ oldOrganization, newOrganization, !oldOrganizationESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setOrganization(Organization newOrganization) {
+ if(newOrganization != organization) {
+ NotificationChain msgs = null;
+ if(organization != null)
+ msgs = ((InternalEObject) organization).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__ORGANIZATION, null, msgs);
+ if(newOrganization != null)
+ msgs = ((InternalEObject) newOrganization).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__ORGANIZATION, null, msgs);
+ msgs = basicSetOrganization(newOrganization, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldOrganizationESet = organizationESet;
+ organizationESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__ORGANIZATION, newOrganization,
+ newOrganization, !oldOrganizationESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetOrganization(NotificationChain msgs) {
+ Organization oldOrganization = organization;
+ organization = null;
+ boolean oldOrganizationESet = organizationESet;
+ organizationESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__ORGANIZATION,
+ oldOrganization, null, oldOrganizationESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetOrganization() {
+ if(organization != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) organization).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__ORGANIZATION, null, msgs);
+ msgs = basicUnsetOrganization(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldOrganizationESet = organizationESet;
+ organizationESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__ORGANIZATION, null, null,
+ oldOrganizationESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetOrganization() {
+ return organizationESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Build getBuild() {
+ return build;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetBuild(Build newBuild, NotificationChain msgs) {
+ Build oldBuild = build;
+ build = newBuild;
+ boolean oldBuildESet = buildESet;
+ buildESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__BUILD, oldBuild,
+ newBuild, !oldBuildESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setBuild(Build newBuild) {
+ if(newBuild != build) {
+ NotificationChain msgs = null;
+ if(build != null)
+ msgs = ((InternalEObject) build).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__BUILD, null,
+ msgs);
+ if(newBuild != null)
+ msgs = ((InternalEObject) newBuild).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__BUILD, null,
+ msgs);
+ msgs = basicSetBuild(newBuild, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldBuildESet = buildESet;
+ buildESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__BUILD, newBuild, newBuild,
+ !oldBuildESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetBuild(NotificationChain msgs) {
+ Build oldBuild = build;
+ build = null;
+ boolean oldBuildESet = buildESet;
+ buildESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__BUILD,
+ oldBuild, null, oldBuildESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetBuild() {
+ if(build != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) build).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__BUILD, null,
+ msgs);
+ msgs = basicUnsetBuild(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldBuildESet = buildESet;
+ buildESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__BUILD, null, null, oldBuildESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetBuild() {
+ return buildESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Profile> getProfiles() {
+ if(profiles == null) {
+ profiles = new EObjectContainmentEList.Unsettable<Profile>(Profile.class, this, PomPackage.MODEL__PROFILES);
+ }
+ return profiles;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetProfiles() {
+ if(profiles != null)
+ ((InternalEList.Unsettable<?>) profiles).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetProfiles() {
+ return profiles != null && ((InternalEList.Unsettable<?>) profiles).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Repository> getRepositories() {
+ if(repositories == null) {
+ repositories = new EObjectContainmentEList.Unsettable<Repository>(Repository.class, this,
+ PomPackage.MODEL__REPOSITORIES);
+ }
+ return repositories;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetRepositories() {
+ if(repositories != null)
+ ((InternalEList.Unsettable<?>) repositories).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetRepositories() {
+ return repositories != null && ((InternalEList.Unsettable<?>) repositories).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Repository> getPluginRepositories() {
+ if(pluginRepositories == null) {
+ pluginRepositories = new EObjectContainmentEList.Unsettable<Repository>(Repository.class, this,
+ PomPackage.MODEL__PLUGIN_REPOSITORIES);
+ }
+ return pluginRepositories;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetPluginRepositories() {
+ if(pluginRepositories != null)
+ ((InternalEList.Unsettable<?>) pluginRepositories).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetPluginRepositories() {
+ return pluginRepositories != null && ((InternalEList.Unsettable<?>) pluginRepositories).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Dependency> getDependencies() {
+ if(dependencies == null) {
+ dependencies = new EObjectContainmentEList.Unsettable<Dependency>(Dependency.class, this,
+ PomPackage.MODEL__DEPENDENCIES);
+ }
+ return dependencies;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetDependencies() {
+ if(dependencies != null)
+ ((InternalEList.Unsettable<?>) dependencies).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetDependencies() {
+ return dependencies != null && ((InternalEList.Unsettable<?>) dependencies).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Reporting getReporting() {
+ return reporting;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetReporting(Reporting newReporting, NotificationChain msgs) {
+ Reporting oldReporting = reporting;
+ reporting = newReporting;
+ boolean oldReportingESet = reportingESet;
+ reportingESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__REPORTING,
+ oldReporting, newReporting, !oldReportingESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setReporting(Reporting newReporting) {
+ if(newReporting != reporting) {
+ NotificationChain msgs = null;
+ if(reporting != null)
+ msgs = ((InternalEObject) reporting).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__REPORTING,
+ null, msgs);
+ if(newReporting != null)
+ msgs = ((InternalEObject) newReporting).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__REPORTING,
+ null, msgs);
+ msgs = basicSetReporting(newReporting, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldReportingESet = reportingESet;
+ reportingESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__REPORTING, newReporting, newReporting,
+ !oldReportingESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetReporting(NotificationChain msgs) {
+ Reporting oldReporting = reporting;
+ reporting = null;
+ boolean oldReportingESet = reportingESet;
+ reportingESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__REPORTING,
+ oldReporting, null, oldReportingESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetReporting() {
+ if(reporting != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) reporting).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PomPackage.MODEL__REPORTING,
+ null, msgs);
+ msgs = basicUnsetReporting(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldReportingESet = reportingESet;
+ reportingESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__REPORTING, null, null,
+ oldReportingESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetReporting() {
+ return reportingESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DependencyManagement getDependencyManagement() {
+ return dependencyManagement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetDependencyManagement(DependencyManagement newDependencyManagement,
+ NotificationChain msgs) {
+ DependencyManagement oldDependencyManagement = dependencyManagement;
+ dependencyManagement = newDependencyManagement;
+ boolean oldDependencyManagementESet = dependencyManagementESet;
+ dependencyManagementESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ PomPackage.MODEL__DEPENDENCY_MANAGEMENT, oldDependencyManagement, newDependencyManagement,
+ !oldDependencyManagementESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setDependencyManagement(DependencyManagement newDependencyManagement) {
+ if(newDependencyManagement != dependencyManagement) {
+ NotificationChain msgs = null;
+ if(dependencyManagement != null)
+ msgs = ((InternalEObject) dependencyManagement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__DEPENDENCY_MANAGEMENT, null, msgs);
+ if(newDependencyManagement != null)
+ msgs = ((InternalEObject) newDependencyManagement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__DEPENDENCY_MANAGEMENT, null, msgs);
+ msgs = basicSetDependencyManagement(newDependencyManagement, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldDependencyManagementESet = dependencyManagementESet;
+ dependencyManagementESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__DEPENDENCY_MANAGEMENT,
+ newDependencyManagement, newDependencyManagement, !oldDependencyManagementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetDependencyManagement(NotificationChain msgs) {
+ DependencyManagement oldDependencyManagement = dependencyManagement;
+ dependencyManagement = null;
+ boolean oldDependencyManagementESet = dependencyManagementESet;
+ dependencyManagementESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET,
+ PomPackage.MODEL__DEPENDENCY_MANAGEMENT, oldDependencyManagement, null, oldDependencyManagementESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetDependencyManagement() {
+ if(dependencyManagement != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) dependencyManagement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__DEPENDENCY_MANAGEMENT, null, msgs);
+ msgs = basicUnsetDependencyManagement(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldDependencyManagementESet = dependencyManagementESet;
+ dependencyManagementESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__DEPENDENCY_MANAGEMENT, null, null,
+ oldDependencyManagementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetDependencyManagement() {
+ return dependencyManagementESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DistributionManagement getDistributionManagement() {
+ return distributionManagement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetDistributionManagement(DistributionManagement newDistributionManagement,
+ NotificationChain msgs) {
+ DistributionManagement oldDistributionManagement = distributionManagement;
+ distributionManagement = newDistributionManagement;
+ boolean oldDistributionManagementESet = distributionManagementESet;
+ distributionManagementESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ PomPackage.MODEL__DISTRIBUTION_MANAGEMENT, oldDistributionManagement, newDistributionManagement,
+ !oldDistributionManagementESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setDistributionManagement(DistributionManagement newDistributionManagement) {
+ if(newDistributionManagement != distributionManagement) {
+ NotificationChain msgs = null;
+ if(distributionManagement != null)
+ msgs = ((InternalEObject) distributionManagement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__DISTRIBUTION_MANAGEMENT, null, msgs);
+ if(newDistributionManagement != null)
+ msgs = ((InternalEObject) newDistributionManagement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__DISTRIBUTION_MANAGEMENT, null, msgs);
+ msgs = basicSetDistributionManagement(newDistributionManagement, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldDistributionManagementESet = distributionManagementESet;
+ distributionManagementESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.MODEL__DISTRIBUTION_MANAGEMENT,
+ newDistributionManagement, newDistributionManagement, !oldDistributionManagementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetDistributionManagement(NotificationChain msgs) {
+ DistributionManagement oldDistributionManagement = distributionManagement;
+ distributionManagement = null;
+ boolean oldDistributionManagementESet = distributionManagementESet;
+ distributionManagementESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET,
+ PomPackage.MODEL__DISTRIBUTION_MANAGEMENT, oldDistributionManagement, null, oldDistributionManagementESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetDistributionManagement() {
+ if(distributionManagement != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) distributionManagement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.MODEL__DISTRIBUTION_MANAGEMENT, null, msgs);
+ msgs = basicUnsetDistributionManagement(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldDistributionManagementESet = distributionManagementESet;
+ distributionManagementESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.MODEL__DISTRIBUTION_MANAGEMENT, null, null,
+ oldDistributionManagementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetDistributionManagement() {
+ return distributionManagementESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<PropertyElement> getProperties() {
+ if(properties == null) {
+ properties = new EObjectContainmentEList.Unsettable<PropertyElement>(PropertyElement.class, this,
+ PomPackage.MODEL__PROPERTIES);
+ }
+ return properties;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetProperties() {
+ if(properties != null)
+ ((InternalEList.Unsettable<?>) properties).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetProperties() {
+ return properties != null && ((InternalEList.Unsettable<?>) properties).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<String> getModules() {
+ if(modules == null) {
+ modules = new EDataTypeEList<String>(String.class, this, PomPackage.MODEL__MODULES);
+ }
+ return modules;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.MODEL__PARENT:
+ return basicUnsetParent(msgs);
+ case PomPackage.MODEL__PREREQUISITES:
+ return basicUnsetPrerequisites(msgs);
+ case PomPackage.MODEL__ISSUE_MANAGEMENT:
+ return basicUnsetIssueManagement(msgs);
+ case PomPackage.MODEL__CI_MANAGEMENT:
+ return basicUnsetCiManagement(msgs);
+ case PomPackage.MODEL__MAILING_LISTS:
+ return ((InternalEList<?>) getMailingLists()).basicRemove(otherEnd, msgs);
+ case PomPackage.MODEL__DEVELOPERS:
+ return ((InternalEList<?>) getDevelopers()).basicRemove(otherEnd, msgs);
+ case PomPackage.MODEL__CONTRIBUTORS:
+ return ((InternalEList<?>) getContributors()).basicRemove(otherEnd, msgs);
+ case PomPackage.MODEL__LICENSES:
+ return ((InternalEList<?>) getLicenses()).basicRemove(otherEnd, msgs);
+ case PomPackage.MODEL__SCM:
+ return basicUnsetScm(msgs);
+ case PomPackage.MODEL__ORGANIZATION:
+ return basicUnsetOrganization(msgs);
+ case PomPackage.MODEL__BUILD:
+ return basicUnsetBuild(msgs);
+ case PomPackage.MODEL__PROFILES:
+ return ((InternalEList<?>) getProfiles()).basicRemove(otherEnd, msgs);
+ case PomPackage.MODEL__REPOSITORIES:
+ return ((InternalEList<?>) getRepositories()).basicRemove(otherEnd, msgs);
+ case PomPackage.MODEL__PLUGIN_REPOSITORIES:
+ return ((InternalEList<?>) getPluginRepositories()).basicRemove(otherEnd, msgs);
+ case PomPackage.MODEL__DEPENDENCIES:
+ return ((InternalEList<?>) getDependencies()).basicRemove(otherEnd, msgs);
+ case PomPackage.MODEL__REPORTING:
+ return basicUnsetReporting(msgs);
+ case PomPackage.MODEL__DEPENDENCY_MANAGEMENT:
+ return basicUnsetDependencyManagement(msgs);
+ case PomPackage.MODEL__DISTRIBUTION_MANAGEMENT:
+ return basicUnsetDistributionManagement(msgs);
+ case PomPackage.MODEL__PROPERTIES:
+ return ((InternalEList<?>) getProperties()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.MODEL__PARENT:
+ return getParent();
+ case PomPackage.MODEL__MODEL_VERSION:
+ return getModelVersion();
+ case PomPackage.MODEL__GROUP_ID:
+ return getGroupId();
+ case PomPackage.MODEL__ARTIFACT_ID:
+ return getArtifactId();
+ case PomPackage.MODEL__PACKAGING:
+ return getPackaging();
+ case PomPackage.MODEL__NAME:
+ return getName();
+ case PomPackage.MODEL__VERSION:
+ return getVersion();
+ case PomPackage.MODEL__DESCRIPTION:
+ return getDescription();
+ case PomPackage.MODEL__URL:
+ return getUrl();
+ case PomPackage.MODEL__PREREQUISITES:
+ return getPrerequisites();
+ case PomPackage.MODEL__ISSUE_MANAGEMENT:
+ return getIssueManagement();
+ case PomPackage.MODEL__CI_MANAGEMENT:
+ return getCiManagement();
+ case PomPackage.MODEL__INCEPTION_YEAR:
+ return getInceptionYear();
+ case PomPackage.MODEL__MAILING_LISTS:
+ return getMailingLists();
+ case PomPackage.MODEL__DEVELOPERS:
+ return getDevelopers();
+ case PomPackage.MODEL__CONTRIBUTORS:
+ return getContributors();
+ case PomPackage.MODEL__LICENSES:
+ return getLicenses();
+ case PomPackage.MODEL__SCM:
+ return getScm();
+ case PomPackage.MODEL__ORGANIZATION:
+ return getOrganization();
+ case PomPackage.MODEL__BUILD:
+ return getBuild();
+ case PomPackage.MODEL__PROFILES:
+ return getProfiles();
+ case PomPackage.MODEL__REPOSITORIES:
+ return getRepositories();
+ case PomPackage.MODEL__PLUGIN_REPOSITORIES:
+ return getPluginRepositories();
+ case PomPackage.MODEL__DEPENDENCIES:
+ return getDependencies();
+ case PomPackage.MODEL__REPORTING:
+ return getReporting();
+ case PomPackage.MODEL__DEPENDENCY_MANAGEMENT:
+ return getDependencyManagement();
+ case PomPackage.MODEL__DISTRIBUTION_MANAGEMENT:
+ return getDistributionManagement();
+ case PomPackage.MODEL__PROPERTIES:
+ return getProperties();
+ case PomPackage.MODEL__MODULES:
+ return getModules();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.MODEL__PARENT:
+ setParent((Parent) newValue);
+ return;
+ case PomPackage.MODEL__MODEL_VERSION:
+ setModelVersion((String) newValue);
+ return;
+ case PomPackage.MODEL__GROUP_ID:
+ setGroupId((String) newValue);
+ return;
+ case PomPackage.MODEL__ARTIFACT_ID:
+ setArtifactId((String) newValue);
+ return;
+ case PomPackage.MODEL__PACKAGING:
+ setPackaging((String) newValue);
+ return;
+ case PomPackage.MODEL__NAME:
+ setName((String) newValue);
+ return;
+ case PomPackage.MODEL__VERSION:
+ setVersion((String) newValue);
+ return;
+ case PomPackage.MODEL__DESCRIPTION:
+ setDescription((String) newValue);
+ return;
+ case PomPackage.MODEL__URL:
+ setUrl((String) newValue);
+ return;
+ case PomPackage.MODEL__PREREQUISITES:
+ setPrerequisites((Prerequisites) newValue);
+ return;
+ case PomPackage.MODEL__ISSUE_MANAGEMENT:
+ setIssueManagement((IssueManagement) newValue);
+ return;
+ case PomPackage.MODEL__CI_MANAGEMENT:
+ setCiManagement((CiManagement) newValue);
+ return;
+ case PomPackage.MODEL__INCEPTION_YEAR:
+ setInceptionYear((String) newValue);
+ return;
+ case PomPackage.MODEL__MAILING_LISTS:
+ getMailingLists().clear();
+ getMailingLists().addAll((Collection<? extends MailingList>) newValue);
+ return;
+ case PomPackage.MODEL__DEVELOPERS:
+ getDevelopers().clear();
+ getDevelopers().addAll((Collection<? extends Developer>) newValue);
+ return;
+ case PomPackage.MODEL__CONTRIBUTORS:
+ getContributors().clear();
+ getContributors().addAll((Collection<? extends Contributor>) newValue);
+ return;
+ case PomPackage.MODEL__LICENSES:
+ getLicenses().clear();
+ getLicenses().addAll((Collection<? extends License>) newValue);
+ return;
+ case PomPackage.MODEL__SCM:
+ setScm((Scm) newValue);
+ return;
+ case PomPackage.MODEL__ORGANIZATION:
+ setOrganization((Organization) newValue);
+ return;
+ case PomPackage.MODEL__BUILD:
+ setBuild((Build) newValue);
+ return;
+ case PomPackage.MODEL__PROFILES:
+ getProfiles().clear();
+ getProfiles().addAll((Collection<? extends Profile>) newValue);
+ return;
+ case PomPackage.MODEL__REPOSITORIES:
+ getRepositories().clear();
+ getRepositories().addAll((Collection<? extends Repository>) newValue);
+ return;
+ case PomPackage.MODEL__PLUGIN_REPOSITORIES:
+ getPluginRepositories().clear();
+ getPluginRepositories().addAll((Collection<? extends Repository>) newValue);
+ return;
+ case PomPackage.MODEL__DEPENDENCIES:
+ getDependencies().clear();
+ getDependencies().addAll((Collection<? extends Dependency>) newValue);
+ return;
+ case PomPackage.MODEL__REPORTING:
+ setReporting((Reporting) newValue);
+ return;
+ case PomPackage.MODEL__DEPENDENCY_MANAGEMENT:
+ setDependencyManagement((DependencyManagement) newValue);
+ return;
+ case PomPackage.MODEL__DISTRIBUTION_MANAGEMENT:
+ setDistributionManagement((DistributionManagement) newValue);
+ return;
+ case PomPackage.MODEL__PROPERTIES:
+ getProperties().clear();
+ getProperties().addAll((Collection<? extends PropertyElement>) newValue);
+ return;
+ case PomPackage.MODEL__MODULES:
+ getModules().clear();
+ getModules().addAll((Collection<? extends String>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.MODEL__PARENT:
+ unsetParent();
+ return;
+ case PomPackage.MODEL__MODEL_VERSION:
+ setModelVersion(MODEL_VERSION_EDEFAULT);
+ return;
+ case PomPackage.MODEL__GROUP_ID:
+ setGroupId(GROUP_ID_EDEFAULT);
+ return;
+ case PomPackage.MODEL__ARTIFACT_ID:
+ setArtifactId(ARTIFACT_ID_EDEFAULT);
+ return;
+ case PomPackage.MODEL__PACKAGING:
+ unsetPackaging();
+ return;
+ case PomPackage.MODEL__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case PomPackage.MODEL__VERSION:
+ setVersion(VERSION_EDEFAULT);
+ return;
+ case PomPackage.MODEL__DESCRIPTION:
+ setDescription(DESCRIPTION_EDEFAULT);
+ return;
+ case PomPackage.MODEL__URL:
+ setUrl(URL_EDEFAULT);
+ return;
+ case PomPackage.MODEL__PREREQUISITES:
+ unsetPrerequisites();
+ return;
+ case PomPackage.MODEL__ISSUE_MANAGEMENT:
+ unsetIssueManagement();
+ return;
+ case PomPackage.MODEL__CI_MANAGEMENT:
+ unsetCiManagement();
+ return;
+ case PomPackage.MODEL__INCEPTION_YEAR:
+ setInceptionYear(INCEPTION_YEAR_EDEFAULT);
+ return;
+ case PomPackage.MODEL__MAILING_LISTS:
+ unsetMailingLists();
+ return;
+ case PomPackage.MODEL__DEVELOPERS:
+ unsetDevelopers();
+ return;
+ case PomPackage.MODEL__CONTRIBUTORS:
+ unsetContributors();
+ return;
+ case PomPackage.MODEL__LICENSES:
+ getLicenses().clear();
+ return;
+ case PomPackage.MODEL__SCM:
+ unsetScm();
+ return;
+ case PomPackage.MODEL__ORGANIZATION:
+ unsetOrganization();
+ return;
+ case PomPackage.MODEL__BUILD:
+ unsetBuild();
+ return;
+ case PomPackage.MODEL__PROFILES:
+ unsetProfiles();
+ return;
+ case PomPackage.MODEL__REPOSITORIES:
+ unsetRepositories();
+ return;
+ case PomPackage.MODEL__PLUGIN_REPOSITORIES:
+ unsetPluginRepositories();
+ return;
+ case PomPackage.MODEL__DEPENDENCIES:
+ unsetDependencies();
+ return;
+ case PomPackage.MODEL__REPORTING:
+ unsetReporting();
+ return;
+ case PomPackage.MODEL__DEPENDENCY_MANAGEMENT:
+ unsetDependencyManagement();
+ return;
+ case PomPackage.MODEL__DISTRIBUTION_MANAGEMENT:
+ unsetDistributionManagement();
+ return;
+ case PomPackage.MODEL__PROPERTIES:
+ unsetProperties();
+ return;
+ case PomPackage.MODEL__MODULES:
+ getModules().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.MODEL__PARENT:
+ return isSetParent();
+ case PomPackage.MODEL__MODEL_VERSION:
+ return MODEL_VERSION_EDEFAULT == null ? modelVersion != null : !MODEL_VERSION_EDEFAULT.equals(modelVersion);
+ case PomPackage.MODEL__GROUP_ID:
+ return GROUP_ID_EDEFAULT == null ? groupId != null : !GROUP_ID_EDEFAULT.equals(groupId);
+ case PomPackage.MODEL__ARTIFACT_ID:
+ return ARTIFACT_ID_EDEFAULT == null ? artifactId != null : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
+ case PomPackage.MODEL__PACKAGING:
+ return isSetPackaging();
+ case PomPackage.MODEL__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case PomPackage.MODEL__VERSION:
+ return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version);
+ case PomPackage.MODEL__DESCRIPTION:
+ return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
+ case PomPackage.MODEL__URL:
+ return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url);
+ case PomPackage.MODEL__PREREQUISITES:
+ return isSetPrerequisites();
+ case PomPackage.MODEL__ISSUE_MANAGEMENT:
+ return isSetIssueManagement();
+ case PomPackage.MODEL__CI_MANAGEMENT:
+ return isSetCiManagement();
+ case PomPackage.MODEL__INCEPTION_YEAR:
+ return INCEPTION_YEAR_EDEFAULT == null ? inceptionYear != null : !INCEPTION_YEAR_EDEFAULT.equals(inceptionYear);
+ case PomPackage.MODEL__MAILING_LISTS:
+ return isSetMailingLists();
+ case PomPackage.MODEL__DEVELOPERS:
+ return isSetDevelopers();
+ case PomPackage.MODEL__CONTRIBUTORS:
+ return isSetContributors();
+ case PomPackage.MODEL__LICENSES:
+ return licenses != null && !licenses.isEmpty();
+ case PomPackage.MODEL__SCM:
+ return isSetScm();
+ case PomPackage.MODEL__ORGANIZATION:
+ return isSetOrganization();
+ case PomPackage.MODEL__BUILD:
+ return isSetBuild();
+ case PomPackage.MODEL__PROFILES:
+ return isSetProfiles();
+ case PomPackage.MODEL__REPOSITORIES:
+ return isSetRepositories();
+ case PomPackage.MODEL__PLUGIN_REPOSITORIES:
+ return isSetPluginRepositories();
+ case PomPackage.MODEL__DEPENDENCIES:
+ return isSetDependencies();
+ case PomPackage.MODEL__REPORTING:
+ return isSetReporting();
+ case PomPackage.MODEL__DEPENDENCY_MANAGEMENT:
+ return isSetDependencyManagement();
+ case PomPackage.MODEL__DISTRIBUTION_MANAGEMENT:
+ return isSetDistributionManagement();
+ case PomPackage.MODEL__PROPERTIES:
+ return isSetProperties();
+ case PomPackage.MODEL__MODULES:
+ return modules != null && !modules.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (modelVersion: "); //$NON-NLS-1$
+ result.append(modelVersion);
+ result.append(", groupId: "); //$NON-NLS-1$
+ result.append(groupId);
+ result.append(", artifactId: "); //$NON-NLS-1$
+ result.append(artifactId);
+ result.append(", packaging: "); //$NON-NLS-1$
+ if(packagingESet)
+ result.append(packaging);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", name: "); //$NON-NLS-1$
+ result.append(name);
+ result.append(", version: "); //$NON-NLS-1$
+ result.append(version);
+ result.append(", description: "); //$NON-NLS-1$
+ result.append(description);
+ result.append(", url: "); //$NON-NLS-1$
+ result.append(url);
+ result.append(", inceptionYear: "); //$NON-NLS-1$
+ result.append(inceptionYear);
+ result.append(", modules: "); //$NON-NLS-1$
+ result.append(modules);
+ result.append(')');
+ return result.toString();
+ }
} // ModelImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/NotifierImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/NotifierImpl.java
index d4333ace..2c0df9c7 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/NotifierImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/NotifierImpl.java
@@ -15,733 +15,691 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.Notifier;
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.PropertyElement;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Notifier</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Notifier</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl#getType <em>Type
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl#getSendOnError <em>
- * Send On Error</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl#getSendOnFailure
- * <em>Send On Failure</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl#getSendOnSuccess
- * <em>Send On Success</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl#getSendOnWarning
- * <em>Send On Warning</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl#getAddress <em>
- * Address</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl#getConfiguration
- * <em>Configuration</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl#getType <em>Type </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl#getSendOnError <em> Send On Error</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl#getSendOnFailure <em>Send On Failure</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl#getSendOnSuccess <em>Send On Success</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl#getSendOnWarning <em>Send On Warning</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl#getAddress <em> Address</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.NotifierImpl#getConfiguration <em>Configuration</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class NotifierImpl extends EObjectImpl implements Notifier {
- /**
- * The default value of the '{@link #getType() <em>Type</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getType()
- * @generated
- * @ordered
- */
- protected static final String TYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getType()
- * @generated
- * @ordered
- */
- protected String type = TYPE_EDEFAULT;
-
- /**
- * This is true if the Type attribute has been set. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean typeESet;
-
- /**
- * The default value of the '{@link #getSendOnError()
- * <em>Send On Error</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getSendOnError()
- * @generated
- * @ordered
- */
- protected static final String SEND_ON_ERROR_EDEFAULT = "true"; //$NON-NLS-1$
-
- /**
- * The cached value of the '{@link #getSendOnError() <em>Send On Error</em>}
- * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getSendOnError()
- * @generated
- * @ordered
- */
- protected String sendOnError = SEND_ON_ERROR_EDEFAULT;
-
- /**
- * This is true if the Send On Error attribute has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean sendOnErrorESet;
-
- /**
- * The default value of the '{@link #getSendOnFailure()
- * <em>Send On Failure</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getSendOnFailure()
- * @generated
- * @ordered
- */
- protected static final String SEND_ON_FAILURE_EDEFAULT = "true"; //$NON-NLS-1$
-
- /**
- * The cached value of the '{@link #getSendOnFailure()
- * <em>Send On Failure</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getSendOnFailure()
- * @generated
- * @ordered
- */
- protected String sendOnFailure = SEND_ON_FAILURE_EDEFAULT;
-
- /**
- * This is true if the Send On Failure attribute has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean sendOnFailureESet;
-
- /**
- * The default value of the '{@link #getSendOnSuccess()
- * <em>Send On Success</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getSendOnSuccess()
- * @generated
- * @ordered
- */
- protected static final String SEND_ON_SUCCESS_EDEFAULT = "true"; //$NON-NLS-1$
-
- /**
- * The cached value of the '{@link #getSendOnSuccess()
- * <em>Send On Success</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getSendOnSuccess()
- * @generated
- * @ordered
- */
- protected String sendOnSuccess = SEND_ON_SUCCESS_EDEFAULT;
-
- /**
- * This is true if the Send On Success attribute has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean sendOnSuccessESet;
-
- /**
- * The default value of the '{@link #getSendOnWarning()
- * <em>Send On Warning</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getSendOnWarning()
- * @generated
- * @ordered
- */
- protected static final String SEND_ON_WARNING_EDEFAULT = "true"; //$NON-NLS-1$
-
- /**
- * The cached value of the '{@link #getSendOnWarning()
- * <em>Send On Warning</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getSendOnWarning()
- * @generated
- * @ordered
- */
- protected String sendOnWarning = SEND_ON_WARNING_EDEFAULT;
-
- /**
- * This is true if the Send On Warning attribute has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean sendOnWarningESet;
-
- /**
- * The default value of the '{@link #getAddress() <em>Address</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getAddress()
- * @generated
- * @ordered
- */
- protected static final String ADDRESS_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getAddress() <em>Address</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getAddress()
- * @generated
- * @ordered
- */
- protected String address = ADDRESS_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getConfiguration()
- * <em>Configuration</em>}' containment reference list. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @see #getConfiguration()
- * @generated
- * @ordered
- */
- protected EList<PropertyElement> configuration;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected NotifierImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.NOTIFIER;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getType() {
- return type;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setType(String newType) {
- String oldType = type;
- type = newType;
- boolean oldTypeESet = typeESet;
- typeESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.NOTIFIER__TYPE, oldType, type, !oldTypeESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetType() {
- String oldType = type;
- boolean oldTypeESet = typeESet;
- type = TYPE_EDEFAULT;
- typeESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.NOTIFIER__TYPE, oldType, TYPE_EDEFAULT,
- oldTypeESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetType() {
- return typeESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getSendOnError() {
- return sendOnError;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setSendOnError(String newSendOnError) {
- String oldSendOnError = sendOnError;
- sendOnError = newSendOnError;
- boolean oldSendOnErrorESet = sendOnErrorESet;
- sendOnErrorESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.NOTIFIER__SEND_ON_ERROR, oldSendOnError,
- sendOnError, !oldSendOnErrorESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetSendOnError() {
- String oldSendOnError = sendOnError;
- boolean oldSendOnErrorESet = sendOnErrorESet;
- sendOnError = SEND_ON_ERROR_EDEFAULT;
- sendOnErrorESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.NOTIFIER__SEND_ON_ERROR, oldSendOnError,
- SEND_ON_ERROR_EDEFAULT, oldSendOnErrorESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetSendOnError() {
- return sendOnErrorESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getSendOnFailure() {
- return sendOnFailure;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setSendOnFailure(String newSendOnFailure) {
- String oldSendOnFailure = sendOnFailure;
- sendOnFailure = newSendOnFailure;
- boolean oldSendOnFailureESet = sendOnFailureESet;
- sendOnFailureESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.NOTIFIER__SEND_ON_FAILURE, oldSendOnFailure,
- sendOnFailure, !oldSendOnFailureESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetSendOnFailure() {
- String oldSendOnFailure = sendOnFailure;
- boolean oldSendOnFailureESet = sendOnFailureESet;
- sendOnFailure = SEND_ON_FAILURE_EDEFAULT;
- sendOnFailureESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.NOTIFIER__SEND_ON_FAILURE, oldSendOnFailure,
- SEND_ON_FAILURE_EDEFAULT, oldSendOnFailureESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetSendOnFailure() {
- return sendOnFailureESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getSendOnSuccess() {
- return sendOnSuccess;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setSendOnSuccess(String newSendOnSuccess) {
- String oldSendOnSuccess = sendOnSuccess;
- sendOnSuccess = newSendOnSuccess;
- boolean oldSendOnSuccessESet = sendOnSuccessESet;
- sendOnSuccessESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.NOTIFIER__SEND_ON_SUCCESS, oldSendOnSuccess,
- sendOnSuccess, !oldSendOnSuccessESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetSendOnSuccess() {
- String oldSendOnSuccess = sendOnSuccess;
- boolean oldSendOnSuccessESet = sendOnSuccessESet;
- sendOnSuccess = SEND_ON_SUCCESS_EDEFAULT;
- sendOnSuccessESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.NOTIFIER__SEND_ON_SUCCESS, oldSendOnSuccess,
- SEND_ON_SUCCESS_EDEFAULT, oldSendOnSuccessESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetSendOnSuccess() {
- return sendOnSuccessESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getSendOnWarning() {
- return sendOnWarning;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setSendOnWarning(String newSendOnWarning) {
- String oldSendOnWarning = sendOnWarning;
- sendOnWarning = newSendOnWarning;
- boolean oldSendOnWarningESet = sendOnWarningESet;
- sendOnWarningESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.NOTIFIER__SEND_ON_WARNING, oldSendOnWarning,
- sendOnWarning, !oldSendOnWarningESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetSendOnWarning() {
- String oldSendOnWarning = sendOnWarning;
- boolean oldSendOnWarningESet = sendOnWarningESet;
- sendOnWarning = SEND_ON_WARNING_EDEFAULT;
- sendOnWarningESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.NOTIFIER__SEND_ON_WARNING, oldSendOnWarning,
- SEND_ON_WARNING_EDEFAULT, oldSendOnWarningESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetSendOnWarning() {
- return sendOnWarningESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getAddress() {
- return address;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setAddress(String newAddress) {
- String oldAddress = address;
- address = newAddress;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.NOTIFIER__ADDRESS, oldAddress, address));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<PropertyElement> getConfiguration() {
- if (configuration == null) {
- configuration = new EObjectContainmentEList.Unsettable<PropertyElement>(
- PropertyElement.class, this,
- PomPackage.NOTIFIER__CONFIGURATION);
- }
- return configuration;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetConfiguration() {
- if (configuration != null)
- ((InternalEList.Unsettable<?>) configuration).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetConfiguration() {
- return configuration != null
- && ((InternalEList.Unsettable<?>) configuration).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.NOTIFIER__CONFIGURATION:
- return ((InternalEList<?>) getConfiguration()).basicRemove(
- otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.NOTIFIER__TYPE:
- return getType();
- case PomPackage.NOTIFIER__SEND_ON_ERROR:
- return getSendOnError();
- case PomPackage.NOTIFIER__SEND_ON_FAILURE:
- return getSendOnFailure();
- case PomPackage.NOTIFIER__SEND_ON_SUCCESS:
- return getSendOnSuccess();
- case PomPackage.NOTIFIER__SEND_ON_WARNING:
- return getSendOnWarning();
- case PomPackage.NOTIFIER__ADDRESS:
- return getAddress();
- case PomPackage.NOTIFIER__CONFIGURATION:
- return getConfiguration();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.NOTIFIER__TYPE:
- setType((String) newValue);
- return;
- case PomPackage.NOTIFIER__SEND_ON_ERROR:
- setSendOnError((String) newValue);
- return;
- case PomPackage.NOTIFIER__SEND_ON_FAILURE:
- setSendOnFailure((String) newValue);
- return;
- case PomPackage.NOTIFIER__SEND_ON_SUCCESS:
- setSendOnSuccess((String) newValue);
- return;
- case PomPackage.NOTIFIER__SEND_ON_WARNING:
- setSendOnWarning((String) newValue);
- return;
- case PomPackage.NOTIFIER__ADDRESS:
- setAddress((String) newValue);
- return;
- case PomPackage.NOTIFIER__CONFIGURATION:
- getConfiguration().clear();
- getConfiguration().addAll(
- (Collection<? extends PropertyElement>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.NOTIFIER__TYPE:
- unsetType();
- return;
- case PomPackage.NOTIFIER__SEND_ON_ERROR:
- unsetSendOnError();
- return;
- case PomPackage.NOTIFIER__SEND_ON_FAILURE:
- unsetSendOnFailure();
- return;
- case PomPackage.NOTIFIER__SEND_ON_SUCCESS:
- unsetSendOnSuccess();
- return;
- case PomPackage.NOTIFIER__SEND_ON_WARNING:
- unsetSendOnWarning();
- return;
- case PomPackage.NOTIFIER__ADDRESS:
- setAddress(ADDRESS_EDEFAULT);
- return;
- case PomPackage.NOTIFIER__CONFIGURATION:
- unsetConfiguration();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.NOTIFIER__TYPE:
- return isSetType();
- case PomPackage.NOTIFIER__SEND_ON_ERROR:
- return isSetSendOnError();
- case PomPackage.NOTIFIER__SEND_ON_FAILURE:
- return isSetSendOnFailure();
- case PomPackage.NOTIFIER__SEND_ON_SUCCESS:
- return isSetSendOnSuccess();
- case PomPackage.NOTIFIER__SEND_ON_WARNING:
- return isSetSendOnWarning();
- case PomPackage.NOTIFIER__ADDRESS:
- return ADDRESS_EDEFAULT == null ? address != null
- : !ADDRESS_EDEFAULT.equals(address);
- case PomPackage.NOTIFIER__CONFIGURATION:
- return isSetConfiguration();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (type: "); //$NON-NLS-1$
- if (typeESet)
- result.append(type);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", sendOnError: "); //$NON-NLS-1$
- if (sendOnErrorESet)
- result.append(sendOnError);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", sendOnFailure: "); //$NON-NLS-1$
- if (sendOnFailureESet)
- result.append(sendOnFailure);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", sendOnSuccess: "); //$NON-NLS-1$
- if (sendOnSuccessESet)
- result.append(sendOnSuccess);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", sendOnWarning: "); //$NON-NLS-1$
- if (sendOnWarningESet)
- result.append(sendOnWarning);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", address: "); //$NON-NLS-1$
- result.append(address);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getType() <em>Type</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected static final String TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getType() <em>Type</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected String type = TYPE_EDEFAULT;
+
+ /**
+ * This is true if the Type attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean typeESet;
+
+ /**
+ * The default value of the '{@link #getSendOnError() <em>Send On Error</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getSendOnError()
+ * @generated
+ * @ordered
+ */
+ protected static final String SEND_ON_ERROR_EDEFAULT = "true"; //$NON-NLS-1$
+
+ /**
+ * The cached value of the '{@link #getSendOnError() <em>Send On Error</em>} ' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getSendOnError()
+ * @generated
+ * @ordered
+ */
+ protected String sendOnError = SEND_ON_ERROR_EDEFAULT;
+
+ /**
+ * This is true if the Send On Error attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean sendOnErrorESet;
+
+ /**
+ * The default value of the '{@link #getSendOnFailure() <em>Send On Failure</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getSendOnFailure()
+ * @generated
+ * @ordered
+ */
+ protected static final String SEND_ON_FAILURE_EDEFAULT = "true"; //$NON-NLS-1$
+
+ /**
+ * The cached value of the '{@link #getSendOnFailure() <em>Send On Failure</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getSendOnFailure()
+ * @generated
+ * @ordered
+ */
+ protected String sendOnFailure = SEND_ON_FAILURE_EDEFAULT;
+
+ /**
+ * This is true if the Send On Failure attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean sendOnFailureESet;
+
+ /**
+ * The default value of the '{@link #getSendOnSuccess() <em>Send On Success</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getSendOnSuccess()
+ * @generated
+ * @ordered
+ */
+ protected static final String SEND_ON_SUCCESS_EDEFAULT = "true"; //$NON-NLS-1$
+
+ /**
+ * The cached value of the '{@link #getSendOnSuccess() <em>Send On Success</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getSendOnSuccess()
+ * @generated
+ * @ordered
+ */
+ protected String sendOnSuccess = SEND_ON_SUCCESS_EDEFAULT;
+
+ /**
+ * This is true if the Send On Success attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean sendOnSuccessESet;
+
+ /**
+ * The default value of the '{@link #getSendOnWarning() <em>Send On Warning</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getSendOnWarning()
+ * @generated
+ * @ordered
+ */
+ protected static final String SEND_ON_WARNING_EDEFAULT = "true"; //$NON-NLS-1$
+
+ /**
+ * The cached value of the '{@link #getSendOnWarning() <em>Send On Warning</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getSendOnWarning()
+ * @generated
+ * @ordered
+ */
+ protected String sendOnWarning = SEND_ON_WARNING_EDEFAULT;
+
+ /**
+ * This is true if the Send On Warning attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean sendOnWarningESet;
+
+ /**
+ * The default value of the '{@link #getAddress() <em>Address</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getAddress()
+ * @generated
+ * @ordered
+ */
+ protected static final String ADDRESS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getAddress() <em>Address</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getAddress()
+ * @generated
+ * @ordered
+ */
+ protected String address = ADDRESS_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getConfiguration() <em>Configuration</em>}' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getConfiguration()
+ * @generated
+ * @ordered
+ */
+ protected EList<PropertyElement> configuration;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected NotifierImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.NOTIFIER;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setType(String newType) {
+ String oldType = type;
+ type = newType;
+ boolean oldTypeESet = typeESet;
+ typeESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.NOTIFIER__TYPE, oldType, type, !oldTypeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetType() {
+ String oldType = type;
+ boolean oldTypeESet = typeESet;
+ type = TYPE_EDEFAULT;
+ typeESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.NOTIFIER__TYPE, oldType, TYPE_EDEFAULT,
+ oldTypeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetType() {
+ return typeESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getSendOnError() {
+ return sendOnError;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setSendOnError(String newSendOnError) {
+ String oldSendOnError = sendOnError;
+ sendOnError = newSendOnError;
+ boolean oldSendOnErrorESet = sendOnErrorESet;
+ sendOnErrorESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.NOTIFIER__SEND_ON_ERROR, oldSendOnError,
+ sendOnError, !oldSendOnErrorESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetSendOnError() {
+ String oldSendOnError = sendOnError;
+ boolean oldSendOnErrorESet = sendOnErrorESet;
+ sendOnError = SEND_ON_ERROR_EDEFAULT;
+ sendOnErrorESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.NOTIFIER__SEND_ON_ERROR, oldSendOnError,
+ SEND_ON_ERROR_EDEFAULT, oldSendOnErrorESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetSendOnError() {
+ return sendOnErrorESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getSendOnFailure() {
+ return sendOnFailure;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setSendOnFailure(String newSendOnFailure) {
+ String oldSendOnFailure = sendOnFailure;
+ sendOnFailure = newSendOnFailure;
+ boolean oldSendOnFailureESet = sendOnFailureESet;
+ sendOnFailureESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.NOTIFIER__SEND_ON_FAILURE, oldSendOnFailure,
+ sendOnFailure, !oldSendOnFailureESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetSendOnFailure() {
+ String oldSendOnFailure = sendOnFailure;
+ boolean oldSendOnFailureESet = sendOnFailureESet;
+ sendOnFailure = SEND_ON_FAILURE_EDEFAULT;
+ sendOnFailureESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.NOTIFIER__SEND_ON_FAILURE, oldSendOnFailure,
+ SEND_ON_FAILURE_EDEFAULT, oldSendOnFailureESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetSendOnFailure() {
+ return sendOnFailureESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getSendOnSuccess() {
+ return sendOnSuccess;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setSendOnSuccess(String newSendOnSuccess) {
+ String oldSendOnSuccess = sendOnSuccess;
+ sendOnSuccess = newSendOnSuccess;
+ boolean oldSendOnSuccessESet = sendOnSuccessESet;
+ sendOnSuccessESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.NOTIFIER__SEND_ON_SUCCESS, oldSendOnSuccess,
+ sendOnSuccess, !oldSendOnSuccessESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetSendOnSuccess() {
+ String oldSendOnSuccess = sendOnSuccess;
+ boolean oldSendOnSuccessESet = sendOnSuccessESet;
+ sendOnSuccess = SEND_ON_SUCCESS_EDEFAULT;
+ sendOnSuccessESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.NOTIFIER__SEND_ON_SUCCESS, oldSendOnSuccess,
+ SEND_ON_SUCCESS_EDEFAULT, oldSendOnSuccessESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetSendOnSuccess() {
+ return sendOnSuccessESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getSendOnWarning() {
+ return sendOnWarning;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setSendOnWarning(String newSendOnWarning) {
+ String oldSendOnWarning = sendOnWarning;
+ sendOnWarning = newSendOnWarning;
+ boolean oldSendOnWarningESet = sendOnWarningESet;
+ sendOnWarningESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.NOTIFIER__SEND_ON_WARNING, oldSendOnWarning,
+ sendOnWarning, !oldSendOnWarningESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetSendOnWarning() {
+ String oldSendOnWarning = sendOnWarning;
+ boolean oldSendOnWarningESet = sendOnWarningESet;
+ sendOnWarning = SEND_ON_WARNING_EDEFAULT;
+ sendOnWarningESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.NOTIFIER__SEND_ON_WARNING, oldSendOnWarning,
+ SEND_ON_WARNING_EDEFAULT, oldSendOnWarningESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetSendOnWarning() {
+ return sendOnWarningESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getAddress() {
+ return address;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setAddress(String newAddress) {
+ String oldAddress = address;
+ address = newAddress;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.NOTIFIER__ADDRESS, oldAddress, address));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<PropertyElement> getConfiguration() {
+ if(configuration == null) {
+ configuration = new EObjectContainmentEList.Unsettable<PropertyElement>(PropertyElement.class, this,
+ PomPackage.NOTIFIER__CONFIGURATION);
+ }
+ return configuration;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetConfiguration() {
+ if(configuration != null)
+ ((InternalEList.Unsettable<?>) configuration).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetConfiguration() {
+ return configuration != null && ((InternalEList.Unsettable<?>) configuration).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.NOTIFIER__CONFIGURATION:
+ return ((InternalEList<?>) getConfiguration()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.NOTIFIER__TYPE:
+ return getType();
+ case PomPackage.NOTIFIER__SEND_ON_ERROR:
+ return getSendOnError();
+ case PomPackage.NOTIFIER__SEND_ON_FAILURE:
+ return getSendOnFailure();
+ case PomPackage.NOTIFIER__SEND_ON_SUCCESS:
+ return getSendOnSuccess();
+ case PomPackage.NOTIFIER__SEND_ON_WARNING:
+ return getSendOnWarning();
+ case PomPackage.NOTIFIER__ADDRESS:
+ return getAddress();
+ case PomPackage.NOTIFIER__CONFIGURATION:
+ return getConfiguration();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.NOTIFIER__TYPE:
+ setType((String) newValue);
+ return;
+ case PomPackage.NOTIFIER__SEND_ON_ERROR:
+ setSendOnError((String) newValue);
+ return;
+ case PomPackage.NOTIFIER__SEND_ON_FAILURE:
+ setSendOnFailure((String) newValue);
+ return;
+ case PomPackage.NOTIFIER__SEND_ON_SUCCESS:
+ setSendOnSuccess((String) newValue);
+ return;
+ case PomPackage.NOTIFIER__SEND_ON_WARNING:
+ setSendOnWarning((String) newValue);
+ return;
+ case PomPackage.NOTIFIER__ADDRESS:
+ setAddress((String) newValue);
+ return;
+ case PomPackage.NOTIFIER__CONFIGURATION:
+ getConfiguration().clear();
+ getConfiguration().addAll((Collection<? extends PropertyElement>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.NOTIFIER__TYPE:
+ unsetType();
+ return;
+ case PomPackage.NOTIFIER__SEND_ON_ERROR:
+ unsetSendOnError();
+ return;
+ case PomPackage.NOTIFIER__SEND_ON_FAILURE:
+ unsetSendOnFailure();
+ return;
+ case PomPackage.NOTIFIER__SEND_ON_SUCCESS:
+ unsetSendOnSuccess();
+ return;
+ case PomPackage.NOTIFIER__SEND_ON_WARNING:
+ unsetSendOnWarning();
+ return;
+ case PomPackage.NOTIFIER__ADDRESS:
+ setAddress(ADDRESS_EDEFAULT);
+ return;
+ case PomPackage.NOTIFIER__CONFIGURATION:
+ unsetConfiguration();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.NOTIFIER__TYPE:
+ return isSetType();
+ case PomPackage.NOTIFIER__SEND_ON_ERROR:
+ return isSetSendOnError();
+ case PomPackage.NOTIFIER__SEND_ON_FAILURE:
+ return isSetSendOnFailure();
+ case PomPackage.NOTIFIER__SEND_ON_SUCCESS:
+ return isSetSendOnSuccess();
+ case PomPackage.NOTIFIER__SEND_ON_WARNING:
+ return isSetSendOnWarning();
+ case PomPackage.NOTIFIER__ADDRESS:
+ return ADDRESS_EDEFAULT == null ? address != null : !ADDRESS_EDEFAULT.equals(address);
+ case PomPackage.NOTIFIER__CONFIGURATION:
+ return isSetConfiguration();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (type: "); //$NON-NLS-1$
+ if(typeESet)
+ result.append(type);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", sendOnError: "); //$NON-NLS-1$
+ if(sendOnErrorESet)
+ result.append(sendOnError);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", sendOnFailure: "); //$NON-NLS-1$
+ if(sendOnFailureESet)
+ result.append(sendOnFailure);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", sendOnSuccess: "); //$NON-NLS-1$
+ if(sendOnSuccessESet)
+ result.append(sendOnSuccess);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", sendOnWarning: "); //$NON-NLS-1$
+ if(sendOnWarningESet)
+ result.append(sendOnWarning);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", address: "); //$NON-NLS-1$
+ result.append(address);
+ result.append(')');
+ return result.toString();
+ }
} // NotifierImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/OrganizationImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/OrganizationImpl.java
index 869cb7cc..6166683b 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/OrganizationImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/OrganizationImpl.java
@@ -12,221 +12,210 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.Organization;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Organization</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Organization</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.OrganizationImpl#getName <em>
- * Name</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.OrganizationImpl#getUrl <em>Url
- * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.OrganizationImpl#getName <em> Name</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.OrganizationImpl#getUrl <em>Url </em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class OrganizationImpl extends EObjectImpl implements Organization {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected static final String URL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected String url = URL_EDEFAULT;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected OrganizationImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.ORGANIZATION;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ORGANIZATION__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getUrl() {
- return url;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setUrl(String newUrl) {
- String oldUrl = url;
- url = newUrl;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.ORGANIZATION__URL, oldUrl, url));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.ORGANIZATION__NAME:
- return getName();
- case PomPackage.ORGANIZATION__URL:
- return getUrl();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.ORGANIZATION__NAME:
- setName((String) newValue);
- return;
- case PomPackage.ORGANIZATION__URL:
- setUrl((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.ORGANIZATION__NAME:
- setName(NAME_EDEFAULT);
- return;
- case PomPackage.ORGANIZATION__URL:
- setUrl(URL_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.ORGANIZATION__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT
- .equals(name);
- case PomPackage.ORGANIZATION__URL:
- return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT
- .equals(url);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: "); //$NON-NLS-1$
- result.append(name);
- result.append(", url: "); //$NON-NLS-1$
- result.append(url);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String URL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected String url = URL_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected OrganizationImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.ORGANIZATION;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ORGANIZATION__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getUrl() {
+ return url;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setUrl(String newUrl) {
+ String oldUrl = url;
+ url = newUrl;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.ORGANIZATION__URL, oldUrl, url));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.ORGANIZATION__NAME:
+ return getName();
+ case PomPackage.ORGANIZATION__URL:
+ return getUrl();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.ORGANIZATION__NAME:
+ setName((String) newValue);
+ return;
+ case PomPackage.ORGANIZATION__URL:
+ setUrl((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.ORGANIZATION__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case PomPackage.ORGANIZATION__URL:
+ setUrl(URL_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.ORGANIZATION__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case PomPackage.ORGANIZATION__URL:
+ return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: "); //$NON-NLS-1$
+ result.append(name);
+ result.append(", url: "); //$NON-NLS-1$
+ result.append(url);
+ result.append(')');
+ return result.toString();
+ }
} // OrganizationImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ParentImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ParentImpl.java
index c98b1228..3614b0cd 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ParentImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ParentImpl.java
@@ -12,338 +12,322 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.Parent;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Parent</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Parent</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ParentImpl#getArtifactId <em>
- * Artifact Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ParentImpl#getGroupId <em>Group
- * Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ParentImpl#getVersion <em>
- * Version</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ParentImpl#getRelativePath <em>
- * Relative Path</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ParentImpl#getArtifactId <em> Artifact Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ParentImpl#getGroupId <em>Group Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ParentImpl#getVersion <em> Version</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ParentImpl#getRelativePath <em> Relative Path</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ParentImpl extends EObjectImpl implements Parent {
- /**
- * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected static final String ARTIFACT_ID_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ARTIFACT_ID_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected String artifactId = ARTIFACT_ID_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected String artifactId = ARTIFACT_ID_EDEFAULT;
- /**
- * The default value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected static final String GROUP_ID_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected static final String GROUP_ID_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected String groupId = GROUP_ID_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected String groupId = GROUP_ID_EDEFAULT;
- /**
- * The default value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected static final String VERSION_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected static final String VERSION_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected String version = VERSION_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected String version = VERSION_EDEFAULT;
- /**
- * The default value of the '{@link #getRelativePath()
- * <em>Relative Path</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getRelativePath()
- * @generated
- * @ordered
- */
- protected static final String RELATIVE_PATH_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getRelativePath() <em>Relative Path</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getRelativePath()
+ * @generated
+ * @ordered
+ */
+ protected static final String RELATIVE_PATH_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getRelativePath()
- * <em>Relative Path</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getRelativePath()
- * @generated
- * @ordered
- */
- protected String relativePath = RELATIVE_PATH_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getRelativePath() <em>Relative Path</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getRelativePath()
+ * @generated
+ * @ordered
+ */
+ protected String relativePath = RELATIVE_PATH_EDEFAULT;
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ParentImpl() {
- super();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ParentImpl() {
+ super();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.PARENT;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.PARENT;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getArtifactId() {
- return artifactId;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getArtifactId() {
+ return artifactId;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setArtifactId(String newArtifactId) {
- String oldArtifactId = artifactId;
- artifactId = newArtifactId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PARENT__ARTIFACT_ID, oldArtifactId, artifactId));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setArtifactId(String newArtifactId) {
+ String oldArtifactId = artifactId;
+ artifactId = newArtifactId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PARENT__ARTIFACT_ID, oldArtifactId, artifactId));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getGroupId() {
- return groupId;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getGroupId() {
+ return groupId;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setGroupId(String newGroupId) {
- String oldGroupId = groupId;
- groupId = newGroupId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PARENT__GROUP_ID, oldGroupId, groupId));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setGroupId(String newGroupId) {
+ String oldGroupId = groupId;
+ groupId = newGroupId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PARENT__GROUP_ID, oldGroupId, groupId));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getVersion() {
- return version;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getVersion() {
+ return version;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setVersion(String newVersion) {
- String oldVersion = version;
- version = newVersion;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PARENT__VERSION, oldVersion, version));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setVersion(String newVersion) {
+ String oldVersion = version;
+ version = newVersion;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PARENT__VERSION, oldVersion, version));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getRelativePath() {
- return relativePath;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getRelativePath() {
+ return relativePath;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setRelativePath(String newRelativePath) {
- String oldRelativePath = relativePath;
- relativePath = newRelativePath;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PARENT__RELATIVE_PATH, oldRelativePath,
- relativePath));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setRelativePath(String newRelativePath) {
+ String oldRelativePath = relativePath;
+ relativePath = newRelativePath;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PARENT__RELATIVE_PATH, oldRelativePath,
+ relativePath));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.PARENT__ARTIFACT_ID:
- return getArtifactId();
- case PomPackage.PARENT__GROUP_ID:
- return getGroupId();
- case PomPackage.PARENT__VERSION:
- return getVersion();
- case PomPackage.PARENT__RELATIVE_PATH:
- return getRelativePath();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.PARENT__ARTIFACT_ID:
+ return getArtifactId();
+ case PomPackage.PARENT__GROUP_ID:
+ return getGroupId();
+ case PomPackage.PARENT__VERSION:
+ return getVersion();
+ case PomPackage.PARENT__RELATIVE_PATH:
+ return getRelativePath();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.PARENT__ARTIFACT_ID:
- setArtifactId((String) newValue);
- return;
- case PomPackage.PARENT__GROUP_ID:
- setGroupId((String) newValue);
- return;
- case PomPackage.PARENT__VERSION:
- setVersion((String) newValue);
- return;
- case PomPackage.PARENT__RELATIVE_PATH:
- setRelativePath((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.PARENT__ARTIFACT_ID:
+ setArtifactId((String) newValue);
+ return;
+ case PomPackage.PARENT__GROUP_ID:
+ setGroupId((String) newValue);
+ return;
+ case PomPackage.PARENT__VERSION:
+ setVersion((String) newValue);
+ return;
+ case PomPackage.PARENT__RELATIVE_PATH:
+ setRelativePath((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.PARENT__ARTIFACT_ID:
- setArtifactId(ARTIFACT_ID_EDEFAULT);
- return;
- case PomPackage.PARENT__GROUP_ID:
- setGroupId(GROUP_ID_EDEFAULT);
- return;
- case PomPackage.PARENT__VERSION:
- setVersion(VERSION_EDEFAULT);
- return;
- case PomPackage.PARENT__RELATIVE_PATH:
- setRelativePath(RELATIVE_PATH_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.PARENT__ARTIFACT_ID:
+ setArtifactId(ARTIFACT_ID_EDEFAULT);
+ return;
+ case PomPackage.PARENT__GROUP_ID:
+ setGroupId(GROUP_ID_EDEFAULT);
+ return;
+ case PomPackage.PARENT__VERSION:
+ setVersion(VERSION_EDEFAULT);
+ return;
+ case PomPackage.PARENT__RELATIVE_PATH:
+ setRelativePath(RELATIVE_PATH_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.PARENT__ARTIFACT_ID:
- return ARTIFACT_ID_EDEFAULT == null ? artifactId != null
- : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
- case PomPackage.PARENT__GROUP_ID:
- return GROUP_ID_EDEFAULT == null ? groupId != null
- : !GROUP_ID_EDEFAULT.equals(groupId);
- case PomPackage.PARENT__VERSION:
- return VERSION_EDEFAULT == null ? version != null
- : !VERSION_EDEFAULT.equals(version);
- case PomPackage.PARENT__RELATIVE_PATH:
- return RELATIVE_PATH_EDEFAULT == null ? relativePath != null
- : !RELATIVE_PATH_EDEFAULT.equals(relativePath);
- }
- return super.eIsSet(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.PARENT__ARTIFACT_ID:
+ return ARTIFACT_ID_EDEFAULT == null ? artifactId != null : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
+ case PomPackage.PARENT__GROUP_ID:
+ return GROUP_ID_EDEFAULT == null ? groupId != null : !GROUP_ID_EDEFAULT.equals(groupId);
+ case PomPackage.PARENT__VERSION:
+ return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version);
+ case PomPackage.PARENT__RELATIVE_PATH:
+ return RELATIVE_PATH_EDEFAULT == null ? relativePath != null : !RELATIVE_PATH_EDEFAULT.equals(relativePath);
+ }
+ return super.eIsSet(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (artifactId: "); //$NON-NLS-1$
- result.append(artifactId);
- result.append(", groupId: "); //$NON-NLS-1$
- result.append(groupId);
- result.append(", version: "); //$NON-NLS-1$
- result.append(version);
- result.append(", relativePath: "); //$NON-NLS-1$
- result.append(relativePath);
- result.append(')');
- return result.toString();
- }
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (artifactId: "); //$NON-NLS-1$
+ result.append(artifactId);
+ result.append(", groupId: "); //$NON-NLS-1$
+ result.append(groupId);
+ result.append(", version: "); //$NON-NLS-1$
+ result.append(version);
+ result.append(", relativePath: "); //$NON-NLS-1$
+ result.append(relativePath);
+ result.append(')');
+ return result.toString();
+ }
} // ParentImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PluginExecutionImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PluginExecutionImpl.java
index 0574148b..303a23fb 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PluginExecutionImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PluginExecutionImpl.java
@@ -14,431 +14,410 @@ package org.eclipse.m2e.model.edit.pom.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EDataTypeEList;
+
import org.eclipse.m2e.model.edit.pom.Configuration;
import org.eclipse.m2e.model.edit.pom.PluginExecution;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Plugin Execution</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Plugin Execution</b></em>'. <!-- end-user-doc
+ * -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl#getId <em>Id
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl#getPhase
- * <em>Phase</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl#getId <em>Id </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl#getPhase <em>Phase</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl#getInherited
- * <em>Inherited</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl#getGoals
- * <em>Goals</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl#getInherited <em>Inherited</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl#getGoals <em>Goals</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl#getConfiguration
- * <em>Configuration</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.PluginExecutionImpl#getConfiguration <em>Configuration</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class PluginExecutionImpl extends EObjectImpl implements PluginExecution {
- /**
- * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected static final String ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected String id = ID_EDEFAULT;
-
- /**
- * This is true if the Id attribute has been set. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean idESet;
-
- /**
- * The default value of the '{@link #getPhase() <em>Phase</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getPhase()
- * @generated
- * @ordered
- */
- protected static final String PHASE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getPhase() <em>Phase</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getPhase()
- * @generated
- * @ordered
- */
- protected String phase = PHASE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getInherited() <em>Inherited</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getInherited()
- * @generated
- * @ordered
- */
- protected static final String INHERITED_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getInherited() <em>Inherited</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getInherited()
- * @generated
- * @ordered
- */
- protected String inherited = INHERITED_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getGoals() <em>Goals</em>}' attribute
- * list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGoals()
- * @generated
- * @ordered
- */
- protected EList<String> goals;
-
- /**
- * The cached value of the '{@link #getConfiguration()
- * <em>Configuration</em>}' reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getConfiguration()
- * @generated
- * @ordered
- */
- protected Configuration configuration;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected PluginExecutionImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.PLUGIN_EXECUTION;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getId() {
- return id;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setId(String newId) {
- String oldId = id;
- id = newId;
- boolean oldIdESet = idESet;
- idESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PLUGIN_EXECUTION__ID, oldId, id, !oldIdESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetId() {
- String oldId = id;
- boolean oldIdESet = idESet;
- id = ID_EDEFAULT;
- idESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.PLUGIN_EXECUTION__ID, oldId, ID_EDEFAULT,
- oldIdESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetId() {
- return idESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getPhase() {
- return phase;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setPhase(String newPhase) {
- String oldPhase = phase;
- phase = newPhase;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PLUGIN_EXECUTION__PHASE, oldPhase, phase));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getInherited() {
- return inherited;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setInherited(String newInherited) {
- String oldInherited = inherited;
- inherited = newInherited;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PLUGIN_EXECUTION__INHERITED, oldInherited,
- inherited));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getGoals() {
- if (goals == null) {
- goals = new EDataTypeEList<String>(String.class, this,
- PomPackage.PLUGIN_EXECUTION__GOALS);
- }
- return goals;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Configuration getConfiguration() {
- if (configuration != null && configuration.eIsProxy()) {
- InternalEObject oldConfiguration = (InternalEObject) configuration;
- configuration = (Configuration) eResolveProxy(oldConfiguration);
- if (configuration != oldConfiguration) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE,
- PomPackage.PLUGIN_EXECUTION__CONFIGURATION,
- oldConfiguration, configuration));
- }
- }
- return configuration;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Configuration basicGetConfiguration() {
- return configuration;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setConfiguration(Configuration newConfiguration) {
- Configuration oldConfiguration = configuration;
- configuration = newConfiguration;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PLUGIN_EXECUTION__CONFIGURATION,
- oldConfiguration, configuration));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.PLUGIN_EXECUTION__ID:
- return getId();
- case PomPackage.PLUGIN_EXECUTION__PHASE:
- return getPhase();
- case PomPackage.PLUGIN_EXECUTION__INHERITED:
- return getInherited();
- case PomPackage.PLUGIN_EXECUTION__GOALS:
- return getGoals();
- case PomPackage.PLUGIN_EXECUTION__CONFIGURATION:
- if (resolve)
- return getConfiguration();
- return basicGetConfiguration();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.PLUGIN_EXECUTION__ID:
- setId((String) newValue);
- return;
- case PomPackage.PLUGIN_EXECUTION__PHASE:
- setPhase((String) newValue);
- return;
- case PomPackage.PLUGIN_EXECUTION__INHERITED:
- setInherited((String) newValue);
- return;
- case PomPackage.PLUGIN_EXECUTION__GOALS:
- getGoals().clear();
- getGoals().addAll((Collection<? extends String>) newValue);
- return;
- case PomPackage.PLUGIN_EXECUTION__CONFIGURATION:
- setConfiguration((Configuration) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.PLUGIN_EXECUTION__ID:
- unsetId();
- return;
- case PomPackage.PLUGIN_EXECUTION__PHASE:
- setPhase(PHASE_EDEFAULT);
- return;
- case PomPackage.PLUGIN_EXECUTION__INHERITED:
- setInherited(INHERITED_EDEFAULT);
- return;
- case PomPackage.PLUGIN_EXECUTION__GOALS:
- getGoals().clear();
- return;
- case PomPackage.PLUGIN_EXECUTION__CONFIGURATION:
- setConfiguration((Configuration) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.PLUGIN_EXECUTION__ID:
- return isSetId();
- case PomPackage.PLUGIN_EXECUTION__PHASE:
- return PHASE_EDEFAULT == null ? phase != null : !PHASE_EDEFAULT
- .equals(phase);
- case PomPackage.PLUGIN_EXECUTION__INHERITED:
- return INHERITED_EDEFAULT == null ? inherited != null
- : !INHERITED_EDEFAULT.equals(inherited);
- case PomPackage.PLUGIN_EXECUTION__GOALS:
- return goals != null && !goals.isEmpty();
- case PomPackage.PLUGIN_EXECUTION__CONFIGURATION:
- return configuration != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (id: "); //$NON-NLS-1$
- if (idESet)
- result.append(id);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", phase: "); //$NON-NLS-1$
- result.append(phase);
- result.append(", inherited: "); //$NON-NLS-1$
- result.append(inherited);
- result.append(", goals: "); //$NON-NLS-1$
- result.append(goals);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+
+ /**
+ * This is true if the Id attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean idESet;
+
+ /**
+ * The default value of the '{@link #getPhase() <em>Phase</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getPhase()
+ * @generated
+ * @ordered
+ */
+ protected static final String PHASE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getPhase() <em>Phase</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getPhase()
+ * @generated
+ * @ordered
+ */
+ protected String phase = PHASE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getInherited() <em>Inherited</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getInherited()
+ * @generated
+ * @ordered
+ */
+ protected static final String INHERITED_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getInherited() <em>Inherited</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getInherited()
+ * @generated
+ * @ordered
+ */
+ protected String inherited = INHERITED_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getGoals() <em>Goals</em>}' attribute list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGoals()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> goals;
+
+ /**
+ * The cached value of the '{@link #getConfiguration() <em>Configuration</em>}' reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getConfiguration()
+ * @generated
+ * @ordered
+ */
+ protected Configuration configuration;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected PluginExecutionImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.PLUGIN_EXECUTION;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ boolean oldIdESet = idESet;
+ idESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PLUGIN_EXECUTION__ID, oldId, id, !oldIdESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetId() {
+ String oldId = id;
+ boolean oldIdESet = idESet;
+ id = ID_EDEFAULT;
+ idESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.PLUGIN_EXECUTION__ID, oldId, ID_EDEFAULT,
+ oldIdESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetId() {
+ return idESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getPhase() {
+ return phase;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setPhase(String newPhase) {
+ String oldPhase = phase;
+ phase = newPhase;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PLUGIN_EXECUTION__PHASE, oldPhase, phase));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getInherited() {
+ return inherited;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setInherited(String newInherited) {
+ String oldInherited = inherited;
+ inherited = newInherited;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PLUGIN_EXECUTION__INHERITED, oldInherited,
+ inherited));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<String> getGoals() {
+ if(goals == null) {
+ goals = new EDataTypeEList<String>(String.class, this, PomPackage.PLUGIN_EXECUTION__GOALS);
+ }
+ return goals;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Configuration getConfiguration() {
+ if(configuration != null && configuration.eIsProxy()) {
+ InternalEObject oldConfiguration = (InternalEObject) configuration;
+ configuration = (Configuration) eResolveProxy(oldConfiguration);
+ if(configuration != oldConfiguration) {
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, PomPackage.PLUGIN_EXECUTION__CONFIGURATION,
+ oldConfiguration, configuration));
+ }
+ }
+ return configuration;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Configuration basicGetConfiguration() {
+ return configuration;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setConfiguration(Configuration newConfiguration) {
+ Configuration oldConfiguration = configuration;
+ configuration = newConfiguration;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PLUGIN_EXECUTION__CONFIGURATION,
+ oldConfiguration, configuration));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.PLUGIN_EXECUTION__ID:
+ return getId();
+ case PomPackage.PLUGIN_EXECUTION__PHASE:
+ return getPhase();
+ case PomPackage.PLUGIN_EXECUTION__INHERITED:
+ return getInherited();
+ case PomPackage.PLUGIN_EXECUTION__GOALS:
+ return getGoals();
+ case PomPackage.PLUGIN_EXECUTION__CONFIGURATION:
+ if(resolve)
+ return getConfiguration();
+ return basicGetConfiguration();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.PLUGIN_EXECUTION__ID:
+ setId((String) newValue);
+ return;
+ case PomPackage.PLUGIN_EXECUTION__PHASE:
+ setPhase((String) newValue);
+ return;
+ case PomPackage.PLUGIN_EXECUTION__INHERITED:
+ setInherited((String) newValue);
+ return;
+ case PomPackage.PLUGIN_EXECUTION__GOALS:
+ getGoals().clear();
+ getGoals().addAll((Collection<? extends String>) newValue);
+ return;
+ case PomPackage.PLUGIN_EXECUTION__CONFIGURATION:
+ setConfiguration((Configuration) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.PLUGIN_EXECUTION__ID:
+ unsetId();
+ return;
+ case PomPackage.PLUGIN_EXECUTION__PHASE:
+ setPhase(PHASE_EDEFAULT);
+ return;
+ case PomPackage.PLUGIN_EXECUTION__INHERITED:
+ setInherited(INHERITED_EDEFAULT);
+ return;
+ case PomPackage.PLUGIN_EXECUTION__GOALS:
+ getGoals().clear();
+ return;
+ case PomPackage.PLUGIN_EXECUTION__CONFIGURATION:
+ setConfiguration((Configuration) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.PLUGIN_EXECUTION__ID:
+ return isSetId();
+ case PomPackage.PLUGIN_EXECUTION__PHASE:
+ return PHASE_EDEFAULT == null ? phase != null : !PHASE_EDEFAULT.equals(phase);
+ case PomPackage.PLUGIN_EXECUTION__INHERITED:
+ return INHERITED_EDEFAULT == null ? inherited != null : !INHERITED_EDEFAULT.equals(inherited);
+ case PomPackage.PLUGIN_EXECUTION__GOALS:
+ return goals != null && !goals.isEmpty();
+ case PomPackage.PLUGIN_EXECUTION__CONFIGURATION:
+ return configuration != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (id: "); //$NON-NLS-1$
+ if(idESet)
+ result.append(id);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", phase: "); //$NON-NLS-1$
+ result.append(phase);
+ result.append(", inherited: "); //$NON-NLS-1$
+ result.append(inherited);
+ result.append(", goals: "); //$NON-NLS-1$
+ result.append(goals);
+ result.append(')');
+ return result.toString();
+ }
} // PluginExecutionImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PluginImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PluginImpl.java
index 5f1143a8..a6fc96e9 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PluginImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PluginImpl.java
@@ -15,17 +15,14 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.Configuration;
import org.eclipse.m2e.model.edit.pom.Dependency;
import org.eclipse.m2e.model.edit.pom.Plugin;
@@ -34,662 +31,630 @@ import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Plugin</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Plugin</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getGroupId <em>Group
- * Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getArtifactId <em>
- * Artifact Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getVersion <em>
- * Version</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getExtensions <em>
- * Extensions</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getExecutions <em>
- * Executions</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getDependencies <em>
- * Dependencies</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getInherited <em>
- * Inherited</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getConfiguration <em>
- * Configuration</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getGroupId <em>Group Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getArtifactId <em> Artifact Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getVersion <em> Version</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getExtensions <em> Extensions</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getExecutions <em> Executions</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getDependencies <em> Dependencies</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getInherited <em> Inherited</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginImpl#getConfiguration <em> Configuration</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class PluginImpl extends EObjectImpl implements Plugin {
- /**
- * The default value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected static final String GROUP_ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected String groupId = GROUP_ID_EDEFAULT;
-
- /**
- * This is true if the Group Id attribute has been set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean groupIdESet;
-
- /**
- * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected static final String ARTIFACT_ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected String artifactId = ARTIFACT_ID_EDEFAULT;
-
- /**
- * The default value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected static final String VERSION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected String version = VERSION_EDEFAULT;
-
- /**
- * The default value of the '{@link #getExtensions() <em>Extensions</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getExtensions()
- * @generated
- * @ordered
- */
- protected static final String EXTENSIONS_EDEFAULT = "false"; //$NON-NLS-1$
-
- /**
- * The cached value of the '{@link #getExtensions() <em>Extensions</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getExtensions()
- * @generated
- * @ordered
- */
- protected String extensions = EXTENSIONS_EDEFAULT;
-
- /**
- * This is true if the Extensions attribute has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean extensionsESet;
-
- /**
- * The cached value of the '{@link #getExecutions() <em>Executions</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getExecutions()
- * @generated
- * @ordered
- */
- protected EList<PluginExecution> executions;
-
- /**
- * The cached value of the '{@link #getDependencies() <em>Dependencies</em>}
- * ' containment reference list. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #getDependencies()
- * @generated
- * @ordered
- */
- protected EList<Dependency> dependencies;
-
- /**
- * The default value of the '{@link #getInherited() <em>Inherited</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getInherited()
- * @generated
- * @ordered
- */
- protected static final String INHERITED_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getInherited() <em>Inherited</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getInherited()
- * @generated
- * @ordered
- */
- protected String inherited = INHERITED_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getConfiguration()
- * <em>Configuration</em>}' reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getConfiguration()
- * @generated
- * @ordered
- */
- protected Configuration configuration;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected PluginImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.PLUGIN;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getGroupId() {
- return groupId;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setGroupId(String newGroupId) {
- String oldGroupId = groupId;
- groupId = newGroupId;
- boolean oldGroupIdESet = groupIdESet;
- groupIdESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PLUGIN__GROUP_ID, oldGroupId, groupId,
- !oldGroupIdESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetGroupId() {
- String oldGroupId = groupId;
- boolean oldGroupIdESet = groupIdESet;
- groupId = GROUP_ID_EDEFAULT;
- groupIdESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.PLUGIN__GROUP_ID, oldGroupId, GROUP_ID_EDEFAULT,
- oldGroupIdESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetGroupId() {
- return groupIdESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getArtifactId() {
- return artifactId;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setArtifactId(String newArtifactId) {
- String oldArtifactId = artifactId;
- artifactId = newArtifactId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PLUGIN__ARTIFACT_ID, oldArtifactId, artifactId));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getVersion() {
- return version;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setVersion(String newVersion) {
- String oldVersion = version;
- version = newVersion;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PLUGIN__VERSION, oldVersion, version));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getExtensions() {
- return extensions;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setExtensions(String newExtensions) {
- String oldExtensions = extensions;
- extensions = newExtensions;
- boolean oldExtensionsESet = extensionsESet;
- extensionsESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PLUGIN__EXTENSIONS, oldExtensions, extensions,
- !oldExtensionsESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetExtensions() {
- String oldExtensions = extensions;
- boolean oldExtensionsESet = extensionsESet;
- extensions = EXTENSIONS_EDEFAULT;
- extensionsESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.PLUGIN__EXTENSIONS, oldExtensions,
- EXTENSIONS_EDEFAULT, oldExtensionsESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetExtensions() {
- return extensionsESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<PluginExecution> getExecutions() {
- if (executions == null) {
- executions = new EObjectContainmentEList.Unsettable<PluginExecution>(
- PluginExecution.class, this, PomPackage.PLUGIN__EXECUTIONS);
- }
- return executions;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetExecutions() {
- if (executions != null)
- ((InternalEList.Unsettable<?>) executions).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetExecutions() {
- return executions != null
- && ((InternalEList.Unsettable<?>) executions).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Dependency> getDependencies() {
- if (dependencies == null) {
- dependencies = new EObjectContainmentEList.Unsettable<Dependency>(
- Dependency.class, this, PomPackage.PLUGIN__DEPENDENCIES);
- }
- return dependencies;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetDependencies() {
- if (dependencies != null)
- ((InternalEList.Unsettable<?>) dependencies).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetDependencies() {
- return dependencies != null
- && ((InternalEList.Unsettable<?>) dependencies).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getInherited() {
- return inherited;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setInherited(String newInherited) {
- String oldInherited = inherited;
- inherited = newInherited;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PLUGIN__INHERITED, oldInherited, inherited));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Configuration getConfiguration() {
- if (configuration != null && configuration.eIsProxy()) {
- InternalEObject oldConfiguration = (InternalEObject) configuration;
- configuration = (Configuration) eResolveProxy(oldConfiguration);
- if (configuration != oldConfiguration) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE,
- PomPackage.PLUGIN__CONFIGURATION, oldConfiguration,
- configuration));
- }
- }
- return configuration;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Configuration basicGetConfiguration() {
- return configuration;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setConfiguration(Configuration newConfiguration) {
- Configuration oldConfiguration = configuration;
- configuration = newConfiguration;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PLUGIN__CONFIGURATION, oldConfiguration,
- configuration));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.PLUGIN__EXECUTIONS:
- return ((InternalEList<?>) getExecutions()).basicRemove(otherEnd,
- msgs);
- case PomPackage.PLUGIN__DEPENDENCIES:
- return ((InternalEList<?>) getDependencies()).basicRemove(otherEnd,
- msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.PLUGIN__GROUP_ID:
- return getGroupId();
- case PomPackage.PLUGIN__ARTIFACT_ID:
- return getArtifactId();
- case PomPackage.PLUGIN__VERSION:
- return getVersion();
- case PomPackage.PLUGIN__EXTENSIONS:
- return getExtensions();
- case PomPackage.PLUGIN__EXECUTIONS:
- return getExecutions();
- case PomPackage.PLUGIN__DEPENDENCIES:
- return getDependencies();
- case PomPackage.PLUGIN__INHERITED:
- return getInherited();
- case PomPackage.PLUGIN__CONFIGURATION:
- if (resolve)
- return getConfiguration();
- return basicGetConfiguration();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.PLUGIN__GROUP_ID:
- setGroupId((String) newValue);
- return;
- case PomPackage.PLUGIN__ARTIFACT_ID:
- setArtifactId((String) newValue);
- return;
- case PomPackage.PLUGIN__VERSION:
- setVersion((String) newValue);
- return;
- case PomPackage.PLUGIN__EXTENSIONS:
- setExtensions((String) newValue);
- return;
- case PomPackage.PLUGIN__EXECUTIONS:
- getExecutions().clear();
- getExecutions().addAll(
- (Collection<? extends PluginExecution>) newValue);
- return;
- case PomPackage.PLUGIN__DEPENDENCIES:
- getDependencies().clear();
- getDependencies().addAll(
- (Collection<? extends Dependency>) newValue);
- return;
- case PomPackage.PLUGIN__INHERITED:
- setInherited((String) newValue);
- return;
- case PomPackage.PLUGIN__CONFIGURATION:
- setConfiguration((Configuration) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.PLUGIN__GROUP_ID:
- unsetGroupId();
- return;
- case PomPackage.PLUGIN__ARTIFACT_ID:
- setArtifactId(ARTIFACT_ID_EDEFAULT);
- return;
- case PomPackage.PLUGIN__VERSION:
- setVersion(VERSION_EDEFAULT);
- return;
- case PomPackage.PLUGIN__EXTENSIONS:
- unsetExtensions();
- return;
- case PomPackage.PLUGIN__EXECUTIONS:
- unsetExecutions();
- return;
- case PomPackage.PLUGIN__DEPENDENCIES:
- unsetDependencies();
- return;
- case PomPackage.PLUGIN__INHERITED:
- setInherited(INHERITED_EDEFAULT);
- return;
- case PomPackage.PLUGIN__CONFIGURATION:
- setConfiguration((Configuration) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.PLUGIN__GROUP_ID:
- return isSetGroupId();
- case PomPackage.PLUGIN__ARTIFACT_ID:
- return ARTIFACT_ID_EDEFAULT == null ? artifactId != null
- : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
- case PomPackage.PLUGIN__VERSION:
- return VERSION_EDEFAULT == null ? version != null
- : !VERSION_EDEFAULT.equals(version);
- case PomPackage.PLUGIN__EXTENSIONS:
- return isSetExtensions();
- case PomPackage.PLUGIN__EXECUTIONS:
- return isSetExecutions();
- case PomPackage.PLUGIN__DEPENDENCIES:
- return isSetDependencies();
- case PomPackage.PLUGIN__INHERITED:
- return INHERITED_EDEFAULT == null ? inherited != null
- : !INHERITED_EDEFAULT.equals(inherited);
- case PomPackage.PLUGIN__CONFIGURATION:
- return configuration != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (groupId: "); //$NON-NLS-1$
- if (groupIdESet)
- result.append(groupId);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", artifactId: "); //$NON-NLS-1$
- result.append(artifactId);
- result.append(", version: "); //$NON-NLS-1$
- result.append(version);
- result.append(", extensions: "); //$NON-NLS-1$
- if (extensionsESet)
- result.append(extensions);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", inherited: "); //$NON-NLS-1$
- result.append(inherited);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected static final String GROUP_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected String groupId = GROUP_ID_EDEFAULT;
+
+ /**
+ * This is true if the Group Id attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean groupIdESet;
+
+ /**
+ * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ARTIFACT_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected String artifactId = ARTIFACT_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected static final String VERSION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected String version = VERSION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getExtensions() <em>Extensions</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getExtensions()
+ * @generated
+ * @ordered
+ */
+ protected static final String EXTENSIONS_EDEFAULT = "false"; //$NON-NLS-1$
+
+ /**
+ * The cached value of the '{@link #getExtensions() <em>Extensions</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getExtensions()
+ * @generated
+ * @ordered
+ */
+ protected String extensions = EXTENSIONS_EDEFAULT;
+
+ /**
+ * This is true if the Extensions attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean extensionsESet;
+
+ /**
+ * The cached value of the '{@link #getExecutions() <em>Executions</em>}' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getExecutions()
+ * @generated
+ * @ordered
+ */
+ protected EList<PluginExecution> executions;
+
+ /**
+ * The cached value of the '{@link #getDependencies() <em>Dependencies</em>} ' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getDependencies()
+ * @generated
+ * @ordered
+ */
+ protected EList<Dependency> dependencies;
+
+ /**
+ * The default value of the '{@link #getInherited() <em>Inherited</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getInherited()
+ * @generated
+ * @ordered
+ */
+ protected static final String INHERITED_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getInherited() <em>Inherited</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getInherited()
+ * @generated
+ * @ordered
+ */
+ protected String inherited = INHERITED_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getConfiguration() <em>Configuration</em>}' reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getConfiguration()
+ * @generated
+ * @ordered
+ */
+ protected Configuration configuration;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected PluginImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.PLUGIN;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getGroupId() {
+ return groupId;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setGroupId(String newGroupId) {
+ String oldGroupId = groupId;
+ groupId = newGroupId;
+ boolean oldGroupIdESet = groupIdESet;
+ groupIdESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PLUGIN__GROUP_ID, oldGroupId, groupId,
+ !oldGroupIdESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetGroupId() {
+ String oldGroupId = groupId;
+ boolean oldGroupIdESet = groupIdESet;
+ groupId = GROUP_ID_EDEFAULT;
+ groupIdESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.PLUGIN__GROUP_ID, oldGroupId,
+ GROUP_ID_EDEFAULT, oldGroupIdESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetGroupId() {
+ return groupIdESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getArtifactId() {
+ return artifactId;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setArtifactId(String newArtifactId) {
+ String oldArtifactId = artifactId;
+ artifactId = newArtifactId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PLUGIN__ARTIFACT_ID, oldArtifactId, artifactId));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setVersion(String newVersion) {
+ String oldVersion = version;
+ version = newVersion;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PLUGIN__VERSION, oldVersion, version));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getExtensions() {
+ return extensions;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setExtensions(String newExtensions) {
+ String oldExtensions = extensions;
+ extensions = newExtensions;
+ boolean oldExtensionsESet = extensionsESet;
+ extensionsESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PLUGIN__EXTENSIONS, oldExtensions, extensions,
+ !oldExtensionsESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetExtensions() {
+ String oldExtensions = extensions;
+ boolean oldExtensionsESet = extensionsESet;
+ extensions = EXTENSIONS_EDEFAULT;
+ extensionsESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.PLUGIN__EXTENSIONS, oldExtensions,
+ EXTENSIONS_EDEFAULT, oldExtensionsESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetExtensions() {
+ return extensionsESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<PluginExecution> getExecutions() {
+ if(executions == null) {
+ executions = new EObjectContainmentEList.Unsettable<PluginExecution>(PluginExecution.class, this,
+ PomPackage.PLUGIN__EXECUTIONS);
+ }
+ return executions;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetExecutions() {
+ if(executions != null)
+ ((InternalEList.Unsettable<?>) executions).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetExecutions() {
+ return executions != null && ((InternalEList.Unsettable<?>) executions).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Dependency> getDependencies() {
+ if(dependencies == null) {
+ dependencies = new EObjectContainmentEList.Unsettable<Dependency>(Dependency.class, this,
+ PomPackage.PLUGIN__DEPENDENCIES);
+ }
+ return dependencies;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetDependencies() {
+ if(dependencies != null)
+ ((InternalEList.Unsettable<?>) dependencies).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetDependencies() {
+ return dependencies != null && ((InternalEList.Unsettable<?>) dependencies).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getInherited() {
+ return inherited;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setInherited(String newInherited) {
+ String oldInherited = inherited;
+ inherited = newInherited;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PLUGIN__INHERITED, oldInherited, inherited));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Configuration getConfiguration() {
+ if(configuration != null && configuration.eIsProxy()) {
+ InternalEObject oldConfiguration = (InternalEObject) configuration;
+ configuration = (Configuration) eResolveProxy(oldConfiguration);
+ if(configuration != oldConfiguration) {
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, PomPackage.PLUGIN__CONFIGURATION, oldConfiguration,
+ configuration));
+ }
+ }
+ return configuration;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Configuration basicGetConfiguration() {
+ return configuration;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setConfiguration(Configuration newConfiguration) {
+ Configuration oldConfiguration = configuration;
+ configuration = newConfiguration;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PLUGIN__CONFIGURATION, oldConfiguration,
+ configuration));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.PLUGIN__EXECUTIONS:
+ return ((InternalEList<?>) getExecutions()).basicRemove(otherEnd, msgs);
+ case PomPackage.PLUGIN__DEPENDENCIES:
+ return ((InternalEList<?>) getDependencies()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.PLUGIN__GROUP_ID:
+ return getGroupId();
+ case PomPackage.PLUGIN__ARTIFACT_ID:
+ return getArtifactId();
+ case PomPackage.PLUGIN__VERSION:
+ return getVersion();
+ case PomPackage.PLUGIN__EXTENSIONS:
+ return getExtensions();
+ case PomPackage.PLUGIN__EXECUTIONS:
+ return getExecutions();
+ case PomPackage.PLUGIN__DEPENDENCIES:
+ return getDependencies();
+ case PomPackage.PLUGIN__INHERITED:
+ return getInherited();
+ case PomPackage.PLUGIN__CONFIGURATION:
+ if(resolve)
+ return getConfiguration();
+ return basicGetConfiguration();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.PLUGIN__GROUP_ID:
+ setGroupId((String) newValue);
+ return;
+ case PomPackage.PLUGIN__ARTIFACT_ID:
+ setArtifactId((String) newValue);
+ return;
+ case PomPackage.PLUGIN__VERSION:
+ setVersion((String) newValue);
+ return;
+ case PomPackage.PLUGIN__EXTENSIONS:
+ setExtensions((String) newValue);
+ return;
+ case PomPackage.PLUGIN__EXECUTIONS:
+ getExecutions().clear();
+ getExecutions().addAll((Collection<? extends PluginExecution>) newValue);
+ return;
+ case PomPackage.PLUGIN__DEPENDENCIES:
+ getDependencies().clear();
+ getDependencies().addAll((Collection<? extends Dependency>) newValue);
+ return;
+ case PomPackage.PLUGIN__INHERITED:
+ setInherited((String) newValue);
+ return;
+ case PomPackage.PLUGIN__CONFIGURATION:
+ setConfiguration((Configuration) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.PLUGIN__GROUP_ID:
+ unsetGroupId();
+ return;
+ case PomPackage.PLUGIN__ARTIFACT_ID:
+ setArtifactId(ARTIFACT_ID_EDEFAULT);
+ return;
+ case PomPackage.PLUGIN__VERSION:
+ setVersion(VERSION_EDEFAULT);
+ return;
+ case PomPackage.PLUGIN__EXTENSIONS:
+ unsetExtensions();
+ return;
+ case PomPackage.PLUGIN__EXECUTIONS:
+ unsetExecutions();
+ return;
+ case PomPackage.PLUGIN__DEPENDENCIES:
+ unsetDependencies();
+ return;
+ case PomPackage.PLUGIN__INHERITED:
+ setInherited(INHERITED_EDEFAULT);
+ return;
+ case PomPackage.PLUGIN__CONFIGURATION:
+ setConfiguration((Configuration) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.PLUGIN__GROUP_ID:
+ return isSetGroupId();
+ case PomPackage.PLUGIN__ARTIFACT_ID:
+ return ARTIFACT_ID_EDEFAULT == null ? artifactId != null : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
+ case PomPackage.PLUGIN__VERSION:
+ return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version);
+ case PomPackage.PLUGIN__EXTENSIONS:
+ return isSetExtensions();
+ case PomPackage.PLUGIN__EXECUTIONS:
+ return isSetExecutions();
+ case PomPackage.PLUGIN__DEPENDENCIES:
+ return isSetDependencies();
+ case PomPackage.PLUGIN__INHERITED:
+ return INHERITED_EDEFAULT == null ? inherited != null : !INHERITED_EDEFAULT.equals(inherited);
+ case PomPackage.PLUGIN__CONFIGURATION:
+ return configuration != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (groupId: "); //$NON-NLS-1$
+ if(groupIdESet)
+ result.append(groupId);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", artifactId: "); //$NON-NLS-1$
+ result.append(artifactId);
+ result.append(", version: "); //$NON-NLS-1$
+ result.append(version);
+ result.append(", extensions: "); //$NON-NLS-1$
+ if(extensionsESet)
+ result.append(extensions);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", inherited: "); //$NON-NLS-1$
+ result.append(inherited);
+ result.append(')');
+ return result.toString();
+ }
} // PluginImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PluginManagementImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PluginManagementImpl.java
index 5c8add48..2271e893 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PluginManagementImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PluginManagementImpl.java
@@ -14,152 +14,144 @@ package org.eclipse.m2e.model.edit.pom.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.Plugin;
import org.eclipse.m2e.model.edit.pom.PluginManagement;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Plugin Management</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Plugin Management</b></em>'. <!-- end-user-doc
+ * -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginManagementImpl#getPlugins
- * <em>Plugins</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PluginManagementImpl#getPlugins <em>Plugins</em>}</li>
* </ul>
* </p>
*
* @generated
*/
-public class PluginManagementImpl extends EObjectImpl implements
- PluginManagement {
- /**
- * The cached value of the '{@link #getPlugins() <em>Plugins</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getPlugins()
- * @generated
- * @ordered
- */
- protected EList<Plugin> plugins;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected PluginManagementImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.PLUGIN_MANAGEMENT;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Plugin> getPlugins() {
- if (plugins == null) {
- plugins = new EObjectContainmentEList<Plugin>(Plugin.class, this,
- PomPackage.PLUGIN_MANAGEMENT__PLUGINS);
- }
- return plugins;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.PLUGIN_MANAGEMENT__PLUGINS:
- return ((InternalEList<?>) getPlugins())
- .basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.PLUGIN_MANAGEMENT__PLUGINS:
- return getPlugins();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.PLUGIN_MANAGEMENT__PLUGINS:
- getPlugins().clear();
- getPlugins().addAll((Collection<? extends Plugin>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.PLUGIN_MANAGEMENT__PLUGINS:
- getPlugins().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.PLUGIN_MANAGEMENT__PLUGINS:
- return plugins != null && !plugins.isEmpty();
- }
- return super.eIsSet(featureID);
- }
+public class PluginManagementImpl extends EObjectImpl implements PluginManagement {
+ /**
+ * The cached value of the '{@link #getPlugins() <em>Plugins</em>}' containment reference list. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getPlugins()
+ * @generated
+ * @ordered
+ */
+ protected EList<Plugin> plugins;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected PluginManagementImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.PLUGIN_MANAGEMENT;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Plugin> getPlugins() {
+ if(plugins == null) {
+ plugins = new EObjectContainmentEList<Plugin>(Plugin.class, this, PomPackage.PLUGIN_MANAGEMENT__PLUGINS);
+ }
+ return plugins;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.PLUGIN_MANAGEMENT__PLUGINS:
+ return ((InternalEList<?>) getPlugins()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.PLUGIN_MANAGEMENT__PLUGINS:
+ return getPlugins();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.PLUGIN_MANAGEMENT__PLUGINS:
+ getPlugins().clear();
+ getPlugins().addAll((Collection<? extends Plugin>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.PLUGIN_MANAGEMENT__PLUGINS:
+ getPlugins().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.PLUGIN_MANAGEMENT__PLUGINS:
+ return plugins != null && !plugins.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
} // PluginManagementImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PomFactoryImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PomFactoryImpl.java
index b23aefb2..e397cb8a 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PomFactoryImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PomFactoryImpl.java
@@ -14,549 +14,585 @@ package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
-
import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
import org.eclipse.emf.ecore.plugin.EcorePlugin;
-import org.eclipse.m2e.model.edit.pom.*;
+
+import org.eclipse.m2e.model.edit.pom.Activation;
+import org.eclipse.m2e.model.edit.pom.ActivationFile;
+import org.eclipse.m2e.model.edit.pom.ActivationOS;
+import org.eclipse.m2e.model.edit.pom.ActivationProperty;
+import org.eclipse.m2e.model.edit.pom.Build;
+import org.eclipse.m2e.model.edit.pom.BuildBase;
+import org.eclipse.m2e.model.edit.pom.CiManagement;
+import org.eclipse.m2e.model.edit.pom.Configuration;
+import org.eclipse.m2e.model.edit.pom.Contributor;
+import org.eclipse.m2e.model.edit.pom.Dependency;
+import org.eclipse.m2e.model.edit.pom.DependencyManagement;
+import org.eclipse.m2e.model.edit.pom.DeploymentRepository;
+import org.eclipse.m2e.model.edit.pom.Developer;
+import org.eclipse.m2e.model.edit.pom.DistributionManagement;
+import org.eclipse.m2e.model.edit.pom.DocumentRoot;
+import org.eclipse.m2e.model.edit.pom.Exclusion;
+import org.eclipse.m2e.model.edit.pom.Extension;
+import org.eclipse.m2e.model.edit.pom.IssueManagement;
+import org.eclipse.m2e.model.edit.pom.License;
+import org.eclipse.m2e.model.edit.pom.MailingList;
+import org.eclipse.m2e.model.edit.pom.Model;
+import org.eclipse.m2e.model.edit.pom.Notifier;
+import org.eclipse.m2e.model.edit.pom.Organization;
+import org.eclipse.m2e.model.edit.pom.Parent;
+import org.eclipse.m2e.model.edit.pom.Plugin;
+import org.eclipse.m2e.model.edit.pom.PluginExecution;
+import org.eclipse.m2e.model.edit.pom.PluginManagement;
+import org.eclipse.m2e.model.edit.pom.PomFactory;
+import org.eclipse.m2e.model.edit.pom.PomPackage;
+import org.eclipse.m2e.model.edit.pom.Prerequisites;
+import org.eclipse.m2e.model.edit.pom.Profile;
+import org.eclipse.m2e.model.edit.pom.PropertyElement;
+import org.eclipse.m2e.model.edit.pom.Relocation;
+import org.eclipse.m2e.model.edit.pom.ReportPlugin;
+import org.eclipse.m2e.model.edit.pom.ReportSet;
+import org.eclipse.m2e.model.edit.pom.Reporting;
+import org.eclipse.m2e.model.edit.pom.Repository;
+import org.eclipse.m2e.model.edit.pom.RepositoryPolicy;
+import org.eclipse.m2e.model.edit.pom.Resource;
+import org.eclipse.m2e.model.edit.pom.Scm;
+import org.eclipse.m2e.model.edit.pom.Site;
/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!--
- * end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
*
* @generated
*/
public class PomFactoryImpl extends EFactoryImpl implements PomFactory {
- /**
- * Creates the default factory implementation. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public static PomFactory init() {
- try {
- PomFactory thePomFactory = (PomFactory) EPackage.Registry.INSTANCE
- .getEFactory("http://maven.apache.org/POM/4.0.0"); //$NON-NLS-1$
- if (thePomFactory != null) {
- return thePomFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new PomFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public PomFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case PomPackage.ACTIVATION:
- return createActivation();
- case PomPackage.ACTIVATION_FILE:
- return createActivationFile();
- case PomPackage.ACTIVATION_OS:
- return createActivationOS();
- case PomPackage.ACTIVATION_PROPERTY:
- return createActivationProperty();
- case PomPackage.BUILD:
- return createBuild();
- case PomPackage.BUILD_BASE:
- return createBuildBase();
- case PomPackage.CI_MANAGEMENT:
- return createCiManagement();
- case PomPackage.CONTRIBUTOR:
- return createContributor();
- case PomPackage.DEPENDENCY:
- return createDependency();
- case PomPackage.DEPENDENCY_MANAGEMENT:
- return createDependencyManagement();
- case PomPackage.DEPLOYMENT_REPOSITORY:
- return createDeploymentRepository();
- case PomPackage.DEVELOPER:
- return createDeveloper();
- case PomPackage.DISTRIBUTION_MANAGEMENT:
- return createDistributionManagement();
- case PomPackage.DOCUMENT_ROOT:
- return createDocumentRoot();
- case PomPackage.EXCLUSION:
- return createExclusion();
- case PomPackage.EXTENSION:
- return createExtension();
- case PomPackage.ISSUE_MANAGEMENT:
- return createIssueManagement();
- case PomPackage.LICENSE:
- return createLicense();
- case PomPackage.MAILING_LIST:
- return createMailingList();
- case PomPackage.MODEL:
- return createModel();
- case PomPackage.NOTIFIER:
- return createNotifier();
- case PomPackage.ORGANIZATION:
- return createOrganization();
- case PomPackage.PARENT:
- return createParent();
- case PomPackage.PLUGIN:
- return createPlugin();
- case PomPackage.PLUGIN_EXECUTION:
- return createPluginExecution();
- case PomPackage.PLUGIN_MANAGEMENT:
- return createPluginManagement();
- case PomPackage.PREREQUISITES:
- return createPrerequisites();
- case PomPackage.PROFILE:
- return createProfile();
- case PomPackage.RELOCATION:
- return createRelocation();
- case PomPackage.REPORTING:
- return createReporting();
- case PomPackage.REPORT_PLUGIN:
- return createReportPlugin();
- case PomPackage.REPORT_SET:
- return createReportSet();
- case PomPackage.REPOSITORY:
- return createRepository();
- case PomPackage.REPOSITORY_POLICY:
- return createRepositoryPolicy();
- case PomPackage.RESOURCE:
- return createResource();
- case PomPackage.SCM:
- return createScm();
- case PomPackage.SITE:
- return createSite();
- case PomPackage.PROPERTY_ELEMENT:
- return createPropertyElement();
- case PomPackage.CONFIGURATION:
- return createConfiguration();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() //$NON-NLS-1$
- + "' is not a valid classifier"); //$NON-NLS-1$
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Activation createActivation() {
- ActivationImpl activation = new ActivationImpl();
- return activation;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivationFile createActivationFile() {
- ActivationFileImpl activationFile = new ActivationFileImpl();
- return activationFile;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivationOS createActivationOS() {
- ActivationOSImpl activationOS = new ActivationOSImpl();
- return activationOS;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivationProperty createActivationProperty() {
- ActivationPropertyImpl activationProperty = new ActivationPropertyImpl();
- return activationProperty;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Build createBuild() {
- BuildImpl build = new BuildImpl();
- return build;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public BuildBase createBuildBase() {
- BuildBaseImpl buildBase = new BuildBaseImpl();
- return buildBase;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public CiManagement createCiManagement() {
- CiManagementImpl ciManagement = new CiManagementImpl();
- return ciManagement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Contributor createContributor() {
- ContributorImpl contributor = new ContributorImpl();
- return contributor;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Dependency createDependency() {
- DependencyImpl dependency = new DependencyImpl();
- return dependency;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DependencyManagement createDependencyManagement() {
- DependencyManagementImpl dependencyManagement = new DependencyManagementImpl();
- return dependencyManagement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DeploymentRepository createDeploymentRepository() {
- DeploymentRepositoryImpl deploymentRepository = new DeploymentRepositoryImpl();
- return deploymentRepository;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Developer createDeveloper() {
- DeveloperImpl developer = new DeveloperImpl();
- return developer;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DistributionManagement createDistributionManagement() {
- DistributionManagementImpl distributionManagement = new DistributionManagementImpl();
- return distributionManagement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DocumentRoot createDocumentRoot() {
- DocumentRootImpl documentRoot = new DocumentRootImpl();
- return documentRoot;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Exclusion createExclusion() {
- ExclusionImpl exclusion = new ExclusionImpl();
- return exclusion;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Extension createExtension() {
- ExtensionImpl extension = new ExtensionImpl();
- return extension;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public IssueManagement createIssueManagement() {
- IssueManagementImpl issueManagement = new IssueManagementImpl();
- return issueManagement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public License createLicense() {
- LicenseImpl license = new LicenseImpl();
- return license;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public MailingList createMailingList() {
- MailingListImpl mailingList = new MailingListImpl();
- return mailingList;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Model createModel() {
- ModelImpl model = new ModelImpl();
- return model;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Notifier createNotifier() {
- NotifierImpl notifier = new NotifierImpl();
- return notifier;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Organization createOrganization() {
- OrganizationImpl organization = new OrganizationImpl();
- return organization;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Parent createParent() {
- ParentImpl parent = new ParentImpl();
- return parent;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Plugin createPlugin() {
- PluginImpl plugin = new PluginImpl();
- return plugin;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public PluginExecution createPluginExecution() {
- PluginExecutionImpl pluginExecution = new PluginExecutionImpl();
- return pluginExecution;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public PluginManagement createPluginManagement() {
- PluginManagementImpl pluginManagement = new PluginManagementImpl();
- return pluginManagement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Prerequisites createPrerequisites() {
- PrerequisitesImpl prerequisites = new PrerequisitesImpl();
- return prerequisites;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Profile createProfile() {
- ProfileImpl profile = new ProfileImpl();
- return profile;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Relocation createRelocation() {
- RelocationImpl relocation = new RelocationImpl();
- return relocation;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Reporting createReporting() {
- ReportingImpl reporting = new ReportingImpl();
- return reporting;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ReportPlugin createReportPlugin() {
- ReportPluginImpl reportPlugin = new ReportPluginImpl();
- return reportPlugin;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ReportSet createReportSet() {
- ReportSetImpl reportSet = new ReportSetImpl();
- return reportSet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Repository createRepository() {
- RepositoryImpl repository = new RepositoryImpl();
- return repository;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public RepositoryPolicy createRepositoryPolicy() {
- RepositoryPolicyImpl repositoryPolicy = new RepositoryPolicyImpl();
- return repositoryPolicy;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Resource createResource() {
- ResourceImpl resource = new ResourceImpl();
- return resource;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Scm createScm() {
- ScmImpl scm = new ScmImpl();
- return scm;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Site createSite() {
- SiteImpl site = new SiteImpl();
- return site;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public PropertyElement createPropertyElement() {
- PropertyElementImpl propertyElement = new PropertyElementImpl();
- return propertyElement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Configuration createConfiguration() {
- ConfigurationImpl configuration = new ConfigurationImpl();
- return configuration;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public PomPackage getPomPackage() {
- return (PomPackage) getEPackage();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static PomPackage getPackage() {
- return PomPackage.eINSTANCE;
- }
+ /**
+ * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static PomFactory init() {
+ try {
+ PomFactory thePomFactory = (PomFactory) EPackage.Registry.INSTANCE
+ .getEFactory("http://maven.apache.org/POM/4.0.0"); //$NON-NLS-1$
+ if(thePomFactory != null) {
+ return thePomFactory;
+ }
+ } catch(Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new PomFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PomFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch(eClass.getClassifierID()) {
+ case PomPackage.ACTIVATION:
+ return createActivation();
+ case PomPackage.ACTIVATION_FILE:
+ return createActivationFile();
+ case PomPackage.ACTIVATION_OS:
+ return createActivationOS();
+ case PomPackage.ACTIVATION_PROPERTY:
+ return createActivationProperty();
+ case PomPackage.BUILD:
+ return createBuild();
+ case PomPackage.BUILD_BASE:
+ return createBuildBase();
+ case PomPackage.CI_MANAGEMENT:
+ return createCiManagement();
+ case PomPackage.CONTRIBUTOR:
+ return createContributor();
+ case PomPackage.DEPENDENCY:
+ return createDependency();
+ case PomPackage.DEPENDENCY_MANAGEMENT:
+ return createDependencyManagement();
+ case PomPackage.DEPLOYMENT_REPOSITORY:
+ return createDeploymentRepository();
+ case PomPackage.DEVELOPER:
+ return createDeveloper();
+ case PomPackage.DISTRIBUTION_MANAGEMENT:
+ return createDistributionManagement();
+ case PomPackage.DOCUMENT_ROOT:
+ return createDocumentRoot();
+ case PomPackage.EXCLUSION:
+ return createExclusion();
+ case PomPackage.EXTENSION:
+ return createExtension();
+ case PomPackage.ISSUE_MANAGEMENT:
+ return createIssueManagement();
+ case PomPackage.LICENSE:
+ return createLicense();
+ case PomPackage.MAILING_LIST:
+ return createMailingList();
+ case PomPackage.MODEL:
+ return createModel();
+ case PomPackage.NOTIFIER:
+ return createNotifier();
+ case PomPackage.ORGANIZATION:
+ return createOrganization();
+ case PomPackage.PARENT:
+ return createParent();
+ case PomPackage.PLUGIN:
+ return createPlugin();
+ case PomPackage.PLUGIN_EXECUTION:
+ return createPluginExecution();
+ case PomPackage.PLUGIN_MANAGEMENT:
+ return createPluginManagement();
+ case PomPackage.PREREQUISITES:
+ return createPrerequisites();
+ case PomPackage.PROFILE:
+ return createProfile();
+ case PomPackage.RELOCATION:
+ return createRelocation();
+ case PomPackage.REPORTING:
+ return createReporting();
+ case PomPackage.REPORT_PLUGIN:
+ return createReportPlugin();
+ case PomPackage.REPORT_SET:
+ return createReportSet();
+ case PomPackage.REPOSITORY:
+ return createRepository();
+ case PomPackage.REPOSITORY_POLICY:
+ return createRepositoryPolicy();
+ case PomPackage.RESOURCE:
+ return createResource();
+ case PomPackage.SCM:
+ return createScm();
+ case PomPackage.SITE:
+ return createSite();
+ case PomPackage.PROPERTY_ELEMENT:
+ return createPropertyElement();
+ case PomPackage.CONFIGURATION:
+ return createConfiguration();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() //$NON-NLS-1$
+ + "' is not a valid classifier"); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Activation createActivation() {
+ ActivationImpl activation = new ActivationImpl();
+ return activation;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ActivationFile createActivationFile() {
+ ActivationFileImpl activationFile = new ActivationFileImpl();
+ return activationFile;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ActivationOS createActivationOS() {
+ ActivationOSImpl activationOS = new ActivationOSImpl();
+ return activationOS;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ActivationProperty createActivationProperty() {
+ ActivationPropertyImpl activationProperty = new ActivationPropertyImpl();
+ return activationProperty;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Build createBuild() {
+ BuildImpl build = new BuildImpl();
+ return build;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public BuildBase createBuildBase() {
+ BuildBaseImpl buildBase = new BuildBaseImpl();
+ return buildBase;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public CiManagement createCiManagement() {
+ CiManagementImpl ciManagement = new CiManagementImpl();
+ return ciManagement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Contributor createContributor() {
+ ContributorImpl contributor = new ContributorImpl();
+ return contributor;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Dependency createDependency() {
+ DependencyImpl dependency = new DependencyImpl();
+ return dependency;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DependencyManagement createDependencyManagement() {
+ DependencyManagementImpl dependencyManagement = new DependencyManagementImpl();
+ return dependencyManagement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DeploymentRepository createDeploymentRepository() {
+ DeploymentRepositoryImpl deploymentRepository = new DeploymentRepositoryImpl();
+ return deploymentRepository;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Developer createDeveloper() {
+ DeveloperImpl developer = new DeveloperImpl();
+ return developer;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DistributionManagement createDistributionManagement() {
+ DistributionManagementImpl distributionManagement = new DistributionManagementImpl();
+ return distributionManagement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DocumentRoot createDocumentRoot() {
+ DocumentRootImpl documentRoot = new DocumentRootImpl();
+ return documentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Exclusion createExclusion() {
+ ExclusionImpl exclusion = new ExclusionImpl();
+ return exclusion;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Extension createExtension() {
+ ExtensionImpl extension = new ExtensionImpl();
+ return extension;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public IssueManagement createIssueManagement() {
+ IssueManagementImpl issueManagement = new IssueManagementImpl();
+ return issueManagement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public License createLicense() {
+ LicenseImpl license = new LicenseImpl();
+ return license;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public MailingList createMailingList() {
+ MailingListImpl mailingList = new MailingListImpl();
+ return mailingList;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Model createModel() {
+ ModelImpl model = new ModelImpl();
+ return model;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Notifier createNotifier() {
+ NotifierImpl notifier = new NotifierImpl();
+ return notifier;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Organization createOrganization() {
+ OrganizationImpl organization = new OrganizationImpl();
+ return organization;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Parent createParent() {
+ ParentImpl parent = new ParentImpl();
+ return parent;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Plugin createPlugin() {
+ PluginImpl plugin = new PluginImpl();
+ return plugin;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PluginExecution createPluginExecution() {
+ PluginExecutionImpl pluginExecution = new PluginExecutionImpl();
+ return pluginExecution;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PluginManagement createPluginManagement() {
+ PluginManagementImpl pluginManagement = new PluginManagementImpl();
+ return pluginManagement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Prerequisites createPrerequisites() {
+ PrerequisitesImpl prerequisites = new PrerequisitesImpl();
+ return prerequisites;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Profile createProfile() {
+ ProfileImpl profile = new ProfileImpl();
+ return profile;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Relocation createRelocation() {
+ RelocationImpl relocation = new RelocationImpl();
+ return relocation;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Reporting createReporting() {
+ ReportingImpl reporting = new ReportingImpl();
+ return reporting;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ReportPlugin createReportPlugin() {
+ ReportPluginImpl reportPlugin = new ReportPluginImpl();
+ return reportPlugin;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ReportSet createReportSet() {
+ ReportSetImpl reportSet = new ReportSetImpl();
+ return reportSet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Repository createRepository() {
+ RepositoryImpl repository = new RepositoryImpl();
+ return repository;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RepositoryPolicy createRepositoryPolicy() {
+ RepositoryPolicyImpl repositoryPolicy = new RepositoryPolicyImpl();
+ return repositoryPolicy;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Resource createResource() {
+ ResourceImpl resource = new ResourceImpl();
+ return resource;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Scm createScm() {
+ ScmImpl scm = new ScmImpl();
+ return scm;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Site createSite() {
+ SiteImpl site = new SiteImpl();
+ return site;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PropertyElement createPropertyElement() {
+ PropertyElementImpl propertyElement = new PropertyElementImpl();
+ return propertyElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Configuration createConfiguration() {
+ ConfigurationImpl configuration = new ConfigurationImpl();
+ return configuration;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PomPackage getPomPackage() {
+ return (PomPackage) getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static PomPackage getPackage() {
+ return PomPackage.eINSTANCE;
+ }
} // PomFactoryImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PomPackageImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PomPackageImpl.java
index fc64bc92..66864ddb 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PomPackageImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PomPackageImpl.java
@@ -11,14 +11,15 @@
package org.eclipse.m2e.model.edit.pom.impl;
+import static org.eclipse.m2e.model.edit.pom.PomPackage.RESOURCE;
+
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
-
import org.eclipse.emf.ecore.impl.EPackageImpl;
-
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
+
import org.eclipse.m2e.model.edit.pom.Activation;
import org.eclipse.m2e.model.edit.pom.ActivationFile;
import org.eclipse.m2e.model.edit.pom.ActivationOS;
@@ -63,4535 +64,3841 @@ import org.eclipse.m2e.model.edit.pom.Site;
/**
- * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!--
- * end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
+ *
* @generated
*/
public class PomPackageImpl extends EPackageImpl implements PomPackage {
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass activationEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass activationFileEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass activationOSEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass activationPropertyEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass buildEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass buildBaseEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass ciManagementEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass contributorEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass dependencyEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass dependencyManagementEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass deploymentRepositoryEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass developerEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass distributionManagementEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass documentRootEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass exclusionEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass extensionEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass issueManagementEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass licenseEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass mailingListEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass modelEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass notifierEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass organizationEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass parentEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass pluginEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass pluginExecutionEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass pluginManagementEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass prerequisitesEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass profileEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass relocationEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass reportingEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass reportPluginEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass reportSetEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass repositoryEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass repositoryPolicyEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass resourceEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass scmEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass siteEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass propertyElementEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass configurationEClass = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the
- * package package URI value.
- * <p>
- * Note: the correct way to create the package is via the static factory
- * method {@link #init init()}, which also performs initialization of the
- * package, or returns the registered package, if one already exists. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.m2e.model.edit.pom.PomPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private PomPackageImpl() {
- super(eNS_URI, PomFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this
- * model, and for any others upon which it depends. Simple
- * dependencies are satisfied by calling this method on all
- * dependent packages before doing anything else. This method drives
- * initialization for interdependent packages directly, in parallel
- * with this package, itself.
- * <p>Of this package and its interdependencies, all packages which
- * have not yet been registered by their URI values are first created
- * and registered. The packages are then initialized in two steps:
- * meta-model objects for all of the packages are created before any
- * are initialized, since one package's meta-model objects may refer to
- * those of another.
- * <p>Invocation of this method will not affect any packages that have
- * already been initialized.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static PomPackage init() {
- if (isInited) return (PomPackage)EPackage.Registry.INSTANCE.getEPackage(PomPackage.eNS_URI);
-
- // Obtain or create and register package
- PomPackageImpl thePomPackage = (PomPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof PomPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new PomPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- XMLTypePackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- thePomPackage.createPackageContents();
-
- // Initialize created meta-data
- thePomPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- thePomPackage.freeze();
-
- return thePomPackage;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getActivation() {
- return activationEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getActivation_ActiveByDefault() {
- return (EAttribute)activationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getActivation_Jdk() {
- return (EAttribute)activationEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getActivation_Os() {
- return (EReference)activationEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getActivation_Property() {
- return (EReference)activationEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getActivation_File() {
- return (EReference)activationEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getActivationFile() {
- return activationFileEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getActivationFile_Missing() {
- return (EAttribute)activationFileEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getActivationFile_Exists() {
- return (EAttribute)activationFileEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getActivationOS() {
- return activationOSEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getActivationOS_Name() {
- return (EAttribute)activationOSEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getActivationOS_Family() {
- return (EAttribute)activationOSEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getActivationOS_Arch() {
- return (EAttribute)activationOSEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getActivationOS_Version() {
- return (EAttribute)activationOSEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getActivationProperty() {
- return activationPropertyEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getActivationProperty_Name() {
- return (EAttribute)activationPropertyEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getActivationProperty_Value() {
- return (EAttribute)activationPropertyEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getBuild() {
- return buildEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBuild_SourceDirectory() {
- return (EAttribute)buildEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBuild_ScriptSourceDirectory() {
- return (EAttribute)buildEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBuild_TestSourceDirectory() {
- return (EAttribute)buildEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBuild_OutputDirectory() {
- return (EAttribute)buildEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBuild_TestOutputDirectory() {
- return (EAttribute)buildEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getBuild_Extensions() {
- return (EReference)buildEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getBuildBase() {
- return buildBaseEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBuildBase_DefaultGoal() {
- return (EAttribute)buildBaseEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getBuildBase_Resources() {
- return (EReference)buildBaseEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getBuildBase_TestResources() {
- return (EReference)buildBaseEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBuildBase_Directory() {
- return (EAttribute)buildBaseEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBuildBase_FinalName() {
- return (EAttribute)buildBaseEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getBuildBase_PluginManagement() {
- return (EReference)buildBaseEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getBuildBase_Plugins() {
- return (EReference)buildBaseEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBuildBase_Filters() {
- return (EAttribute)buildBaseEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getCiManagement() {
- return ciManagementEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getCiManagement_System() {
- return (EAttribute)ciManagementEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getCiManagement_Url() {
- return (EAttribute)ciManagementEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getCiManagement_Notifiers() {
- return (EReference)ciManagementEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getContributor() {
- return contributorEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getContributor_Name() {
- return (EAttribute)contributorEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getContributor_Email() {
- return (EAttribute)contributorEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getContributor_Url() {
- return (EAttribute)contributorEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getContributor_Organization() {
- return (EAttribute)contributorEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getContributor_OrganizationUrl() {
- return (EAttribute)contributorEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getContributor_Timezone() {
- return (EAttribute)contributorEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getContributor_Properties() {
- return (EReference)contributorEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getContributor_Roles() {
- return (EAttribute)contributorEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getDependency() {
- return dependencyEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDependency_GroupId() {
- return (EAttribute)dependencyEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDependency_ArtifactId() {
- return (EAttribute)dependencyEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDependency_Version() {
- return (EAttribute)dependencyEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDependency_Type() {
- return (EAttribute)dependencyEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDependency_Classifier() {
- return (EAttribute)dependencyEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDependency_Scope() {
- return (EAttribute)dependencyEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDependency_SystemPath() {
- return (EAttribute)dependencyEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getDependency_Exclusions() {
- return (EReference)dependencyEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDependency_Optional() {
- return (EAttribute)dependencyEClass.getEStructuralFeatures().get(8);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getDependencyManagement() {
- return dependencyManagementEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getDependencyManagement_Dependencies() {
- return (EReference)dependencyManagementEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getDeploymentRepository() {
- return deploymentRepositoryEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDeploymentRepository_UniqueVersion() {
- return (EAttribute)deploymentRepositoryEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDeploymentRepository_Id() {
- return (EAttribute)deploymentRepositoryEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDeploymentRepository_Name() {
- return (EAttribute)deploymentRepositoryEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDeploymentRepository_Url() {
- return (EAttribute)deploymentRepositoryEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDeploymentRepository_Layout() {
- return (EAttribute)deploymentRepositoryEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getDeveloper() {
- return developerEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDeveloper_Id() {
- return (EAttribute)developerEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDeveloper_Name() {
- return (EAttribute)developerEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDeveloper_Email() {
- return (EAttribute)developerEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDeveloper_Url() {
- return (EAttribute)developerEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDeveloper_Organization() {
- return (EAttribute)developerEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDeveloper_OrganizationUrl() {
- return (EAttribute)developerEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDeveloper_Timezone() {
- return (EAttribute)developerEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getDeveloper_Properties() {
- return (EReference)developerEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDeveloper_Roles() {
- return (EAttribute)developerEClass.getEStructuralFeatures().get(8);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getDistributionManagement() {
- return distributionManagementEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getDistributionManagement_Repository() {
- return (EReference)distributionManagementEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getDistributionManagement_SnapshotRepository() {
- return (EReference)distributionManagementEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getDistributionManagement_Site() {
- return (EReference)distributionManagementEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDistributionManagement_DownloadUrl() {
- return (EAttribute)distributionManagementEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getDistributionManagement_Relocation() {
- return (EReference)distributionManagementEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDistributionManagement_Status() {
- return (EAttribute)distributionManagementEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getDocumentRoot() {
- return documentRootEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDocumentRoot_Mixed() {
- return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getDocumentRoot_XMLNSPrefixMap() {
- return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getDocumentRoot_XSISchemaLocation() {
- return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getDocumentRoot_Project() {
- return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getExclusion() {
- return exclusionEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getExclusion_ArtifactId() {
- return (EAttribute)exclusionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getExclusion_GroupId() {
- return (EAttribute)exclusionEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getExtension() {
- return extensionEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getExtension_GroupId() {
- return (EAttribute)extensionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getExtension_ArtifactId() {
- return (EAttribute)extensionEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getExtension_Version() {
- return (EAttribute)extensionEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getIssueManagement() {
- return issueManagementEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIssueManagement_System() {
- return (EAttribute)issueManagementEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIssueManagement_Url() {
- return (EAttribute)issueManagementEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getLicense() {
- return licenseEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getLicense_Name() {
- return (EAttribute)licenseEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getLicense_Url() {
- return (EAttribute)licenseEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getLicense_Distribution() {
- return (EAttribute)licenseEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getLicense_Comments() {
- return (EAttribute)licenseEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getMailingList() {
- return mailingListEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getMailingList_Name() {
- return (EAttribute)mailingListEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getMailingList_Subscribe() {
- return (EAttribute)mailingListEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getMailingList_Unsubscribe() {
- return (EAttribute)mailingListEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getMailingList_Post() {
- return (EAttribute)mailingListEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getMailingList_Archive() {
- return (EAttribute)mailingListEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getMailingList_OtherArchives() {
- return (EAttribute)mailingListEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getModel() {
- return modelEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_Parent() {
- return (EReference)modelEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getModel_ModelVersion() {
- return (EAttribute)modelEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getModel_GroupId() {
- return (EAttribute)modelEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getModel_ArtifactId() {
- return (EAttribute)modelEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getModel_Packaging() {
- return (EAttribute)modelEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getModel_Name() {
- return (EAttribute)modelEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getModel_Version() {
- return (EAttribute)modelEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getModel_Description() {
- return (EAttribute)modelEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getModel_Url() {
- return (EAttribute)modelEClass.getEStructuralFeatures().get(8);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_Prerequisites() {
- return (EReference)modelEClass.getEStructuralFeatures().get(9);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_IssueManagement() {
- return (EReference)modelEClass.getEStructuralFeatures().get(10);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_CiManagement() {
- return (EReference)modelEClass.getEStructuralFeatures().get(11);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getModel_InceptionYear() {
- return (EAttribute)modelEClass.getEStructuralFeatures().get(12);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_MailingLists() {
- return (EReference)modelEClass.getEStructuralFeatures().get(13);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_Developers() {
- return (EReference)modelEClass.getEStructuralFeatures().get(14);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_Contributors() {
- return (EReference)modelEClass.getEStructuralFeatures().get(15);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_Licenses() {
- return (EReference)modelEClass.getEStructuralFeatures().get(16);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_Scm() {
- return (EReference)modelEClass.getEStructuralFeatures().get(17);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_Organization() {
- return (EReference)modelEClass.getEStructuralFeatures().get(18);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_Build() {
- return (EReference)modelEClass.getEStructuralFeatures().get(19);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_Profiles() {
- return (EReference)modelEClass.getEStructuralFeatures().get(20);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_Repositories() {
- return (EReference)modelEClass.getEStructuralFeatures().get(21);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_PluginRepositories() {
- return (EReference)modelEClass.getEStructuralFeatures().get(22);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_Dependencies() {
- return (EReference)modelEClass.getEStructuralFeatures().get(23);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_Reporting() {
- return (EReference)modelEClass.getEStructuralFeatures().get(24);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_DependencyManagement() {
- return (EReference)modelEClass.getEStructuralFeatures().get(25);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_DistributionManagement() {
- return (EReference)modelEClass.getEStructuralFeatures().get(26);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getModel_Properties() {
- return (EReference)modelEClass.getEStructuralFeatures().get(27);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getModel_Modules() {
- return (EAttribute)modelEClass.getEStructuralFeatures().get(28);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getNotifier() {
- return notifierEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getNotifier_Type() {
- return (EAttribute)notifierEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getNotifier_SendOnError() {
- return (EAttribute)notifierEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getNotifier_SendOnFailure() {
- return (EAttribute)notifierEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getNotifier_SendOnSuccess() {
- return (EAttribute)notifierEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getNotifier_SendOnWarning() {
- return (EAttribute)notifierEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getNotifier_Address() {
- return (EAttribute)notifierEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getNotifier_Configuration() {
- return (EReference)notifierEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getOrganization() {
- return organizationEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getOrganization_Name() {
- return (EAttribute)organizationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getOrganization_Url() {
- return (EAttribute)organizationEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getParent() {
- return parentEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getParent_ArtifactId() {
- return (EAttribute)parentEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getParent_GroupId() {
- return (EAttribute)parentEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getParent_Version() {
- return (EAttribute)parentEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getParent_RelativePath() {
- return (EAttribute)parentEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getPlugin() {
- return pluginEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPlugin_GroupId() {
- return (EAttribute)pluginEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPlugin_ArtifactId() {
- return (EAttribute)pluginEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPlugin_Version() {
- return (EAttribute)pluginEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPlugin_Extensions() {
- return (EAttribute)pluginEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getPlugin_Executions() {
- return (EReference)pluginEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getPlugin_Dependencies() {
- return (EReference)pluginEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPlugin_Inherited() {
- return (EAttribute)pluginEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getPlugin_Configuration() {
- return (EReference)pluginEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getPluginExecution() {
- return pluginExecutionEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPluginExecution_Id() {
- return (EAttribute)pluginExecutionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPluginExecution_Phase() {
- return (EAttribute)pluginExecutionEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPluginExecution_Inherited() {
- return (EAttribute)pluginExecutionEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPluginExecution_Goals() {
- return (EAttribute)pluginExecutionEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getPluginExecution_Configuration() {
- return (EReference)pluginExecutionEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getPluginManagement() {
- return pluginManagementEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getPluginManagement_Plugins() {
- return (EReference)pluginManagementEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getPrerequisites() {
- return prerequisitesEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPrerequisites_Maven() {
- return (EAttribute)prerequisitesEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getProfile() {
- return profileEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getProfile_Id() {
- return (EAttribute)profileEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getProfile_Activation() {
- return (EReference)profileEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getProfile_Build() {
- return (EReference)profileEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getProfile_Repositories() {
- return (EReference)profileEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getProfile_PluginRepositories() {
- return (EReference)profileEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getProfile_Dependencies() {
- return (EReference)profileEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getProfile_Reports() {
- return (EReference)profileEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getProfile_DependencyManagement() {
- return (EReference)profileEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getProfile_DistributionManagement() {
- return (EReference)profileEClass.getEStructuralFeatures().get(8);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getProfile_Properties() {
- return (EReference)profileEClass.getEStructuralFeatures().get(9);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getProfile_Modules() {
- return (EAttribute)profileEClass.getEStructuralFeatures().get(10);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getProfile_Reporting() {
- return (EReference)profileEClass.getEStructuralFeatures().get(11);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getRelocation() {
- return relocationEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getRelocation_GroupId() {
- return (EAttribute)relocationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getRelocation_ArtifactId() {
- return (EAttribute)relocationEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getRelocation_Version() {
- return (EAttribute)relocationEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getRelocation_Message() {
- return (EAttribute)relocationEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getReporting() {
- return reportingEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getReporting_ExcludeDefaults() {
- return (EAttribute)reportingEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getReporting_OutputDirectory() {
- return (EAttribute)reportingEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getReporting_Plugins() {
- return (EReference)reportingEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getReportPlugin() {
- return reportPluginEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getReportPlugin_GroupId() {
- return (EAttribute)reportPluginEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getReportPlugin_ArtifactId() {
- return (EAttribute)reportPluginEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getReportPlugin_Version() {
- return (EAttribute)reportPluginEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getReportPlugin_Inherited() {
- return (EAttribute)reportPluginEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getReportPlugin_ReportSets() {
- return (EReference)reportPluginEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getReportPlugin_Configuration() {
- return (EReference)reportPluginEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getReportSet() {
- return reportSetEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getReportSet_Id() {
- return (EAttribute)reportSetEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getReportSet_Inherited() {
- return (EAttribute)reportSetEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getReportSet_Reports() {
- return (EAttribute)reportSetEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getReportSet_Configuration() {
- return (EReference)reportSetEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getRepository() {
- return repositoryEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getRepository_Releases() {
- return (EReference)repositoryEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getRepository_Snapshots() {
- return (EReference)repositoryEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getRepository_Id() {
- return (EAttribute)repositoryEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getRepository_Name() {
- return (EAttribute)repositoryEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getRepository_Url() {
- return (EAttribute)repositoryEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getRepository_Layout() {
- return (EAttribute)repositoryEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getRepositoryPolicy() {
- return repositoryPolicyEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getRepositoryPolicy_Enabled() {
- return (EAttribute)repositoryPolicyEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getRepositoryPolicy_UpdatePolicy() {
- return (EAttribute)repositoryPolicyEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getRepositoryPolicy_ChecksumPolicy() {
- return (EAttribute)repositoryPolicyEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getResource() {
- return resourceEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getResource_TargetPath() {
- return (EAttribute)resourceEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getResource_Filtering() {
- return (EAttribute)resourceEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getResource_Directory() {
- return (EAttribute)resourceEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getResource_Includes() {
- return (EAttribute)resourceEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getResource_Excludes() {
- return (EAttribute)resourceEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getScm() {
- return scmEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getScm_Connection() {
- return (EAttribute)scmEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getScm_DeveloperConnection() {
- return (EAttribute)scmEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getScm_Tag() {
- return (EAttribute)scmEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getScm_Url() {
- return (EAttribute)scmEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getSite() {
- return siteEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSite_Id() {
- return (EAttribute)siteEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSite_Name() {
- return (EAttribute)siteEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSite_Url() {
- return (EAttribute)siteEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getPropertyElement() {
- return propertyElementEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPropertyElement_Name() {
- return (EAttribute)propertyElementEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPropertyElement_Value() {
- return (EAttribute)propertyElementEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getConfiguration() {
- return configurationEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public PomFactory getPomFactory() {
- return (PomFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void createPackageContents() {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- activationEClass = createEClass(ACTIVATION);
- createEAttribute(activationEClass, ACTIVATION__ACTIVE_BY_DEFAULT);
- createEAttribute(activationEClass, ACTIVATION__JDK);
- createEReference(activationEClass, ACTIVATION__OS);
- createEReference(activationEClass, ACTIVATION__PROPERTY);
- createEReference(activationEClass, ACTIVATION__FILE);
-
- activationFileEClass = createEClass(ACTIVATION_FILE);
- createEAttribute(activationFileEClass, ACTIVATION_FILE__MISSING);
- createEAttribute(activationFileEClass, ACTIVATION_FILE__EXISTS);
-
- activationOSEClass = createEClass(ACTIVATION_OS);
- createEAttribute(activationOSEClass, ACTIVATION_OS__NAME);
- createEAttribute(activationOSEClass, ACTIVATION_OS__FAMILY);
- createEAttribute(activationOSEClass, ACTIVATION_OS__ARCH);
- createEAttribute(activationOSEClass, ACTIVATION_OS__VERSION);
-
- activationPropertyEClass = createEClass(ACTIVATION_PROPERTY);
- createEAttribute(activationPropertyEClass, ACTIVATION_PROPERTY__NAME);
- createEAttribute(activationPropertyEClass, ACTIVATION_PROPERTY__VALUE);
-
- buildEClass = createEClass(BUILD);
- createEAttribute(buildEClass, BUILD__SOURCE_DIRECTORY);
- createEAttribute(buildEClass, BUILD__SCRIPT_SOURCE_DIRECTORY);
- createEAttribute(buildEClass, BUILD__TEST_SOURCE_DIRECTORY);
- createEAttribute(buildEClass, BUILD__OUTPUT_DIRECTORY);
- createEAttribute(buildEClass, BUILD__TEST_OUTPUT_DIRECTORY);
- createEReference(buildEClass, BUILD__EXTENSIONS);
-
- buildBaseEClass = createEClass(BUILD_BASE);
- createEAttribute(buildBaseEClass, BUILD_BASE__DEFAULT_GOAL);
- createEReference(buildBaseEClass, BUILD_BASE__RESOURCES);
- createEReference(buildBaseEClass, BUILD_BASE__TEST_RESOURCES);
- createEAttribute(buildBaseEClass, BUILD_BASE__DIRECTORY);
- createEAttribute(buildBaseEClass, BUILD_BASE__FINAL_NAME);
- createEReference(buildBaseEClass, BUILD_BASE__PLUGIN_MANAGEMENT);
- createEReference(buildBaseEClass, BUILD_BASE__PLUGINS);
- createEAttribute(buildBaseEClass, BUILD_BASE__FILTERS);
-
- ciManagementEClass = createEClass(CI_MANAGEMENT);
- createEAttribute(ciManagementEClass, CI_MANAGEMENT__SYSTEM);
- createEAttribute(ciManagementEClass, CI_MANAGEMENT__URL);
- createEReference(ciManagementEClass, CI_MANAGEMENT__NOTIFIERS);
-
- contributorEClass = createEClass(CONTRIBUTOR);
- createEAttribute(contributorEClass, CONTRIBUTOR__NAME);
- createEAttribute(contributorEClass, CONTRIBUTOR__EMAIL);
- createEAttribute(contributorEClass, CONTRIBUTOR__URL);
- createEAttribute(contributorEClass, CONTRIBUTOR__ORGANIZATION);
- createEAttribute(contributorEClass, CONTRIBUTOR__ORGANIZATION_URL);
- createEAttribute(contributorEClass, CONTRIBUTOR__TIMEZONE);
- createEReference(contributorEClass, CONTRIBUTOR__PROPERTIES);
- createEAttribute(contributorEClass, CONTRIBUTOR__ROLES);
-
- dependencyEClass = createEClass(DEPENDENCY);
- createEAttribute(dependencyEClass, DEPENDENCY__GROUP_ID);
- createEAttribute(dependencyEClass, DEPENDENCY__ARTIFACT_ID);
- createEAttribute(dependencyEClass, DEPENDENCY__VERSION);
- createEAttribute(dependencyEClass, DEPENDENCY__TYPE);
- createEAttribute(dependencyEClass, DEPENDENCY__CLASSIFIER);
- createEAttribute(dependencyEClass, DEPENDENCY__SCOPE);
- createEAttribute(dependencyEClass, DEPENDENCY__SYSTEM_PATH);
- createEReference(dependencyEClass, DEPENDENCY__EXCLUSIONS);
- createEAttribute(dependencyEClass, DEPENDENCY__OPTIONAL);
-
- dependencyManagementEClass = createEClass(DEPENDENCY_MANAGEMENT);
- createEReference(dependencyManagementEClass, DEPENDENCY_MANAGEMENT__DEPENDENCIES);
-
- deploymentRepositoryEClass = createEClass(DEPLOYMENT_REPOSITORY);
- createEAttribute(deploymentRepositoryEClass, DEPLOYMENT_REPOSITORY__UNIQUE_VERSION);
- createEAttribute(deploymentRepositoryEClass, DEPLOYMENT_REPOSITORY__ID);
- createEAttribute(deploymentRepositoryEClass, DEPLOYMENT_REPOSITORY__NAME);
- createEAttribute(deploymentRepositoryEClass, DEPLOYMENT_REPOSITORY__URL);
- createEAttribute(deploymentRepositoryEClass, DEPLOYMENT_REPOSITORY__LAYOUT);
-
- developerEClass = createEClass(DEVELOPER);
- createEAttribute(developerEClass, DEVELOPER__ID);
- createEAttribute(developerEClass, DEVELOPER__NAME);
- createEAttribute(developerEClass, DEVELOPER__EMAIL);
- createEAttribute(developerEClass, DEVELOPER__URL);
- createEAttribute(developerEClass, DEVELOPER__ORGANIZATION);
- createEAttribute(developerEClass, DEVELOPER__ORGANIZATION_URL);
- createEAttribute(developerEClass, DEVELOPER__TIMEZONE);
- createEReference(developerEClass, DEVELOPER__PROPERTIES);
- createEAttribute(developerEClass, DEVELOPER__ROLES);
-
- distributionManagementEClass = createEClass(DISTRIBUTION_MANAGEMENT);
- createEReference(distributionManagementEClass, DISTRIBUTION_MANAGEMENT__REPOSITORY);
- createEReference(distributionManagementEClass, DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY);
- createEReference(distributionManagementEClass, DISTRIBUTION_MANAGEMENT__SITE);
- createEAttribute(distributionManagementEClass, DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL);
- createEReference(distributionManagementEClass, DISTRIBUTION_MANAGEMENT__RELOCATION);
- createEAttribute(distributionManagementEClass, DISTRIBUTION_MANAGEMENT__STATUS);
-
- documentRootEClass = createEClass(DOCUMENT_ROOT);
- createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
- createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
- createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
- createEReference(documentRootEClass, DOCUMENT_ROOT__PROJECT);
-
- exclusionEClass = createEClass(EXCLUSION);
- createEAttribute(exclusionEClass, EXCLUSION__ARTIFACT_ID);
- createEAttribute(exclusionEClass, EXCLUSION__GROUP_ID);
-
- extensionEClass = createEClass(EXTENSION);
- createEAttribute(extensionEClass, EXTENSION__GROUP_ID);
- createEAttribute(extensionEClass, EXTENSION__ARTIFACT_ID);
- createEAttribute(extensionEClass, EXTENSION__VERSION);
-
- issueManagementEClass = createEClass(ISSUE_MANAGEMENT);
- createEAttribute(issueManagementEClass, ISSUE_MANAGEMENT__SYSTEM);
- createEAttribute(issueManagementEClass, ISSUE_MANAGEMENT__URL);
-
- licenseEClass = createEClass(LICENSE);
- createEAttribute(licenseEClass, LICENSE__NAME);
- createEAttribute(licenseEClass, LICENSE__URL);
- createEAttribute(licenseEClass, LICENSE__DISTRIBUTION);
- createEAttribute(licenseEClass, LICENSE__COMMENTS);
-
- mailingListEClass = createEClass(MAILING_LIST);
- createEAttribute(mailingListEClass, MAILING_LIST__NAME);
- createEAttribute(mailingListEClass, MAILING_LIST__SUBSCRIBE);
- createEAttribute(mailingListEClass, MAILING_LIST__UNSUBSCRIBE);
- createEAttribute(mailingListEClass, MAILING_LIST__POST);
- createEAttribute(mailingListEClass, MAILING_LIST__ARCHIVE);
- createEAttribute(mailingListEClass, MAILING_LIST__OTHER_ARCHIVES);
-
- modelEClass = createEClass(MODEL);
- createEReference(modelEClass, MODEL__PARENT);
- createEAttribute(modelEClass, MODEL__MODEL_VERSION);
- createEAttribute(modelEClass, MODEL__GROUP_ID);
- createEAttribute(modelEClass, MODEL__ARTIFACT_ID);
- createEAttribute(modelEClass, MODEL__PACKAGING);
- createEAttribute(modelEClass, MODEL__NAME);
- createEAttribute(modelEClass, MODEL__VERSION);
- createEAttribute(modelEClass, MODEL__DESCRIPTION);
- createEAttribute(modelEClass, MODEL__URL);
- createEReference(modelEClass, MODEL__PREREQUISITES);
- createEReference(modelEClass, MODEL__ISSUE_MANAGEMENT);
- createEReference(modelEClass, MODEL__CI_MANAGEMENT);
- createEAttribute(modelEClass, MODEL__INCEPTION_YEAR);
- createEReference(modelEClass, MODEL__MAILING_LISTS);
- createEReference(modelEClass, MODEL__DEVELOPERS);
- createEReference(modelEClass, MODEL__CONTRIBUTORS);
- createEReference(modelEClass, MODEL__LICENSES);
- createEReference(modelEClass, MODEL__SCM);
- createEReference(modelEClass, MODEL__ORGANIZATION);
- createEReference(modelEClass, MODEL__BUILD);
- createEReference(modelEClass, MODEL__PROFILES);
- createEReference(modelEClass, MODEL__REPOSITORIES);
- createEReference(modelEClass, MODEL__PLUGIN_REPOSITORIES);
- createEReference(modelEClass, MODEL__DEPENDENCIES);
- createEReference(modelEClass, MODEL__REPORTING);
- createEReference(modelEClass, MODEL__DEPENDENCY_MANAGEMENT);
- createEReference(modelEClass, MODEL__DISTRIBUTION_MANAGEMENT);
- createEReference(modelEClass, MODEL__PROPERTIES);
- createEAttribute(modelEClass, MODEL__MODULES);
-
- notifierEClass = createEClass(NOTIFIER);
- createEAttribute(notifierEClass, NOTIFIER__TYPE);
- createEAttribute(notifierEClass, NOTIFIER__SEND_ON_ERROR);
- createEAttribute(notifierEClass, NOTIFIER__SEND_ON_FAILURE);
- createEAttribute(notifierEClass, NOTIFIER__SEND_ON_SUCCESS);
- createEAttribute(notifierEClass, NOTIFIER__SEND_ON_WARNING);
- createEAttribute(notifierEClass, NOTIFIER__ADDRESS);
- createEReference(notifierEClass, NOTIFIER__CONFIGURATION);
-
- organizationEClass = createEClass(ORGANIZATION);
- createEAttribute(organizationEClass, ORGANIZATION__NAME);
- createEAttribute(organizationEClass, ORGANIZATION__URL);
-
- parentEClass = createEClass(PARENT);
- createEAttribute(parentEClass, PARENT__ARTIFACT_ID);
- createEAttribute(parentEClass, PARENT__GROUP_ID);
- createEAttribute(parentEClass, PARENT__VERSION);
- createEAttribute(parentEClass, PARENT__RELATIVE_PATH);
-
- pluginEClass = createEClass(PLUGIN);
- createEAttribute(pluginEClass, PLUGIN__GROUP_ID);
- createEAttribute(pluginEClass, PLUGIN__ARTIFACT_ID);
- createEAttribute(pluginEClass, PLUGIN__VERSION);
- createEAttribute(pluginEClass, PLUGIN__EXTENSIONS);
- createEReference(pluginEClass, PLUGIN__EXECUTIONS);
- createEReference(pluginEClass, PLUGIN__DEPENDENCIES);
- createEAttribute(pluginEClass, PLUGIN__INHERITED);
- createEReference(pluginEClass, PLUGIN__CONFIGURATION);
-
- pluginExecutionEClass = createEClass(PLUGIN_EXECUTION);
- createEAttribute(pluginExecutionEClass, PLUGIN_EXECUTION__ID);
- createEAttribute(pluginExecutionEClass, PLUGIN_EXECUTION__PHASE);
- createEAttribute(pluginExecutionEClass, PLUGIN_EXECUTION__INHERITED);
- createEAttribute(pluginExecutionEClass, PLUGIN_EXECUTION__GOALS);
- createEReference(pluginExecutionEClass, PLUGIN_EXECUTION__CONFIGURATION);
-
- pluginManagementEClass = createEClass(PLUGIN_MANAGEMENT);
- createEReference(pluginManagementEClass, PLUGIN_MANAGEMENT__PLUGINS);
-
- prerequisitesEClass = createEClass(PREREQUISITES);
- createEAttribute(prerequisitesEClass, PREREQUISITES__MAVEN);
-
- profileEClass = createEClass(PROFILE);
- createEAttribute(profileEClass, PROFILE__ID);
- createEReference(profileEClass, PROFILE__ACTIVATION);
- createEReference(profileEClass, PROFILE__BUILD);
- createEReference(profileEClass, PROFILE__REPOSITORIES);
- createEReference(profileEClass, PROFILE__PLUGIN_REPOSITORIES);
- createEReference(profileEClass, PROFILE__DEPENDENCIES);
- createEReference(profileEClass, PROFILE__REPORTS);
- createEReference(profileEClass, PROFILE__DEPENDENCY_MANAGEMENT);
- createEReference(profileEClass, PROFILE__DISTRIBUTION_MANAGEMENT);
- createEReference(profileEClass, PROFILE__PROPERTIES);
- createEAttribute(profileEClass, PROFILE__MODULES);
- createEReference(profileEClass, PROFILE__REPORTING);
-
- relocationEClass = createEClass(RELOCATION);
- createEAttribute(relocationEClass, RELOCATION__GROUP_ID);
- createEAttribute(relocationEClass, RELOCATION__ARTIFACT_ID);
- createEAttribute(relocationEClass, RELOCATION__VERSION);
- createEAttribute(relocationEClass, RELOCATION__MESSAGE);
-
- reportingEClass = createEClass(REPORTING);
- createEAttribute(reportingEClass, REPORTING__EXCLUDE_DEFAULTS);
- createEAttribute(reportingEClass, REPORTING__OUTPUT_DIRECTORY);
- createEReference(reportingEClass, REPORTING__PLUGINS);
-
- reportPluginEClass = createEClass(REPORT_PLUGIN);
- createEAttribute(reportPluginEClass, REPORT_PLUGIN__GROUP_ID);
- createEAttribute(reportPluginEClass, REPORT_PLUGIN__ARTIFACT_ID);
- createEAttribute(reportPluginEClass, REPORT_PLUGIN__VERSION);
- createEAttribute(reportPluginEClass, REPORT_PLUGIN__INHERITED);
- createEReference(reportPluginEClass, REPORT_PLUGIN__REPORT_SETS);
- createEReference(reportPluginEClass, REPORT_PLUGIN__CONFIGURATION);
-
- reportSetEClass = createEClass(REPORT_SET);
- createEAttribute(reportSetEClass, REPORT_SET__ID);
- createEAttribute(reportSetEClass, REPORT_SET__INHERITED);
- createEAttribute(reportSetEClass, REPORT_SET__REPORTS);
- createEReference(reportSetEClass, REPORT_SET__CONFIGURATION);
-
- repositoryEClass = createEClass(REPOSITORY);
- createEReference(repositoryEClass, REPOSITORY__RELEASES);
- createEReference(repositoryEClass, REPOSITORY__SNAPSHOTS);
- createEAttribute(repositoryEClass, REPOSITORY__ID);
- createEAttribute(repositoryEClass, REPOSITORY__NAME);
- createEAttribute(repositoryEClass, REPOSITORY__URL);
- createEAttribute(repositoryEClass, REPOSITORY__LAYOUT);
-
- repositoryPolicyEClass = createEClass(REPOSITORY_POLICY);
- createEAttribute(repositoryPolicyEClass, REPOSITORY_POLICY__ENABLED);
- createEAttribute(repositoryPolicyEClass, REPOSITORY_POLICY__UPDATE_POLICY);
- createEAttribute(repositoryPolicyEClass, REPOSITORY_POLICY__CHECKSUM_POLICY);
-
- resourceEClass = createEClass(RESOURCE);
- createEAttribute(resourceEClass, RESOURCE__TARGET_PATH);
- createEAttribute(resourceEClass, RESOURCE__FILTERING);
- createEAttribute(resourceEClass, RESOURCE__DIRECTORY);
- createEAttribute(resourceEClass, RESOURCE__INCLUDES);
- createEAttribute(resourceEClass, RESOURCE__EXCLUDES);
-
- scmEClass = createEClass(SCM);
- createEAttribute(scmEClass, SCM__CONNECTION);
- createEAttribute(scmEClass, SCM__DEVELOPER_CONNECTION);
- createEAttribute(scmEClass, SCM__TAG);
- createEAttribute(scmEClass, SCM__URL);
-
- siteEClass = createEClass(SITE);
- createEAttribute(siteEClass, SITE__ID);
- createEAttribute(siteEClass, SITE__NAME);
- createEAttribute(siteEClass, SITE__URL);
-
- propertyElementEClass = createEClass(PROPERTY_ELEMENT);
- createEAttribute(propertyElementEClass, PROPERTY_ELEMENT__NAME);
- createEAttribute(propertyElementEClass, PROPERTY_ELEMENT__VALUE);
-
- configurationEClass = createEClass(CONFIGURATION);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- buildEClass.getESuperTypes().add(this.getBuildBase());
-
- // Initialize classes and features; add operations and parameters
- initEClass(activationEClass, Activation.class, "Activation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getActivation_ActiveByDefault(), theXMLTypePackage.getString(), "activeByDefault", "false", 0, 1, Activation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getActivation_Jdk(), theXMLTypePackage.getString(), "jdk", null, 0, 1, Activation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getActivation_Os(), this.getActivationOS(), null, "os", null, 0, 1, Activation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getActivation_Property(), this.getActivationProperty(), null, "property", null, 0, 1, Activation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getActivation_File(), this.getActivationFile(), null, "file", null, 0, 1, Activation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(activationFileEClass, ActivationFile.class, "ActivationFile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getActivationFile_Missing(), theXMLTypePackage.getString(), "missing", null, 0, 1, ActivationFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getActivationFile_Exists(), theXMLTypePackage.getString(), "exists", null, 0, 1, ActivationFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(activationOSEClass, ActivationOS.class, "ActivationOS", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getActivationOS_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, ActivationOS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getActivationOS_Family(), theXMLTypePackage.getString(), "family", null, 0, 1, ActivationOS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getActivationOS_Arch(), theXMLTypePackage.getString(), "arch", null, 0, 1, ActivationOS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getActivationOS_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, ActivationOS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(activationPropertyEClass, ActivationProperty.class, "ActivationProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getActivationProperty_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, ActivationProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getActivationProperty_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, ActivationProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(buildEClass, Build.class, "Build", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getBuild_SourceDirectory(), theXMLTypePackage.getString(), "sourceDirectory", null, 0, 1, Build.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getBuild_ScriptSourceDirectory(), theXMLTypePackage.getString(), "scriptSourceDirectory", null, 0, 1, Build.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getBuild_TestSourceDirectory(), theXMLTypePackage.getString(), "testSourceDirectory", null, 0, 1, Build.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getBuild_OutputDirectory(), theXMLTypePackage.getString(), "outputDirectory", null, 0, 1, Build.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getBuild_TestOutputDirectory(), theXMLTypePackage.getString(), "testOutputDirectory", null, 0, 1, Build.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getBuild_Extensions(), this.getExtension(), null, "extensions", null, 0, -1, Build.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(buildBaseEClass, BuildBase.class, "BuildBase", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getBuildBase_DefaultGoal(), theXMLTypePackage.getString(), "defaultGoal", null, 0, 1, BuildBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getBuildBase_Resources(), this.getResource(), null, "resources", null, 0, -1, BuildBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getBuildBase_TestResources(), this.getResource(), null, "testResources", null, 0, -1, BuildBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getBuildBase_Directory(), theXMLTypePackage.getString(), "directory", null, 0, 1, BuildBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getBuildBase_FinalName(), theXMLTypePackage.getString(), "finalName", null, 0, 1, BuildBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getBuildBase_PluginManagement(), this.getPluginManagement(), null, "pluginManagement", null, 0, 1, BuildBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getBuildBase_Plugins(), this.getPlugin(), null, "plugins", null, 0, -1, BuildBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getBuildBase_Filters(), theXMLTypePackage.getString(), "filters", null, 0, -1, BuildBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(ciManagementEClass, CiManagement.class, "CiManagement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getCiManagement_System(), theXMLTypePackage.getString(), "system", null, 0, 1, CiManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getCiManagement_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, CiManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getCiManagement_Notifiers(), this.getNotifier(), null, "notifiers", null, 0, -1, CiManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(contributorEClass, Contributor.class, "Contributor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getContributor_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Contributor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getContributor_Email(), theXMLTypePackage.getString(), "email", null, 0, 1, Contributor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getContributor_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, Contributor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getContributor_Organization(), theXMLTypePackage.getString(), "organization", null, 0, 1, Contributor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getContributor_OrganizationUrl(), theXMLTypePackage.getString(), "organizationUrl", null, 0, 1, Contributor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getContributor_Timezone(), theXMLTypePackage.getString(), "timezone", null, 0, 1, Contributor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getContributor_Properties(), this.getPropertyElement(), null, "properties", null, 0, -1, Contributor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getContributor_Roles(), theXMLTypePackage.getString(), "roles", null, 0, -1, Contributor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(dependencyEClass, Dependency.class, "Dependency", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getDependency_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, Dependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDependency_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1, Dependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDependency_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, Dependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDependency_Type(), theXMLTypePackage.getString(), "type", null, 0, 1, Dependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDependency_Classifier(), theXMLTypePackage.getString(), "classifier", null, 0, 1, Dependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDependency_Scope(), theXMLTypePackage.getString(), "scope", null, 0, 1, Dependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDependency_SystemPath(), theXMLTypePackage.getString(), "systemPath", null, 0, 1, Dependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDependency_Exclusions(), this.getExclusion(), null, "exclusions", null, 0, -1, Dependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDependency_Optional(), theXMLTypePackage.getString(), "optional", "false", 0, 1, Dependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(dependencyManagementEClass, DependencyManagement.class, "DependencyManagement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getDependencyManagement_Dependencies(), this.getDependency(), null, "dependencies", null, 0, -1, DependencyManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(deploymentRepositoryEClass, DeploymentRepository.class, "DeploymentRepository", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getDeploymentRepository_UniqueVersion(), theXMLTypePackage.getString(), "uniqueVersion", "true", 0, 1, DeploymentRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDeploymentRepository_Id(), theXMLTypePackage.getString(), "id", null, 0, 1, DeploymentRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDeploymentRepository_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, DeploymentRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDeploymentRepository_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, DeploymentRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDeploymentRepository_Layout(), theXMLTypePackage.getString(), "layout", null, 0, 1, DeploymentRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(developerEClass, Developer.class, "Developer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getDeveloper_Id(), theXMLTypePackage.getString(), "id", null, 0, 1, Developer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDeveloper_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Developer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDeveloper_Email(), theXMLTypePackage.getString(), "email", null, 0, 1, Developer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDeveloper_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, Developer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDeveloper_Organization(), theXMLTypePackage.getString(), "organization", null, 0, 1, Developer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDeveloper_OrganizationUrl(), theXMLTypePackage.getString(), "organizationUrl", null, 0, 1, Developer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDeveloper_Timezone(), theXMLTypePackage.getString(), "timezone", null, 0, 1, Developer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDeveloper_Properties(), this.getPropertyElement(), null, "properties", null, 0, -1, Developer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDeveloper_Roles(), theXMLTypePackage.getString(), "roles", null, 0, -1, Developer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(distributionManagementEClass, DistributionManagement.class, "DistributionManagement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getDistributionManagement_Repository(), this.getDeploymentRepository(), null, "repository", null, 0, 1, DistributionManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDistributionManagement_SnapshotRepository(), this.getDeploymentRepository(), null, "snapshotRepository", null, 0, 1, DistributionManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDistributionManagement_Site(), this.getSite(), null, "site", null, 0, 1, DistributionManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDistributionManagement_DownloadUrl(), theXMLTypePackage.getString(), "downloadUrl", null, 0, 1, DistributionManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDistributionManagement_Relocation(), this.getRelocation(), null, "relocation", null, 0, 1, DistributionManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDistributionManagement_Status(), theXMLTypePackage.getString(), "status", null, 0, 1, DistributionManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDocumentRoot_Project(), this.getModel(), null, "project", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
-
- initEClass(exclusionEClass, Exclusion.class, "Exclusion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getExclusion_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1, Exclusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getExclusion_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, Exclusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(extensionEClass, Extension.class, "Extension", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getExtension_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, Extension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getExtension_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1, Extension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getExtension_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, Extension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(issueManagementEClass, IssueManagement.class, "IssueManagement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getIssueManagement_System(), theXMLTypePackage.getString(), "system", null, 0, 1, IssueManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getIssueManagement_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, IssueManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(licenseEClass, License.class, "License", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getLicense_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, License.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getLicense_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, License.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getLicense_Distribution(), theXMLTypePackage.getString(), "distribution", null, 0, 1, License.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getLicense_Comments(), theXMLTypePackage.getString(), "comments", null, 0, 1, License.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(mailingListEClass, MailingList.class, "MailingList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getMailingList_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, MailingList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMailingList_Subscribe(), theXMLTypePackage.getString(), "subscribe", null, 0, 1, MailingList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMailingList_Unsubscribe(), theXMLTypePackage.getString(), "unsubscribe", null, 0, 1, MailingList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMailingList_Post(), theXMLTypePackage.getString(), "post", null, 0, 1, MailingList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMailingList_Archive(), theXMLTypePackage.getString(), "archive", null, 0, 1, MailingList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMailingList_OtherArchives(), ecorePackage.getEString(), "otherArchives", null, 0, -1, MailingList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(modelEClass, Model.class, "Model", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getModel_Parent(), this.getParent(), null, "parent", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getModel_ModelVersion(), theXMLTypePackage.getString(), "modelVersion", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getModel_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getModel_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getModel_Packaging(), theXMLTypePackage.getString(), "packaging", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getModel_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getModel_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getModel_Description(), theXMLTypePackage.getString(), "description", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getModel_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_Prerequisites(), this.getPrerequisites(), null, "prerequisites", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_IssueManagement(), this.getIssueManagement(), null, "issueManagement", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_CiManagement(), this.getCiManagement(), null, "ciManagement", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getModel_InceptionYear(), theXMLTypePackage.getString(), "inceptionYear", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_MailingLists(), this.getMailingList(), null, "mailingLists", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_Developers(), this.getDeveloper(), null, "developers", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_Contributors(), this.getContributor(), null, "contributors", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_Licenses(), this.getLicense(), null, "licenses", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_Scm(), this.getScm(), null, "scm", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_Organization(), this.getOrganization(), null, "organization", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_Build(), this.getBuild(), null, "build", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_Profiles(), this.getProfile(), null, "profiles", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_Repositories(), this.getRepository(), null, "repositories", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_PluginRepositories(), this.getRepository(), null, "pluginRepositories", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_Dependencies(), this.getDependency(), null, "dependencies", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_Reporting(), this.getReporting(), null, "reporting", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_DependencyManagement(), this.getDependencyManagement(), null, "dependencyManagement", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_DistributionManagement(), this.getDistributionManagement(), null, "distributionManagement", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModel_Properties(), this.getPropertyElement(), null, "properties", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getModel_Modules(), theXMLTypePackage.getString(), "modules", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(notifierEClass, Notifier.class, "Notifier", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getNotifier_Type(), theXMLTypePackage.getString(), "type", null, 0, 1, Notifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getNotifier_SendOnError(), theXMLTypePackage.getString(), "sendOnError", "true", 0, 1, Notifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getNotifier_SendOnFailure(), theXMLTypePackage.getString(), "sendOnFailure", "true", 0, 1, Notifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getNotifier_SendOnSuccess(), theXMLTypePackage.getString(), "sendOnSuccess", "true", 0, 1, Notifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getNotifier_SendOnWarning(), theXMLTypePackage.getString(), "sendOnWarning", "true", 0, 1, Notifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getNotifier_Address(), theXMLTypePackage.getString(), "address", null, 0, 1, Notifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getNotifier_Configuration(), this.getPropertyElement(), null, "configuration", null, 0, -1, Notifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(organizationEClass, Organization.class, "Organization", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getOrganization_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Organization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getOrganization_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, Organization.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(parentEClass, Parent.class, "Parent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getParent_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1, Parent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getParent_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, Parent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getParent_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, Parent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getParent_RelativePath(), theXMLTypePackage.getString(), "relativePath", null, 0, 1, Parent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(pluginEClass, Plugin.class, "Plugin", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getPlugin_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, Plugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPlugin_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1, Plugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPlugin_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, Plugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPlugin_Extensions(), theXMLTypePackage.getString(), "extensions", "false", 0, 1, Plugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getPlugin_Executions(), this.getPluginExecution(), null, "executions", null, 0, -1, Plugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getPlugin_Dependencies(), this.getDependency(), null, "dependencies", null, 0, -1, Plugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPlugin_Inherited(), theXMLTypePackage.getString(), "inherited", null, 0, 1, Plugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getPlugin_Configuration(), this.getConfiguration(), null, "configuration", null, 0, 1, Plugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(pluginExecutionEClass, PluginExecution.class, "PluginExecution", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getPluginExecution_Id(), theXMLTypePackage.getString(), "id", null, 0, 1, PluginExecution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPluginExecution_Phase(), theXMLTypePackage.getString(), "phase", null, 0, 1, PluginExecution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPluginExecution_Inherited(), theXMLTypePackage.getString(), "inherited", null, 0, 1, PluginExecution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPluginExecution_Goals(), theXMLTypePackage.getString(), "goals", null, 0, -1, PluginExecution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getPluginExecution_Configuration(), this.getConfiguration(), null, "configuration", null, 0, 1, PluginExecution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(pluginManagementEClass, PluginManagement.class, "PluginManagement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPluginManagement_Plugins(), this.getPlugin(), null, "plugins", null, 0, -1, PluginManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(prerequisitesEClass, Prerequisites.class, "Prerequisites", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getPrerequisites_Maven(), theXMLTypePackage.getString(), "maven", null, 0, 1, Prerequisites.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(profileEClass, Profile.class, "Profile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getProfile_Id(), theXMLTypePackage.getString(), "id", null, 0, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getProfile_Activation(), this.getActivation(), null, "activation", null, 0, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getProfile_Build(), this.getBuildBase(), null, "build", null, 0, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getProfile_Repositories(), this.getRepository(), null, "repositories", null, 0, -1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getProfile_PluginRepositories(), this.getRepository(), null, "pluginRepositories", null, 0, -1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getProfile_Dependencies(), this.getDependency(), null, "dependencies", null, 0, -1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getProfile_Reports(), this.getReportPlugin(), null, "reports", null, 0, -1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getProfile_DependencyManagement(), this.getDependencyManagement(), null, "dependencyManagement", null, 0, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getProfile_DistributionManagement(), this.getDistributionManagement(), null, "distributionManagement", null, 0, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getProfile_Properties(), this.getPropertyElement(), null, "properties", null, 0, -1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getProfile_Modules(), theXMLTypePackage.getString(), "modules", null, 0, -1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getProfile_Reporting(), this.getReporting(), null, "reporting", null, 0, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(relocationEClass, Relocation.class, "Relocation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getRelocation_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, Relocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRelocation_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1, Relocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRelocation_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, Relocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRelocation_Message(), theXMLTypePackage.getString(), "message", null, 0, 1, Relocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(reportingEClass, Reporting.class, "Reporting", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getReporting_ExcludeDefaults(), theXMLTypePackage.getString(), "excludeDefaults", "false", 0, 1, Reporting.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getReporting_OutputDirectory(), theXMLTypePackage.getString(), "outputDirectory", null, 0, 1, Reporting.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReporting_Plugins(), this.getReportPlugin(), null, "plugins", null, 0, -1, Reporting.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(reportPluginEClass, ReportPlugin.class, "ReportPlugin", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getReportPlugin_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, ReportPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getReportPlugin_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1, ReportPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getReportPlugin_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, ReportPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getReportPlugin_Inherited(), theXMLTypePackage.getString(), "inherited", null, 0, 1, ReportPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReportPlugin_ReportSets(), this.getReportSet(), null, "reportSets", null, 0, -1, ReportPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReportPlugin_Configuration(), this.getConfiguration(), null, "configuration", null, 0, 1, ReportPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(reportSetEClass, ReportSet.class, "ReportSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getReportSet_Id(), theXMLTypePackage.getString(), "id", null, 0, 1, ReportSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getReportSet_Inherited(), theXMLTypePackage.getString(), "inherited", null, 0, 1, ReportSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getReportSet_Reports(), theXMLTypePackage.getString(), "reports", null, 0, -1, ReportSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReportSet_Configuration(), this.getConfiguration(), null, "configuration", null, 0, 1, ReportSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(repositoryEClass, Repository.class, "Repository", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRepository_Releases(), this.getRepositoryPolicy(), null, "releases", null, 0, 1, Repository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getRepository_Snapshots(), this.getRepositoryPolicy(), null, "snapshots", null, 0, 1, Repository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRepository_Id(), theXMLTypePackage.getString(), "id", null, 0, 1, Repository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRepository_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Repository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRepository_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, Repository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRepository_Layout(), theXMLTypePackage.getString(), "layout", null, 0, 1, Repository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(repositoryPolicyEClass, RepositoryPolicy.class, "RepositoryPolicy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getRepositoryPolicy_Enabled(), theXMLTypePackage.getString(), "enabled", "true", 0, 1, RepositoryPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRepositoryPolicy_UpdatePolicy(), theXMLTypePackage.getString(), "updatePolicy", null, 0, 1, RepositoryPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRepositoryPolicy_ChecksumPolicy(), theXMLTypePackage.getString(), "checksumPolicy", null, 0, 1, RepositoryPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(resourceEClass, Resource.class, "Resource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getResource_TargetPath(), theXMLTypePackage.getString(), "targetPath", null, 0, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResource_Filtering(), theXMLTypePackage.getString(), "filtering", "false", 0, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResource_Directory(), theXMLTypePackage.getString(), "directory", null, 0, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResource_Includes(), theXMLTypePackage.getString(), "includes", null, 0, -1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResource_Excludes(), theXMLTypePackage.getString(), "excludes", null, 0, -1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(scmEClass, Scm.class, "Scm", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getScm_Connection(), theXMLTypePackage.getString(), "connection", null, 0, 1, Scm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getScm_DeveloperConnection(), theXMLTypePackage.getString(), "developerConnection", null, 0, 1, Scm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getScm_Tag(), theXMLTypePackage.getString(), "tag", null, 0, 1, Scm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getScm_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, Scm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(siteEClass, Site.class, "Site", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getSite_Id(), theXMLTypePackage.getString(), "id", null, 0, 1, Site.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getSite_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Site.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getSite_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, Site.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(propertyElementEClass, PropertyElement.class, "PropertyElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getPropertyElement_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, PropertyElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPropertyElement_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, PropertyElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(configurationEClass, Configuration.class, "Configuration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- // Create resource
- createResource(eNS_URI);
-
- // Create annotations
- // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
- createExtendedMetaDataAnnotations();
- }
-
- /**
- * Initializes the annotations for
- * <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void createExtendedMetaDataAnnotations() {
- String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
- addAnnotation
- (activationEClass,
- source,
- new String[] {
- "name", "Activation",
- "kind", "elementOnly"
- });
- addAnnotation
- (getActivation_ActiveByDefault(),
- source,
- new String[] {
- "kind", "element",
- "name", "activeByDefault",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getActivation_Jdk(),
- source,
- new String[] {
- "kind", "element",
- "name", "jdk",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getActivation_Os(),
- source,
- new String[] {
- "kind", "element",
- "name", "os",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getActivation_Property(),
- source,
- new String[] {
- "kind", "element",
- "name", "property",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getActivation_File(),
- source,
- new String[] {
- "kind", "element",
- "name", "file",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (activationFileEClass,
- source,
- new String[] {
- "name", "ActivationFile",
- "kind", "elementOnly"
- });
- addAnnotation
- (getActivationFile_Missing(),
- source,
- new String[] {
- "kind", "element",
- "name", "missing",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getActivationFile_Exists(),
- source,
- new String[] {
- "kind", "element",
- "name", "exists",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (activationOSEClass,
- source,
- new String[] {
- "name", "ActivationOS",
- "kind", "elementOnly"
- });
- addAnnotation
- (getActivationOS_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getActivationOS_Family(),
- source,
- new String[] {
- "kind", "element",
- "name", "family",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getActivationOS_Arch(),
- source,
- new String[] {
- "kind", "element",
- "name", "arch",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getActivationOS_Version(),
- source,
- new String[] {
- "kind", "element",
- "name", "version",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (activationPropertyEClass,
- source,
- new String[] {
- "name", "ActivationProperty",
- "kind", "elementOnly"
- });
- addAnnotation
- (getActivationProperty_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getActivationProperty_Value(),
- source,
- new String[] {
- "kind", "element",
- "name", "value",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (buildEClass,
- source,
- new String[] {
- "name", "Build",
- "kind", "elementOnly"
- });
- addAnnotation
- (getBuild_SourceDirectory(),
- source,
- new String[] {
- "kind", "element",
- "name", "sourceDirectory",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getBuild_ScriptSourceDirectory(),
- source,
- new String[] {
- "kind", "element",
- "name", "scriptSourceDirectory",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getBuild_TestSourceDirectory(),
- source,
- new String[] {
- "kind", "element",
- "name", "testSourceDirectory",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getBuild_OutputDirectory(),
- source,
- new String[] {
- "kind", "element",
- "name", "outputDirectory",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getBuild_TestOutputDirectory(),
- source,
- new String[] {
- "kind", "element",
- "name", "testOutputDirectory",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getBuild_Extensions(),
- source,
- new String[] {
- "kind", "element",
- "name", "extensions",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (buildBaseEClass,
- source,
- new String[] {
- "name", "BuildBase",
- "kind", "elementOnly"
- });
- addAnnotation
- (getBuildBase_DefaultGoal(),
- source,
- new String[] {
- "kind", "element",
- "name", "defaultGoal",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getBuildBase_Resources(),
- source,
- new String[] {
- "kind", "element",
- "name", "resources",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getBuildBase_TestResources(),
- source,
- new String[] {
- "kind", "element",
- "name", "testResources",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getBuildBase_Directory(),
- source,
- new String[] {
- "kind", "element",
- "name", "directory",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getBuildBase_FinalName(),
- source,
- new String[] {
- "kind", "element",
- "name", "finalName",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getBuildBase_PluginManagement(),
- source,
- new String[] {
- "kind", "element",
- "name", "pluginManagement",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getBuildBase_Plugins(),
- source,
- new String[] {
- "kind", "element",
- "name", "plugins",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (ciManagementEClass,
- source,
- new String[] {
- "name", "CiManagement",
- "kind", "elementOnly"
- });
- addAnnotation
- (getCiManagement_System(),
- source,
- new String[] {
- "kind", "element",
- "name", "system",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getCiManagement_Url(),
- source,
- new String[] {
- "kind", "element",
- "name", "url",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getCiManagement_Notifiers(),
- source,
- new String[] {
- "kind", "element",
- "name", "notifiers",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (contributorEClass,
- source,
- new String[] {
- "name", "Contributor",
- "kind", "elementOnly"
- });
- addAnnotation
- (getContributor_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getContributor_Email(),
- source,
- new String[] {
- "kind", "element",
- "name", "email",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getContributor_Url(),
- source,
- new String[] {
- "kind", "element",
- "name", "url",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getContributor_Organization(),
- source,
- new String[] {
- "kind", "element",
- "name", "organization",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getContributor_OrganizationUrl(),
- source,
- new String[] {
- "kind", "element",
- "name", "organizationUrl",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getContributor_Timezone(),
- source,
- new String[] {
- "kind", "element",
- "name", "timezone",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getContributor_Properties(),
- source,
- new String[] {
- "kind", "element",
- "name", "properties",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (dependencyEClass,
- source,
- new String[] {
- "name", "Dependency",
- "kind", "elementOnly"
- });
- addAnnotation
- (getDependency_GroupId(),
- source,
- new String[] {
- "kind", "element",
- "name", "groupId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDependency_ArtifactId(),
- source,
- new String[] {
- "kind", "element",
- "name", "artifactId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDependency_Version(),
- source,
- new String[] {
- "kind", "element",
- "name", "version",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDependency_Type(),
- source,
- new String[] {
- "kind", "element",
- "name", "type",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDependency_Classifier(),
- source,
- new String[] {
- "kind", "element",
- "name", "classifier",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDependency_Scope(),
- source,
- new String[] {
- "kind", "element",
- "name", "scope",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDependency_SystemPath(),
- source,
- new String[] {
- "kind", "element",
- "name", "systemPath",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDependency_Exclusions(),
- source,
- new String[] {
- "kind", "element",
- "name", "exclusions",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDependency_Optional(),
- source,
- new String[] {
- "kind", "element",
- "name", "optional",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (dependencyManagementEClass,
- source,
- new String[] {
- "name", "DependencyManagement",
- "kind", "elementOnly"
- });
- addAnnotation
- (getDependencyManagement_Dependencies(),
- source,
- new String[] {
- "kind", "element",
- "name", "dependencies",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (deploymentRepositoryEClass,
- source,
- new String[] {
- "name", "DeploymentRepository",
- "kind", "elementOnly"
- });
- addAnnotation
- (getDeploymentRepository_UniqueVersion(),
- source,
- new String[] {
- "kind", "element",
- "name", "uniqueVersion",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDeploymentRepository_Id(),
- source,
- new String[] {
- "kind", "element",
- "name", "id",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDeploymentRepository_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDeploymentRepository_Url(),
- source,
- new String[] {
- "kind", "element",
- "name", "url",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDeploymentRepository_Layout(),
- source,
- new String[] {
- "kind", "element",
- "name", "layout",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (developerEClass,
- source,
- new String[] {
- "name", "Developer",
- "kind", "elementOnly"
- });
- addAnnotation
- (getDeveloper_Id(),
- source,
- new String[] {
- "kind", "element",
- "name", "id",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDeveloper_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDeveloper_Email(),
- source,
- new String[] {
- "kind", "element",
- "name", "email",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDeveloper_Url(),
- source,
- new String[] {
- "kind", "element",
- "name", "url",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDeveloper_Organization(),
- source,
- new String[] {
- "kind", "element",
- "name", "organization",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDeveloper_OrganizationUrl(),
- source,
- new String[] {
- "kind", "element",
- "name", "organizationUrl",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDeveloper_Timezone(),
- source,
- new String[] {
- "kind", "element",
- "name", "timezone",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDeveloper_Properties(),
- source,
- new String[] {
- "kind", "element",
- "name", "properties",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (distributionManagementEClass,
- source,
- new String[] {
- "name", "DistributionManagement",
- "kind", "elementOnly"
- });
- addAnnotation
- (getDistributionManagement_Repository(),
- source,
- new String[] {
- "kind", "element",
- "name", "repository",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDistributionManagement_SnapshotRepository(),
- source,
- new String[] {
- "kind", "element",
- "name", "snapshotRepository",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDistributionManagement_Site(),
- source,
- new String[] {
- "kind", "element",
- "name", "site",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDistributionManagement_DownloadUrl(),
- source,
- new String[] {
- "kind", "element",
- "name", "downloadUrl",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDistributionManagement_Relocation(),
- source,
- new String[] {
- "kind", "element",
- "name", "relocation",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getDistributionManagement_Status(),
- source,
- new String[] {
- "kind", "element",
- "name", "status",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (documentRootEClass,
- source,
- new String[] {
- "name", "",
- "kind", "mixed"
- });
- addAnnotation
- (getDocumentRoot_Mixed(),
- source,
- new String[] {
- "kind", "elementWildcard",
- "name", ":mixed"
- });
- addAnnotation
- (getDocumentRoot_XMLNSPrefixMap(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "xmlns:prefix"
- });
- addAnnotation
- (getDocumentRoot_XSISchemaLocation(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "xsi:schemaLocation"
- });
- addAnnotation
- (getDocumentRoot_Project(),
- source,
- new String[] {
- "kind", "element",
- "name", "project",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (exclusionEClass,
- source,
- new String[] {
- "name", "Exclusion",
- "kind", "elementOnly"
- });
- addAnnotation
- (getExclusion_ArtifactId(),
- source,
- new String[] {
- "kind", "element",
- "name", "artifactId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getExclusion_GroupId(),
- source,
- new String[] {
- "kind", "element",
- "name", "groupId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (extensionEClass,
- source,
- new String[] {
- "name", "Extension",
- "kind", "elementOnly"
- });
- addAnnotation
- (getExtension_GroupId(),
- source,
- new String[] {
- "kind", "element",
- "name", "groupId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getExtension_ArtifactId(),
- source,
- new String[] {
- "kind", "element",
- "name", "artifactId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getExtension_Version(),
- source,
- new String[] {
- "kind", "element",
- "name", "version",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (issueManagementEClass,
- source,
- new String[] {
- "name", "IssueManagement",
- "kind", "elementOnly"
- });
- addAnnotation
- (getIssueManagement_System(),
- source,
- new String[] {
- "kind", "element",
- "name", "system",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getIssueManagement_Url(),
- source,
- new String[] {
- "kind", "element",
- "name", "url",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (licenseEClass,
- source,
- new String[] {
- "name", "License",
- "kind", "elementOnly"
- });
- addAnnotation
- (getLicense_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getLicense_Url(),
- source,
- new String[] {
- "kind", "element",
- "name", "url",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getLicense_Distribution(),
- source,
- new String[] {
- "kind", "element",
- "name", "distribution",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getLicense_Comments(),
- source,
- new String[] {
- "kind", "element",
- "name", "comments",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (mailingListEClass,
- source,
- new String[] {
- "name", "MailingList",
- "kind", "elementOnly"
- });
- addAnnotation
- (getMailingList_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getMailingList_Subscribe(),
- source,
- new String[] {
- "kind", "element",
- "name", "subscribe",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getMailingList_Unsubscribe(),
- source,
- new String[] {
- "kind", "element",
- "name", "unsubscribe",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getMailingList_Post(),
- source,
- new String[] {
- "kind", "element",
- "name", "post",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getMailingList_Archive(),
- source,
- new String[] {
- "kind", "element",
- "name", "archive",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (modelEClass,
- source,
- new String[] {
- "name", "Model",
- "kind", "elementOnly"
- });
- addAnnotation
- (getModel_Parent(),
- source,
- new String[] {
- "kind", "element",
- "name", "parent",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_ModelVersion(),
- source,
- new String[] {
- "kind", "element",
- "name", "modelVersion",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_GroupId(),
- source,
- new String[] {
- "kind", "element",
- "name", "groupId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_ArtifactId(),
- source,
- new String[] {
- "kind", "element",
- "name", "artifactId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Packaging(),
- source,
- new String[] {
- "kind", "element",
- "name", "packaging",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Version(),
- source,
- new String[] {
- "kind", "element",
- "name", "version",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Description(),
- source,
- new String[] {
- "kind", "element",
- "name", "description",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Url(),
- source,
- new String[] {
- "kind", "element",
- "name", "url",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Prerequisites(),
- source,
- new String[] {
- "kind", "element",
- "name", "prerequisites",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_IssueManagement(),
- source,
- new String[] {
- "kind", "element",
- "name", "issueManagement",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_CiManagement(),
- source,
- new String[] {
- "kind", "element",
- "name", "ciManagement",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_InceptionYear(),
- source,
- new String[] {
- "kind", "element",
- "name", "inceptionYear",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_MailingLists(),
- source,
- new String[] {
- "kind", "element",
- "name", "mailingLists",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Developers(),
- source,
- new String[] {
- "kind", "element",
- "name", "developers",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Contributors(),
- source,
- new String[] {
- "kind", "element",
- "name", "contributors",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Licenses(),
- source,
- new String[] {
- "kind", "element",
- "name", "licenses",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Scm(),
- source,
- new String[] {
- "kind", "element",
- "name", "scm",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Organization(),
- source,
- new String[] {
- "kind", "element",
- "name", "organization",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Build(),
- source,
- new String[] {
- "kind", "element",
- "name", "build",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Profiles(),
- source,
- new String[] {
- "kind", "element",
- "name", "profiles",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Repositories(),
- source,
- new String[] {
- "kind", "element",
- "name", "repositories",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_PluginRepositories(),
- source,
- new String[] {
- "kind", "element",
- "name", "pluginRepositories",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Dependencies(),
- source,
- new String[] {
- "kind", "element",
- "name", "dependencies",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Reporting(),
- source,
- new String[] {
- "kind", "element",
- "name", "reporting",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_DependencyManagement(),
- source,
- new String[] {
- "kind", "element",
- "name", "dependencyManagement",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_DistributionManagement(),
- source,
- new String[] {
- "kind", "element",
- "name", "distributionManagement",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getModel_Properties(),
- source,
- new String[] {
- "kind", "element",
- "name", "properties",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (notifierEClass,
- source,
- new String[] {
- "name", "Notifier",
- "kind", "elementOnly"
- });
- addAnnotation
- (getNotifier_Type(),
- source,
- new String[] {
- "kind", "element",
- "name", "type",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getNotifier_SendOnError(),
- source,
- new String[] {
- "kind", "element",
- "name", "sendOnError",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getNotifier_SendOnFailure(),
- source,
- new String[] {
- "kind", "element",
- "name", "sendOnFailure",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getNotifier_SendOnSuccess(),
- source,
- new String[] {
- "kind", "element",
- "name", "sendOnSuccess",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getNotifier_SendOnWarning(),
- source,
- new String[] {
- "kind", "element",
- "name", "sendOnWarning",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getNotifier_Address(),
- source,
- new String[] {
- "kind", "element",
- "name", "address",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (organizationEClass,
- source,
- new String[] {
- "name", "Organization",
- "kind", "elementOnly"
- });
- addAnnotation
- (getOrganization_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getOrganization_Url(),
- source,
- new String[] {
- "kind", "element",
- "name", "url",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (parentEClass,
- source,
- new String[] {
- "name", "Parent",
- "kind", "elementOnly"
- });
- addAnnotation
- (getParent_ArtifactId(),
- source,
- new String[] {
- "kind", "element",
- "name", "artifactId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getParent_GroupId(),
- source,
- new String[] {
- "kind", "element",
- "name", "groupId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getParent_Version(),
- source,
- new String[] {
- "kind", "element",
- "name", "version",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getParent_RelativePath(),
- source,
- new String[] {
- "kind", "element",
- "name", "relativePath",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (pluginEClass,
- source,
- new String[] {
- "name", "Plugin",
- "kind", "elementOnly"
- });
- addAnnotation
- (getPlugin_GroupId(),
- source,
- new String[] {
- "kind", "element",
- "name", "groupId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getPlugin_ArtifactId(),
- source,
- new String[] {
- "kind", "element",
- "name", "artifactId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getPlugin_Version(),
- source,
- new String[] {
- "kind", "element",
- "name", "version",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getPlugin_Extensions(),
- source,
- new String[] {
- "kind", "element",
- "name", "extensions",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getPlugin_Executions(),
- source,
- new String[] {
- "kind", "element",
- "name", "executions",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getPlugin_Dependencies(),
- source,
- new String[] {
- "kind", "element",
- "name", "dependencies",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getPlugin_Inherited(),
- source,
- new String[] {
- "kind", "element",
- "name", "inherited",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (pluginExecutionEClass,
- source,
- new String[] {
- "name", "PluginExecution",
- "kind", "elementOnly"
- });
- addAnnotation
- (getPluginExecution_Id(),
- source,
- new String[] {
- "kind", "element",
- "name", "id",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getPluginExecution_Phase(),
- source,
- new String[] {
- "kind", "element",
- "name", "phase",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getPluginExecution_Inherited(),
- source,
- new String[] {
- "kind", "element",
- "name", "inherited",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (pluginManagementEClass,
- source,
- new String[] {
- "name", "PluginManagement",
- "kind", "elementOnly"
- });
- addAnnotation
- (getPluginManagement_Plugins(),
- source,
- new String[] {
- "kind", "element",
- "name", "plugins",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (prerequisitesEClass,
- source,
- new String[] {
- "name", "Prerequisites",
- "kind", "elementOnly"
- });
- addAnnotation
- (getPrerequisites_Maven(),
- source,
- new String[] {
- "kind", "element",
- "name", "maven",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (profileEClass,
- source,
- new String[] {
- "name", "Profile",
- "kind", "elementOnly"
- });
- addAnnotation
- (getProfile_Id(),
- source,
- new String[] {
- "kind", "element",
- "name", "id",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getProfile_Activation(),
- source,
- new String[] {
- "kind", "element",
- "name", "activation",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getProfile_Build(),
- source,
- new String[] {
- "kind", "element",
- "name", "build",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getProfile_Repositories(),
- source,
- new String[] {
- "kind", "element",
- "name", "repositories",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getProfile_PluginRepositories(),
- source,
- new String[] {
- "kind", "element",
- "name", "pluginRepositories",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getProfile_Dependencies(),
- source,
- new String[] {
- "kind", "element",
- "name", "dependencies",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getProfile_Reports(),
- source,
- new String[] {
- "kind", "element",
- "name", "reports",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getProfile_DependencyManagement(),
- source,
- new String[] {
- "kind", "element",
- "name", "dependencyManagement",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getProfile_DistributionManagement(),
- source,
- new String[] {
- "kind", "element",
- "name", "distributionManagement",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getProfile_Properties(),
- source,
- new String[] {
- "kind", "element",
- "name", "properties",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (relocationEClass,
- source,
- new String[] {
- "name", "Relocation",
- "kind", "elementOnly"
- });
- addAnnotation
- (getRelocation_GroupId(),
- source,
- new String[] {
- "kind", "element",
- "name", "groupId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getRelocation_ArtifactId(),
- source,
- new String[] {
- "kind", "element",
- "name", "artifactId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getRelocation_Version(),
- source,
- new String[] {
- "kind", "element",
- "name", "version",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getRelocation_Message(),
- source,
- new String[] {
- "kind", "element",
- "name", "message",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (reportingEClass,
- source,
- new String[] {
- "name", "Reporting",
- "kind", "elementOnly"
- });
- addAnnotation
- (getReporting_ExcludeDefaults(),
- source,
- new String[] {
- "kind", "element",
- "name", "excludeDefaults",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getReporting_OutputDirectory(),
- source,
- new String[] {
- "kind", "element",
- "name", "outputDirectory",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getReporting_Plugins(),
- source,
- new String[] {
- "kind", "element",
- "name", "plugins",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (reportPluginEClass,
- source,
- new String[] {
- "name", "ReportPlugin",
- "kind", "elementOnly"
- });
- addAnnotation
- (getReportPlugin_GroupId(),
- source,
- new String[] {
- "kind", "element",
- "name", "groupId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getReportPlugin_ArtifactId(),
- source,
- new String[] {
- "kind", "element",
- "name", "artifactId",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getReportPlugin_Version(),
- source,
- new String[] {
- "kind", "element",
- "name", "version",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getReportPlugin_Inherited(),
- source,
- new String[] {
- "kind", "element",
- "name", "inherited",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getReportPlugin_ReportSets(),
- source,
- new String[] {
- "kind", "element",
- "name", "reportSets",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (reportSetEClass,
- source,
- new String[] {
- "name", "ReportSet",
- "kind", "elementOnly"
- });
- addAnnotation
- (getReportSet_Id(),
- source,
- new String[] {
- "kind", "element",
- "name", "id",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getReportSet_Inherited(),
- source,
- new String[] {
- "kind", "element",
- "name", "inherited",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (repositoryEClass,
- source,
- new String[] {
- "name", "Repository",
- "kind", "elementOnly"
- });
- addAnnotation
- (getRepository_Releases(),
- source,
- new String[] {
- "kind", "element",
- "name", "releases",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getRepository_Snapshots(),
- source,
- new String[] {
- "kind", "element",
- "name", "snapshots",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getRepository_Id(),
- source,
- new String[] {
- "kind", "element",
- "name", "id",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getRepository_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getRepository_Url(),
- source,
- new String[] {
- "kind", "element",
- "name", "url",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getRepository_Layout(),
- source,
- new String[] {
- "kind", "element",
- "name", "layout",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (repositoryPolicyEClass,
- source,
- new String[] {
- "name", "RepositoryPolicy",
- "kind", "elementOnly"
- });
- addAnnotation
- (getRepositoryPolicy_Enabled(),
- source,
- new String[] {
- "kind", "element",
- "name", "enabled",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getRepositoryPolicy_UpdatePolicy(),
- source,
- new String[] {
- "kind", "element",
- "name", "updatePolicy",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getRepositoryPolicy_ChecksumPolicy(),
- source,
- new String[] {
- "kind", "element",
- "name", "checksumPolicy",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (resourceEClass,
- source,
- new String[] {
- "name", "Resource",
- "kind", "elementOnly"
- });
- addAnnotation
- (getResource_TargetPath(),
- source,
- new String[] {
- "kind", "element",
- "name", "targetPath",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getResource_Filtering(),
- source,
- new String[] {
- "kind", "element",
- "name", "filtering",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getResource_Directory(),
- source,
- new String[] {
- "kind", "element",
- "name", "directory",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (scmEClass,
- source,
- new String[] {
- "name", "Scm",
- "kind", "elementOnly"
- });
- addAnnotation
- (getScm_Connection(),
- source,
- new String[] {
- "kind", "element",
- "name", "connection",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getScm_DeveloperConnection(),
- source,
- new String[] {
- "kind", "element",
- "name", "developerConnection",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getScm_Tag(),
- source,
- new String[] {
- "kind", "element",
- "name", "tag",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getScm_Url(),
- source,
- new String[] {
- "kind", "element",
- "name", "url",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (siteEClass,
- source,
- new String[] {
- "name", "Site",
- "kind", "elementOnly"
- });
- addAnnotation
- (getSite_Id(),
- source,
- new String[] {
- "kind", "element",
- "name", "id",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getSite_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getSite_Url(),
- source,
- new String[] {
- "kind", "element",
- "name", "url",
- "namespace", "##targetNamespace"
- });
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass activationEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass activationFileEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass activationOSEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass activationPropertyEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass buildEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass buildBaseEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass ciManagementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass contributorEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass dependencyEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass dependencyManagementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass deploymentRepositoryEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass developerEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass distributionManagementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass documentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass exclusionEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass extensionEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass issueManagementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass licenseEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass mailingListEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass modelEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass notifierEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass organizationEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass parentEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass pluginEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass pluginExecutionEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass pluginManagementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass prerequisitesEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass profileEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass relocationEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass reportingEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass reportPluginEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass reportSetEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass repositoryEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass repositoryPolicyEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass resourceEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass scmEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass siteEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass propertyElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass configurationEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
+ * EPackage.Registry} by the package package URI value.
+ * <p>
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
+ * performs initialization of the package, or returns the registered package, if one already exists. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.m2e.model.edit.pom.PomPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private PomPackageImpl() {
+ super(eNS_URI, PomFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ * Simple dependencies are satisfied by calling this method on all dependent packages before doing anything else. This
+ * method drives initialization for interdependent packages directly, in parallel with this package, itself.
+ * <p>
+ * Of this package and its interdependencies, all packages which have not yet been registered by their URI values are
+ * first created and registered. The packages are then initialized in two steps: meta-model objects for all of the
+ * packages are created before any are initialized, since one package's meta-model objects may refer to those of
+ * another.
+ * <p>
+ * Invocation of this method will not affect any packages that have already been initialized. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static PomPackage init() {
+ if(isInited)
+ return (PomPackage) EPackage.Registry.INSTANCE.getEPackage(PomPackage.eNS_URI);
+
+ // Obtain or create and register package
+ PomPackageImpl thePomPackage = (PomPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof PomPackageImpl ? EPackage.Registry.INSTANCE
+ .getEPackage(eNS_URI) : new PomPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ XMLTypePackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ thePomPackage.createPackageContents();
+
+ // Initialize created meta-data
+ thePomPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ thePomPackage.freeze();
+
+ return thePomPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getActivation() {
+ return activationEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getActivation_ActiveByDefault() {
+ return (EAttribute) activationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getActivation_Jdk() {
+ return (EAttribute) activationEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getActivation_Os() {
+ return (EReference) activationEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getActivation_Property() {
+ return (EReference) activationEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getActivation_File() {
+ return (EReference) activationEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getActivationFile() {
+ return activationFileEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getActivationFile_Missing() {
+ return (EAttribute) activationFileEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getActivationFile_Exists() {
+ return (EAttribute) activationFileEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getActivationOS() {
+ return activationOSEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getActivationOS_Name() {
+ return (EAttribute) activationOSEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getActivationOS_Family() {
+ return (EAttribute) activationOSEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getActivationOS_Arch() {
+ return (EAttribute) activationOSEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getActivationOS_Version() {
+ return (EAttribute) activationOSEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getActivationProperty() {
+ return activationPropertyEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getActivationProperty_Name() {
+ return (EAttribute) activationPropertyEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getActivationProperty_Value() {
+ return (EAttribute) activationPropertyEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getBuild() {
+ return buildEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getBuild_SourceDirectory() {
+ return (EAttribute) buildEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getBuild_ScriptSourceDirectory() {
+ return (EAttribute) buildEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getBuild_TestSourceDirectory() {
+ return (EAttribute) buildEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getBuild_OutputDirectory() {
+ return (EAttribute) buildEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getBuild_TestOutputDirectory() {
+ return (EAttribute) buildEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getBuild_Extensions() {
+ return (EReference) buildEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getBuildBase() {
+ return buildBaseEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getBuildBase_DefaultGoal() {
+ return (EAttribute) buildBaseEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getBuildBase_Resources() {
+ return (EReference) buildBaseEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getBuildBase_TestResources() {
+ return (EReference) buildBaseEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getBuildBase_Directory() {
+ return (EAttribute) buildBaseEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getBuildBase_FinalName() {
+ return (EAttribute) buildBaseEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getBuildBase_PluginManagement() {
+ return (EReference) buildBaseEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getBuildBase_Plugins() {
+ return (EReference) buildBaseEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getBuildBase_Filters() {
+ return (EAttribute) buildBaseEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getCiManagement() {
+ return ciManagementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getCiManagement_System() {
+ return (EAttribute) ciManagementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getCiManagement_Url() {
+ return (EAttribute) ciManagementEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getCiManagement_Notifiers() {
+ return (EReference) ciManagementEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getContributor() {
+ return contributorEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getContributor_Name() {
+ return (EAttribute) contributorEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getContributor_Email() {
+ return (EAttribute) contributorEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getContributor_Url() {
+ return (EAttribute) contributorEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getContributor_Organization() {
+ return (EAttribute) contributorEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getContributor_OrganizationUrl() {
+ return (EAttribute) contributorEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getContributor_Timezone() {
+ return (EAttribute) contributorEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getContributor_Properties() {
+ return (EReference) contributorEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getContributor_Roles() {
+ return (EAttribute) contributorEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getDependency() {
+ return dependencyEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDependency_GroupId() {
+ return (EAttribute) dependencyEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDependency_ArtifactId() {
+ return (EAttribute) dependencyEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDependency_Version() {
+ return (EAttribute) dependencyEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDependency_Type() {
+ return (EAttribute) dependencyEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDependency_Classifier() {
+ return (EAttribute) dependencyEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDependency_Scope() {
+ return (EAttribute) dependencyEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDependency_SystemPath() {
+ return (EAttribute) dependencyEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getDependency_Exclusions() {
+ return (EReference) dependencyEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDependency_Optional() {
+ return (EAttribute) dependencyEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getDependencyManagement() {
+ return dependencyManagementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getDependencyManagement_Dependencies() {
+ return (EReference) dependencyManagementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getDeploymentRepository() {
+ return deploymentRepositoryEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDeploymentRepository_UniqueVersion() {
+ return (EAttribute) deploymentRepositoryEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDeploymentRepository_Id() {
+ return (EAttribute) deploymentRepositoryEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDeploymentRepository_Name() {
+ return (EAttribute) deploymentRepositoryEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDeploymentRepository_Url() {
+ return (EAttribute) deploymentRepositoryEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDeploymentRepository_Layout() {
+ return (EAttribute) deploymentRepositoryEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getDeveloper() {
+ return developerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDeveloper_Id() {
+ return (EAttribute) developerEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDeveloper_Name() {
+ return (EAttribute) developerEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDeveloper_Email() {
+ return (EAttribute) developerEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDeveloper_Url() {
+ return (EAttribute) developerEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDeveloper_Organization() {
+ return (EAttribute) developerEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDeveloper_OrganizationUrl() {
+ return (EAttribute) developerEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDeveloper_Timezone() {
+ return (EAttribute) developerEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getDeveloper_Properties() {
+ return (EReference) developerEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDeveloper_Roles() {
+ return (EAttribute) developerEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getDistributionManagement() {
+ return distributionManagementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getDistributionManagement_Repository() {
+ return (EReference) distributionManagementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getDistributionManagement_SnapshotRepository() {
+ return (EReference) distributionManagementEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getDistributionManagement_Site() {
+ return (EReference) distributionManagementEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDistributionManagement_DownloadUrl() {
+ return (EAttribute) distributionManagementEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getDistributionManagement_Relocation() {
+ return (EReference) distributionManagementEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDistributionManagement_Status() {
+ return (EAttribute) distributionManagementEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getDocumentRoot() {
+ return documentRootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getDocumentRoot_Mixed() {
+ return (EAttribute) documentRootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getDocumentRoot_XMLNSPrefixMap() {
+ return (EReference) documentRootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getDocumentRoot_XSISchemaLocation() {
+ return (EReference) documentRootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getDocumentRoot_Project() {
+ return (EReference) documentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getExclusion() {
+ return exclusionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getExclusion_ArtifactId() {
+ return (EAttribute) exclusionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getExclusion_GroupId() {
+ return (EAttribute) exclusionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getExtension() {
+ return extensionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getExtension_GroupId() {
+ return (EAttribute) extensionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getExtension_ArtifactId() {
+ return (EAttribute) extensionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getExtension_Version() {
+ return (EAttribute) extensionEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getIssueManagement() {
+ return issueManagementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getIssueManagement_System() {
+ return (EAttribute) issueManagementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getIssueManagement_Url() {
+ return (EAttribute) issueManagementEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getLicense() {
+ return licenseEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getLicense_Name() {
+ return (EAttribute) licenseEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getLicense_Url() {
+ return (EAttribute) licenseEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getLicense_Distribution() {
+ return (EAttribute) licenseEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getLicense_Comments() {
+ return (EAttribute) licenseEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getMailingList() {
+ return mailingListEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getMailingList_Name() {
+ return (EAttribute) mailingListEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getMailingList_Subscribe() {
+ return (EAttribute) mailingListEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getMailingList_Unsubscribe() {
+ return (EAttribute) mailingListEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getMailingList_Post() {
+ return (EAttribute) mailingListEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getMailingList_Archive() {
+ return (EAttribute) mailingListEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getMailingList_OtherArchives() {
+ return (EAttribute) mailingListEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getModel() {
+ return modelEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_Parent() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getModel_ModelVersion() {
+ return (EAttribute) modelEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getModel_GroupId() {
+ return (EAttribute) modelEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getModel_ArtifactId() {
+ return (EAttribute) modelEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getModel_Packaging() {
+ return (EAttribute) modelEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getModel_Name() {
+ return (EAttribute) modelEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getModel_Version() {
+ return (EAttribute) modelEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getModel_Description() {
+ return (EAttribute) modelEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getModel_Url() {
+ return (EAttribute) modelEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_Prerequisites() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_IssueManagement() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(10);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_CiManagement() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(11);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getModel_InceptionYear() {
+ return (EAttribute) modelEClass.getEStructuralFeatures().get(12);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_MailingLists() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(13);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_Developers() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(14);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_Contributors() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(15);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_Licenses() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(16);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_Scm() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(17);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_Organization() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(18);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_Build() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(19);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_Profiles() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(20);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_Repositories() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(21);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_PluginRepositories() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(22);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_Dependencies() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(23);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_Reporting() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(24);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_DependencyManagement() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(25);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_DistributionManagement() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(26);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getModel_Properties() {
+ return (EReference) modelEClass.getEStructuralFeatures().get(27);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getModel_Modules() {
+ return (EAttribute) modelEClass.getEStructuralFeatures().get(28);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getNotifier() {
+ return notifierEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getNotifier_Type() {
+ return (EAttribute) notifierEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getNotifier_SendOnError() {
+ return (EAttribute) notifierEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getNotifier_SendOnFailure() {
+ return (EAttribute) notifierEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getNotifier_SendOnSuccess() {
+ return (EAttribute) notifierEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getNotifier_SendOnWarning() {
+ return (EAttribute) notifierEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getNotifier_Address() {
+ return (EAttribute) notifierEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getNotifier_Configuration() {
+ return (EReference) notifierEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getOrganization() {
+ return organizationEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getOrganization_Name() {
+ return (EAttribute) organizationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getOrganization_Url() {
+ return (EAttribute) organizationEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getParent() {
+ return parentEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getParent_ArtifactId() {
+ return (EAttribute) parentEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getParent_GroupId() {
+ return (EAttribute) parentEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getParent_Version() {
+ return (EAttribute) parentEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getParent_RelativePath() {
+ return (EAttribute) parentEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getPlugin() {
+ return pluginEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getPlugin_GroupId() {
+ return (EAttribute) pluginEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getPlugin_ArtifactId() {
+ return (EAttribute) pluginEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getPlugin_Version() {
+ return (EAttribute) pluginEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getPlugin_Extensions() {
+ return (EAttribute) pluginEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getPlugin_Executions() {
+ return (EReference) pluginEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getPlugin_Dependencies() {
+ return (EReference) pluginEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getPlugin_Inherited() {
+ return (EAttribute) pluginEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getPlugin_Configuration() {
+ return (EReference) pluginEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getPluginExecution() {
+ return pluginExecutionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getPluginExecution_Id() {
+ return (EAttribute) pluginExecutionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getPluginExecution_Phase() {
+ return (EAttribute) pluginExecutionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getPluginExecution_Inherited() {
+ return (EAttribute) pluginExecutionEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getPluginExecution_Goals() {
+ return (EAttribute) pluginExecutionEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getPluginExecution_Configuration() {
+ return (EReference) pluginExecutionEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getPluginManagement() {
+ return pluginManagementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getPluginManagement_Plugins() {
+ return (EReference) pluginManagementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getPrerequisites() {
+ return prerequisitesEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getPrerequisites_Maven() {
+ return (EAttribute) prerequisitesEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getProfile() {
+ return profileEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getProfile_Id() {
+ return (EAttribute) profileEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getProfile_Activation() {
+ return (EReference) profileEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getProfile_Build() {
+ return (EReference) profileEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getProfile_Repositories() {
+ return (EReference) profileEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getProfile_PluginRepositories() {
+ return (EReference) profileEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getProfile_Dependencies() {
+ return (EReference) profileEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getProfile_Reports() {
+ return (EReference) profileEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getProfile_DependencyManagement() {
+ return (EReference) profileEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getProfile_DistributionManagement() {
+ return (EReference) profileEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getProfile_Properties() {
+ return (EReference) profileEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getProfile_Modules() {
+ return (EAttribute) profileEClass.getEStructuralFeatures().get(10);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getProfile_Reporting() {
+ return (EReference) profileEClass.getEStructuralFeatures().get(11);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRelocation() {
+ return relocationEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getRelocation_GroupId() {
+ return (EAttribute) relocationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getRelocation_ArtifactId() {
+ return (EAttribute) relocationEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getRelocation_Version() {
+ return (EAttribute) relocationEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getRelocation_Message() {
+ return (EAttribute) relocationEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getReporting() {
+ return reportingEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getReporting_ExcludeDefaults() {
+ return (EAttribute) reportingEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getReporting_OutputDirectory() {
+ return (EAttribute) reportingEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getReporting_Plugins() {
+ return (EReference) reportingEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getReportPlugin() {
+ return reportPluginEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getReportPlugin_GroupId() {
+ return (EAttribute) reportPluginEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getReportPlugin_ArtifactId() {
+ return (EAttribute) reportPluginEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getReportPlugin_Version() {
+ return (EAttribute) reportPluginEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getReportPlugin_Inherited() {
+ return (EAttribute) reportPluginEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getReportPlugin_ReportSets() {
+ return (EReference) reportPluginEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getReportPlugin_Configuration() {
+ return (EReference) reportPluginEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getReportSet() {
+ return reportSetEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getReportSet_Id() {
+ return (EAttribute) reportSetEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getReportSet_Inherited() {
+ return (EAttribute) reportSetEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getReportSet_Reports() {
+ return (EAttribute) reportSetEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getReportSet_Configuration() {
+ return (EReference) reportSetEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRepository() {
+ return repositoryEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRepository_Releases() {
+ return (EReference) repositoryEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRepository_Snapshots() {
+ return (EReference) repositoryEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getRepository_Id() {
+ return (EAttribute) repositoryEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getRepository_Name() {
+ return (EAttribute) repositoryEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getRepository_Url() {
+ return (EAttribute) repositoryEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getRepository_Layout() {
+ return (EAttribute) repositoryEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRepositoryPolicy() {
+ return repositoryPolicyEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getRepositoryPolicy_Enabled() {
+ return (EAttribute) repositoryPolicyEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getRepositoryPolicy_UpdatePolicy() {
+ return (EAttribute) repositoryPolicyEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getRepositoryPolicy_ChecksumPolicy() {
+ return (EAttribute) repositoryPolicyEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getResource() {
+ return resourceEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getResource_TargetPath() {
+ return (EAttribute) resourceEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getResource_Filtering() {
+ return (EAttribute) resourceEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getResource_Directory() {
+ return (EAttribute) resourceEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getResource_Includes() {
+ return (EAttribute) resourceEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getResource_Excludes() {
+ return (EAttribute) resourceEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getScm() {
+ return scmEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getScm_Connection() {
+ return (EAttribute) scmEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getScm_DeveloperConnection() {
+ return (EAttribute) scmEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getScm_Tag() {
+ return (EAttribute) scmEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getScm_Url() {
+ return (EAttribute) scmEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getSite() {
+ return siteEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getSite_Id() {
+ return (EAttribute) siteEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getSite_Name() {
+ return (EAttribute) siteEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getSite_Url() {
+ return (EAttribute) siteEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getPropertyElement() {
+ return propertyElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getPropertyElement_Name() {
+ return (EAttribute) propertyElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getPropertyElement_Value() {
+ return (EAttribute) propertyElementEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getConfiguration() {
+ return configurationEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PomFactory getPomFactory() {
+ return (PomFactory) getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is guarded to have no affect on any invocation but its
+ * first. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void createPackageContents() {
+ if(isCreated)
+ return;
+ isCreated = true;
+
+ // Create classes and their features
+ activationEClass = createEClass(ACTIVATION);
+ createEAttribute(activationEClass, ACTIVATION__ACTIVE_BY_DEFAULT);
+ createEAttribute(activationEClass, ACTIVATION__JDK);
+ createEReference(activationEClass, ACTIVATION__OS);
+ createEReference(activationEClass, ACTIVATION__PROPERTY);
+ createEReference(activationEClass, ACTIVATION__FILE);
+
+ activationFileEClass = createEClass(ACTIVATION_FILE);
+ createEAttribute(activationFileEClass, ACTIVATION_FILE__MISSING);
+ createEAttribute(activationFileEClass, ACTIVATION_FILE__EXISTS);
+
+ activationOSEClass = createEClass(ACTIVATION_OS);
+ createEAttribute(activationOSEClass, ACTIVATION_OS__NAME);
+ createEAttribute(activationOSEClass, ACTIVATION_OS__FAMILY);
+ createEAttribute(activationOSEClass, ACTIVATION_OS__ARCH);
+ createEAttribute(activationOSEClass, ACTIVATION_OS__VERSION);
+
+ activationPropertyEClass = createEClass(ACTIVATION_PROPERTY);
+ createEAttribute(activationPropertyEClass, ACTIVATION_PROPERTY__NAME);
+ createEAttribute(activationPropertyEClass, ACTIVATION_PROPERTY__VALUE);
+
+ buildEClass = createEClass(BUILD);
+ createEAttribute(buildEClass, BUILD__SOURCE_DIRECTORY);
+ createEAttribute(buildEClass, BUILD__SCRIPT_SOURCE_DIRECTORY);
+ createEAttribute(buildEClass, BUILD__TEST_SOURCE_DIRECTORY);
+ createEAttribute(buildEClass, BUILD__OUTPUT_DIRECTORY);
+ createEAttribute(buildEClass, BUILD__TEST_OUTPUT_DIRECTORY);
+ createEReference(buildEClass, BUILD__EXTENSIONS);
+
+ buildBaseEClass = createEClass(BUILD_BASE);
+ createEAttribute(buildBaseEClass, BUILD_BASE__DEFAULT_GOAL);
+ createEReference(buildBaseEClass, BUILD_BASE__RESOURCES);
+ createEReference(buildBaseEClass, BUILD_BASE__TEST_RESOURCES);
+ createEAttribute(buildBaseEClass, BUILD_BASE__DIRECTORY);
+ createEAttribute(buildBaseEClass, BUILD_BASE__FINAL_NAME);
+ createEReference(buildBaseEClass, BUILD_BASE__PLUGIN_MANAGEMENT);
+ createEReference(buildBaseEClass, BUILD_BASE__PLUGINS);
+ createEAttribute(buildBaseEClass, BUILD_BASE__FILTERS);
+
+ ciManagementEClass = createEClass(CI_MANAGEMENT);
+ createEAttribute(ciManagementEClass, CI_MANAGEMENT__SYSTEM);
+ createEAttribute(ciManagementEClass, CI_MANAGEMENT__URL);
+ createEReference(ciManagementEClass, CI_MANAGEMENT__NOTIFIERS);
+
+ contributorEClass = createEClass(CONTRIBUTOR);
+ createEAttribute(contributorEClass, CONTRIBUTOR__NAME);
+ createEAttribute(contributorEClass, CONTRIBUTOR__EMAIL);
+ createEAttribute(contributorEClass, CONTRIBUTOR__URL);
+ createEAttribute(contributorEClass, CONTRIBUTOR__ORGANIZATION);
+ createEAttribute(contributorEClass, CONTRIBUTOR__ORGANIZATION_URL);
+ createEAttribute(contributorEClass, CONTRIBUTOR__TIMEZONE);
+ createEReference(contributorEClass, CONTRIBUTOR__PROPERTIES);
+ createEAttribute(contributorEClass, CONTRIBUTOR__ROLES);
+
+ dependencyEClass = createEClass(DEPENDENCY);
+ createEAttribute(dependencyEClass, DEPENDENCY__GROUP_ID);
+ createEAttribute(dependencyEClass, DEPENDENCY__ARTIFACT_ID);
+ createEAttribute(dependencyEClass, DEPENDENCY__VERSION);
+ createEAttribute(dependencyEClass, DEPENDENCY__TYPE);
+ createEAttribute(dependencyEClass, DEPENDENCY__CLASSIFIER);
+ createEAttribute(dependencyEClass, DEPENDENCY__SCOPE);
+ createEAttribute(dependencyEClass, DEPENDENCY__SYSTEM_PATH);
+ createEReference(dependencyEClass, DEPENDENCY__EXCLUSIONS);
+ createEAttribute(dependencyEClass, DEPENDENCY__OPTIONAL);
+
+ dependencyManagementEClass = createEClass(DEPENDENCY_MANAGEMENT);
+ createEReference(dependencyManagementEClass, DEPENDENCY_MANAGEMENT__DEPENDENCIES);
+
+ deploymentRepositoryEClass = createEClass(DEPLOYMENT_REPOSITORY);
+ createEAttribute(deploymentRepositoryEClass, DEPLOYMENT_REPOSITORY__UNIQUE_VERSION);
+ createEAttribute(deploymentRepositoryEClass, DEPLOYMENT_REPOSITORY__ID);
+ createEAttribute(deploymentRepositoryEClass, DEPLOYMENT_REPOSITORY__NAME);
+ createEAttribute(deploymentRepositoryEClass, DEPLOYMENT_REPOSITORY__URL);
+ createEAttribute(deploymentRepositoryEClass, DEPLOYMENT_REPOSITORY__LAYOUT);
+
+ developerEClass = createEClass(DEVELOPER);
+ createEAttribute(developerEClass, DEVELOPER__ID);
+ createEAttribute(developerEClass, DEVELOPER__NAME);
+ createEAttribute(developerEClass, DEVELOPER__EMAIL);
+ createEAttribute(developerEClass, DEVELOPER__URL);
+ createEAttribute(developerEClass, DEVELOPER__ORGANIZATION);
+ createEAttribute(developerEClass, DEVELOPER__ORGANIZATION_URL);
+ createEAttribute(developerEClass, DEVELOPER__TIMEZONE);
+ createEReference(developerEClass, DEVELOPER__PROPERTIES);
+ createEAttribute(developerEClass, DEVELOPER__ROLES);
+
+ distributionManagementEClass = createEClass(DISTRIBUTION_MANAGEMENT);
+ createEReference(distributionManagementEClass, DISTRIBUTION_MANAGEMENT__REPOSITORY);
+ createEReference(distributionManagementEClass, DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY);
+ createEReference(distributionManagementEClass, DISTRIBUTION_MANAGEMENT__SITE);
+ createEAttribute(distributionManagementEClass, DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL);
+ createEReference(distributionManagementEClass, DISTRIBUTION_MANAGEMENT__RELOCATION);
+ createEAttribute(distributionManagementEClass, DISTRIBUTION_MANAGEMENT__STATUS);
+
+ documentRootEClass = createEClass(DOCUMENT_ROOT);
+ createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__PROJECT);
+
+ exclusionEClass = createEClass(EXCLUSION);
+ createEAttribute(exclusionEClass, EXCLUSION__ARTIFACT_ID);
+ createEAttribute(exclusionEClass, EXCLUSION__GROUP_ID);
+
+ extensionEClass = createEClass(EXTENSION);
+ createEAttribute(extensionEClass, EXTENSION__GROUP_ID);
+ createEAttribute(extensionEClass, EXTENSION__ARTIFACT_ID);
+ createEAttribute(extensionEClass, EXTENSION__VERSION);
+
+ issueManagementEClass = createEClass(ISSUE_MANAGEMENT);
+ createEAttribute(issueManagementEClass, ISSUE_MANAGEMENT__SYSTEM);
+ createEAttribute(issueManagementEClass, ISSUE_MANAGEMENT__URL);
+
+ licenseEClass = createEClass(LICENSE);
+ createEAttribute(licenseEClass, LICENSE__NAME);
+ createEAttribute(licenseEClass, LICENSE__URL);
+ createEAttribute(licenseEClass, LICENSE__DISTRIBUTION);
+ createEAttribute(licenseEClass, LICENSE__COMMENTS);
+
+ mailingListEClass = createEClass(MAILING_LIST);
+ createEAttribute(mailingListEClass, MAILING_LIST__NAME);
+ createEAttribute(mailingListEClass, MAILING_LIST__SUBSCRIBE);
+ createEAttribute(mailingListEClass, MAILING_LIST__UNSUBSCRIBE);
+ createEAttribute(mailingListEClass, MAILING_LIST__POST);
+ createEAttribute(mailingListEClass, MAILING_LIST__ARCHIVE);
+ createEAttribute(mailingListEClass, MAILING_LIST__OTHER_ARCHIVES);
+
+ modelEClass = createEClass(MODEL);
+ createEReference(modelEClass, MODEL__PARENT);
+ createEAttribute(modelEClass, MODEL__MODEL_VERSION);
+ createEAttribute(modelEClass, MODEL__GROUP_ID);
+ createEAttribute(modelEClass, MODEL__ARTIFACT_ID);
+ createEAttribute(modelEClass, MODEL__PACKAGING);
+ createEAttribute(modelEClass, MODEL__NAME);
+ createEAttribute(modelEClass, MODEL__VERSION);
+ createEAttribute(modelEClass, MODEL__DESCRIPTION);
+ createEAttribute(modelEClass, MODEL__URL);
+ createEReference(modelEClass, MODEL__PREREQUISITES);
+ createEReference(modelEClass, MODEL__ISSUE_MANAGEMENT);
+ createEReference(modelEClass, MODEL__CI_MANAGEMENT);
+ createEAttribute(modelEClass, MODEL__INCEPTION_YEAR);
+ createEReference(modelEClass, MODEL__MAILING_LISTS);
+ createEReference(modelEClass, MODEL__DEVELOPERS);
+ createEReference(modelEClass, MODEL__CONTRIBUTORS);
+ createEReference(modelEClass, MODEL__LICENSES);
+ createEReference(modelEClass, MODEL__SCM);
+ createEReference(modelEClass, MODEL__ORGANIZATION);
+ createEReference(modelEClass, MODEL__BUILD);
+ createEReference(modelEClass, MODEL__PROFILES);
+ createEReference(modelEClass, MODEL__REPOSITORIES);
+ createEReference(modelEClass, MODEL__PLUGIN_REPOSITORIES);
+ createEReference(modelEClass, MODEL__DEPENDENCIES);
+ createEReference(modelEClass, MODEL__REPORTING);
+ createEReference(modelEClass, MODEL__DEPENDENCY_MANAGEMENT);
+ createEReference(modelEClass, MODEL__DISTRIBUTION_MANAGEMENT);
+ createEReference(modelEClass, MODEL__PROPERTIES);
+ createEAttribute(modelEClass, MODEL__MODULES);
+
+ notifierEClass = createEClass(NOTIFIER);
+ createEAttribute(notifierEClass, NOTIFIER__TYPE);
+ createEAttribute(notifierEClass, NOTIFIER__SEND_ON_ERROR);
+ createEAttribute(notifierEClass, NOTIFIER__SEND_ON_FAILURE);
+ createEAttribute(notifierEClass, NOTIFIER__SEND_ON_SUCCESS);
+ createEAttribute(notifierEClass, NOTIFIER__SEND_ON_WARNING);
+ createEAttribute(notifierEClass, NOTIFIER__ADDRESS);
+ createEReference(notifierEClass, NOTIFIER__CONFIGURATION);
+
+ organizationEClass = createEClass(ORGANIZATION);
+ createEAttribute(organizationEClass, ORGANIZATION__NAME);
+ createEAttribute(organizationEClass, ORGANIZATION__URL);
+
+ parentEClass = createEClass(PARENT);
+ createEAttribute(parentEClass, PARENT__ARTIFACT_ID);
+ createEAttribute(parentEClass, PARENT__GROUP_ID);
+ createEAttribute(parentEClass, PARENT__VERSION);
+ createEAttribute(parentEClass, PARENT__RELATIVE_PATH);
+
+ pluginEClass = createEClass(PLUGIN);
+ createEAttribute(pluginEClass, PLUGIN__GROUP_ID);
+ createEAttribute(pluginEClass, PLUGIN__ARTIFACT_ID);
+ createEAttribute(pluginEClass, PLUGIN__VERSION);
+ createEAttribute(pluginEClass, PLUGIN__EXTENSIONS);
+ createEReference(pluginEClass, PLUGIN__EXECUTIONS);
+ createEReference(pluginEClass, PLUGIN__DEPENDENCIES);
+ createEAttribute(pluginEClass, PLUGIN__INHERITED);
+ createEReference(pluginEClass, PLUGIN__CONFIGURATION);
+
+ pluginExecutionEClass = createEClass(PLUGIN_EXECUTION);
+ createEAttribute(pluginExecutionEClass, PLUGIN_EXECUTION__ID);
+ createEAttribute(pluginExecutionEClass, PLUGIN_EXECUTION__PHASE);
+ createEAttribute(pluginExecutionEClass, PLUGIN_EXECUTION__INHERITED);
+ createEAttribute(pluginExecutionEClass, PLUGIN_EXECUTION__GOALS);
+ createEReference(pluginExecutionEClass, PLUGIN_EXECUTION__CONFIGURATION);
+
+ pluginManagementEClass = createEClass(PLUGIN_MANAGEMENT);
+ createEReference(pluginManagementEClass, PLUGIN_MANAGEMENT__PLUGINS);
+
+ prerequisitesEClass = createEClass(PREREQUISITES);
+ createEAttribute(prerequisitesEClass, PREREQUISITES__MAVEN);
+
+ profileEClass = createEClass(PROFILE);
+ createEAttribute(profileEClass, PROFILE__ID);
+ createEReference(profileEClass, PROFILE__ACTIVATION);
+ createEReference(profileEClass, PROFILE__BUILD);
+ createEReference(profileEClass, PROFILE__REPOSITORIES);
+ createEReference(profileEClass, PROFILE__PLUGIN_REPOSITORIES);
+ createEReference(profileEClass, PROFILE__DEPENDENCIES);
+ createEReference(profileEClass, PROFILE__REPORTS);
+ createEReference(profileEClass, PROFILE__DEPENDENCY_MANAGEMENT);
+ createEReference(profileEClass, PROFILE__DISTRIBUTION_MANAGEMENT);
+ createEReference(profileEClass, PROFILE__PROPERTIES);
+ createEAttribute(profileEClass, PROFILE__MODULES);
+ createEReference(profileEClass, PROFILE__REPORTING);
+
+ relocationEClass = createEClass(RELOCATION);
+ createEAttribute(relocationEClass, RELOCATION__GROUP_ID);
+ createEAttribute(relocationEClass, RELOCATION__ARTIFACT_ID);
+ createEAttribute(relocationEClass, RELOCATION__VERSION);
+ createEAttribute(relocationEClass, RELOCATION__MESSAGE);
+
+ reportingEClass = createEClass(REPORTING);
+ createEAttribute(reportingEClass, REPORTING__EXCLUDE_DEFAULTS);
+ createEAttribute(reportingEClass, REPORTING__OUTPUT_DIRECTORY);
+ createEReference(reportingEClass, REPORTING__PLUGINS);
+
+ reportPluginEClass = createEClass(REPORT_PLUGIN);
+ createEAttribute(reportPluginEClass, REPORT_PLUGIN__GROUP_ID);
+ createEAttribute(reportPluginEClass, REPORT_PLUGIN__ARTIFACT_ID);
+ createEAttribute(reportPluginEClass, REPORT_PLUGIN__VERSION);
+ createEAttribute(reportPluginEClass, REPORT_PLUGIN__INHERITED);
+ createEReference(reportPluginEClass, REPORT_PLUGIN__REPORT_SETS);
+ createEReference(reportPluginEClass, REPORT_PLUGIN__CONFIGURATION);
+
+ reportSetEClass = createEClass(REPORT_SET);
+ createEAttribute(reportSetEClass, REPORT_SET__ID);
+ createEAttribute(reportSetEClass, REPORT_SET__INHERITED);
+ createEAttribute(reportSetEClass, REPORT_SET__REPORTS);
+ createEReference(reportSetEClass, REPORT_SET__CONFIGURATION);
+
+ repositoryEClass = createEClass(REPOSITORY);
+ createEReference(repositoryEClass, REPOSITORY__RELEASES);
+ createEReference(repositoryEClass, REPOSITORY__SNAPSHOTS);
+ createEAttribute(repositoryEClass, REPOSITORY__ID);
+ createEAttribute(repositoryEClass, REPOSITORY__NAME);
+ createEAttribute(repositoryEClass, REPOSITORY__URL);
+ createEAttribute(repositoryEClass, REPOSITORY__LAYOUT);
+
+ repositoryPolicyEClass = createEClass(REPOSITORY_POLICY);
+ createEAttribute(repositoryPolicyEClass, REPOSITORY_POLICY__ENABLED);
+ createEAttribute(repositoryPolicyEClass, REPOSITORY_POLICY__UPDATE_POLICY);
+ createEAttribute(repositoryPolicyEClass, REPOSITORY_POLICY__CHECKSUM_POLICY);
+
+ resourceEClass = createEClass(RESOURCE);
+ createEAttribute(resourceEClass, RESOURCE__TARGET_PATH);
+ createEAttribute(resourceEClass, RESOURCE__FILTERING);
+ createEAttribute(resourceEClass, RESOURCE__DIRECTORY);
+ createEAttribute(resourceEClass, RESOURCE__INCLUDES);
+ createEAttribute(resourceEClass, RESOURCE__EXCLUDES);
+
+ scmEClass = createEClass(SCM);
+ createEAttribute(scmEClass, SCM__CONNECTION);
+ createEAttribute(scmEClass, SCM__DEVELOPER_CONNECTION);
+ createEAttribute(scmEClass, SCM__TAG);
+ createEAttribute(scmEClass, SCM__URL);
+
+ siteEClass = createEClass(SITE);
+ createEAttribute(siteEClass, SITE__ID);
+ createEAttribute(siteEClass, SITE__NAME);
+ createEAttribute(siteEClass, SITE__URL);
+
+ propertyElementEClass = createEClass(PROPERTY_ELEMENT);
+ createEAttribute(propertyElementEClass, PROPERTY_ELEMENT__NAME);
+ createEAttribute(propertyElementEClass, PROPERTY_ELEMENT__VALUE);
+
+ configurationEClass = createEClass(CONFIGURATION);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any
+ * invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void initializePackageContents() {
+ if(isInitialized)
+ return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ XMLTypePackage theXMLTypePackage = (XMLTypePackage) EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ buildEClass.getESuperTypes().add(this.getBuildBase());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(activationEClass, Activation.class, "Activation", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getActivation_ActiveByDefault(), theXMLTypePackage.getString(), "activeByDefault", "false", 0, 1,
+ Activation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getActivation_Jdk(), theXMLTypePackage.getString(), "jdk", null, 0, 1, Activation.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getActivation_Os(), this.getActivationOS(), null, "os", null, 0, 1, Activation.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEReference(getActivation_Property(), this.getActivationProperty(), null, "property", null, 0, 1,
+ Activation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getActivation_File(), this.getActivationFile(), null, "file", null, 0, 1, Activation.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(activationFileEClass, ActivationFile.class, "ActivationFile", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getActivationFile_Missing(), theXMLTypePackage.getString(), "missing", null, 0, 1,
+ ActivationFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getActivationFile_Exists(), theXMLTypePackage.getString(), "exists", null, 0, 1,
+ ActivationFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(activationOSEClass, ActivationOS.class, "ActivationOS", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getActivationOS_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, ActivationOS.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getActivationOS_Family(), theXMLTypePackage.getString(), "family", null, 0, 1, ActivationOS.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getActivationOS_Arch(), theXMLTypePackage.getString(), "arch", null, 0, 1, ActivationOS.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getActivationOS_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, ActivationOS.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(activationPropertyEClass, ActivationProperty.class, "ActivationProperty", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getActivationProperty_Name(), theXMLTypePackage.getString(), "name", null, 0, 1,
+ ActivationProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getActivationProperty_Value(), theXMLTypePackage.getString(), "value", null, 0, 1,
+ ActivationProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(buildEClass, Build.class, "Build", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getBuild_SourceDirectory(), theXMLTypePackage.getString(), "sourceDirectory", null, 0, 1,
+ Build.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getBuild_ScriptSourceDirectory(), theXMLTypePackage.getString(), "scriptSourceDirectory", null, 0,
+ 1, Build.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getBuild_TestSourceDirectory(), theXMLTypePackage.getString(), "testSourceDirectory", null, 0, 1,
+ Build.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getBuild_OutputDirectory(), theXMLTypePackage.getString(), "outputDirectory", null, 0, 1,
+ Build.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getBuild_TestOutputDirectory(), theXMLTypePackage.getString(), "testOutputDirectory", null, 0, 1,
+ Build.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEReference(getBuild_Extensions(), this.getExtension(), null, "extensions", null, 0, -1, Build.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(buildBaseEClass, BuildBase.class, "BuildBase", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getBuildBase_DefaultGoal(), theXMLTypePackage.getString(), "defaultGoal", null, 0, 1,
+ BuildBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEReference(getBuildBase_Resources(), this.getResource(), null, "resources", null, 0, -1, BuildBase.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getBuildBase_TestResources(), this.getResource(), null, "testResources", null, 0, -1,
+ BuildBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE,
+ !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getBuildBase_Directory(), theXMLTypePackage.getString(), "directory", null, 0, 1, BuildBase.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getBuildBase_FinalName(), theXMLTypePackage.getString(), "finalName", null, 0, 1, BuildBase.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getBuildBase_PluginManagement(), this.getPluginManagement(), null, "pluginManagement", null, 0, 1,
+ BuildBase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getBuildBase_Plugins(), this.getPlugin(), null, "plugins", null, 0, -1, BuildBase.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getBuildBase_Filters(), theXMLTypePackage.getString(), "filters", null, 0, -1, BuildBase.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(ciManagementEClass, CiManagement.class, "CiManagement", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getCiManagement_System(), theXMLTypePackage.getString(), "system", null, 0, 1, CiManagement.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCiManagement_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, CiManagement.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getCiManagement_Notifiers(), this.getNotifier(), null, "notifiers", null, 0, -1, CiManagement.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(contributorEClass, Contributor.class, "Contributor", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getContributor_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Contributor.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getContributor_Email(), theXMLTypePackage.getString(), "email", null, 0, 1, Contributor.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getContributor_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, Contributor.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getContributor_Organization(), theXMLTypePackage.getString(), "organization", null, 0, 1,
+ Contributor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getContributor_OrganizationUrl(), theXMLTypePackage.getString(), "organizationUrl", null, 0, 1,
+ Contributor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getContributor_Timezone(), theXMLTypePackage.getString(), "timezone", null, 0, 1, Contributor.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getContributor_Properties(), this.getPropertyElement(), null, "properties", null, 0, -1,
+ Contributor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getContributor_Roles(), theXMLTypePackage.getString(), "roles", null, 0, -1, Contributor.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(dependencyEClass, Dependency.class, "Dependency", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDependency_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, Dependency.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDependency_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1,
+ Dependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getDependency_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, Dependency.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDependency_Type(), theXMLTypePackage.getString(), "type", null, 0, 1, Dependency.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDependency_Classifier(), theXMLTypePackage.getString(), "classifier", null, 0, 1,
+ Dependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getDependency_Scope(), theXMLTypePackage.getString(), "scope", null, 0, 1, Dependency.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDependency_SystemPath(), theXMLTypePackage.getString(), "systemPath", null, 0, 1,
+ Dependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEReference(getDependency_Exclusions(), this.getExclusion(), null, "exclusions", null, 0, -1, Dependency.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDependency_Optional(), theXMLTypePackage.getString(), "optional", "false", 0, 1,
+ Dependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(dependencyManagementEClass, DependencyManagement.class, "DependencyManagement", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getDependencyManagement_Dependencies(), this.getDependency(), null, "dependencies", null, 0, -1,
+ DependencyManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(deploymentRepositoryEClass, DeploymentRepository.class, "DeploymentRepository", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDeploymentRepository_UniqueVersion(), theXMLTypePackage.getString(), "uniqueVersion", "true", 0,
+ 1, DeploymentRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDeploymentRepository_Id(), theXMLTypePackage.getString(), "id", null, 0, 1,
+ DeploymentRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDeploymentRepository_Name(), theXMLTypePackage.getString(), "name", null, 0, 1,
+ DeploymentRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDeploymentRepository_Url(), theXMLTypePackage.getString(), "url", null, 0, 1,
+ DeploymentRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDeploymentRepository_Layout(), theXMLTypePackage.getString(), "layout", null, 0, 1,
+ DeploymentRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(developerEClass, Developer.class, "Developer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDeveloper_Id(), theXMLTypePackage.getString(), "id", null, 0, 1, Developer.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDeveloper_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Developer.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDeveloper_Email(), theXMLTypePackage.getString(), "email", null, 0, 1, Developer.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDeveloper_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, Developer.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDeveloper_Organization(), theXMLTypePackage.getString(), "organization", null, 0, 1,
+ Developer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getDeveloper_OrganizationUrl(), theXMLTypePackage.getString(), "organizationUrl", null, 0, 1,
+ Developer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getDeveloper_Timezone(), theXMLTypePackage.getString(), "timezone", null, 0, 1, Developer.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDeveloper_Properties(), this.getPropertyElement(), null, "properties", null, 0, -1,
+ Developer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE,
+ !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDeveloper_Roles(), theXMLTypePackage.getString(), "roles", null, 0, -1, Developer.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(distributionManagementEClass, DistributionManagement.class, "DistributionManagement", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getDistributionManagement_Repository(), this.getDeploymentRepository(), null, "repository", null, 0,
+ 1, DistributionManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDistributionManagement_SnapshotRepository(), this.getDeploymentRepository(), null,
+ "snapshotRepository", null, 0, 1, DistributionManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
+ IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDistributionManagement_Site(), this.getSite(), null, "site", null, 0, 1,
+ DistributionManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDistributionManagement_DownloadUrl(), theXMLTypePackage.getString(), "downloadUrl", null, 0, 1,
+ DistributionManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getDistributionManagement_Relocation(), this.getRelocation(), null, "relocation", null, 0, 1,
+ DistributionManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDistributionManagement_Status(), theXMLTypePackage.getString(), "status", null, 0, 1,
+ DistributionManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap",
+ null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null,
+ "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
+ !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_Project(), this.getModel(), null, "project", null, 0, -2, null, IS_TRANSIENT,
+ IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(exclusionEClass, Exclusion.class, "Exclusion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getExclusion_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1, Exclusion.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getExclusion_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, Exclusion.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(extensionEClass, Extension.class, "Extension", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getExtension_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, Extension.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getExtension_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1, Extension.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getExtension_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, Extension.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(issueManagementEClass, IssueManagement.class, "IssueManagement", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getIssueManagement_System(), theXMLTypePackage.getString(), "system", null, 0, 1,
+ IssueManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getIssueManagement_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, IssueManagement.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(licenseEClass, License.class, "License", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getLicense_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, License.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLicense_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, License.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLicense_Distribution(), theXMLTypePackage.getString(), "distribution", null, 0, 1, License.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLicense_Comments(), theXMLTypePackage.getString(), "comments", null, 0, 1, License.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(mailingListEClass, MailingList.class, "MailingList", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getMailingList_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, MailingList.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getMailingList_Subscribe(), theXMLTypePackage.getString(), "subscribe", null, 0, 1,
+ MailingList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getMailingList_Unsubscribe(), theXMLTypePackage.getString(), "unsubscribe", null, 0, 1,
+ MailingList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getMailingList_Post(), theXMLTypePackage.getString(), "post", null, 0, 1, MailingList.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getMailingList_Archive(), theXMLTypePackage.getString(), "archive", null, 0, 1, MailingList.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getMailingList_OtherArchives(), ecorePackage.getEString(), "otherArchives", null, 0, -1,
+ MailingList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(modelEClass, Model.class, "Model", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getModel_Parent(), this.getParent(), null, "parent", null, 0, 1, Model.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getModel_ModelVersion(), theXMLTypePackage.getString(), "modelVersion", null, 0, 1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getModel_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getModel_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getModel_Packaging(), theXMLTypePackage.getString(), "packaging", null, 0, 1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getModel_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Model.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getModel_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getModel_Description(), theXMLTypePackage.getString(), "description", null, 0, 1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getModel_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, Model.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getModel_Prerequisites(), this.getPrerequisites(), null, "prerequisites", null, 0, 1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getModel_IssueManagement(), this.getIssueManagement(), null, "issueManagement", null, 0, 1,
+ Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getModel_CiManagement(), this.getCiManagement(), null, "ciManagement", null, 0, 1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getModel_InceptionYear(), theXMLTypePackage.getString(), "inceptionYear", null, 0, 1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getModel_MailingLists(), this.getMailingList(), null, "mailingLists", null, 0, -1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getModel_Developers(), this.getDeveloper(), null, "developers", null, 0, -1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getModel_Contributors(), this.getContributor(), null, "contributors", null, 0, -1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getModel_Licenses(), this.getLicense(), null, "licenses", null, 0, -1, Model.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEReference(getModel_Scm(), this.getScm(), null, "scm", null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE,
+ IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getModel_Organization(), this.getOrganization(), null, "organization", null, 0, 1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getModel_Build(), this.getBuild(), null, "build", null, 0, 1, Model.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEReference(getModel_Profiles(), this.getProfile(), null, "profiles", null, 0, -1, Model.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEReference(getModel_Repositories(), this.getRepository(), null, "repositories", null, 0, -1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getModel_PluginRepositories(), this.getRepository(), null, "pluginRepositories", null, 0, -1,
+ Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE,
+ !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getModel_Dependencies(), this.getDependency(), null, "dependencies", null, 0, -1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getModel_Reporting(), this.getReporting(), null, "reporting", null, 0, 1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getModel_DependencyManagement(), this.getDependencyManagement(), null, "dependencyManagement", null,
+ 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getModel_DistributionManagement(), this.getDistributionManagement(), null, "distributionManagement",
+ null, 0, 1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getModel_Properties(), this.getPropertyElement(), null, "properties", null, 0, -1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getModel_Modules(), theXMLTypePackage.getString(), "modules", null, 0, -1, Model.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(notifierEClass, Notifier.class, "Notifier", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getNotifier_Type(), theXMLTypePackage.getString(), "type", null, 0, 1, Notifier.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNotifier_SendOnError(), theXMLTypePackage.getString(), "sendOnError", "true", 0, 1,
+ Notifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getNotifier_SendOnFailure(), theXMLTypePackage.getString(), "sendOnFailure", "true", 0, 1,
+ Notifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getNotifier_SendOnSuccess(), theXMLTypePackage.getString(), "sendOnSuccess", "true", 0, 1,
+ Notifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getNotifier_SendOnWarning(), theXMLTypePackage.getString(), "sendOnWarning", "true", 0, 1,
+ Notifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getNotifier_Address(), theXMLTypePackage.getString(), "address", null, 0, 1, Notifier.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getNotifier_Configuration(), this.getPropertyElement(), null, "configuration", null, 0, -1,
+ Notifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE,
+ !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(organizationEClass, Organization.class, "Organization", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getOrganization_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Organization.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOrganization_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, Organization.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(parentEClass, Parent.class, "Parent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getParent_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1, Parent.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getParent_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, Parent.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getParent_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, Parent.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getParent_RelativePath(), theXMLTypePackage.getString(), "relativePath", null, 0, 1, Parent.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(pluginEClass, Plugin.class, "Plugin", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getPlugin_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, Plugin.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPlugin_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1, Plugin.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPlugin_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, Plugin.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPlugin_Extensions(), theXMLTypePackage.getString(), "extensions", "false", 0, 1, Plugin.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getPlugin_Executions(), this.getPluginExecution(), null, "executions", null, 0, -1, Plugin.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getPlugin_Dependencies(), this.getDependency(), null, "dependencies", null, 0, -1, Plugin.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPlugin_Inherited(), theXMLTypePackage.getString(), "inherited", null, 0, 1, Plugin.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getPlugin_Configuration(), this.getConfiguration(), null, "configuration", null, 0, 1, Plugin.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(pluginExecutionEClass, PluginExecution.class, "PluginExecution", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getPluginExecution_Id(), theXMLTypePackage.getString(), "id", null, 0, 1, PluginExecution.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPluginExecution_Phase(), theXMLTypePackage.getString(), "phase", null, 0, 1,
+ PluginExecution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPluginExecution_Inherited(), theXMLTypePackage.getString(), "inherited", null, 0, 1,
+ PluginExecution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPluginExecution_Goals(), theXMLTypePackage.getString(), "goals", null, 0, -1,
+ PluginExecution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getPluginExecution_Configuration(), this.getConfiguration(), null, "configuration", null, 0, 1,
+ PluginExecution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(pluginManagementEClass, PluginManagement.class, "PluginManagement", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getPluginManagement_Plugins(), this.getPlugin(), null, "plugins", null, 0, -1,
+ PluginManagement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(prerequisitesEClass, Prerequisites.class, "Prerequisites", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getPrerequisites_Maven(), theXMLTypePackage.getString(), "maven", null, 0, 1, Prerequisites.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(profileEClass, Profile.class, "Profile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getProfile_Id(), theXMLTypePackage.getString(), "id", null, 0, 1, Profile.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getProfile_Activation(), this.getActivation(), null, "activation", null, 0, 1, Profile.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getProfile_Build(), this.getBuildBase(), null, "build", null, 0, 1, Profile.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEReference(getProfile_Repositories(), this.getRepository(), null, "repositories", null, 0, -1, Profile.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getProfile_PluginRepositories(), this.getRepository(), null, "pluginRepositories", null, 0, -1,
+ Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE,
+ !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getProfile_Dependencies(), this.getDependency(), null, "dependencies", null, 0, -1, Profile.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getProfile_Reports(), this.getReportPlugin(), null, "reports", null, 0, -1, Profile.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getProfile_DependencyManagement(), this.getDependencyManagement(), null, "dependencyManagement",
+ null, 0, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getProfile_DistributionManagement(), this.getDistributionManagement(), null,
+ "distributionManagement", null, 0, 1, Profile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
+ !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getProfile_Properties(), this.getPropertyElement(), null, "properties", null, 0, -1, Profile.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getProfile_Modules(), theXMLTypePackage.getString(), "modules", null, 0, -1, Profile.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getProfile_Reporting(), this.getReporting(), null, "reporting", null, 0, 1, Profile.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(relocationEClass, Relocation.class, "Relocation", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getRelocation_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, Relocation.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRelocation_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1,
+ Relocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getRelocation_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, Relocation.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRelocation_Message(), theXMLTypePackage.getString(), "message", null, 0, 1, Relocation.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(reportingEClass, Reporting.class, "Reporting", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getReporting_ExcludeDefaults(), theXMLTypePackage.getString(), "excludeDefaults", "false", 0, 1,
+ Reporting.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getReporting_OutputDirectory(), theXMLTypePackage.getString(), "outputDirectory", null, 0, 1,
+ Reporting.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEReference(getReporting_Plugins(), this.getReportPlugin(), null, "plugins", null, 0, -1, Reporting.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(reportPluginEClass, ReportPlugin.class, "ReportPlugin", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getReportPlugin_GroupId(), theXMLTypePackage.getString(), "groupId", null, 0, 1, ReportPlugin.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getReportPlugin_ArtifactId(), theXMLTypePackage.getString(), "artifactId", null, 0, 1,
+ ReportPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getReportPlugin_Version(), theXMLTypePackage.getString(), "version", null, 0, 1, ReportPlugin.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getReportPlugin_Inherited(), theXMLTypePackage.getString(), "inherited", null, 0, 1,
+ ReportPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEReference(getReportPlugin_ReportSets(), this.getReportSet(), null, "reportSets", null, 0, -1,
+ ReportPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getReportPlugin_Configuration(), this.getConfiguration(), null, "configuration", null, 0, 1,
+ ReportPlugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(reportSetEClass, ReportSet.class, "ReportSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getReportSet_Id(), theXMLTypePackage.getString(), "id", null, 0, 1, ReportSet.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getReportSet_Inherited(), theXMLTypePackage.getString(), "inherited", null, 0, 1, ReportSet.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getReportSet_Reports(), theXMLTypePackage.getString(), "reports", null, 0, -1, ReportSet.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getReportSet_Configuration(), this.getConfiguration(), null, "configuration", null, 0, 1,
+ ReportSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(repositoryEClass, Repository.class, "Repository", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRepository_Releases(), this.getRepositoryPolicy(), null, "releases", null, 0, 1,
+ Repository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getRepository_Snapshots(), this.getRepositoryPolicy(), null, "snapshots", null, 0, 1,
+ Repository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRepository_Id(), theXMLTypePackage.getString(), "id", null, 0, 1, Repository.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRepository_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Repository.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRepository_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, Repository.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRepository_Layout(), theXMLTypePackage.getString(), "layout", null, 0, 1, Repository.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(repositoryPolicyEClass, RepositoryPolicy.class, "RepositoryPolicy", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getRepositoryPolicy_Enabled(), theXMLTypePackage.getString(), "enabled", "true", 0, 1,
+ RepositoryPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRepositoryPolicy_UpdatePolicy(), theXMLTypePackage.getString(), "updatePolicy", null, 0, 1,
+ RepositoryPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRepositoryPolicy_ChecksumPolicy(), theXMLTypePackage.getString(), "checksumPolicy", null, 0, 1,
+ RepositoryPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(resourceEClass, Resource.class, "Resource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getResource_TargetPath(), theXMLTypePackage.getString(), "targetPath", null, 0, 1, Resource.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getResource_Filtering(), theXMLTypePackage.getString(), "filtering", "false", 0, 1, Resource.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getResource_Directory(), theXMLTypePackage.getString(), "directory", null, 0, 1, Resource.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getResource_Includes(), theXMLTypePackage.getString(), "includes", null, 0, -1, Resource.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getResource_Excludes(), theXMLTypePackage.getString(), "excludes", null, 0, -1, Resource.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(scmEClass, Scm.class, "Scm", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getScm_Connection(), theXMLTypePackage.getString(), "connection", null, 0, 1, Scm.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getScm_DeveloperConnection(), theXMLTypePackage.getString(), "developerConnection", null, 0, 1,
+ Scm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getScm_Tag(), theXMLTypePackage.getString(), "tag", null, 0, 1, Scm.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getScm_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, Scm.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(siteEClass, Site.class, "Site", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getSite_Id(), theXMLTypePackage.getString(), "id", null, 0, 1, Site.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSite_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Site.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSite_Url(), theXMLTypePackage.getString(), "url", null, 0, 1, Site.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(propertyElementEClass, PropertyElement.class, "PropertyElement", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getPropertyElement_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, PropertyElement.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPropertyElement_Value(), theXMLTypePackage.getString(), "value", null, 0, 1,
+ PropertyElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(configurationEClass, Configuration.class, "Configuration", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+
+ // Create resource
+ createResource(eNS_URI);
+
+ // Create annotations
+ // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
+ createExtendedMetaDataAnnotations();
+ }
+
+ /**
+ * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void createExtendedMetaDataAnnotations() {
+ String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
+ addAnnotation(activationEClass, source, new String[] {"name", "Activation", "kind", "elementOnly"});
+ addAnnotation(getActivation_ActiveByDefault(), source, new String[] {"kind", "element", "name", "activeByDefault",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getActivation_Jdk(), source, new String[] {"kind", "element", "name", "jdk", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getActivation_Os(), source, new String[] {"kind", "element", "name", "os", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getActivation_Property(), source, new String[] {"kind", "element", "name", "property", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getActivation_File(), source, new String[] {"kind", "element", "name", "file", "namespace",
+ "##targetNamespace"});
+ addAnnotation(activationFileEClass, source, new String[] {"name", "ActivationFile", "kind", "elementOnly"});
+ addAnnotation(getActivationFile_Missing(), source, new String[] {"kind", "element", "name", "missing", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getActivationFile_Exists(), source, new String[] {"kind", "element", "name", "exists", "namespace",
+ "##targetNamespace"});
+ addAnnotation(activationOSEClass, source, new String[] {"name", "ActivationOS", "kind", "elementOnly"});
+ addAnnotation(getActivationOS_Name(), source, new String[] {"kind", "element", "name", "name", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getActivationOS_Family(), source, new String[] {"kind", "element", "name", "family", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getActivationOS_Arch(), source, new String[] {"kind", "element", "name", "arch", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getActivationOS_Version(), source, new String[] {"kind", "element", "name", "version", "namespace",
+ "##targetNamespace"});
+ addAnnotation(activationPropertyEClass, source, new String[] {"name", "ActivationProperty", "kind", "elementOnly"});
+ addAnnotation(getActivationProperty_Name(), source, new String[] {"kind", "element", "name", "name", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getActivationProperty_Value(), source, new String[] {"kind", "element", "name", "value", "namespace",
+ "##targetNamespace"});
+ addAnnotation(buildEClass, source, new String[] {"name", "Build", "kind", "elementOnly"});
+ addAnnotation(getBuild_SourceDirectory(), source, new String[] {"kind", "element", "name", "sourceDirectory",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getBuild_ScriptSourceDirectory(), source, new String[] {"kind", "element", "name",
+ "scriptSourceDirectory", "namespace", "##targetNamespace"});
+ addAnnotation(getBuild_TestSourceDirectory(), source, new String[] {"kind", "element", "name",
+ "testSourceDirectory", "namespace", "##targetNamespace"});
+ addAnnotation(getBuild_OutputDirectory(), source, new String[] {"kind", "element", "name", "outputDirectory",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getBuild_TestOutputDirectory(), source, new String[] {"kind", "element", "name",
+ "testOutputDirectory", "namespace", "##targetNamespace"});
+ addAnnotation(getBuild_Extensions(), source, new String[] {"kind", "element", "name", "extensions", "namespace",
+ "##targetNamespace"});
+ addAnnotation(buildBaseEClass, source, new String[] {"name", "BuildBase", "kind", "elementOnly"});
+ addAnnotation(getBuildBase_DefaultGoal(), source, new String[] {"kind", "element", "name", "defaultGoal",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getBuildBase_Resources(), source, new String[] {"kind", "element", "name", "resources", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getBuildBase_TestResources(), source, new String[] {"kind", "element", "name", "testResources",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getBuildBase_Directory(), source, new String[] {"kind", "element", "name", "directory", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getBuildBase_FinalName(), source, new String[] {"kind", "element", "name", "finalName", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getBuildBase_PluginManagement(), source, new String[] {"kind", "element", "name", "pluginManagement",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getBuildBase_Plugins(), source, new String[] {"kind", "element", "name", "plugins", "namespace",
+ "##targetNamespace"});
+ addAnnotation(ciManagementEClass, source, new String[] {"name", "CiManagement", "kind", "elementOnly"});
+ addAnnotation(getCiManagement_System(), source, new String[] {"kind", "element", "name", "system", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getCiManagement_Url(), source, new String[] {"kind", "element", "name", "url", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getCiManagement_Notifiers(), source, new String[] {"kind", "element", "name", "notifiers",
+ "namespace", "##targetNamespace"});
+ addAnnotation(contributorEClass, source, new String[] {"name", "Contributor", "kind", "elementOnly"});
+ addAnnotation(getContributor_Name(), source, new String[] {"kind", "element", "name", "name", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getContributor_Email(), source, new String[] {"kind", "element", "name", "email", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getContributor_Url(), source, new String[] {"kind", "element", "name", "url", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getContributor_Organization(), source, new String[] {"kind", "element", "name", "organization",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getContributor_OrganizationUrl(), source, new String[] {"kind", "element", "name", "organizationUrl",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getContributor_Timezone(), source, new String[] {"kind", "element", "name", "timezone", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getContributor_Properties(), source, new String[] {"kind", "element", "name", "properties",
+ "namespace", "##targetNamespace"});
+ addAnnotation(dependencyEClass, source, new String[] {"name", "Dependency", "kind", "elementOnly"});
+ addAnnotation(getDependency_GroupId(), source, new String[] {"kind", "element", "name", "groupId", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getDependency_ArtifactId(), source, new String[] {"kind", "element", "name", "artifactId",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getDependency_Version(), source, new String[] {"kind", "element", "name", "version", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getDependency_Type(), source, new String[] {"kind", "element", "name", "type", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getDependency_Classifier(), source, new String[] {"kind", "element", "name", "classifier",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getDependency_Scope(), source, new String[] {"kind", "element", "name", "scope", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getDependency_SystemPath(), source, new String[] {"kind", "element", "name", "systemPath",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getDependency_Exclusions(), source, new String[] {"kind", "element", "name", "exclusions",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getDependency_Optional(), source, new String[] {"kind", "element", "name", "optional", "namespace",
+ "##targetNamespace"});
+ addAnnotation(dependencyManagementEClass, source, new String[] {"name", "DependencyManagement", "kind",
+ "elementOnly"});
+ addAnnotation(getDependencyManagement_Dependencies(), source, new String[] {"kind", "element", "name",
+ "dependencies", "namespace", "##targetNamespace"});
+ addAnnotation(deploymentRepositoryEClass, source, new String[] {"name", "DeploymentRepository", "kind",
+ "elementOnly"});
+ addAnnotation(getDeploymentRepository_UniqueVersion(), source, new String[] {"kind", "element", "name",
+ "uniqueVersion", "namespace", "##targetNamespace"});
+ addAnnotation(getDeploymentRepository_Id(), source, new String[] {"kind", "element", "name", "id", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getDeploymentRepository_Name(), source, new String[] {"kind", "element", "name", "name", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getDeploymentRepository_Url(), source, new String[] {"kind", "element", "name", "url", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getDeploymentRepository_Layout(), source, new String[] {"kind", "element", "name", "layout",
+ "namespace", "##targetNamespace"});
+ addAnnotation(developerEClass, source, new String[] {"name", "Developer", "kind", "elementOnly"});
+ addAnnotation(getDeveloper_Id(), source, new String[] {"kind", "element", "name", "id", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getDeveloper_Name(), source, new String[] {"kind", "element", "name", "name", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getDeveloper_Email(), source, new String[] {"kind", "element", "name", "email", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getDeveloper_Url(), source, new String[] {"kind", "element", "name", "url", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getDeveloper_Organization(), source, new String[] {"kind", "element", "name", "organization",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getDeveloper_OrganizationUrl(), source, new String[] {"kind", "element", "name", "organizationUrl",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getDeveloper_Timezone(), source, new String[] {"kind", "element", "name", "timezone", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getDeveloper_Properties(), source, new String[] {"kind", "element", "name", "properties",
+ "namespace", "##targetNamespace"});
+ addAnnotation(distributionManagementEClass, source, new String[] {"name", "DistributionManagement", "kind",
+ "elementOnly"});
+ addAnnotation(getDistributionManagement_Repository(), source, new String[] {"kind", "element", "name",
+ "repository", "namespace", "##targetNamespace"});
+ addAnnotation(getDistributionManagement_SnapshotRepository(), source, new String[] {"kind", "element", "name",
+ "snapshotRepository", "namespace", "##targetNamespace"});
+ addAnnotation(getDistributionManagement_Site(), source, new String[] {"kind", "element", "name", "site",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getDistributionManagement_DownloadUrl(), source, new String[] {"kind", "element", "name",
+ "downloadUrl", "namespace", "##targetNamespace"});
+ addAnnotation(getDistributionManagement_Relocation(), source, new String[] {"kind", "element", "name",
+ "relocation", "namespace", "##targetNamespace"});
+ addAnnotation(getDistributionManagement_Status(), source, new String[] {"kind", "element", "name", "status",
+ "namespace", "##targetNamespace"});
+ addAnnotation(documentRootEClass, source, new String[] {"name", "", "kind", "mixed"});
+ addAnnotation(getDocumentRoot_Mixed(), source, new String[] {"kind", "elementWildcard", "name", ":mixed"});
+ addAnnotation(getDocumentRoot_XMLNSPrefixMap(), source, new String[] {"kind", "attribute", "name", "xmlns:prefix"});
+ addAnnotation(getDocumentRoot_XSISchemaLocation(), source, new String[] {"kind", "attribute", "name",
+ "xsi:schemaLocation"});
+ addAnnotation(getDocumentRoot_Project(), source, new String[] {"kind", "element", "name", "project", "namespace",
+ "##targetNamespace"});
+ addAnnotation(exclusionEClass, source, new String[] {"name", "Exclusion", "kind", "elementOnly"});
+ addAnnotation(getExclusion_ArtifactId(), source, new String[] {"kind", "element", "name", "artifactId",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getExclusion_GroupId(), source, new String[] {"kind", "element", "name", "groupId", "namespace",
+ "##targetNamespace"});
+ addAnnotation(extensionEClass, source, new String[] {"name", "Extension", "kind", "elementOnly"});
+ addAnnotation(getExtension_GroupId(), source, new String[] {"kind", "element", "name", "groupId", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getExtension_ArtifactId(), source, new String[] {"kind", "element", "name", "artifactId",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getExtension_Version(), source, new String[] {"kind", "element", "name", "version", "namespace",
+ "##targetNamespace"});
+ addAnnotation(issueManagementEClass, source, new String[] {"name", "IssueManagement", "kind", "elementOnly"});
+ addAnnotation(getIssueManagement_System(), source, new String[] {"kind", "element", "name", "system", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getIssueManagement_Url(), source, new String[] {"kind", "element", "name", "url", "namespace",
+ "##targetNamespace"});
+ addAnnotation(licenseEClass, source, new String[] {"name", "License", "kind", "elementOnly"});
+ addAnnotation(getLicense_Name(), source, new String[] {"kind", "element", "name", "name", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getLicense_Url(), source, new String[] {"kind", "element", "name", "url", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getLicense_Distribution(), source, new String[] {"kind", "element", "name", "distribution",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getLicense_Comments(), source, new String[] {"kind", "element", "name", "comments", "namespace",
+ "##targetNamespace"});
+ addAnnotation(mailingListEClass, source, new String[] {"name", "MailingList", "kind", "elementOnly"});
+ addAnnotation(getMailingList_Name(), source, new String[] {"kind", "element", "name", "name", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getMailingList_Subscribe(), source, new String[] {"kind", "element", "name", "subscribe",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getMailingList_Unsubscribe(), source, new String[] {"kind", "element", "name", "unsubscribe",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getMailingList_Post(), source, new String[] {"kind", "element", "name", "post", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getMailingList_Archive(), source, new String[] {"kind", "element", "name", "archive", "namespace",
+ "##targetNamespace"});
+ addAnnotation(modelEClass, source, new String[] {"name", "Model", "kind", "elementOnly"});
+ addAnnotation(getModel_Parent(), source, new String[] {"kind", "element", "name", "parent", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getModel_ModelVersion(), source, new String[] {"kind", "element", "name", "modelVersion",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getModel_GroupId(), source, new String[] {"kind", "element", "name", "groupId", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getModel_ArtifactId(), source, new String[] {"kind", "element", "name", "artifactId", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getModel_Packaging(), source, new String[] {"kind", "element", "name", "packaging", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getModel_Name(), source, new String[] {"kind", "element", "name", "name", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getModel_Version(), source, new String[] {"kind", "element", "name", "version", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getModel_Description(), source, new String[] {"kind", "element", "name", "description", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getModel_Url(), source, new String[] {"kind", "element", "name", "url", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getModel_Prerequisites(), source, new String[] {"kind", "element", "name", "prerequisites",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getModel_IssueManagement(), source, new String[] {"kind", "element", "name", "issueManagement",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getModel_CiManagement(), source, new String[] {"kind", "element", "name", "ciManagement",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getModel_InceptionYear(), source, new String[] {"kind", "element", "name", "inceptionYear",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getModel_MailingLists(), source, new String[] {"kind", "element", "name", "mailingLists",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getModel_Developers(), source, new String[] {"kind", "element", "name", "developers", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getModel_Contributors(), source, new String[] {"kind", "element", "name", "contributors",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getModel_Licenses(), source, new String[] {"kind", "element", "name", "licenses", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getModel_Scm(), source, new String[] {"kind", "element", "name", "scm", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getModel_Organization(), source, new String[] {"kind", "element", "name", "organization",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getModel_Build(), source, new String[] {"kind", "element", "name", "build", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getModel_Profiles(), source, new String[] {"kind", "element", "name", "profiles", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getModel_Repositories(), source, new String[] {"kind", "element", "name", "repositories",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getModel_PluginRepositories(), source, new String[] {"kind", "element", "name", "pluginRepositories",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getModel_Dependencies(), source, new String[] {"kind", "element", "name", "dependencies",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getModel_Reporting(), source, new String[] {"kind", "element", "name", "reporting", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getModel_DependencyManagement(), source, new String[] {"kind", "element", "name",
+ "dependencyManagement", "namespace", "##targetNamespace"});
+ addAnnotation(getModel_DistributionManagement(), source, new String[] {"kind", "element", "name",
+ "distributionManagement", "namespace", "##targetNamespace"});
+ addAnnotation(getModel_Properties(), source, new String[] {"kind", "element", "name", "properties", "namespace",
+ "##targetNamespace"});
+ addAnnotation(notifierEClass, source, new String[] {"name", "Notifier", "kind", "elementOnly"});
+ addAnnotation(getNotifier_Type(), source, new String[] {"kind", "element", "name", "type", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getNotifier_SendOnError(), source, new String[] {"kind", "element", "name", "sendOnError",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getNotifier_SendOnFailure(), source, new String[] {"kind", "element", "name", "sendOnFailure",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getNotifier_SendOnSuccess(), source, new String[] {"kind", "element", "name", "sendOnSuccess",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getNotifier_SendOnWarning(), source, new String[] {"kind", "element", "name", "sendOnWarning",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getNotifier_Address(), source, new String[] {"kind", "element", "name", "address", "namespace",
+ "##targetNamespace"});
+ addAnnotation(organizationEClass, source, new String[] {"name", "Organization", "kind", "elementOnly"});
+ addAnnotation(getOrganization_Name(), source, new String[] {"kind", "element", "name", "name", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getOrganization_Url(), source, new String[] {"kind", "element", "name", "url", "namespace",
+ "##targetNamespace"});
+ addAnnotation(parentEClass, source, new String[] {"name", "Parent", "kind", "elementOnly"});
+ addAnnotation(getParent_ArtifactId(), source, new String[] {"kind", "element", "name", "artifactId", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getParent_GroupId(), source, new String[] {"kind", "element", "name", "groupId", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getParent_Version(), source, new String[] {"kind", "element", "name", "version", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getParent_RelativePath(), source, new String[] {"kind", "element", "name", "relativePath",
+ "namespace", "##targetNamespace"});
+ addAnnotation(pluginEClass, source, new String[] {"name", "Plugin", "kind", "elementOnly"});
+ addAnnotation(getPlugin_GroupId(), source, new String[] {"kind", "element", "name", "groupId", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getPlugin_ArtifactId(), source, new String[] {"kind", "element", "name", "artifactId", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getPlugin_Version(), source, new String[] {"kind", "element", "name", "version", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getPlugin_Extensions(), source, new String[] {"kind", "element", "name", "extensions", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getPlugin_Executions(), source, new String[] {"kind", "element", "name", "executions", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getPlugin_Dependencies(), source, new String[] {"kind", "element", "name", "dependencies",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getPlugin_Inherited(), source, new String[] {"kind", "element", "name", "inherited", "namespace",
+ "##targetNamespace"});
+ addAnnotation(pluginExecutionEClass, source, new String[] {"name", "PluginExecution", "kind", "elementOnly"});
+ addAnnotation(getPluginExecution_Id(), source, new String[] {"kind", "element", "name", "id", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getPluginExecution_Phase(), source, new String[] {"kind", "element", "name", "phase", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getPluginExecution_Inherited(), source, new String[] {"kind", "element", "name", "inherited",
+ "namespace", "##targetNamespace"});
+ addAnnotation(pluginManagementEClass, source, new String[] {"name", "PluginManagement", "kind", "elementOnly"});
+ addAnnotation(getPluginManagement_Plugins(), source, new String[] {"kind", "element", "name", "plugins",
+ "namespace", "##targetNamespace"});
+ addAnnotation(prerequisitesEClass, source, new String[] {"name", "Prerequisites", "kind", "elementOnly"});
+ addAnnotation(getPrerequisites_Maven(), source, new String[] {"kind", "element", "name", "maven", "namespace",
+ "##targetNamespace"});
+ addAnnotation(profileEClass, source, new String[] {"name", "Profile", "kind", "elementOnly"});
+ addAnnotation(getProfile_Id(), source, new String[] {"kind", "element", "name", "id", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getProfile_Activation(), source, new String[] {"kind", "element", "name", "activation", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getProfile_Build(), source, new String[] {"kind", "element", "name", "build", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getProfile_Repositories(), source, new String[] {"kind", "element", "name", "repositories",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getProfile_PluginRepositories(), source, new String[] {"kind", "element", "name",
+ "pluginRepositories", "namespace", "##targetNamespace"});
+ addAnnotation(getProfile_Dependencies(), source, new String[] {"kind", "element", "name", "dependencies",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getProfile_Reports(), source, new String[] {"kind", "element", "name", "reports", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getProfile_DependencyManagement(), source, new String[] {"kind", "element", "name",
+ "dependencyManagement", "namespace", "##targetNamespace"});
+ addAnnotation(getProfile_DistributionManagement(), source, new String[] {"kind", "element", "name",
+ "distributionManagement", "namespace", "##targetNamespace"});
+ addAnnotation(getProfile_Properties(), source, new String[] {"kind", "element", "name", "properties", "namespace",
+ "##targetNamespace"});
+ addAnnotation(relocationEClass, source, new String[] {"name", "Relocation", "kind", "elementOnly"});
+ addAnnotation(getRelocation_GroupId(), source, new String[] {"kind", "element", "name", "groupId", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getRelocation_ArtifactId(), source, new String[] {"kind", "element", "name", "artifactId",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getRelocation_Version(), source, new String[] {"kind", "element", "name", "version", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getRelocation_Message(), source, new String[] {"kind", "element", "name", "message", "namespace",
+ "##targetNamespace"});
+ addAnnotation(reportingEClass, source, new String[] {"name", "Reporting", "kind", "elementOnly"});
+ addAnnotation(getReporting_ExcludeDefaults(), source, new String[] {"kind", "element", "name", "excludeDefaults",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getReporting_OutputDirectory(), source, new String[] {"kind", "element", "name", "outputDirectory",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getReporting_Plugins(), source, new String[] {"kind", "element", "name", "plugins", "namespace",
+ "##targetNamespace"});
+ addAnnotation(reportPluginEClass, source, new String[] {"name", "ReportPlugin", "kind", "elementOnly"});
+ addAnnotation(getReportPlugin_GroupId(), source, new String[] {"kind", "element", "name", "groupId", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getReportPlugin_ArtifactId(), source, new String[] {"kind", "element", "name", "artifactId",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getReportPlugin_Version(), source, new String[] {"kind", "element", "name", "version", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getReportPlugin_Inherited(), source, new String[] {"kind", "element", "name", "inherited",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getReportPlugin_ReportSets(), source, new String[] {"kind", "element", "name", "reportSets",
+ "namespace", "##targetNamespace"});
+ addAnnotation(reportSetEClass, source, new String[] {"name", "ReportSet", "kind", "elementOnly"});
+ addAnnotation(getReportSet_Id(), source, new String[] {"kind", "element", "name", "id", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getReportSet_Inherited(), source, new String[] {"kind", "element", "name", "inherited", "namespace",
+ "##targetNamespace"});
+ addAnnotation(repositoryEClass, source, new String[] {"name", "Repository", "kind", "elementOnly"});
+ addAnnotation(getRepository_Releases(), source, new String[] {"kind", "element", "name", "releases", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getRepository_Snapshots(), source, new String[] {"kind", "element", "name", "snapshots", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getRepository_Id(), source, new String[] {"kind", "element", "name", "id", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getRepository_Name(), source, new String[] {"kind", "element", "name", "name", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getRepository_Url(), source, new String[] {"kind", "element", "name", "url", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getRepository_Layout(), source, new String[] {"kind", "element", "name", "layout", "namespace",
+ "##targetNamespace"});
+ addAnnotation(repositoryPolicyEClass, source, new String[] {"name", "RepositoryPolicy", "kind", "elementOnly"});
+ addAnnotation(getRepositoryPolicy_Enabled(), source, new String[] {"kind", "element", "name", "enabled",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getRepositoryPolicy_UpdatePolicy(), source, new String[] {"kind", "element", "name", "updatePolicy",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getRepositoryPolicy_ChecksumPolicy(), source, new String[] {"kind", "element", "name",
+ "checksumPolicy", "namespace", "##targetNamespace"});
+ addAnnotation(resourceEClass, source, new String[] {"name", "Resource", "kind", "elementOnly"});
+ addAnnotation(getResource_TargetPath(), source, new String[] {"kind", "element", "name", "targetPath", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getResource_Filtering(), source, new String[] {"kind", "element", "name", "filtering", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getResource_Directory(), source, new String[] {"kind", "element", "name", "directory", "namespace",
+ "##targetNamespace"});
+ addAnnotation(scmEClass, source, new String[] {"name", "Scm", "kind", "elementOnly"});
+ addAnnotation(getScm_Connection(), source, new String[] {"kind", "element", "name", "connection", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getScm_DeveloperConnection(), source, new String[] {"kind", "element", "name", "developerConnection",
+ "namespace", "##targetNamespace"});
+ addAnnotation(getScm_Tag(), source, new String[] {"kind", "element", "name", "tag", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getScm_Url(), source, new String[] {"kind", "element", "name", "url", "namespace",
+ "##targetNamespace"});
+ addAnnotation(siteEClass, source, new String[] {"name", "Site", "kind", "elementOnly"});
+ addAnnotation(getSite_Id(), source,
+ new String[] {"kind", "element", "name", "id", "namespace", "##targetNamespace"});
+ addAnnotation(getSite_Name(), source, new String[] {"kind", "element", "name", "name", "namespace",
+ "##targetNamespace"});
+ addAnnotation(getSite_Url(), source, new String[] {"kind", "element", "name", "url", "namespace",
+ "##targetNamespace"});
+ }
} // PomPackageImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PrerequisitesImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PrerequisitesImpl.java
index 729fbd98..12c71bd6 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PrerequisitesImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PrerequisitesImpl.java
@@ -12,203 +12,197 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.Prerequisites;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Prerequisites</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Prerequisites</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PrerequisitesImpl#getMaven <em>
- * Maven</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PrerequisitesImpl#getMaven <em> Maven</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class PrerequisitesImpl extends EObjectImpl implements Prerequisites {
- /**
- * The default value of the '{@link #getMaven() <em>Maven</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getMaven()
- * @generated
- * @ordered
- */
- protected static final String MAVEN_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getMaven() <em>Maven</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getMaven()
- * @generated
- * @ordered
- */
- protected String maven = MAVEN_EDEFAULT;
-
- /**
- * This is true if the Maven attribute has been set. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean mavenESet;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected PrerequisitesImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.PREREQUISITES;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getMaven() {
- return maven;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setMaven(String newMaven) {
- String oldMaven = maven;
- maven = newMaven;
- boolean oldMavenESet = mavenESet;
- mavenESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PREREQUISITES__MAVEN, oldMaven, maven,
- !oldMavenESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetMaven() {
- String oldMaven = maven;
- boolean oldMavenESet = mavenESet;
- maven = MAVEN_EDEFAULT;
- mavenESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.PREREQUISITES__MAVEN, oldMaven, MAVEN_EDEFAULT,
- oldMavenESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetMaven() {
- return mavenESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.PREREQUISITES__MAVEN:
- return getMaven();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.PREREQUISITES__MAVEN:
- setMaven((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.PREREQUISITES__MAVEN:
- unsetMaven();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.PREREQUISITES__MAVEN:
- return isSetMaven();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (maven: "); //$NON-NLS-1$
- if (mavenESet)
- result.append(maven);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getMaven() <em>Maven</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getMaven()
+ * @generated
+ * @ordered
+ */
+ protected static final String MAVEN_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getMaven() <em>Maven</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getMaven()
+ * @generated
+ * @ordered
+ */
+ protected String maven = MAVEN_EDEFAULT;
+
+ /**
+ * This is true if the Maven attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean mavenESet;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected PrerequisitesImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.PREREQUISITES;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getMaven() {
+ return maven;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setMaven(String newMaven) {
+ String oldMaven = maven;
+ maven = newMaven;
+ boolean oldMavenESet = mavenESet;
+ mavenESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PREREQUISITES__MAVEN, oldMaven, maven,
+ !oldMavenESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetMaven() {
+ String oldMaven = maven;
+ boolean oldMavenESet = mavenESet;
+ maven = MAVEN_EDEFAULT;
+ mavenESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.PREREQUISITES__MAVEN, oldMaven,
+ MAVEN_EDEFAULT, oldMavenESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetMaven() {
+ return mavenESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.PREREQUISITES__MAVEN:
+ return getMaven();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.PREREQUISITES__MAVEN:
+ setMaven((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.PREREQUISITES__MAVEN:
+ unsetMaven();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.PREREQUISITES__MAVEN:
+ return isSetMaven();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (maven: "); //$NON-NLS-1$
+ if(mavenESet)
+ result.append(maven);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(')');
+ return result.toString();
+ }
} // PrerequisitesImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ProfileImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ProfileImpl.java
index 3e3555ad..9eb4c12f 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ProfileImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ProfileImpl.java
@@ -15,18 +15,15 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EDataTypeEList;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.Activation;
import org.eclipse.m2e.model.edit.pom.BuildBase;
import org.eclipse.m2e.model.edit.pom.Dependency;
@@ -41,1193 +38,1104 @@ import org.eclipse.m2e.model.edit.pom.Repository;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Profile</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Profile</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getId <em>Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getActivation <em>
- * Activation</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getBuild <em>Build
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getRepositories <em>
- * Repositories</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getActivation <em> Activation</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getBuild <em>Build </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getRepositories <em> Repositories</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getPluginRepositories
- * <em>Plugin Repositories</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getDependencies <em>
- * Dependencies</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getReports <em>
- * Reports</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getPluginRepositories <em>Plugin Repositories</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getDependencies <em> Dependencies</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getReports <em> Reports</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getDependencyManagement
- * <em>Dependency Management</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getDependencyManagement <em>Dependency Management</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getDistributionManagement
- * <em>Distribution Management</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getProperties <em>
- * Properties</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getModules <em>
- * Modules</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getReporting <em>
- * Reporting</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getDistributionManagement <em>Distribution Management
+ * </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getProperties <em> Properties</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getModules <em> Modules</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ProfileImpl#getReporting <em> Reporting</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ProfileImpl extends EObjectImpl implements Profile {
- /**
- * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected static final String ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected String id = ID_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getActivation() <em>Activation</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getActivation()
- * @generated
- * @ordered
- */
- protected Activation activation;
-
- /**
- * This is true if the Activation containment reference has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean activationESet;
-
- /**
- * The cached value of the '{@link #getBuild() <em>Build</em>}' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getBuild()
- * @generated
- * @ordered
- */
- protected BuildBase build;
-
- /**
- * This is true if the Build containment reference has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean buildESet;
-
- /**
- * The cached value of the '{@link #getRepositories() <em>Repositories</em>}
- * ' containment reference list. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #getRepositories()
- * @generated
- * @ordered
- */
- protected EList<Repository> repositories;
-
- /**
- * The cached value of the '{@link #getPluginRepositories()
- * <em>Plugin Repositories</em>}' containment reference list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getPluginRepositories()
- * @generated
- * @ordered
- */
- protected EList<Repository> pluginRepositories;
-
- /**
- * The cached value of the '{@link #getDependencies() <em>Dependencies</em>}
- * ' containment reference list. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #getDependencies()
- * @generated
- * @ordered
- */
- protected EList<Dependency> dependencies;
-
- /**
- * The cached value of the '{@link #getReports() <em>Reports</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getReports()
- * @generated
- * @ordered
- */
- protected EList<ReportPlugin> reports;
-
- /**
- * The cached value of the '{@link #getDependencyManagement()
- * <em>Dependency Management</em>}' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDependencyManagement()
- * @generated
- * @ordered
- */
- protected DependencyManagement dependencyManagement;
-
- /**
- * This is true if the Dependency Management containment reference has been
- * set. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean dependencyManagementESet;
-
- /**
- * The cached value of the '{@link #getDistributionManagement()
- * <em>Distribution Management</em>}' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDistributionManagement()
- * @generated
- * @ordered
- */
- protected DistributionManagement distributionManagement;
-
- /**
- * This is true if the Distribution Management containment reference has
- * been set. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean distributionManagementESet;
-
- /**
- * The cached value of the '{@link #getProperties() <em>Properties</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getProperties()
- * @generated
- * @ordered
- */
- protected EList<PropertyElement> properties;
-
- /**
- * The cached value of the '{@link #getModules() <em>Modules</em>}'
- * attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getModules()
- * @generated
- * @ordered
- */
- protected EList<String> modules;
-
- /**
- * The cached value of the '{@link #getReporting() <em>Reporting</em>}'
- * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getReporting()
- * @generated
- * @ordered
- */
- protected Reporting reporting;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ProfileImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.PROFILE;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getId() {
- return id;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setId(String newId) {
- String oldId = id;
- id = newId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PROFILE__ID, oldId, id));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Activation getActivation() {
- return activation;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetActivation(Activation newActivation,
- NotificationChain msgs) {
- Activation oldActivation = activation;
- activation = newActivation;
- boolean oldActivationESet = activationESet;
- activationESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.PROFILE__ACTIVATION,
- oldActivation, newActivation, !oldActivationESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setActivation(Activation newActivation) {
- if (newActivation != activation) {
- NotificationChain msgs = null;
- if (activation != null)
- msgs = ((InternalEObject) activation)
- .eInverseRemove(this, EOPPOSITE_FEATURE_BASE
- - PomPackage.PROFILE__ACTIVATION, null, msgs);
- if (newActivation != null)
- msgs = ((InternalEObject) newActivation)
- .eInverseAdd(this, EOPPOSITE_FEATURE_BASE
- - PomPackage.PROFILE__ACTIVATION, null, msgs);
- msgs = basicSetActivation(newActivation, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldActivationESet = activationESet;
- activationESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PROFILE__ACTIVATION, newActivation,
- newActivation, !oldActivationESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetActivation(NotificationChain msgs) {
- Activation oldActivation = activation;
- activation = null;
- boolean oldActivationESet = activationESet;
- activationESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET, PomPackage.PROFILE__ACTIVATION,
- oldActivation, null, oldActivationESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetActivation() {
- if (activation != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) activation).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.PROFILE__ACTIVATION,
- null, msgs);
- msgs = basicUnsetActivation(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldActivationESet = activationESet;
- activationESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.PROFILE__ACTIVATION, null, null,
- oldActivationESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetActivation() {
- return activationESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public BuildBase getBuild() {
- return build;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetBuild(BuildBase newBuild,
- NotificationChain msgs) {
- BuildBase oldBuild = build;
- build = newBuild;
- boolean oldBuildESet = buildESet;
- buildESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.PROFILE__BUILD, oldBuild,
- newBuild, !oldBuildESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBuild(BuildBase newBuild) {
- if (newBuild != build) {
- NotificationChain msgs = null;
- if (build != null)
- msgs = ((InternalEObject) build).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.PROFILE__BUILD,
- null, msgs);
- if (newBuild != null)
- msgs = ((InternalEObject) newBuild).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.PROFILE__BUILD,
- null, msgs);
- msgs = basicSetBuild(newBuild, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldBuildESet = buildESet;
- buildESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PROFILE__BUILD, newBuild, newBuild,
- !oldBuildESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetBuild(NotificationChain msgs) {
- BuildBase oldBuild = build;
- build = null;
- boolean oldBuildESet = buildESet;
- buildESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET, PomPackage.PROFILE__BUILD, oldBuild,
- null, oldBuildESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetBuild() {
- if (build != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) build).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.PROFILE__BUILD, null,
- msgs);
- msgs = basicUnsetBuild(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldBuildESet = buildESet;
- buildESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.PROFILE__BUILD, null, null, oldBuildESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetBuild() {
- return buildESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Repository> getRepositories() {
- if (repositories == null) {
- repositories = new EObjectContainmentEList.Unsettable<Repository>(
- Repository.class, this, PomPackage.PROFILE__REPOSITORIES);
- }
- return repositories;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetRepositories() {
- if (repositories != null)
- ((InternalEList.Unsettable<?>) repositories).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetRepositories() {
- return repositories != null
- && ((InternalEList.Unsettable<?>) repositories).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Repository> getPluginRepositories() {
- if (pluginRepositories == null) {
- pluginRepositories = new EObjectContainmentEList.Unsettable<Repository>(
- Repository.class, this,
- PomPackage.PROFILE__PLUGIN_REPOSITORIES);
- }
- return pluginRepositories;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetPluginRepositories() {
- if (pluginRepositories != null)
- ((InternalEList.Unsettable<?>) pluginRepositories).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetPluginRepositories() {
- return pluginRepositories != null
- && ((InternalEList.Unsettable<?>) pluginRepositories).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Dependency> getDependencies() {
- if (dependencies == null) {
- dependencies = new EObjectContainmentEList.Unsettable<Dependency>(
- Dependency.class, this, PomPackage.PROFILE__DEPENDENCIES);
- }
- return dependencies;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetDependencies() {
- if (dependencies != null)
- ((InternalEList.Unsettable<?>) dependencies).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetDependencies() {
- return dependencies != null
- && ((InternalEList.Unsettable<?>) dependencies).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<ReportPlugin> getReports() {
- if (reports == null) {
- reports = new EObjectContainmentEList.Unsettable<ReportPlugin>(
- ReportPlugin.class, this, PomPackage.PROFILE__REPORTS);
- }
- return reports;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetReports() {
- if (reports != null)
- ((InternalEList.Unsettable<?>) reports).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetReports() {
- return reports != null
- && ((InternalEList.Unsettable<?>) reports).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DependencyManagement getDependencyManagement() {
- return dependencyManagement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetDependencyManagement(
- DependencyManagement newDependencyManagement, NotificationChain msgs) {
- DependencyManagement oldDependencyManagement = dependencyManagement;
- dependencyManagement = newDependencyManagement;
- boolean oldDependencyManagementESet = dependencyManagementESet;
- dependencyManagementESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET,
- PomPackage.PROFILE__DEPENDENCY_MANAGEMENT,
- oldDependencyManagement, newDependencyManagement,
- !oldDependencyManagementESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDependencyManagement(
- DependencyManagement newDependencyManagement) {
- if (newDependencyManagement != dependencyManagement) {
- NotificationChain msgs = null;
- if (dependencyManagement != null)
- msgs = ((InternalEObject) dependencyManagement).eInverseRemove(
- this, EOPPOSITE_FEATURE_BASE
- - PomPackage.PROFILE__DEPENDENCY_MANAGEMENT,
- null, msgs);
- if (newDependencyManagement != null)
- msgs = ((InternalEObject) newDependencyManagement).eInverseAdd(
- this, EOPPOSITE_FEATURE_BASE
- - PomPackage.PROFILE__DEPENDENCY_MANAGEMENT,
- null, msgs);
- msgs = basicSetDependencyManagement(newDependencyManagement, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldDependencyManagementESet = dependencyManagementESet;
- dependencyManagementESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PROFILE__DEPENDENCY_MANAGEMENT,
- newDependencyManagement, newDependencyManagement,
- !oldDependencyManagementESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetDependencyManagement(
- NotificationChain msgs) {
- DependencyManagement oldDependencyManagement = dependencyManagement;
- dependencyManagement = null;
- boolean oldDependencyManagementESet = dependencyManagementESet;
- dependencyManagementESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET,
- PomPackage.PROFILE__DEPENDENCY_MANAGEMENT,
- oldDependencyManagement, null, oldDependencyManagementESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetDependencyManagement() {
- if (dependencyManagement != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) dependencyManagement).eInverseRemove(
- this, EOPPOSITE_FEATURE_BASE
- - PomPackage.PROFILE__DEPENDENCY_MANAGEMENT, null,
- msgs);
- msgs = basicUnsetDependencyManagement(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldDependencyManagementESet = dependencyManagementESet;
- dependencyManagementESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.PROFILE__DEPENDENCY_MANAGEMENT, null, null,
- oldDependencyManagementESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetDependencyManagement() {
- return dependencyManagementESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DistributionManagement getDistributionManagement() {
- return distributionManagement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetDistributionManagement(
- DistributionManagement newDistributionManagement,
- NotificationChain msgs) {
- DistributionManagement oldDistributionManagement = distributionManagement;
- distributionManagement = newDistributionManagement;
- boolean oldDistributionManagementESet = distributionManagementESet;
- distributionManagementESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET,
- PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT,
- oldDistributionManagement, newDistributionManagement,
- !oldDistributionManagementESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDistributionManagement(
- DistributionManagement newDistributionManagement) {
- if (newDistributionManagement != distributionManagement) {
- NotificationChain msgs = null;
- if (distributionManagement != null)
- msgs = ((InternalEObject) distributionManagement)
- .eInverseRemove(this, EOPPOSITE_FEATURE_BASE
- - PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT,
- null, msgs);
- if (newDistributionManagement != null)
- msgs = ((InternalEObject) newDistributionManagement)
- .eInverseAdd(this, EOPPOSITE_FEATURE_BASE
- - PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT,
- null, msgs);
- msgs = basicSetDistributionManagement(newDistributionManagement,
- msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldDistributionManagementESet = distributionManagementESet;
- distributionManagementESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT,
- newDistributionManagement, newDistributionManagement,
- !oldDistributionManagementESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetDistributionManagement(
- NotificationChain msgs) {
- DistributionManagement oldDistributionManagement = distributionManagement;
- distributionManagement = null;
- boolean oldDistributionManagementESet = distributionManagementESet;
- distributionManagementESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET,
- PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT,
- oldDistributionManagement, null,
- oldDistributionManagementESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetDistributionManagement() {
- if (distributionManagement != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) distributionManagement).eInverseRemove(
- this, EOPPOSITE_FEATURE_BASE
- - PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT,
- null, msgs);
- msgs = basicUnsetDistributionManagement(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldDistributionManagementESet = distributionManagementESet;
- distributionManagementESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT, null,
- null, oldDistributionManagementESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetDistributionManagement() {
- return distributionManagementESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<PropertyElement> getProperties() {
- if (properties == null) {
- properties = new EObjectContainmentEList.Unsettable<PropertyElement>(
- PropertyElement.class, this, PomPackage.PROFILE__PROPERTIES);
- }
- return properties;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetProperties() {
- if (properties != null)
- ((InternalEList.Unsettable<?>) properties).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetProperties() {
- return properties != null
- && ((InternalEList.Unsettable<?>) properties).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getModules() {
- if (modules == null) {
- modules = new EDataTypeEList<String>(String.class, this,
- PomPackage.PROFILE__MODULES);
- }
- return modules;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Reporting getReporting() {
- if (reporting != null && reporting.eIsProxy()) {
- InternalEObject oldReporting = (InternalEObject) reporting;
- reporting = (Reporting) eResolveProxy(oldReporting);
- if (reporting != oldReporting) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE,
- PomPackage.PROFILE__REPORTING, oldReporting,
- reporting));
- }
- }
- return reporting;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Reporting basicGetReporting() {
- return reporting;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setReporting(Reporting newReporting) {
- Reporting oldReporting = reporting;
- reporting = newReporting;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PROFILE__REPORTING, oldReporting, reporting));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.PROFILE__ACTIVATION:
- return basicUnsetActivation(msgs);
- case PomPackage.PROFILE__BUILD:
- return basicUnsetBuild(msgs);
- case PomPackage.PROFILE__REPOSITORIES:
- return ((InternalEList<?>) getRepositories()).basicRemove(otherEnd,
- msgs);
- case PomPackage.PROFILE__PLUGIN_REPOSITORIES:
- return ((InternalEList<?>) getPluginRepositories()).basicRemove(
- otherEnd, msgs);
- case PomPackage.PROFILE__DEPENDENCIES:
- return ((InternalEList<?>) getDependencies()).basicRemove(otherEnd,
- msgs);
- case PomPackage.PROFILE__REPORTS:
- return ((InternalEList<?>) getReports())
- .basicRemove(otherEnd, msgs);
- case PomPackage.PROFILE__DEPENDENCY_MANAGEMENT:
- return basicUnsetDependencyManagement(msgs);
- case PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT:
- return basicUnsetDistributionManagement(msgs);
- case PomPackage.PROFILE__PROPERTIES:
- return ((InternalEList<?>) getProperties()).basicRemove(otherEnd,
- msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.PROFILE__ID:
- return getId();
- case PomPackage.PROFILE__ACTIVATION:
- return getActivation();
- case PomPackage.PROFILE__BUILD:
- return getBuild();
- case PomPackage.PROFILE__REPOSITORIES:
- return getRepositories();
- case PomPackage.PROFILE__PLUGIN_REPOSITORIES:
- return getPluginRepositories();
- case PomPackage.PROFILE__DEPENDENCIES:
- return getDependencies();
- case PomPackage.PROFILE__REPORTS:
- return getReports();
- case PomPackage.PROFILE__DEPENDENCY_MANAGEMENT:
- return getDependencyManagement();
- case PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT:
- return getDistributionManagement();
- case PomPackage.PROFILE__PROPERTIES:
- return getProperties();
- case PomPackage.PROFILE__MODULES:
- return getModules();
- case PomPackage.PROFILE__REPORTING:
- if (resolve)
- return getReporting();
- return basicGetReporting();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.PROFILE__ID:
- setId((String) newValue);
- return;
- case PomPackage.PROFILE__ACTIVATION:
- setActivation((Activation) newValue);
- return;
- case PomPackage.PROFILE__BUILD:
- setBuild((BuildBase) newValue);
- return;
- case PomPackage.PROFILE__REPOSITORIES:
- getRepositories().clear();
- getRepositories().addAll(
- (Collection<? extends Repository>) newValue);
- return;
- case PomPackage.PROFILE__PLUGIN_REPOSITORIES:
- getPluginRepositories().clear();
- getPluginRepositories().addAll(
- (Collection<? extends Repository>) newValue);
- return;
- case PomPackage.PROFILE__DEPENDENCIES:
- getDependencies().clear();
- getDependencies().addAll(
- (Collection<? extends Dependency>) newValue);
- return;
- case PomPackage.PROFILE__REPORTS:
- getReports().clear();
- getReports().addAll((Collection<? extends ReportPlugin>) newValue);
- return;
- case PomPackage.PROFILE__DEPENDENCY_MANAGEMENT:
- setDependencyManagement((DependencyManagement) newValue);
- return;
- case PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT:
- setDistributionManagement((DistributionManagement) newValue);
- return;
- case PomPackage.PROFILE__PROPERTIES:
- getProperties().clear();
- getProperties().addAll(
- (Collection<? extends PropertyElement>) newValue);
- return;
- case PomPackage.PROFILE__MODULES:
- getModules().clear();
- getModules().addAll((Collection<? extends String>) newValue);
- return;
- case PomPackage.PROFILE__REPORTING:
- setReporting((Reporting) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.PROFILE__ID:
- setId(ID_EDEFAULT);
- return;
- case PomPackage.PROFILE__ACTIVATION:
- unsetActivation();
- return;
- case PomPackage.PROFILE__BUILD:
- unsetBuild();
- return;
- case PomPackage.PROFILE__REPOSITORIES:
- unsetRepositories();
- return;
- case PomPackage.PROFILE__PLUGIN_REPOSITORIES:
- unsetPluginRepositories();
- return;
- case PomPackage.PROFILE__DEPENDENCIES:
- unsetDependencies();
- return;
- case PomPackage.PROFILE__REPORTS:
- unsetReports();
- return;
- case PomPackage.PROFILE__DEPENDENCY_MANAGEMENT:
- unsetDependencyManagement();
- return;
- case PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT:
- unsetDistributionManagement();
- return;
- case PomPackage.PROFILE__PROPERTIES:
- unsetProperties();
- return;
- case PomPackage.PROFILE__MODULES:
- getModules().clear();
- return;
- case PomPackage.PROFILE__REPORTING:
- setReporting((Reporting) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.PROFILE__ID:
- return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
- case PomPackage.PROFILE__ACTIVATION:
- return isSetActivation();
- case PomPackage.PROFILE__BUILD:
- return isSetBuild();
- case PomPackage.PROFILE__REPOSITORIES:
- return isSetRepositories();
- case PomPackage.PROFILE__PLUGIN_REPOSITORIES:
- return isSetPluginRepositories();
- case PomPackage.PROFILE__DEPENDENCIES:
- return isSetDependencies();
- case PomPackage.PROFILE__REPORTS:
- return isSetReports();
- case PomPackage.PROFILE__DEPENDENCY_MANAGEMENT:
- return isSetDependencyManagement();
- case PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT:
- return isSetDistributionManagement();
- case PomPackage.PROFILE__PROPERTIES:
- return isSetProperties();
- case PomPackage.PROFILE__MODULES:
- return modules != null && !modules.isEmpty();
- case PomPackage.PROFILE__REPORTING:
- return reporting != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (id: "); //$NON-NLS-1$
- result.append(id);
- result.append(", modules: "); //$NON-NLS-1$
- result.append(modules);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getActivation() <em>Activation</em>}' containment reference. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getActivation()
+ * @generated
+ * @ordered
+ */
+ protected Activation activation;
+
+ /**
+ * This is true if the Activation containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean activationESet;
+
+ /**
+ * The cached value of the '{@link #getBuild() <em>Build</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getBuild()
+ * @generated
+ * @ordered
+ */
+ protected BuildBase build;
+
+ /**
+ * This is true if the Build containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean buildESet;
+
+ /**
+ * The cached value of the '{@link #getRepositories() <em>Repositories</em>} ' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getRepositories()
+ * @generated
+ * @ordered
+ */
+ protected EList<Repository> repositories;
+
+ /**
+ * The cached value of the '{@link #getPluginRepositories() <em>Plugin Repositories</em>}' containment reference list.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getPluginRepositories()
+ * @generated
+ * @ordered
+ */
+ protected EList<Repository> pluginRepositories;
+
+ /**
+ * The cached value of the '{@link #getDependencies() <em>Dependencies</em>} ' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getDependencies()
+ * @generated
+ * @ordered
+ */
+ protected EList<Dependency> dependencies;
+
+ /**
+ * The cached value of the '{@link #getReports() <em>Reports</em>}' containment reference list. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getReports()
+ * @generated
+ * @ordered
+ */
+ protected EList<ReportPlugin> reports;
+
+ /**
+ * The cached value of the '{@link #getDependencyManagement() <em>Dependency Management</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getDependencyManagement()
+ * @generated
+ * @ordered
+ */
+ protected DependencyManagement dependencyManagement;
+
+ /**
+ * This is true if the Dependency Management containment reference has been set. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean dependencyManagementESet;
+
+ /**
+ * The cached value of the '{@link #getDistributionManagement() <em>Distribution Management</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getDistributionManagement()
+ * @generated
+ * @ordered
+ */
+ protected DistributionManagement distributionManagement;
+
+ /**
+ * This is true if the Distribution Management containment reference has been set. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean distributionManagementESet;
+
+ /**
+ * The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getProperties()
+ * @generated
+ * @ordered
+ */
+ protected EList<PropertyElement> properties;
+
+ /**
+ * The cached value of the '{@link #getModules() <em>Modules</em>}' attribute list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getModules()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> modules;
+
+ /**
+ * The cached value of the '{@link #getReporting() <em>Reporting</em>}' reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getReporting()
+ * @generated
+ * @ordered
+ */
+ protected Reporting reporting;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ProfileImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.PROFILE;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PROFILE__ID, oldId, id));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Activation getActivation() {
+ return activation;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetActivation(Activation newActivation, NotificationChain msgs) {
+ Activation oldActivation = activation;
+ activation = newActivation;
+ boolean oldActivationESet = activationESet;
+ activationESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PomPackage.PROFILE__ACTIVATION,
+ oldActivation, newActivation, !oldActivationESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setActivation(Activation newActivation) {
+ if(newActivation != activation) {
+ NotificationChain msgs = null;
+ if(activation != null)
+ msgs = ((InternalEObject) activation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.PROFILE__ACTIVATION, null, msgs);
+ if(newActivation != null)
+ msgs = ((InternalEObject) newActivation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.PROFILE__ACTIVATION, null, msgs);
+ msgs = basicSetActivation(newActivation, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldActivationESet = activationESet;
+ activationESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PROFILE__ACTIVATION, newActivation,
+ newActivation, !oldActivationESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetActivation(NotificationChain msgs) {
+ Activation oldActivation = activation;
+ activation = null;
+ boolean oldActivationESet = activationESet;
+ activationESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET, PomPackage.PROFILE__ACTIVATION,
+ oldActivation, null, oldActivationESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetActivation() {
+ if(activation != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) activation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.PROFILE__ACTIVATION, null, msgs);
+ msgs = basicUnsetActivation(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldActivationESet = activationESet;
+ activationESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.PROFILE__ACTIVATION, null, null,
+ oldActivationESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetActivation() {
+ return activationESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public BuildBase getBuild() {
+ return build;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetBuild(BuildBase newBuild, NotificationChain msgs) {
+ BuildBase oldBuild = build;
+ build = newBuild;
+ boolean oldBuildESet = buildESet;
+ buildESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PomPackage.PROFILE__BUILD,
+ oldBuild, newBuild, !oldBuildESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setBuild(BuildBase newBuild) {
+ if(newBuild != build) {
+ NotificationChain msgs = null;
+ if(build != null)
+ msgs = ((InternalEObject) build).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PomPackage.PROFILE__BUILD, null,
+ msgs);
+ if(newBuild != null)
+ msgs = ((InternalEObject) newBuild).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PomPackage.PROFILE__BUILD, null,
+ msgs);
+ msgs = basicSetBuild(newBuild, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldBuildESet = buildESet;
+ buildESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PROFILE__BUILD, newBuild, newBuild,
+ !oldBuildESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetBuild(NotificationChain msgs) {
+ BuildBase oldBuild = build;
+ build = null;
+ boolean oldBuildESet = buildESet;
+ buildESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET, PomPackage.PROFILE__BUILD,
+ oldBuild, null, oldBuildESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetBuild() {
+ if(build != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) build).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PomPackage.PROFILE__BUILD, null,
+ msgs);
+ msgs = basicUnsetBuild(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldBuildESet = buildESet;
+ buildESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.PROFILE__BUILD, null, null, oldBuildESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetBuild() {
+ return buildESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Repository> getRepositories() {
+ if(repositories == null) {
+ repositories = new EObjectContainmentEList.Unsettable<Repository>(Repository.class, this,
+ PomPackage.PROFILE__REPOSITORIES);
+ }
+ return repositories;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetRepositories() {
+ if(repositories != null)
+ ((InternalEList.Unsettable<?>) repositories).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetRepositories() {
+ return repositories != null && ((InternalEList.Unsettable<?>) repositories).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Repository> getPluginRepositories() {
+ if(pluginRepositories == null) {
+ pluginRepositories = new EObjectContainmentEList.Unsettable<Repository>(Repository.class, this,
+ PomPackage.PROFILE__PLUGIN_REPOSITORIES);
+ }
+ return pluginRepositories;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetPluginRepositories() {
+ if(pluginRepositories != null)
+ ((InternalEList.Unsettable<?>) pluginRepositories).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetPluginRepositories() {
+ return pluginRepositories != null && ((InternalEList.Unsettable<?>) pluginRepositories).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<Dependency> getDependencies() {
+ if(dependencies == null) {
+ dependencies = new EObjectContainmentEList.Unsettable<Dependency>(Dependency.class, this,
+ PomPackage.PROFILE__DEPENDENCIES);
+ }
+ return dependencies;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetDependencies() {
+ if(dependencies != null)
+ ((InternalEList.Unsettable<?>) dependencies).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetDependencies() {
+ return dependencies != null && ((InternalEList.Unsettable<?>) dependencies).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<ReportPlugin> getReports() {
+ if(reports == null) {
+ reports = new EObjectContainmentEList.Unsettable<ReportPlugin>(ReportPlugin.class, this,
+ PomPackage.PROFILE__REPORTS);
+ }
+ return reports;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetReports() {
+ if(reports != null)
+ ((InternalEList.Unsettable<?>) reports).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetReports() {
+ return reports != null && ((InternalEList.Unsettable<?>) reports).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DependencyManagement getDependencyManagement() {
+ return dependencyManagement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetDependencyManagement(DependencyManagement newDependencyManagement,
+ NotificationChain msgs) {
+ DependencyManagement oldDependencyManagement = dependencyManagement;
+ dependencyManagement = newDependencyManagement;
+ boolean oldDependencyManagementESet = dependencyManagementESet;
+ dependencyManagementESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ PomPackage.PROFILE__DEPENDENCY_MANAGEMENT, oldDependencyManagement, newDependencyManagement,
+ !oldDependencyManagementESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setDependencyManagement(DependencyManagement newDependencyManagement) {
+ if(newDependencyManagement != dependencyManagement) {
+ NotificationChain msgs = null;
+ if(dependencyManagement != null)
+ msgs = ((InternalEObject) dependencyManagement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.PROFILE__DEPENDENCY_MANAGEMENT, null, msgs);
+ if(newDependencyManagement != null)
+ msgs = ((InternalEObject) newDependencyManagement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.PROFILE__DEPENDENCY_MANAGEMENT, null, msgs);
+ msgs = basicSetDependencyManagement(newDependencyManagement, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldDependencyManagementESet = dependencyManagementESet;
+ dependencyManagementESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PROFILE__DEPENDENCY_MANAGEMENT,
+ newDependencyManagement, newDependencyManagement, !oldDependencyManagementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetDependencyManagement(NotificationChain msgs) {
+ DependencyManagement oldDependencyManagement = dependencyManagement;
+ dependencyManagement = null;
+ boolean oldDependencyManagementESet = dependencyManagementESet;
+ dependencyManagementESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET,
+ PomPackage.PROFILE__DEPENDENCY_MANAGEMENT, oldDependencyManagement, null, oldDependencyManagementESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetDependencyManagement() {
+ if(dependencyManagement != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) dependencyManagement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.PROFILE__DEPENDENCY_MANAGEMENT, null, msgs);
+ msgs = basicUnsetDependencyManagement(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldDependencyManagementESet = dependencyManagementESet;
+ dependencyManagementESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.PROFILE__DEPENDENCY_MANAGEMENT, null, null,
+ oldDependencyManagementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetDependencyManagement() {
+ return dependencyManagementESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DistributionManagement getDistributionManagement() {
+ return distributionManagement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetDistributionManagement(DistributionManagement newDistributionManagement,
+ NotificationChain msgs) {
+ DistributionManagement oldDistributionManagement = distributionManagement;
+ distributionManagement = newDistributionManagement;
+ boolean oldDistributionManagementESet = distributionManagementESet;
+ distributionManagementESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT, oldDistributionManagement, newDistributionManagement,
+ !oldDistributionManagementESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setDistributionManagement(DistributionManagement newDistributionManagement) {
+ if(newDistributionManagement != distributionManagement) {
+ NotificationChain msgs = null;
+ if(distributionManagement != null)
+ msgs = ((InternalEObject) distributionManagement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT, null, msgs);
+ if(newDistributionManagement != null)
+ msgs = ((InternalEObject) newDistributionManagement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT, null, msgs);
+ msgs = basicSetDistributionManagement(newDistributionManagement, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldDistributionManagementESet = distributionManagementESet;
+ distributionManagementESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT,
+ newDistributionManagement, newDistributionManagement, !oldDistributionManagementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetDistributionManagement(NotificationChain msgs) {
+ DistributionManagement oldDistributionManagement = distributionManagement;
+ distributionManagement = null;
+ boolean oldDistributionManagementESet = distributionManagementESet;
+ distributionManagementESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET,
+ PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT, oldDistributionManagement, null, oldDistributionManagementESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetDistributionManagement() {
+ if(distributionManagement != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) distributionManagement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT, null, msgs);
+ msgs = basicUnsetDistributionManagement(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldDistributionManagementESet = distributionManagementESet;
+ distributionManagementESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT, null,
+ null, oldDistributionManagementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetDistributionManagement() {
+ return distributionManagementESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<PropertyElement> getProperties() {
+ if(properties == null) {
+ properties = new EObjectContainmentEList.Unsettable<PropertyElement>(PropertyElement.class, this,
+ PomPackage.PROFILE__PROPERTIES);
+ }
+ return properties;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetProperties() {
+ if(properties != null)
+ ((InternalEList.Unsettable<?>) properties).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetProperties() {
+ return properties != null && ((InternalEList.Unsettable<?>) properties).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<String> getModules() {
+ if(modules == null) {
+ modules = new EDataTypeEList<String>(String.class, this, PomPackage.PROFILE__MODULES);
+ }
+ return modules;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Reporting getReporting() {
+ if(reporting != null && reporting.eIsProxy()) {
+ InternalEObject oldReporting = (InternalEObject) reporting;
+ reporting = (Reporting) eResolveProxy(oldReporting);
+ if(reporting != oldReporting) {
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, PomPackage.PROFILE__REPORTING, oldReporting,
+ reporting));
+ }
+ }
+ return reporting;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Reporting basicGetReporting() {
+ return reporting;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setReporting(Reporting newReporting) {
+ Reporting oldReporting = reporting;
+ reporting = newReporting;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PROFILE__REPORTING, oldReporting, reporting));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.PROFILE__ACTIVATION:
+ return basicUnsetActivation(msgs);
+ case PomPackage.PROFILE__BUILD:
+ return basicUnsetBuild(msgs);
+ case PomPackage.PROFILE__REPOSITORIES:
+ return ((InternalEList<?>) getRepositories()).basicRemove(otherEnd, msgs);
+ case PomPackage.PROFILE__PLUGIN_REPOSITORIES:
+ return ((InternalEList<?>) getPluginRepositories()).basicRemove(otherEnd, msgs);
+ case PomPackage.PROFILE__DEPENDENCIES:
+ return ((InternalEList<?>) getDependencies()).basicRemove(otherEnd, msgs);
+ case PomPackage.PROFILE__REPORTS:
+ return ((InternalEList<?>) getReports()).basicRemove(otherEnd, msgs);
+ case PomPackage.PROFILE__DEPENDENCY_MANAGEMENT:
+ return basicUnsetDependencyManagement(msgs);
+ case PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT:
+ return basicUnsetDistributionManagement(msgs);
+ case PomPackage.PROFILE__PROPERTIES:
+ return ((InternalEList<?>) getProperties()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.PROFILE__ID:
+ return getId();
+ case PomPackage.PROFILE__ACTIVATION:
+ return getActivation();
+ case PomPackage.PROFILE__BUILD:
+ return getBuild();
+ case PomPackage.PROFILE__REPOSITORIES:
+ return getRepositories();
+ case PomPackage.PROFILE__PLUGIN_REPOSITORIES:
+ return getPluginRepositories();
+ case PomPackage.PROFILE__DEPENDENCIES:
+ return getDependencies();
+ case PomPackage.PROFILE__REPORTS:
+ return getReports();
+ case PomPackage.PROFILE__DEPENDENCY_MANAGEMENT:
+ return getDependencyManagement();
+ case PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT:
+ return getDistributionManagement();
+ case PomPackage.PROFILE__PROPERTIES:
+ return getProperties();
+ case PomPackage.PROFILE__MODULES:
+ return getModules();
+ case PomPackage.PROFILE__REPORTING:
+ if(resolve)
+ return getReporting();
+ return basicGetReporting();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.PROFILE__ID:
+ setId((String) newValue);
+ return;
+ case PomPackage.PROFILE__ACTIVATION:
+ setActivation((Activation) newValue);
+ return;
+ case PomPackage.PROFILE__BUILD:
+ setBuild((BuildBase) newValue);
+ return;
+ case PomPackage.PROFILE__REPOSITORIES:
+ getRepositories().clear();
+ getRepositories().addAll((Collection<? extends Repository>) newValue);
+ return;
+ case PomPackage.PROFILE__PLUGIN_REPOSITORIES:
+ getPluginRepositories().clear();
+ getPluginRepositories().addAll((Collection<? extends Repository>) newValue);
+ return;
+ case PomPackage.PROFILE__DEPENDENCIES:
+ getDependencies().clear();
+ getDependencies().addAll((Collection<? extends Dependency>) newValue);
+ return;
+ case PomPackage.PROFILE__REPORTS:
+ getReports().clear();
+ getReports().addAll((Collection<? extends ReportPlugin>) newValue);
+ return;
+ case PomPackage.PROFILE__DEPENDENCY_MANAGEMENT:
+ setDependencyManagement((DependencyManagement) newValue);
+ return;
+ case PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT:
+ setDistributionManagement((DistributionManagement) newValue);
+ return;
+ case PomPackage.PROFILE__PROPERTIES:
+ getProperties().clear();
+ getProperties().addAll((Collection<? extends PropertyElement>) newValue);
+ return;
+ case PomPackage.PROFILE__MODULES:
+ getModules().clear();
+ getModules().addAll((Collection<? extends String>) newValue);
+ return;
+ case PomPackage.PROFILE__REPORTING:
+ setReporting((Reporting) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.PROFILE__ID:
+ setId(ID_EDEFAULT);
+ return;
+ case PomPackage.PROFILE__ACTIVATION:
+ unsetActivation();
+ return;
+ case PomPackage.PROFILE__BUILD:
+ unsetBuild();
+ return;
+ case PomPackage.PROFILE__REPOSITORIES:
+ unsetRepositories();
+ return;
+ case PomPackage.PROFILE__PLUGIN_REPOSITORIES:
+ unsetPluginRepositories();
+ return;
+ case PomPackage.PROFILE__DEPENDENCIES:
+ unsetDependencies();
+ return;
+ case PomPackage.PROFILE__REPORTS:
+ unsetReports();
+ return;
+ case PomPackage.PROFILE__DEPENDENCY_MANAGEMENT:
+ unsetDependencyManagement();
+ return;
+ case PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT:
+ unsetDistributionManagement();
+ return;
+ case PomPackage.PROFILE__PROPERTIES:
+ unsetProperties();
+ return;
+ case PomPackage.PROFILE__MODULES:
+ getModules().clear();
+ return;
+ case PomPackage.PROFILE__REPORTING:
+ setReporting((Reporting) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.PROFILE__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case PomPackage.PROFILE__ACTIVATION:
+ return isSetActivation();
+ case PomPackage.PROFILE__BUILD:
+ return isSetBuild();
+ case PomPackage.PROFILE__REPOSITORIES:
+ return isSetRepositories();
+ case PomPackage.PROFILE__PLUGIN_REPOSITORIES:
+ return isSetPluginRepositories();
+ case PomPackage.PROFILE__DEPENDENCIES:
+ return isSetDependencies();
+ case PomPackage.PROFILE__REPORTS:
+ return isSetReports();
+ case PomPackage.PROFILE__DEPENDENCY_MANAGEMENT:
+ return isSetDependencyManagement();
+ case PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT:
+ return isSetDistributionManagement();
+ case PomPackage.PROFILE__PROPERTIES:
+ return isSetProperties();
+ case PomPackage.PROFILE__MODULES:
+ return modules != null && !modules.isEmpty();
+ case PomPackage.PROFILE__REPORTING:
+ return reporting != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (id: "); //$NON-NLS-1$
+ result.append(id);
+ result.append(", modules: "); //$NON-NLS-1$
+ result.append(modules);
+ result.append(')');
+ return result.toString();
+ }
} // ProfileImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PropertyElementImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PropertyElementImpl.java
index 01fb7416..77f361db 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PropertyElementImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/PropertyElementImpl.java
@@ -12,221 +12,213 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.PropertyElement;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Property Element</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Property Element</b></em>'. <!-- end-user-doc
+ * -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PropertyElementImpl#getName <em>
- * Name</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PropertyElementImpl#getValue
- * <em>Value</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PropertyElementImpl#getName <em> Name</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.PropertyElementImpl#getValue <em>Value</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class PropertyElementImpl extends EObjectImpl implements PropertyElement {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected static final String VALUE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected String value = VALUE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected PropertyElementImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.PROPERTY_ELEMENT;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PROPERTY_ELEMENT__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setValue(String newValue) {
- String oldValue = value;
- value = newValue;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.PROPERTY_ELEMENT__VALUE, oldValue, value));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.PROPERTY_ELEMENT__NAME:
- return getName();
- case PomPackage.PROPERTY_ELEMENT__VALUE:
- return getValue();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.PROPERTY_ELEMENT__NAME:
- setName((String) newValue);
- return;
- case PomPackage.PROPERTY_ELEMENT__VALUE:
- setValue((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.PROPERTY_ELEMENT__NAME:
- setName(NAME_EDEFAULT);
- return;
- case PomPackage.PROPERTY_ELEMENT__VALUE:
- setValue(VALUE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.PROPERTY_ELEMENT__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT
- .equals(name);
- case PomPackage.PROPERTY_ELEMENT__VALUE:
- return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT
- .equals(value);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: "); //$NON-NLS-1$
- result.append(name);
- result.append(", value: "); //$NON-NLS-1$
- result.append(value);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getValue() <em>Value</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected static final String VALUE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected String value = VALUE_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected PropertyElementImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.PROPERTY_ELEMENT;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PROPERTY_ELEMENT__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setValue(String newValue) {
+ String oldValue = value;
+ value = newValue;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.PROPERTY_ELEMENT__VALUE, oldValue, value));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.PROPERTY_ELEMENT__NAME:
+ return getName();
+ case PomPackage.PROPERTY_ELEMENT__VALUE:
+ return getValue();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.PROPERTY_ELEMENT__NAME:
+ setName((String) newValue);
+ return;
+ case PomPackage.PROPERTY_ELEMENT__VALUE:
+ setValue((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.PROPERTY_ELEMENT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case PomPackage.PROPERTY_ELEMENT__VALUE:
+ setValue(VALUE_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.PROPERTY_ELEMENT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case PomPackage.PROPERTY_ELEMENT__VALUE:
+ return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: "); //$NON-NLS-1$
+ result.append(name);
+ result.append(", value: "); //$NON-NLS-1$
+ result.append(value);
+ result.append(')');
+ return result.toString();
+ }
} // PropertyElementImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/RelocationImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/RelocationImpl.java
index 56f8d90b..11829350 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/RelocationImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/RelocationImpl.java
@@ -12,336 +12,322 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.Relocation;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Relocation</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Relocation</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RelocationImpl#getGroupId <em>
- * Group Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RelocationImpl#getArtifactId
- * <em>Artifact Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RelocationImpl#getVersion <em>
- * Version</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RelocationImpl#getMessage <em>
- * Message</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RelocationImpl#getGroupId <em> Group Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RelocationImpl#getArtifactId <em>Artifact Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RelocationImpl#getVersion <em> Version</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RelocationImpl#getMessage <em> Message</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class RelocationImpl extends EObjectImpl implements Relocation {
- /**
- * The default value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected static final String GROUP_ID_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected static final String GROUP_ID_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected String groupId = GROUP_ID_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected String groupId = GROUP_ID_EDEFAULT;
- /**
- * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected static final String ARTIFACT_ID_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ARTIFACT_ID_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected String artifactId = ARTIFACT_ID_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected String artifactId = ARTIFACT_ID_EDEFAULT;
- /**
- * The default value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected static final String VERSION_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected static final String VERSION_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected String version = VERSION_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected String version = VERSION_EDEFAULT;
- /**
- * The default value of the '{@link #getMessage() <em>Message</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getMessage()
- * @generated
- * @ordered
- */
- protected static final String MESSAGE_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getMessage() <em>Message</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getMessage()
+ * @generated
+ * @ordered
+ */
+ protected static final String MESSAGE_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getMessage() <em>Message</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getMessage()
- * @generated
- * @ordered
- */
- protected String message = MESSAGE_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getMessage() <em>Message</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getMessage()
+ * @generated
+ * @ordered
+ */
+ protected String message = MESSAGE_EDEFAULT;
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected RelocationImpl() {
- super();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RelocationImpl() {
+ super();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.RELOCATION;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.RELOCATION;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getGroupId() {
- return groupId;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getGroupId() {
+ return groupId;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setGroupId(String newGroupId) {
- String oldGroupId = groupId;
- groupId = newGroupId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.RELOCATION__GROUP_ID, oldGroupId, groupId));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setGroupId(String newGroupId) {
+ String oldGroupId = groupId;
+ groupId = newGroupId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.RELOCATION__GROUP_ID, oldGroupId, groupId));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getArtifactId() {
- return artifactId;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getArtifactId() {
+ return artifactId;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setArtifactId(String newArtifactId) {
- String oldArtifactId = artifactId;
- artifactId = newArtifactId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.RELOCATION__ARTIFACT_ID, oldArtifactId,
- artifactId));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setArtifactId(String newArtifactId) {
+ String oldArtifactId = artifactId;
+ artifactId = newArtifactId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.RELOCATION__ARTIFACT_ID, oldArtifactId,
+ artifactId));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getVersion() {
- return version;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getVersion() {
+ return version;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setVersion(String newVersion) {
- String oldVersion = version;
- version = newVersion;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.RELOCATION__VERSION, oldVersion, version));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setVersion(String newVersion) {
+ String oldVersion = version;
+ version = newVersion;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.RELOCATION__VERSION, oldVersion, version));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getMessage() {
- return message;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getMessage() {
+ return message;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setMessage(String newMessage) {
- String oldMessage = message;
- message = newMessage;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.RELOCATION__MESSAGE, oldMessage, message));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setMessage(String newMessage) {
+ String oldMessage = message;
+ message = newMessage;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.RELOCATION__MESSAGE, oldMessage, message));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.RELOCATION__GROUP_ID:
- return getGroupId();
- case PomPackage.RELOCATION__ARTIFACT_ID:
- return getArtifactId();
- case PomPackage.RELOCATION__VERSION:
- return getVersion();
- case PomPackage.RELOCATION__MESSAGE:
- return getMessage();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.RELOCATION__GROUP_ID:
+ return getGroupId();
+ case PomPackage.RELOCATION__ARTIFACT_ID:
+ return getArtifactId();
+ case PomPackage.RELOCATION__VERSION:
+ return getVersion();
+ case PomPackage.RELOCATION__MESSAGE:
+ return getMessage();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.RELOCATION__GROUP_ID:
- setGroupId((String) newValue);
- return;
- case PomPackage.RELOCATION__ARTIFACT_ID:
- setArtifactId((String) newValue);
- return;
- case PomPackage.RELOCATION__VERSION:
- setVersion((String) newValue);
- return;
- case PomPackage.RELOCATION__MESSAGE:
- setMessage((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.RELOCATION__GROUP_ID:
+ setGroupId((String) newValue);
+ return;
+ case PomPackage.RELOCATION__ARTIFACT_ID:
+ setArtifactId((String) newValue);
+ return;
+ case PomPackage.RELOCATION__VERSION:
+ setVersion((String) newValue);
+ return;
+ case PomPackage.RELOCATION__MESSAGE:
+ setMessage((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.RELOCATION__GROUP_ID:
- setGroupId(GROUP_ID_EDEFAULT);
- return;
- case PomPackage.RELOCATION__ARTIFACT_ID:
- setArtifactId(ARTIFACT_ID_EDEFAULT);
- return;
- case PomPackage.RELOCATION__VERSION:
- setVersion(VERSION_EDEFAULT);
- return;
- case PomPackage.RELOCATION__MESSAGE:
- setMessage(MESSAGE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.RELOCATION__GROUP_ID:
+ setGroupId(GROUP_ID_EDEFAULT);
+ return;
+ case PomPackage.RELOCATION__ARTIFACT_ID:
+ setArtifactId(ARTIFACT_ID_EDEFAULT);
+ return;
+ case PomPackage.RELOCATION__VERSION:
+ setVersion(VERSION_EDEFAULT);
+ return;
+ case PomPackage.RELOCATION__MESSAGE:
+ setMessage(MESSAGE_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.RELOCATION__GROUP_ID:
- return GROUP_ID_EDEFAULT == null ? groupId != null
- : !GROUP_ID_EDEFAULT.equals(groupId);
- case PomPackage.RELOCATION__ARTIFACT_ID:
- return ARTIFACT_ID_EDEFAULT == null ? artifactId != null
- : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
- case PomPackage.RELOCATION__VERSION:
- return VERSION_EDEFAULT == null ? version != null
- : !VERSION_EDEFAULT.equals(version);
- case PomPackage.RELOCATION__MESSAGE:
- return MESSAGE_EDEFAULT == null ? message != null
- : !MESSAGE_EDEFAULT.equals(message);
- }
- return super.eIsSet(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.RELOCATION__GROUP_ID:
+ return GROUP_ID_EDEFAULT == null ? groupId != null : !GROUP_ID_EDEFAULT.equals(groupId);
+ case PomPackage.RELOCATION__ARTIFACT_ID:
+ return ARTIFACT_ID_EDEFAULT == null ? artifactId != null : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
+ case PomPackage.RELOCATION__VERSION:
+ return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version);
+ case PomPackage.RELOCATION__MESSAGE:
+ return MESSAGE_EDEFAULT == null ? message != null : !MESSAGE_EDEFAULT.equals(message);
+ }
+ return super.eIsSet(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (groupId: "); //$NON-NLS-1$
- result.append(groupId);
- result.append(", artifactId: "); //$NON-NLS-1$
- result.append(artifactId);
- result.append(", version: "); //$NON-NLS-1$
- result.append(version);
- result.append(", message: "); //$NON-NLS-1$
- result.append(message);
- result.append(')');
- return result.toString();
- }
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (groupId: "); //$NON-NLS-1$
+ result.append(groupId);
+ result.append(", artifactId: "); //$NON-NLS-1$
+ result.append(artifactId);
+ result.append(", version: "); //$NON-NLS-1$
+ result.append(version);
+ result.append(", message: "); //$NON-NLS-1$
+ result.append(message);
+ result.append(')');
+ return result.toString();
+ }
} // RelocationImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ReportPluginImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ReportPluginImpl.java
index af6fd86f..6dfcf328 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ReportPluginImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ReportPluginImpl.java
@@ -15,17 +15,14 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.Configuration;
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.ReportPlugin;
@@ -33,508 +30,485 @@ import org.eclipse.m2e.model.edit.pom.ReportSet;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Report Plugin</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Report Plugin</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl#getGroupId <em>
- * Group Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl#getArtifactId
- * <em>Artifact Id</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl#getVersion <em>
- * Version</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl#getInherited
- * <em>Inherited</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl#getReportSets
- * <em>Report Sets</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl#getGroupId <em> Group Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl#getArtifactId <em>Artifact Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl#getVersion <em> Version</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl#getInherited <em>Inherited</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl#getReportSets <em>Report Sets</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl#getConfiguration
- * <em>Configuration</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.ReportPluginImpl#getConfiguration <em>Configuration</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ReportPluginImpl extends EObjectImpl implements ReportPlugin {
- /**
- * The default value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected static final String GROUP_ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getGroupId() <em>Group Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getGroupId()
- * @generated
- * @ordered
- */
- protected String groupId = GROUP_ID_EDEFAULT;
-
- /**
- * This is true if the Group Id attribute has been set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean groupIdESet;
-
- /**
- * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected static final String ARTIFACT_ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getArtifactId()
- * @generated
- * @ordered
- */
- protected String artifactId = ARTIFACT_ID_EDEFAULT;
-
- /**
- * The default value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected static final String VERSION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getVersion() <em>Version</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected String version = VERSION_EDEFAULT;
-
- /**
- * The default value of the '{@link #getInherited() <em>Inherited</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getInherited()
- * @generated
- * @ordered
- */
- protected static final String INHERITED_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getInherited() <em>Inherited</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getInherited()
- * @generated
- * @ordered
- */
- protected String inherited = INHERITED_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getReportSets() <em>Report Sets</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getReportSets()
- * @generated
- * @ordered
- */
- protected EList<ReportSet> reportSets;
-
- /**
- * The cached value of the '{@link #getConfiguration()
- * <em>Configuration</em>}' reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getConfiguration()
- * @generated
- * @ordered
- */
- protected Configuration configuration;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ReportPluginImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.REPORT_PLUGIN;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getGroupId() {
- return groupId;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setGroupId(String newGroupId) {
- String oldGroupId = groupId;
- groupId = newGroupId;
- boolean oldGroupIdESet = groupIdESet;
- groupIdESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPORT_PLUGIN__GROUP_ID, oldGroupId, groupId,
- !oldGroupIdESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetGroupId() {
- String oldGroupId = groupId;
- boolean oldGroupIdESet = groupIdESet;
- groupId = GROUP_ID_EDEFAULT;
- groupIdESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.REPORT_PLUGIN__GROUP_ID, oldGroupId,
- GROUP_ID_EDEFAULT, oldGroupIdESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetGroupId() {
- return groupIdESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getArtifactId() {
- return artifactId;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setArtifactId(String newArtifactId) {
- String oldArtifactId = artifactId;
- artifactId = newArtifactId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPORT_PLUGIN__ARTIFACT_ID, oldArtifactId,
- artifactId));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getVersion() {
- return version;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setVersion(String newVersion) {
- String oldVersion = version;
- version = newVersion;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPORT_PLUGIN__VERSION, oldVersion, version));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getInherited() {
- return inherited;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setInherited(String newInherited) {
- String oldInherited = inherited;
- inherited = newInherited;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPORT_PLUGIN__INHERITED, oldInherited,
- inherited));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<ReportSet> getReportSets() {
- if (reportSets == null) {
- reportSets = new EObjectContainmentEList.Unsettable<ReportSet>(
- ReportSet.class, this,
- PomPackage.REPORT_PLUGIN__REPORT_SETS);
- }
- return reportSets;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetReportSets() {
- if (reportSets != null)
- ((InternalEList.Unsettable<?>) reportSets).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetReportSets() {
- return reportSets != null
- && ((InternalEList.Unsettable<?>) reportSets).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Configuration getConfiguration() {
- if (configuration != null && configuration.eIsProxy()) {
- InternalEObject oldConfiguration = (InternalEObject) configuration;
- configuration = (Configuration) eResolveProxy(oldConfiguration);
- if (configuration != oldConfiguration) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE,
- PomPackage.REPORT_PLUGIN__CONFIGURATION,
- oldConfiguration, configuration));
- }
- }
- return configuration;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Configuration basicGetConfiguration() {
- return configuration;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setConfiguration(Configuration newConfiguration) {
- Configuration oldConfiguration = configuration;
- configuration = newConfiguration;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPORT_PLUGIN__CONFIGURATION, oldConfiguration,
- configuration));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.REPORT_PLUGIN__REPORT_SETS:
- return ((InternalEList<?>) getReportSets()).basicRemove(otherEnd,
- msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.REPORT_PLUGIN__GROUP_ID:
- return getGroupId();
- case PomPackage.REPORT_PLUGIN__ARTIFACT_ID:
- return getArtifactId();
- case PomPackage.REPORT_PLUGIN__VERSION:
- return getVersion();
- case PomPackage.REPORT_PLUGIN__INHERITED:
- return getInherited();
- case PomPackage.REPORT_PLUGIN__REPORT_SETS:
- return getReportSets();
- case PomPackage.REPORT_PLUGIN__CONFIGURATION:
- if (resolve)
- return getConfiguration();
- return basicGetConfiguration();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.REPORT_PLUGIN__GROUP_ID:
- setGroupId((String) newValue);
- return;
- case PomPackage.REPORT_PLUGIN__ARTIFACT_ID:
- setArtifactId((String) newValue);
- return;
- case PomPackage.REPORT_PLUGIN__VERSION:
- setVersion((String) newValue);
- return;
- case PomPackage.REPORT_PLUGIN__INHERITED:
- setInherited((String) newValue);
- return;
- case PomPackage.REPORT_PLUGIN__REPORT_SETS:
- getReportSets().clear();
- getReportSets().addAll((Collection<? extends ReportSet>) newValue);
- return;
- case PomPackage.REPORT_PLUGIN__CONFIGURATION:
- setConfiguration((Configuration) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.REPORT_PLUGIN__GROUP_ID:
- unsetGroupId();
- return;
- case PomPackage.REPORT_PLUGIN__ARTIFACT_ID:
- setArtifactId(ARTIFACT_ID_EDEFAULT);
- return;
- case PomPackage.REPORT_PLUGIN__VERSION:
- setVersion(VERSION_EDEFAULT);
- return;
- case PomPackage.REPORT_PLUGIN__INHERITED:
- setInherited(INHERITED_EDEFAULT);
- return;
- case PomPackage.REPORT_PLUGIN__REPORT_SETS:
- unsetReportSets();
- return;
- case PomPackage.REPORT_PLUGIN__CONFIGURATION:
- setConfiguration((Configuration) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.REPORT_PLUGIN__GROUP_ID:
- return isSetGroupId();
- case PomPackage.REPORT_PLUGIN__ARTIFACT_ID:
- return ARTIFACT_ID_EDEFAULT == null ? artifactId != null
- : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
- case PomPackage.REPORT_PLUGIN__VERSION:
- return VERSION_EDEFAULT == null ? version != null
- : !VERSION_EDEFAULT.equals(version);
- case PomPackage.REPORT_PLUGIN__INHERITED:
- return INHERITED_EDEFAULT == null ? inherited != null
- : !INHERITED_EDEFAULT.equals(inherited);
- case PomPackage.REPORT_PLUGIN__REPORT_SETS:
- return isSetReportSets();
- case PomPackage.REPORT_PLUGIN__CONFIGURATION:
- return configuration != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (groupId: "); //$NON-NLS-1$
- if (groupIdESet)
- result.append(groupId);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", artifactId: "); //$NON-NLS-1$
- result.append(artifactId);
- result.append(", version: "); //$NON-NLS-1$
- result.append(version);
- result.append(", inherited: "); //$NON-NLS-1$
- result.append(inherited);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected static final String GROUP_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getGroupId() <em>Group Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getGroupId()
+ * @generated
+ * @ordered
+ */
+ protected String groupId = GROUP_ID_EDEFAULT;
+
+ /**
+ * This is true if the Group Id attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean groupIdESet;
+
+ /**
+ * The default value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ARTIFACT_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getArtifactId() <em>Artifact Id</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getArtifactId()
+ * @generated
+ * @ordered
+ */
+ protected String artifactId = ARTIFACT_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected static final String VERSION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected String version = VERSION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getInherited() <em>Inherited</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getInherited()
+ * @generated
+ * @ordered
+ */
+ protected static final String INHERITED_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getInherited() <em>Inherited</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getInherited()
+ * @generated
+ * @ordered
+ */
+ protected String inherited = INHERITED_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getReportSets() <em>Report Sets</em>}' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getReportSets()
+ * @generated
+ * @ordered
+ */
+ protected EList<ReportSet> reportSets;
+
+ /**
+ * The cached value of the '{@link #getConfiguration() <em>Configuration</em>}' reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getConfiguration()
+ * @generated
+ * @ordered
+ */
+ protected Configuration configuration;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ReportPluginImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.REPORT_PLUGIN;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getGroupId() {
+ return groupId;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setGroupId(String newGroupId) {
+ String oldGroupId = groupId;
+ groupId = newGroupId;
+ boolean oldGroupIdESet = groupIdESet;
+ groupIdESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPORT_PLUGIN__GROUP_ID, oldGroupId, groupId,
+ !oldGroupIdESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetGroupId() {
+ String oldGroupId = groupId;
+ boolean oldGroupIdESet = groupIdESet;
+ groupId = GROUP_ID_EDEFAULT;
+ groupIdESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.REPORT_PLUGIN__GROUP_ID, oldGroupId,
+ GROUP_ID_EDEFAULT, oldGroupIdESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetGroupId() {
+ return groupIdESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getArtifactId() {
+ return artifactId;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setArtifactId(String newArtifactId) {
+ String oldArtifactId = artifactId;
+ artifactId = newArtifactId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPORT_PLUGIN__ARTIFACT_ID, oldArtifactId,
+ artifactId));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setVersion(String newVersion) {
+ String oldVersion = version;
+ version = newVersion;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPORT_PLUGIN__VERSION, oldVersion, version));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getInherited() {
+ return inherited;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setInherited(String newInherited) {
+ String oldInherited = inherited;
+ inherited = newInherited;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPORT_PLUGIN__INHERITED, oldInherited,
+ inherited));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<ReportSet> getReportSets() {
+ if(reportSets == null) {
+ reportSets = new EObjectContainmentEList.Unsettable<ReportSet>(ReportSet.class, this,
+ PomPackage.REPORT_PLUGIN__REPORT_SETS);
+ }
+ return reportSets;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetReportSets() {
+ if(reportSets != null)
+ ((InternalEList.Unsettable<?>) reportSets).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetReportSets() {
+ return reportSets != null && ((InternalEList.Unsettable<?>) reportSets).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Configuration getConfiguration() {
+ if(configuration != null && configuration.eIsProxy()) {
+ InternalEObject oldConfiguration = (InternalEObject) configuration;
+ configuration = (Configuration) eResolveProxy(oldConfiguration);
+ if(configuration != oldConfiguration) {
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, PomPackage.REPORT_PLUGIN__CONFIGURATION,
+ oldConfiguration, configuration));
+ }
+ }
+ return configuration;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Configuration basicGetConfiguration() {
+ return configuration;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setConfiguration(Configuration newConfiguration) {
+ Configuration oldConfiguration = configuration;
+ configuration = newConfiguration;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPORT_PLUGIN__CONFIGURATION, oldConfiguration,
+ configuration));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.REPORT_PLUGIN__REPORT_SETS:
+ return ((InternalEList<?>) getReportSets()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.REPORT_PLUGIN__GROUP_ID:
+ return getGroupId();
+ case PomPackage.REPORT_PLUGIN__ARTIFACT_ID:
+ return getArtifactId();
+ case PomPackage.REPORT_PLUGIN__VERSION:
+ return getVersion();
+ case PomPackage.REPORT_PLUGIN__INHERITED:
+ return getInherited();
+ case PomPackage.REPORT_PLUGIN__REPORT_SETS:
+ return getReportSets();
+ case PomPackage.REPORT_PLUGIN__CONFIGURATION:
+ if(resolve)
+ return getConfiguration();
+ return basicGetConfiguration();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.REPORT_PLUGIN__GROUP_ID:
+ setGroupId((String) newValue);
+ return;
+ case PomPackage.REPORT_PLUGIN__ARTIFACT_ID:
+ setArtifactId((String) newValue);
+ return;
+ case PomPackage.REPORT_PLUGIN__VERSION:
+ setVersion((String) newValue);
+ return;
+ case PomPackage.REPORT_PLUGIN__INHERITED:
+ setInherited((String) newValue);
+ return;
+ case PomPackage.REPORT_PLUGIN__REPORT_SETS:
+ getReportSets().clear();
+ getReportSets().addAll((Collection<? extends ReportSet>) newValue);
+ return;
+ case PomPackage.REPORT_PLUGIN__CONFIGURATION:
+ setConfiguration((Configuration) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.REPORT_PLUGIN__GROUP_ID:
+ unsetGroupId();
+ return;
+ case PomPackage.REPORT_PLUGIN__ARTIFACT_ID:
+ setArtifactId(ARTIFACT_ID_EDEFAULT);
+ return;
+ case PomPackage.REPORT_PLUGIN__VERSION:
+ setVersion(VERSION_EDEFAULT);
+ return;
+ case PomPackage.REPORT_PLUGIN__INHERITED:
+ setInherited(INHERITED_EDEFAULT);
+ return;
+ case PomPackage.REPORT_PLUGIN__REPORT_SETS:
+ unsetReportSets();
+ return;
+ case PomPackage.REPORT_PLUGIN__CONFIGURATION:
+ setConfiguration((Configuration) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.REPORT_PLUGIN__GROUP_ID:
+ return isSetGroupId();
+ case PomPackage.REPORT_PLUGIN__ARTIFACT_ID:
+ return ARTIFACT_ID_EDEFAULT == null ? artifactId != null : !ARTIFACT_ID_EDEFAULT.equals(artifactId);
+ case PomPackage.REPORT_PLUGIN__VERSION:
+ return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version);
+ case PomPackage.REPORT_PLUGIN__INHERITED:
+ return INHERITED_EDEFAULT == null ? inherited != null : !INHERITED_EDEFAULT.equals(inherited);
+ case PomPackage.REPORT_PLUGIN__REPORT_SETS:
+ return isSetReportSets();
+ case PomPackage.REPORT_PLUGIN__CONFIGURATION:
+ return configuration != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (groupId: "); //$NON-NLS-1$
+ if(groupIdESet)
+ result.append(groupId);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", artifactId: "); //$NON-NLS-1$
+ result.append(artifactId);
+ result.append(", version: "); //$NON-NLS-1$
+ result.append(version);
+ result.append(", inherited: "); //$NON-NLS-1$
+ result.append(inherited);
+ result.append(')');
+ return result.toString();
+ }
} // ReportPluginImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ReportSetImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ReportSetImpl.java
index 5b45af61..13d78d55 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ReportSetImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ReportSetImpl.java
@@ -14,370 +14,351 @@ package org.eclipse.m2e.model.edit.pom.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EDataTypeEList;
+
import org.eclipse.m2e.model.edit.pom.Configuration;
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.ReportSet;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Report Set</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Report Set</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl#getId <em>Id</em>}
- * </li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl#getInherited <em>
- * Inherited</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl#getReports <em>
- * Reports</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl#getConfiguration
- * <em>Configuration</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl#getId <em>Id</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl#getInherited <em> Inherited</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl#getReports <em> Reports</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportSetImpl#getConfiguration <em>Configuration</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ReportSetImpl extends EObjectImpl implements ReportSet {
- /**
- * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected static final String ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected String id = ID_EDEFAULT;
-
- /**
- * This is true if the Id attribute has been set. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean idESet;
-
- /**
- * The default value of the '{@link #getInherited() <em>Inherited</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getInherited()
- * @generated
- * @ordered
- */
- protected static final String INHERITED_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getInherited() <em>Inherited</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getInherited()
- * @generated
- * @ordered
- */
- protected String inherited = INHERITED_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getReports() <em>Reports</em>}'
- * attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getReports()
- * @generated
- * @ordered
- */
- protected EList<String> reports;
-
- /**
- * The cached value of the '{@link #getConfiguration()
- * <em>Configuration</em>}' reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getConfiguration()
- * @generated
- * @ordered
- */
- protected Configuration configuration;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ReportSetImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.REPORT_SET;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getId() {
- return id;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setId(String newId) {
- String oldId = id;
- id = newId;
- boolean oldIdESet = idESet;
- idESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPORT_SET__ID, oldId, id, !oldIdESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetId() {
- String oldId = id;
- boolean oldIdESet = idESet;
- id = ID_EDEFAULT;
- idESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.REPORT_SET__ID, oldId, ID_EDEFAULT, oldIdESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetId() {
- return idESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getInherited() {
- return inherited;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setInherited(String newInherited) {
- String oldInherited = inherited;
- inherited = newInherited;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPORT_SET__INHERITED, oldInherited, inherited));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getReports() {
- if (reports == null) {
- reports = new EDataTypeEList<String>(String.class, this,
- PomPackage.REPORT_SET__REPORTS);
- }
- return reports;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Configuration getConfiguration() {
- if (configuration != null && configuration.eIsProxy()) {
- InternalEObject oldConfiguration = (InternalEObject) configuration;
- configuration = (Configuration) eResolveProxy(oldConfiguration);
- if (configuration != oldConfiguration) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE,
- PomPackage.REPORT_SET__CONFIGURATION,
- oldConfiguration, configuration));
- }
- }
- return configuration;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Configuration basicGetConfiguration() {
- return configuration;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setConfiguration(Configuration newConfiguration) {
- Configuration oldConfiguration = configuration;
- configuration = newConfiguration;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPORT_SET__CONFIGURATION, oldConfiguration,
- configuration));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.REPORT_SET__ID:
- return getId();
- case PomPackage.REPORT_SET__INHERITED:
- return getInherited();
- case PomPackage.REPORT_SET__REPORTS:
- return getReports();
- case PomPackage.REPORT_SET__CONFIGURATION:
- if (resolve)
- return getConfiguration();
- return basicGetConfiguration();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.REPORT_SET__ID:
- setId((String) newValue);
- return;
- case PomPackage.REPORT_SET__INHERITED:
- setInherited((String) newValue);
- return;
- case PomPackage.REPORT_SET__REPORTS:
- getReports().clear();
- getReports().addAll((Collection<? extends String>) newValue);
- return;
- case PomPackage.REPORT_SET__CONFIGURATION:
- setConfiguration((Configuration) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.REPORT_SET__ID:
- unsetId();
- return;
- case PomPackage.REPORT_SET__INHERITED:
- setInherited(INHERITED_EDEFAULT);
- return;
- case PomPackage.REPORT_SET__REPORTS:
- getReports().clear();
- return;
- case PomPackage.REPORT_SET__CONFIGURATION:
- setConfiguration((Configuration) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.REPORT_SET__ID:
- return isSetId();
- case PomPackage.REPORT_SET__INHERITED:
- return INHERITED_EDEFAULT == null ? inherited != null
- : !INHERITED_EDEFAULT.equals(inherited);
- case PomPackage.REPORT_SET__REPORTS:
- return reports != null && !reports.isEmpty();
- case PomPackage.REPORT_SET__CONFIGURATION:
- return configuration != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (id: "); //$NON-NLS-1$
- if (idESet)
- result.append(id);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", inherited: "); //$NON-NLS-1$
- result.append(inherited);
- result.append(", reports: "); //$NON-NLS-1$
- result.append(reports);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+
+ /**
+ * This is true if the Id attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean idESet;
+
+ /**
+ * The default value of the '{@link #getInherited() <em>Inherited</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getInherited()
+ * @generated
+ * @ordered
+ */
+ protected static final String INHERITED_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getInherited() <em>Inherited</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getInherited()
+ * @generated
+ * @ordered
+ */
+ protected String inherited = INHERITED_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getReports() <em>Reports</em>}' attribute list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getReports()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> reports;
+
+ /**
+ * The cached value of the '{@link #getConfiguration() <em>Configuration</em>}' reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getConfiguration()
+ * @generated
+ * @ordered
+ */
+ protected Configuration configuration;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ReportSetImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.REPORT_SET;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ boolean oldIdESet = idESet;
+ idESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPORT_SET__ID, oldId, id, !oldIdESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetId() {
+ String oldId = id;
+ boolean oldIdESet = idESet;
+ id = ID_EDEFAULT;
+ idESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.REPORT_SET__ID, oldId, ID_EDEFAULT, oldIdESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetId() {
+ return idESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getInherited() {
+ return inherited;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setInherited(String newInherited) {
+ String oldInherited = inherited;
+ inherited = newInherited;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPORT_SET__INHERITED, oldInherited, inherited));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<String> getReports() {
+ if(reports == null) {
+ reports = new EDataTypeEList<String>(String.class, this, PomPackage.REPORT_SET__REPORTS);
+ }
+ return reports;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Configuration getConfiguration() {
+ if(configuration != null && configuration.eIsProxy()) {
+ InternalEObject oldConfiguration = (InternalEObject) configuration;
+ configuration = (Configuration) eResolveProxy(oldConfiguration);
+ if(configuration != oldConfiguration) {
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, PomPackage.REPORT_SET__CONFIGURATION,
+ oldConfiguration, configuration));
+ }
+ }
+ return configuration;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Configuration basicGetConfiguration() {
+ return configuration;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setConfiguration(Configuration newConfiguration) {
+ Configuration oldConfiguration = configuration;
+ configuration = newConfiguration;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPORT_SET__CONFIGURATION, oldConfiguration,
+ configuration));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.REPORT_SET__ID:
+ return getId();
+ case PomPackage.REPORT_SET__INHERITED:
+ return getInherited();
+ case PomPackage.REPORT_SET__REPORTS:
+ return getReports();
+ case PomPackage.REPORT_SET__CONFIGURATION:
+ if(resolve)
+ return getConfiguration();
+ return basicGetConfiguration();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.REPORT_SET__ID:
+ setId((String) newValue);
+ return;
+ case PomPackage.REPORT_SET__INHERITED:
+ setInherited((String) newValue);
+ return;
+ case PomPackage.REPORT_SET__REPORTS:
+ getReports().clear();
+ getReports().addAll((Collection<? extends String>) newValue);
+ return;
+ case PomPackage.REPORT_SET__CONFIGURATION:
+ setConfiguration((Configuration) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.REPORT_SET__ID:
+ unsetId();
+ return;
+ case PomPackage.REPORT_SET__INHERITED:
+ setInherited(INHERITED_EDEFAULT);
+ return;
+ case PomPackage.REPORT_SET__REPORTS:
+ getReports().clear();
+ return;
+ case PomPackage.REPORT_SET__CONFIGURATION:
+ setConfiguration((Configuration) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.REPORT_SET__ID:
+ return isSetId();
+ case PomPackage.REPORT_SET__INHERITED:
+ return INHERITED_EDEFAULT == null ? inherited != null : !INHERITED_EDEFAULT.equals(inherited);
+ case PomPackage.REPORT_SET__REPORTS:
+ return reports != null && !reports.isEmpty();
+ case PomPackage.REPORT_SET__CONFIGURATION:
+ return configuration != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (id: "); //$NON-NLS-1$
+ if(idESet)
+ result.append(id);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", inherited: "); //$NON-NLS-1$
+ result.append(inherited);
+ result.append(", reports: "); //$NON-NLS-1$
+ result.append(reports);
+ result.append(')');
+ return result.toString();
+ }
} // ReportSetImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ReportingImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ReportingImpl.java
index 5e120122..848ec6e8 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ReportingImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ReportingImpl.java
@@ -15,347 +15,329 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.ReportPlugin;
import org.eclipse.m2e.model.edit.pom.Reporting;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Reporting</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Reporting</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.ReportingImpl#getExcludeDefaults
- * <em>Exclude Defaults</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.ReportingImpl#getExcludeDefaults <em>Exclude Defaults</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.ReportingImpl#getOutputDirectory
- * <em>Output Directory</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportingImpl#getPlugins <em>
- * Plugins</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.ReportingImpl#getOutputDirectory <em>Output Directory</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ReportingImpl#getPlugins <em> Plugins</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ReportingImpl extends EObjectImpl implements Reporting {
- /**
- * The default value of the '{@link #getExcludeDefaults()
- * <em>Exclude Defaults</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getExcludeDefaults()
- * @generated
- * @ordered
- */
- protected static final String EXCLUDE_DEFAULTS_EDEFAULT = "false"; //$NON-NLS-1$
-
- /**
- * The cached value of the '{@link #getExcludeDefaults()
- * <em>Exclude Defaults</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getExcludeDefaults()
- * @generated
- * @ordered
- */
- protected String excludeDefaults = EXCLUDE_DEFAULTS_EDEFAULT;
-
- /**
- * This is true if the Exclude Defaults attribute has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean excludeDefaultsESet;
-
- /**
- * The default value of the '{@link #getOutputDirectory()
- * <em>Output Directory</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getOutputDirectory()
- * @generated
- * @ordered
- */
- protected static final String OUTPUT_DIRECTORY_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getOutputDirectory()
- * <em>Output Directory</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getOutputDirectory()
- * @generated
- * @ordered
- */
- protected String outputDirectory = OUTPUT_DIRECTORY_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getPlugins() <em>Plugins</em>}'
- * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getPlugins()
- * @generated
- * @ordered
- */
- protected EList<ReportPlugin> plugins;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ReportingImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.REPORTING;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getExcludeDefaults() {
- return excludeDefaults;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setExcludeDefaults(String newExcludeDefaults) {
- String oldExcludeDefaults = excludeDefaults;
- excludeDefaults = newExcludeDefaults;
- boolean oldExcludeDefaultsESet = excludeDefaultsESet;
- excludeDefaultsESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPORTING__EXCLUDE_DEFAULTS, oldExcludeDefaults,
- excludeDefaults, !oldExcludeDefaultsESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetExcludeDefaults() {
- String oldExcludeDefaults = excludeDefaults;
- boolean oldExcludeDefaultsESet = excludeDefaultsESet;
- excludeDefaults = EXCLUDE_DEFAULTS_EDEFAULT;
- excludeDefaultsESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.REPORTING__EXCLUDE_DEFAULTS, oldExcludeDefaults,
- EXCLUDE_DEFAULTS_EDEFAULT, oldExcludeDefaultsESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetExcludeDefaults() {
- return excludeDefaultsESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getOutputDirectory() {
- return outputDirectory;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setOutputDirectory(String newOutputDirectory) {
- String oldOutputDirectory = outputDirectory;
- outputDirectory = newOutputDirectory;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPORTING__OUTPUT_DIRECTORY, oldOutputDirectory,
- outputDirectory));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<ReportPlugin> getPlugins() {
- if (plugins == null) {
- plugins = new EObjectContainmentEList.Unsettable<ReportPlugin>(
- ReportPlugin.class, this, PomPackage.REPORTING__PLUGINS);
- }
- return plugins;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetPlugins() {
- if (plugins != null)
- ((InternalEList.Unsettable<?>) plugins).unset();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetPlugins() {
- return plugins != null
- && ((InternalEList.Unsettable<?>) plugins).isSet();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.REPORTING__PLUGINS:
- return ((InternalEList<?>) getPlugins())
- .basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.REPORTING__EXCLUDE_DEFAULTS:
- return getExcludeDefaults();
- case PomPackage.REPORTING__OUTPUT_DIRECTORY:
- return getOutputDirectory();
- case PomPackage.REPORTING__PLUGINS:
- return getPlugins();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.REPORTING__EXCLUDE_DEFAULTS:
- setExcludeDefaults((String) newValue);
- return;
- case PomPackage.REPORTING__OUTPUT_DIRECTORY:
- setOutputDirectory((String) newValue);
- return;
- case PomPackage.REPORTING__PLUGINS:
- getPlugins().clear();
- getPlugins().addAll((Collection<? extends ReportPlugin>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.REPORTING__EXCLUDE_DEFAULTS:
- unsetExcludeDefaults();
- return;
- case PomPackage.REPORTING__OUTPUT_DIRECTORY:
- setOutputDirectory(OUTPUT_DIRECTORY_EDEFAULT);
- return;
- case PomPackage.REPORTING__PLUGINS:
- unsetPlugins();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.REPORTING__EXCLUDE_DEFAULTS:
- return isSetExcludeDefaults();
- case PomPackage.REPORTING__OUTPUT_DIRECTORY:
- return OUTPUT_DIRECTORY_EDEFAULT == null ? outputDirectory != null
- : !OUTPUT_DIRECTORY_EDEFAULT.equals(outputDirectory);
- case PomPackage.REPORTING__PLUGINS:
- return isSetPlugins();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (excludeDefaults: "); //$NON-NLS-1$
- if (excludeDefaultsESet)
- result.append(excludeDefaults);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", outputDirectory: "); //$NON-NLS-1$
- result.append(outputDirectory);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getExcludeDefaults() <em>Exclude Defaults</em>}' attribute. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getExcludeDefaults()
+ * @generated
+ * @ordered
+ */
+ protected static final String EXCLUDE_DEFAULTS_EDEFAULT = "false"; //$NON-NLS-1$
+
+ /**
+ * The cached value of the '{@link #getExcludeDefaults() <em>Exclude Defaults</em>}' attribute. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getExcludeDefaults()
+ * @generated
+ * @ordered
+ */
+ protected String excludeDefaults = EXCLUDE_DEFAULTS_EDEFAULT;
+
+ /**
+ * This is true if the Exclude Defaults attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean excludeDefaultsESet;
+
+ /**
+ * The default value of the '{@link #getOutputDirectory() <em>Output Directory</em>}' attribute. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getOutputDirectory()
+ * @generated
+ * @ordered
+ */
+ protected static final String OUTPUT_DIRECTORY_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOutputDirectory() <em>Output Directory</em>}' attribute. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getOutputDirectory()
+ * @generated
+ * @ordered
+ */
+ protected String outputDirectory = OUTPUT_DIRECTORY_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getPlugins() <em>Plugins</em>}' containment reference list. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getPlugins()
+ * @generated
+ * @ordered
+ */
+ protected EList<ReportPlugin> plugins;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ReportingImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.REPORTING;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getExcludeDefaults() {
+ return excludeDefaults;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setExcludeDefaults(String newExcludeDefaults) {
+ String oldExcludeDefaults = excludeDefaults;
+ excludeDefaults = newExcludeDefaults;
+ boolean oldExcludeDefaultsESet = excludeDefaultsESet;
+ excludeDefaultsESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPORTING__EXCLUDE_DEFAULTS, oldExcludeDefaults,
+ excludeDefaults, !oldExcludeDefaultsESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetExcludeDefaults() {
+ String oldExcludeDefaults = excludeDefaults;
+ boolean oldExcludeDefaultsESet = excludeDefaultsESet;
+ excludeDefaults = EXCLUDE_DEFAULTS_EDEFAULT;
+ excludeDefaultsESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.REPORTING__EXCLUDE_DEFAULTS,
+ oldExcludeDefaults, EXCLUDE_DEFAULTS_EDEFAULT, oldExcludeDefaultsESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetExcludeDefaults() {
+ return excludeDefaultsESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getOutputDirectory() {
+ return outputDirectory;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setOutputDirectory(String newOutputDirectory) {
+ String oldOutputDirectory = outputDirectory;
+ outputDirectory = newOutputDirectory;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPORTING__OUTPUT_DIRECTORY, oldOutputDirectory,
+ outputDirectory));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<ReportPlugin> getPlugins() {
+ if(plugins == null) {
+ plugins = new EObjectContainmentEList.Unsettable<ReportPlugin>(ReportPlugin.class, this,
+ PomPackage.REPORTING__PLUGINS);
+ }
+ return plugins;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetPlugins() {
+ if(plugins != null)
+ ((InternalEList.Unsettable<?>) plugins).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetPlugins() {
+ return plugins != null && ((InternalEList.Unsettable<?>) plugins).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.REPORTING__PLUGINS:
+ return ((InternalEList<?>) getPlugins()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.REPORTING__EXCLUDE_DEFAULTS:
+ return getExcludeDefaults();
+ case PomPackage.REPORTING__OUTPUT_DIRECTORY:
+ return getOutputDirectory();
+ case PomPackage.REPORTING__PLUGINS:
+ return getPlugins();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.REPORTING__EXCLUDE_DEFAULTS:
+ setExcludeDefaults((String) newValue);
+ return;
+ case PomPackage.REPORTING__OUTPUT_DIRECTORY:
+ setOutputDirectory((String) newValue);
+ return;
+ case PomPackage.REPORTING__PLUGINS:
+ getPlugins().clear();
+ getPlugins().addAll((Collection<? extends ReportPlugin>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.REPORTING__EXCLUDE_DEFAULTS:
+ unsetExcludeDefaults();
+ return;
+ case PomPackage.REPORTING__OUTPUT_DIRECTORY:
+ setOutputDirectory(OUTPUT_DIRECTORY_EDEFAULT);
+ return;
+ case PomPackage.REPORTING__PLUGINS:
+ unsetPlugins();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.REPORTING__EXCLUDE_DEFAULTS:
+ return isSetExcludeDefaults();
+ case PomPackage.REPORTING__OUTPUT_DIRECTORY:
+ return OUTPUT_DIRECTORY_EDEFAULT == null ? outputDirectory != null : !OUTPUT_DIRECTORY_EDEFAULT
+ .equals(outputDirectory);
+ case PomPackage.REPORTING__PLUGINS:
+ return isSetPlugins();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (excludeDefaults: "); //$NON-NLS-1$
+ if(excludeDefaultsESet)
+ result.append(excludeDefaults);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", outputDirectory: "); //$NON-NLS-1$
+ result.append(outputDirectory);
+ result.append(')');
+ return result.toString();
+ }
} // ReportingImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/RepositoryImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/RepositoryImpl.java
index afc9362f..86c286fa 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/RepositoryImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/RepositoryImpl.java
@@ -13,686 +13,646 @@ package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.Repository;
import org.eclipse.m2e.model.edit.pom.RepositoryPolicy;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Repository</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Repository</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl#getReleases <em>
- * Releases</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl#getSnapshots <em>
- * Snapshots</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl#getId <em>Id
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl#getName <em>Name
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl#getUrl <em>Url
- * </em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl#getLayout <em>
- * Layout</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl#getReleases <em> Releases</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl#getSnapshots <em> Snapshots</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl#getId <em>Id </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl#getName <em>Name </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl#getUrl <em>Url </em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryImpl#getLayout <em> Layout</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class RepositoryImpl extends EObjectImpl implements Repository {
- /**
- * The cached value of the '{@link #getReleases() <em>Releases</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getReleases()
- * @generated
- * @ordered
- */
- protected RepositoryPolicy releases;
-
- /**
- * This is true if the Releases containment reference has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean releasesESet;
-
- /**
- * The cached value of the '{@link #getSnapshots() <em>Snapshots</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getSnapshots()
- * @generated
- * @ordered
- */
- protected RepositoryPolicy snapshots;
-
- /**
- * This is true if the Snapshots containment reference has been set. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean snapshotsESet;
-
- /**
- * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected static final String ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected String id = ID_EDEFAULT;
-
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected static final String URL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected String url = URL_EDEFAULT;
-
- /**
- * The default value of the '{@link #getLayout() <em>Layout</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getLayout()
- * @generated
- * @ordered
- */
- protected static final String LAYOUT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLayout() <em>Layout</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getLayout()
- * @generated
- * @ordered
- */
- protected String layout = LAYOUT_EDEFAULT;
-
- /**
- * This is true if the Layout attribute has been set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean layoutESet;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected RepositoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.REPOSITORY;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public RepositoryPolicy getReleases() {
- return releases;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetReleases(RepositoryPolicy newReleases,
- NotificationChain msgs) {
- RepositoryPolicy oldReleases = releases;
- releases = newReleases;
- boolean oldReleasesESet = releasesESet;
- releasesESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.REPOSITORY__RELEASES,
- oldReleases, newReleases, !oldReleasesESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setReleases(RepositoryPolicy newReleases) {
- if (newReleases != releases) {
- NotificationChain msgs = null;
- if (releases != null)
- msgs = ((InternalEObject) releases).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.REPOSITORY__RELEASES, null, msgs);
- if (newReleases != null)
- msgs = ((InternalEObject) newReleases).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.REPOSITORY__RELEASES, null, msgs);
- msgs = basicSetReleases(newReleases, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldReleasesESet = releasesESet;
- releasesESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPOSITORY__RELEASES, newReleases,
- newReleases, !oldReleasesESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetReleases(NotificationChain msgs) {
- RepositoryPolicy oldReleases = releases;
- releases = null;
- boolean oldReleasesESet = releasesESet;
- releasesESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET, PomPackage.REPOSITORY__RELEASES,
- oldReleases, null, oldReleasesESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetReleases() {
- if (releases != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) releases).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.REPOSITORY__RELEASES,
- null, msgs);
- msgs = basicUnsetReleases(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldReleasesESet = releasesESet;
- releasesESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.REPOSITORY__RELEASES, null, null,
- oldReleasesESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetReleases() {
- return releasesESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public RepositoryPolicy getSnapshots() {
- return snapshots;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetSnapshots(RepositoryPolicy newSnapshots,
- NotificationChain msgs) {
- RepositoryPolicy oldSnapshots = snapshots;
- snapshots = newSnapshots;
- boolean oldSnapshotsESet = snapshotsESet;
- snapshotsESet = true;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET, PomPackage.REPOSITORY__SNAPSHOTS,
- oldSnapshots, newSnapshots, !oldSnapshotsESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setSnapshots(RepositoryPolicy newSnapshots) {
- if (newSnapshots != snapshots) {
- NotificationChain msgs = null;
- if (snapshots != null)
- msgs = ((InternalEObject) snapshots).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.REPOSITORY__SNAPSHOTS, null, msgs);
- if (newSnapshots != null)
- msgs = ((InternalEObject) newSnapshots).eInverseAdd(this,
- EOPPOSITE_FEATURE_BASE
- - PomPackage.REPOSITORY__SNAPSHOTS, null, msgs);
- msgs = basicSetSnapshots(newSnapshots, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldSnapshotsESet = snapshotsESet;
- snapshotsESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPOSITORY__SNAPSHOTS, newSnapshots,
- newSnapshots, !oldSnapshotsESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicUnsetSnapshots(NotificationChain msgs) {
- RepositoryPolicy oldSnapshots = snapshots;
- snapshots = null;
- boolean oldSnapshotsESet = snapshotsESet;
- snapshotsESet = false;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.UNSET, PomPackage.REPOSITORY__SNAPSHOTS,
- oldSnapshots, null, oldSnapshotsESet);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetSnapshots() {
- if (snapshots != null) {
- NotificationChain msgs = null;
- msgs = ((InternalEObject) snapshots).eInverseRemove(this,
- EOPPOSITE_FEATURE_BASE - PomPackage.REPOSITORY__SNAPSHOTS,
- null, msgs);
- msgs = basicUnsetSnapshots(msgs);
- if (msgs != null)
- msgs.dispatch();
- } else {
- boolean oldSnapshotsESet = snapshotsESet;
- snapshotsESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.REPOSITORY__SNAPSHOTS, null, null,
- oldSnapshotsESet));
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetSnapshots() {
- return snapshotsESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getId() {
- return id;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setId(String newId) {
- String oldId = id;
- id = newId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPOSITORY__ID, oldId, id));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPOSITORY__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getUrl() {
- return url;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setUrl(String newUrl) {
- String oldUrl = url;
- url = newUrl;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPOSITORY__URL, oldUrl, url));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getLayout() {
- return layout;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setLayout(String newLayout) {
- String oldLayout = layout;
- layout = newLayout;
- boolean oldLayoutESet = layoutESet;
- layoutESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPOSITORY__LAYOUT, oldLayout, layout,
- !oldLayoutESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetLayout() {
- String oldLayout = layout;
- boolean oldLayoutESet = layoutESet;
- layout = LAYOUT_EDEFAULT;
- layoutESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.REPOSITORY__LAYOUT, oldLayout, LAYOUT_EDEFAULT,
- oldLayoutESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetLayout() {
- return layoutESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PomPackage.REPOSITORY__RELEASES:
- return basicUnsetReleases(msgs);
- case PomPackage.REPOSITORY__SNAPSHOTS:
- return basicUnsetSnapshots(msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.REPOSITORY__RELEASES:
- return getReleases();
- case PomPackage.REPOSITORY__SNAPSHOTS:
- return getSnapshots();
- case PomPackage.REPOSITORY__ID:
- return getId();
- case PomPackage.REPOSITORY__NAME:
- return getName();
- case PomPackage.REPOSITORY__URL:
- return getUrl();
- case PomPackage.REPOSITORY__LAYOUT:
- return getLayout();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.REPOSITORY__RELEASES:
- setReleases((RepositoryPolicy) newValue);
- return;
- case PomPackage.REPOSITORY__SNAPSHOTS:
- setSnapshots((RepositoryPolicy) newValue);
- return;
- case PomPackage.REPOSITORY__ID:
- setId((String) newValue);
- return;
- case PomPackage.REPOSITORY__NAME:
- setName((String) newValue);
- return;
- case PomPackage.REPOSITORY__URL:
- setUrl((String) newValue);
- return;
- case PomPackage.REPOSITORY__LAYOUT:
- setLayout((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.REPOSITORY__RELEASES:
- unsetReleases();
- return;
- case PomPackage.REPOSITORY__SNAPSHOTS:
- unsetSnapshots();
- return;
- case PomPackage.REPOSITORY__ID:
- setId(ID_EDEFAULT);
- return;
- case PomPackage.REPOSITORY__NAME:
- setName(NAME_EDEFAULT);
- return;
- case PomPackage.REPOSITORY__URL:
- setUrl(URL_EDEFAULT);
- return;
- case PomPackage.REPOSITORY__LAYOUT:
- unsetLayout();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.REPOSITORY__RELEASES:
- return isSetReleases();
- case PomPackage.REPOSITORY__SNAPSHOTS:
- return isSetSnapshots();
- case PomPackage.REPOSITORY__ID:
- return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
- case PomPackage.REPOSITORY__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT
- .equals(name);
- case PomPackage.REPOSITORY__URL:
- return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT
- .equals(url);
- case PomPackage.REPOSITORY__LAYOUT:
- return isSetLayout();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (id: "); //$NON-NLS-1$
- result.append(id);
- result.append(", name: "); //$NON-NLS-1$
- result.append(name);
- result.append(", url: "); //$NON-NLS-1$
- result.append(url);
- result.append(", layout: "); //$NON-NLS-1$
- if (layoutESet)
- result.append(layout);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(')');
- return result.toString();
- }
+ /**
+ * The cached value of the '{@link #getReleases() <em>Releases</em>}' containment reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getReleases()
+ * @generated
+ * @ordered
+ */
+ protected RepositoryPolicy releases;
+
+ /**
+ * This is true if the Releases containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean releasesESet;
+
+ /**
+ * The cached value of the '{@link #getSnapshots() <em>Snapshots</em>}' containment reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getSnapshots()
+ * @generated
+ * @ordered
+ */
+ protected RepositoryPolicy snapshots;
+
+ /**
+ * This is true if the Snapshots containment reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean snapshotsESet;
+
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String URL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected String url = URL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getLayout() <em>Layout</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getLayout()
+ * @generated
+ * @ordered
+ */
+ protected static final String LAYOUT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getLayout() <em>Layout</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getLayout()
+ * @generated
+ * @ordered
+ */
+ protected String layout = LAYOUT_EDEFAULT;
+
+ /**
+ * This is true if the Layout attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean layoutESet;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RepositoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.REPOSITORY;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RepositoryPolicy getReleases() {
+ return releases;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetReleases(RepositoryPolicy newReleases, NotificationChain msgs) {
+ RepositoryPolicy oldReleases = releases;
+ releases = newReleases;
+ boolean oldReleasesESet = releasesESet;
+ releasesESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PomPackage.REPOSITORY__RELEASES,
+ oldReleases, newReleases, !oldReleasesESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setReleases(RepositoryPolicy newReleases) {
+ if(newReleases != releases) {
+ NotificationChain msgs = null;
+ if(releases != null)
+ msgs = ((InternalEObject) releases).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.REPOSITORY__RELEASES, null, msgs);
+ if(newReleases != null)
+ msgs = ((InternalEObject) newReleases).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.REPOSITORY__RELEASES, null, msgs);
+ msgs = basicSetReleases(newReleases, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldReleasesESet = releasesESet;
+ releasesESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPOSITORY__RELEASES, newReleases,
+ newReleases, !oldReleasesESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetReleases(NotificationChain msgs) {
+ RepositoryPolicy oldReleases = releases;
+ releases = null;
+ boolean oldReleasesESet = releasesESet;
+ releasesESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET, PomPackage.REPOSITORY__RELEASES,
+ oldReleases, null, oldReleasesESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetReleases() {
+ if(releases != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) releases).eInverseRemove(this,
+ EOPPOSITE_FEATURE_BASE - PomPackage.REPOSITORY__RELEASES, null, msgs);
+ msgs = basicUnsetReleases(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldReleasesESet = releasesESet;
+ releasesESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.REPOSITORY__RELEASES, null, null,
+ oldReleasesESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetReleases() {
+ return releasesESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RepositoryPolicy getSnapshots() {
+ return snapshots;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetSnapshots(RepositoryPolicy newSnapshots, NotificationChain msgs) {
+ RepositoryPolicy oldSnapshots = snapshots;
+ snapshots = newSnapshots;
+ boolean oldSnapshotsESet = snapshotsESet;
+ snapshotsESet = true;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PomPackage.REPOSITORY__SNAPSHOTS,
+ oldSnapshots, newSnapshots, !oldSnapshotsESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setSnapshots(RepositoryPolicy newSnapshots) {
+ if(newSnapshots != snapshots) {
+ NotificationChain msgs = null;
+ if(snapshots != null)
+ msgs = ((InternalEObject) snapshots).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.REPOSITORY__SNAPSHOTS, null, msgs);
+ if(newSnapshots != null)
+ msgs = ((InternalEObject) newSnapshots).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.REPOSITORY__SNAPSHOTS, null, msgs);
+ msgs = basicSetSnapshots(newSnapshots, msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldSnapshotsESet = snapshotsESet;
+ snapshotsESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPOSITORY__SNAPSHOTS, newSnapshots,
+ newSnapshots, !oldSnapshotsESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetSnapshots(NotificationChain msgs) {
+ RepositoryPolicy oldSnapshots = snapshots;
+ snapshots = null;
+ boolean oldSnapshotsESet = snapshotsESet;
+ snapshotsESet = false;
+ if(eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET,
+ PomPackage.REPOSITORY__SNAPSHOTS, oldSnapshots, null, oldSnapshotsESet);
+ if(msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetSnapshots() {
+ if(snapshots != null) {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject) snapshots).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - PomPackage.REPOSITORY__SNAPSHOTS, null, msgs);
+ msgs = basicUnsetSnapshots(msgs);
+ if(msgs != null)
+ msgs.dispatch();
+ } else {
+ boolean oldSnapshotsESet = snapshotsESet;
+ snapshotsESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.REPOSITORY__SNAPSHOTS, null, null,
+ oldSnapshotsESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetSnapshots() {
+ return snapshotsESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPOSITORY__ID, oldId, id));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPOSITORY__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getUrl() {
+ return url;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setUrl(String newUrl) {
+ String oldUrl = url;
+ url = newUrl;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPOSITORY__URL, oldUrl, url));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getLayout() {
+ return layout;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setLayout(String newLayout) {
+ String oldLayout = layout;
+ layout = newLayout;
+ boolean oldLayoutESet = layoutESet;
+ layoutESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPOSITORY__LAYOUT, oldLayout, layout,
+ !oldLayoutESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetLayout() {
+ String oldLayout = layout;
+ boolean oldLayoutESet = layoutESet;
+ layout = LAYOUT_EDEFAULT;
+ layoutESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.REPOSITORY__LAYOUT, oldLayout,
+ LAYOUT_EDEFAULT, oldLayoutESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetLayout() {
+ return layoutESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch(featureID) {
+ case PomPackage.REPOSITORY__RELEASES:
+ return basicUnsetReleases(msgs);
+ case PomPackage.REPOSITORY__SNAPSHOTS:
+ return basicUnsetSnapshots(msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.REPOSITORY__RELEASES:
+ return getReleases();
+ case PomPackage.REPOSITORY__SNAPSHOTS:
+ return getSnapshots();
+ case PomPackage.REPOSITORY__ID:
+ return getId();
+ case PomPackage.REPOSITORY__NAME:
+ return getName();
+ case PomPackage.REPOSITORY__URL:
+ return getUrl();
+ case PomPackage.REPOSITORY__LAYOUT:
+ return getLayout();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.REPOSITORY__RELEASES:
+ setReleases((RepositoryPolicy) newValue);
+ return;
+ case PomPackage.REPOSITORY__SNAPSHOTS:
+ setSnapshots((RepositoryPolicy) newValue);
+ return;
+ case PomPackage.REPOSITORY__ID:
+ setId((String) newValue);
+ return;
+ case PomPackage.REPOSITORY__NAME:
+ setName((String) newValue);
+ return;
+ case PomPackage.REPOSITORY__URL:
+ setUrl((String) newValue);
+ return;
+ case PomPackage.REPOSITORY__LAYOUT:
+ setLayout((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.REPOSITORY__RELEASES:
+ unsetReleases();
+ return;
+ case PomPackage.REPOSITORY__SNAPSHOTS:
+ unsetSnapshots();
+ return;
+ case PomPackage.REPOSITORY__ID:
+ setId(ID_EDEFAULT);
+ return;
+ case PomPackage.REPOSITORY__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case PomPackage.REPOSITORY__URL:
+ setUrl(URL_EDEFAULT);
+ return;
+ case PomPackage.REPOSITORY__LAYOUT:
+ unsetLayout();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.REPOSITORY__RELEASES:
+ return isSetReleases();
+ case PomPackage.REPOSITORY__SNAPSHOTS:
+ return isSetSnapshots();
+ case PomPackage.REPOSITORY__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case PomPackage.REPOSITORY__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case PomPackage.REPOSITORY__URL:
+ return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url);
+ case PomPackage.REPOSITORY__LAYOUT:
+ return isSetLayout();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (id: "); //$NON-NLS-1$
+ result.append(id);
+ result.append(", name: "); //$NON-NLS-1$
+ result.append(name);
+ result.append(", url: "); //$NON-NLS-1$
+ result.append(url);
+ result.append(", layout: "); //$NON-NLS-1$
+ if(layoutESet)
+ result.append(layout);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(')');
+ return result.toString();
+ }
} // RepositoryImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/RepositoryPolicyImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/RepositoryPolicyImpl.java
index 1bf621fe..babe102b 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/RepositoryPolicyImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/RepositoryPolicyImpl.java
@@ -12,326 +12,311 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.RepositoryPolicy;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Repository Policy</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Repository Policy</b></em>'. <!-- end-user-doc
+ * -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryPolicyImpl#getEnabled
- * <em>Enabled</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.RepositoryPolicyImpl#getEnabled <em>Enabled</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.RepositoryPolicyImpl#getUpdatePolicy
- * <em>Update Policy</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.RepositoryPolicyImpl#getUpdatePolicy <em>Update Policy</em>}</li>
* <li>
- * {@link org.eclipse.m2e.model.edit.pom.impl.RepositoryPolicyImpl#getChecksumPolicy
- * <em>Checksum Policy</em>}</li>
+ * {@link org.eclipse.m2e.model.edit.pom.impl.RepositoryPolicyImpl#getChecksumPolicy <em>Checksum Policy</em>}</li>
* </ul>
* </p>
*
* @generated
*/
-public class RepositoryPolicyImpl extends EObjectImpl implements
- RepositoryPolicy {
- /**
- * The default value of the '{@link #getEnabled() <em>Enabled</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getEnabled()
- * @generated
- * @ordered
- */
- protected static final String ENABLED_EDEFAULT = "true"; //$NON-NLS-1$
+public class RepositoryPolicyImpl extends EObjectImpl implements RepositoryPolicy {
+ /**
+ * The default value of the '{@link #getEnabled() <em>Enabled</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getEnabled()
+ * @generated
+ * @ordered
+ */
+ protected static final String ENABLED_EDEFAULT = "true"; //$NON-NLS-1$
- /**
- * The cached value of the '{@link #getEnabled() <em>Enabled</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getEnabled()
- * @generated
- * @ordered
- */
- protected String enabled = ENABLED_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getEnabled() <em>Enabled</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getEnabled()
+ * @generated
+ * @ordered
+ */
+ protected String enabled = ENABLED_EDEFAULT;
- /**
- * This is true if the Enabled attribute has been set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean enabledESet;
+ /**
+ * This is true if the Enabled attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean enabledESet;
- /**
- * The default value of the '{@link #getUpdatePolicy()
- * <em>Update Policy</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getUpdatePolicy()
- * @generated
- * @ordered
- */
- protected static final String UPDATE_POLICY_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getUpdatePolicy() <em>Update Policy</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getUpdatePolicy()
+ * @generated
+ * @ordered
+ */
+ protected static final String UPDATE_POLICY_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getUpdatePolicy()
- * <em>Update Policy</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getUpdatePolicy()
- * @generated
- * @ordered
- */
- protected String updatePolicy = UPDATE_POLICY_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getUpdatePolicy() <em>Update Policy</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getUpdatePolicy()
+ * @generated
+ * @ordered
+ */
+ protected String updatePolicy = UPDATE_POLICY_EDEFAULT;
- /**
- * The default value of the '{@link #getChecksumPolicy()
- * <em>Checksum Policy</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getChecksumPolicy()
- * @generated
- * @ordered
- */
- protected static final String CHECKSUM_POLICY_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getChecksumPolicy() <em>Checksum Policy</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getChecksumPolicy()
+ * @generated
+ * @ordered
+ */
+ protected static final String CHECKSUM_POLICY_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getChecksumPolicy()
- * <em>Checksum Policy</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getChecksumPolicy()
- * @generated
- * @ordered
- */
- protected String checksumPolicy = CHECKSUM_POLICY_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getChecksumPolicy() <em>Checksum Policy</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getChecksumPolicy()
+ * @generated
+ * @ordered
+ */
+ protected String checksumPolicy = CHECKSUM_POLICY_EDEFAULT;
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected RepositoryPolicyImpl() {
- super();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RepositoryPolicyImpl() {
+ super();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.REPOSITORY_POLICY;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.REPOSITORY_POLICY;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getEnabled() {
- return enabled;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getEnabled() {
+ return enabled;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setEnabled(String newEnabled) {
- String oldEnabled = enabled;
- enabled = newEnabled;
- boolean oldEnabledESet = enabledESet;
- enabledESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPOSITORY_POLICY__ENABLED, oldEnabled, enabled,
- !oldEnabledESet));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setEnabled(String newEnabled) {
+ String oldEnabled = enabled;
+ enabled = newEnabled;
+ boolean oldEnabledESet = enabledESet;
+ enabledESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPOSITORY_POLICY__ENABLED, oldEnabled, enabled,
+ !oldEnabledESet));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetEnabled() {
- String oldEnabled = enabled;
- boolean oldEnabledESet = enabledESet;
- enabled = ENABLED_EDEFAULT;
- enabledESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.REPOSITORY_POLICY__ENABLED, oldEnabled,
- ENABLED_EDEFAULT, oldEnabledESet));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetEnabled() {
+ String oldEnabled = enabled;
+ boolean oldEnabledESet = enabledESet;
+ enabled = ENABLED_EDEFAULT;
+ enabledESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.REPOSITORY_POLICY__ENABLED, oldEnabled,
+ ENABLED_EDEFAULT, oldEnabledESet));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetEnabled() {
- return enabledESet;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetEnabled() {
+ return enabledESet;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getUpdatePolicy() {
- return updatePolicy;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getUpdatePolicy() {
+ return updatePolicy;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setUpdatePolicy(String newUpdatePolicy) {
- String oldUpdatePolicy = updatePolicy;
- updatePolicy = newUpdatePolicy;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPOSITORY_POLICY__UPDATE_POLICY,
- oldUpdatePolicy, updatePolicy));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setUpdatePolicy(String newUpdatePolicy) {
+ String oldUpdatePolicy = updatePolicy;
+ updatePolicy = newUpdatePolicy;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPOSITORY_POLICY__UPDATE_POLICY,
+ oldUpdatePolicy, updatePolicy));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getChecksumPolicy() {
- return checksumPolicy;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getChecksumPolicy() {
+ return checksumPolicy;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setChecksumPolicy(String newChecksumPolicy) {
- String oldChecksumPolicy = checksumPolicy;
- checksumPolicy = newChecksumPolicy;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.REPOSITORY_POLICY__CHECKSUM_POLICY,
- oldChecksumPolicy, checksumPolicy));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setChecksumPolicy(String newChecksumPolicy) {
+ String oldChecksumPolicy = checksumPolicy;
+ checksumPolicy = newChecksumPolicy;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.REPOSITORY_POLICY__CHECKSUM_POLICY,
+ oldChecksumPolicy, checksumPolicy));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.REPOSITORY_POLICY__ENABLED:
- return getEnabled();
- case PomPackage.REPOSITORY_POLICY__UPDATE_POLICY:
- return getUpdatePolicy();
- case PomPackage.REPOSITORY_POLICY__CHECKSUM_POLICY:
- return getChecksumPolicy();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.REPOSITORY_POLICY__ENABLED:
+ return getEnabled();
+ case PomPackage.REPOSITORY_POLICY__UPDATE_POLICY:
+ return getUpdatePolicy();
+ case PomPackage.REPOSITORY_POLICY__CHECKSUM_POLICY:
+ return getChecksumPolicy();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.REPOSITORY_POLICY__ENABLED:
- setEnabled((String) newValue);
- return;
- case PomPackage.REPOSITORY_POLICY__UPDATE_POLICY:
- setUpdatePolicy((String) newValue);
- return;
- case PomPackage.REPOSITORY_POLICY__CHECKSUM_POLICY:
- setChecksumPolicy((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.REPOSITORY_POLICY__ENABLED:
+ setEnabled((String) newValue);
+ return;
+ case PomPackage.REPOSITORY_POLICY__UPDATE_POLICY:
+ setUpdatePolicy((String) newValue);
+ return;
+ case PomPackage.REPOSITORY_POLICY__CHECKSUM_POLICY:
+ setChecksumPolicy((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.REPOSITORY_POLICY__ENABLED:
- unsetEnabled();
- return;
- case PomPackage.REPOSITORY_POLICY__UPDATE_POLICY:
- setUpdatePolicy(UPDATE_POLICY_EDEFAULT);
- return;
- case PomPackage.REPOSITORY_POLICY__CHECKSUM_POLICY:
- setChecksumPolicy(CHECKSUM_POLICY_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.REPOSITORY_POLICY__ENABLED:
+ unsetEnabled();
+ return;
+ case PomPackage.REPOSITORY_POLICY__UPDATE_POLICY:
+ setUpdatePolicy(UPDATE_POLICY_EDEFAULT);
+ return;
+ case PomPackage.REPOSITORY_POLICY__CHECKSUM_POLICY:
+ setChecksumPolicy(CHECKSUM_POLICY_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.REPOSITORY_POLICY__ENABLED:
- return isSetEnabled();
- case PomPackage.REPOSITORY_POLICY__UPDATE_POLICY:
- return UPDATE_POLICY_EDEFAULT == null ? updatePolicy != null
- : !UPDATE_POLICY_EDEFAULT.equals(updatePolicy);
- case PomPackage.REPOSITORY_POLICY__CHECKSUM_POLICY:
- return CHECKSUM_POLICY_EDEFAULT == null ? checksumPolicy != null
- : !CHECKSUM_POLICY_EDEFAULT.equals(checksumPolicy);
- }
- return super.eIsSet(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.REPOSITORY_POLICY__ENABLED:
+ return isSetEnabled();
+ case PomPackage.REPOSITORY_POLICY__UPDATE_POLICY:
+ return UPDATE_POLICY_EDEFAULT == null ? updatePolicy != null : !UPDATE_POLICY_EDEFAULT.equals(updatePolicy);
+ case PomPackage.REPOSITORY_POLICY__CHECKSUM_POLICY:
+ return CHECKSUM_POLICY_EDEFAULT == null ? checksumPolicy != null : !CHECKSUM_POLICY_EDEFAULT
+ .equals(checksumPolicy);
+ }
+ return super.eIsSet(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (enabled: "); //$NON-NLS-1$
- if (enabledESet)
- result.append(enabled);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", updatePolicy: "); //$NON-NLS-1$
- result.append(updatePolicy);
- result.append(", checksumPolicy: "); //$NON-NLS-1$
- result.append(checksumPolicy);
- result.append(')');
- return result.toString();
- }
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (enabled: "); //$NON-NLS-1$
+ if(enabledESet)
+ result.append(enabled);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", updatePolicy: "); //$NON-NLS-1$
+ result.append(updatePolicy);
+ result.append(", checksumPolicy: "); //$NON-NLS-1$
+ result.append(checksumPolicy);
+ result.append(')');
+ return result.toString();
+ }
} // RepositoryPolicyImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ResourceImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ResourceImpl.java
index aa9bbea7..f4e0e0fd 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ResourceImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ResourceImpl.java
@@ -14,398 +14,380 @@ package org.eclipse.m2e.model.edit.pom.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.EDataTypeEList;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.Resource;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Resource</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Resource</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ResourceImpl#getTargetPath <em>
- * Target Path</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ResourceImpl#getFiltering <em>
- * Filtering</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ResourceImpl#getDirectory <em>
- * Directory</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ResourceImpl#getIncludes <em>
- * Includes</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ResourceImpl#getExcludes <em>
- * Excludes</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ResourceImpl#getTargetPath <em> Target Path</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ResourceImpl#getFiltering <em> Filtering</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ResourceImpl#getDirectory <em> Directory</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ResourceImpl#getIncludes <em> Includes</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ResourceImpl#getExcludes <em> Excludes</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class ResourceImpl extends EObjectImpl implements Resource {
- /**
- * The default value of the '{@link #getTargetPath() <em>Target Path</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getTargetPath()
- * @generated
- * @ordered
- */
- protected static final String TARGET_PATH_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTargetPath() <em>Target Path</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getTargetPath()
- * @generated
- * @ordered
- */
- protected String targetPath = TARGET_PATH_EDEFAULT;
-
- /**
- * The default value of the '{@link #getFiltering() <em>Filtering</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getFiltering()
- * @generated
- * @ordered
- */
- protected static final String FILTERING_EDEFAULT = "false"; //$NON-NLS-1$
-
- /**
- * The cached value of the '{@link #getFiltering() <em>Filtering</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getFiltering()
- * @generated
- * @ordered
- */
- protected String filtering = FILTERING_EDEFAULT;
-
- /**
- * This is true if the Filtering attribute has been set. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean filteringESet;
-
- /**
- * The default value of the '{@link #getDirectory() <em>Directory</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDirectory()
- * @generated
- * @ordered
- */
- protected static final String DIRECTORY_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDirectory() <em>Directory</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDirectory()
- * @generated
- * @ordered
- */
- protected String directory = DIRECTORY_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getIncludes() <em>Includes</em>}'
- * attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getIncludes()
- * @generated
- * @ordered
- */
- protected EList<String> includes;
-
- /**
- * The cached value of the '{@link #getExcludes() <em>Excludes</em>}'
- * attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getExcludes()
- * @generated
- * @ordered
- */
- protected EList<String> excludes;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ResourceImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.RESOURCE;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getTargetPath() {
- return targetPath;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setTargetPath(String newTargetPath) {
- String oldTargetPath = targetPath;
- targetPath = newTargetPath;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.RESOURCE__TARGET_PATH, oldTargetPath, targetPath));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getFiltering() {
- return filtering;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setFiltering(String newFiltering) {
- String oldFiltering = filtering;
- filtering = newFiltering;
- boolean oldFilteringESet = filteringESet;
- filteringESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.RESOURCE__FILTERING, oldFiltering, filtering,
- !oldFilteringESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetFiltering() {
- String oldFiltering = filtering;
- boolean oldFilteringESet = filteringESet;
- filtering = FILTERING_EDEFAULT;
- filteringESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.RESOURCE__FILTERING, oldFiltering,
- FILTERING_EDEFAULT, oldFilteringESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetFiltering() {
- return filteringESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getDirectory() {
- return directory;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDirectory(String newDirectory) {
- String oldDirectory = directory;
- directory = newDirectory;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.RESOURCE__DIRECTORY, oldDirectory, directory));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getIncludes() {
- if (includes == null) {
- includes = new EDataTypeEList<String>(String.class, this,
- PomPackage.RESOURCE__INCLUDES);
- }
- return includes;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getExcludes() {
- if (excludes == null) {
- excludes = new EDataTypeEList<String>(String.class, this,
- PomPackage.RESOURCE__EXCLUDES);
- }
- return excludes;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.RESOURCE__TARGET_PATH:
- return getTargetPath();
- case PomPackage.RESOURCE__FILTERING:
- return getFiltering();
- case PomPackage.RESOURCE__DIRECTORY:
- return getDirectory();
- case PomPackage.RESOURCE__INCLUDES:
- return getIncludes();
- case PomPackage.RESOURCE__EXCLUDES:
- return getExcludes();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.RESOURCE__TARGET_PATH:
- setTargetPath((String) newValue);
- return;
- case PomPackage.RESOURCE__FILTERING:
- setFiltering((String) newValue);
- return;
- case PomPackage.RESOURCE__DIRECTORY:
- setDirectory((String) newValue);
- return;
- case PomPackage.RESOURCE__INCLUDES:
- getIncludes().clear();
- getIncludes().addAll((Collection<? extends String>) newValue);
- return;
- case PomPackage.RESOURCE__EXCLUDES:
- getExcludes().clear();
- getExcludes().addAll((Collection<? extends String>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.RESOURCE__TARGET_PATH:
- setTargetPath(TARGET_PATH_EDEFAULT);
- return;
- case PomPackage.RESOURCE__FILTERING:
- unsetFiltering();
- return;
- case PomPackage.RESOURCE__DIRECTORY:
- setDirectory(DIRECTORY_EDEFAULT);
- return;
- case PomPackage.RESOURCE__INCLUDES:
- getIncludes().clear();
- return;
- case PomPackage.RESOURCE__EXCLUDES:
- getExcludes().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.RESOURCE__TARGET_PATH:
- return TARGET_PATH_EDEFAULT == null ? targetPath != null
- : !TARGET_PATH_EDEFAULT.equals(targetPath);
- case PomPackage.RESOURCE__FILTERING:
- return isSetFiltering();
- case PomPackage.RESOURCE__DIRECTORY:
- return DIRECTORY_EDEFAULT == null ? directory != null
- : !DIRECTORY_EDEFAULT.equals(directory);
- case PomPackage.RESOURCE__INCLUDES:
- return includes != null && !includes.isEmpty();
- case PomPackage.RESOURCE__EXCLUDES:
- return excludes != null && !excludes.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (targetPath: "); //$NON-NLS-1$
- result.append(targetPath);
- result.append(", filtering: "); //$NON-NLS-1$
- if (filteringESet)
- result.append(filtering);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", directory: "); //$NON-NLS-1$
- result.append(directory);
- result.append(", includes: "); //$NON-NLS-1$
- result.append(includes);
- result.append(", excludes: "); //$NON-NLS-1$
- result.append(excludes);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getTargetPath() <em>Target Path</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getTargetPath()
+ * @generated
+ * @ordered
+ */
+ protected static final String TARGET_PATH_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTargetPath() <em>Target Path</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getTargetPath()
+ * @generated
+ * @ordered
+ */
+ protected String targetPath = TARGET_PATH_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getFiltering() <em>Filtering</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getFiltering()
+ * @generated
+ * @ordered
+ */
+ protected static final String FILTERING_EDEFAULT = "false"; //$NON-NLS-1$
+
+ /**
+ * The cached value of the '{@link #getFiltering() <em>Filtering</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getFiltering()
+ * @generated
+ * @ordered
+ */
+ protected String filtering = FILTERING_EDEFAULT;
+
+ /**
+ * This is true if the Filtering attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean filteringESet;
+
+ /**
+ * The default value of the '{@link #getDirectory() <em>Directory</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getDirectory()
+ * @generated
+ * @ordered
+ */
+ protected static final String DIRECTORY_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDirectory() <em>Directory</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getDirectory()
+ * @generated
+ * @ordered
+ */
+ protected String directory = DIRECTORY_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getIncludes() <em>Includes</em>}' attribute list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getIncludes()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> includes;
+
+ /**
+ * The cached value of the '{@link #getExcludes() <em>Excludes</em>}' attribute list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getExcludes()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> excludes;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ResourceImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.RESOURCE;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getTargetPath() {
+ return targetPath;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setTargetPath(String newTargetPath) {
+ String oldTargetPath = targetPath;
+ targetPath = newTargetPath;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.RESOURCE__TARGET_PATH, oldTargetPath, targetPath));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getFiltering() {
+ return filtering;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setFiltering(String newFiltering) {
+ String oldFiltering = filtering;
+ filtering = newFiltering;
+ boolean oldFilteringESet = filteringESet;
+ filteringESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.RESOURCE__FILTERING, oldFiltering, filtering,
+ !oldFilteringESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetFiltering() {
+ String oldFiltering = filtering;
+ boolean oldFilteringESet = filteringESet;
+ filtering = FILTERING_EDEFAULT;
+ filteringESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.RESOURCE__FILTERING, oldFiltering,
+ FILTERING_EDEFAULT, oldFilteringESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetFiltering() {
+ return filteringESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getDirectory() {
+ return directory;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setDirectory(String newDirectory) {
+ String oldDirectory = directory;
+ directory = newDirectory;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.RESOURCE__DIRECTORY, oldDirectory, directory));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<String> getIncludes() {
+ if(includes == null) {
+ includes = new EDataTypeEList<String>(String.class, this, PomPackage.RESOURCE__INCLUDES);
+ }
+ return includes;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<String> getExcludes() {
+ if(excludes == null) {
+ excludes = new EDataTypeEList<String>(String.class, this, PomPackage.RESOURCE__EXCLUDES);
+ }
+ return excludes;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.RESOURCE__TARGET_PATH:
+ return getTargetPath();
+ case PomPackage.RESOURCE__FILTERING:
+ return getFiltering();
+ case PomPackage.RESOURCE__DIRECTORY:
+ return getDirectory();
+ case PomPackage.RESOURCE__INCLUDES:
+ return getIncludes();
+ case PomPackage.RESOURCE__EXCLUDES:
+ return getExcludes();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.RESOURCE__TARGET_PATH:
+ setTargetPath((String) newValue);
+ return;
+ case PomPackage.RESOURCE__FILTERING:
+ setFiltering((String) newValue);
+ return;
+ case PomPackage.RESOURCE__DIRECTORY:
+ setDirectory((String) newValue);
+ return;
+ case PomPackage.RESOURCE__INCLUDES:
+ getIncludes().clear();
+ getIncludes().addAll((Collection<? extends String>) newValue);
+ return;
+ case PomPackage.RESOURCE__EXCLUDES:
+ getExcludes().clear();
+ getExcludes().addAll((Collection<? extends String>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.RESOURCE__TARGET_PATH:
+ setTargetPath(TARGET_PATH_EDEFAULT);
+ return;
+ case PomPackage.RESOURCE__FILTERING:
+ unsetFiltering();
+ return;
+ case PomPackage.RESOURCE__DIRECTORY:
+ setDirectory(DIRECTORY_EDEFAULT);
+ return;
+ case PomPackage.RESOURCE__INCLUDES:
+ getIncludes().clear();
+ return;
+ case PomPackage.RESOURCE__EXCLUDES:
+ getExcludes().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.RESOURCE__TARGET_PATH:
+ return TARGET_PATH_EDEFAULT == null ? targetPath != null : !TARGET_PATH_EDEFAULT.equals(targetPath);
+ case PomPackage.RESOURCE__FILTERING:
+ return isSetFiltering();
+ case PomPackage.RESOURCE__DIRECTORY:
+ return DIRECTORY_EDEFAULT == null ? directory != null : !DIRECTORY_EDEFAULT.equals(directory);
+ case PomPackage.RESOURCE__INCLUDES:
+ return includes != null && !includes.isEmpty();
+ case PomPackage.RESOURCE__EXCLUDES:
+ return excludes != null && !excludes.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (targetPath: "); //$NON-NLS-1$
+ result.append(targetPath);
+ result.append(", filtering: "); //$NON-NLS-1$
+ if(filteringESet)
+ result.append(filtering);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", directory: "); //$NON-NLS-1$
+ result.append(directory);
+ result.append(", includes: "); //$NON-NLS-1$
+ result.append(includes);
+ result.append(", excludes: "); //$NON-NLS-1$
+ result.append(excludes);
+ result.append(')');
+ return result.toString();
+ }
} // ResourceImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ScmImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ScmImpl.java
index c6ada8f7..7810d171 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ScmImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/ScmImpl.java
@@ -12,25 +12,21 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.Scm;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Scm</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Scm</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ScmImpl#getConnection <em>
- * Connection</em>}</li>
- * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ScmImpl#getDeveloperConnection
- * <em>Developer Connection</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ScmImpl#getConnection <em> Connection</em>}</li>
+ * <li>{@link org.eclipse.m2e.model.edit.pom.impl.ScmImpl#getDeveloperConnection <em>Developer Connection</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.impl.ScmImpl#getTag <em>Tag</em>}</li>
* <li>{@link org.eclipse.m2e.model.edit.pom.impl.ScmImpl#getUrl <em>Url</em>}</li>
* </ul>
@@ -39,347 +35,332 @@ import org.eclipse.m2e.model.edit.pom.Scm;
* @generated
*/
public class ScmImpl extends EObjectImpl implements Scm {
- /**
- * The default value of the '{@link #getConnection() <em>Connection</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getConnection()
- * @generated
- * @ordered
- */
- protected static final String CONNECTION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getConnection() <em>Connection</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getConnection()
- * @generated
- * @ordered
- */
- protected String connection = CONNECTION_EDEFAULT;
-
- /**
- * The default value of the '{@link #getDeveloperConnection()
- * <em>Developer Connection</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getDeveloperConnection()
- * @generated
- * @ordered
- */
- protected static final String DEVELOPER_CONNECTION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDeveloperConnection()
- * <em>Developer Connection</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getDeveloperConnection()
- * @generated
- * @ordered
- */
- protected String developerConnection = DEVELOPER_CONNECTION_EDEFAULT;
-
- /**
- * The default value of the '{@link #getTag() <em>Tag</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getTag()
- * @generated
- * @ordered
- */
- protected static final String TAG_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTag() <em>Tag</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getTag()
- * @generated
- * @ordered
- */
- protected String tag = TAG_EDEFAULT;
-
- /**
- * This is true if the Tag attribute has been set. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- protected boolean tagESet;
-
- /**
- * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected static final String URL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected String url = URL_EDEFAULT;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ScmImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.SCM;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getConnection() {
- return connection;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setConnection(String newConnection) {
- String oldConnection = connection;
- connection = newConnection;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.SCM__CONNECTION, oldConnection, connection));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getDeveloperConnection() {
- return developerConnection;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDeveloperConnection(String newDeveloperConnection) {
- String oldDeveloperConnection = developerConnection;
- developerConnection = newDeveloperConnection;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.SCM__DEVELOPER_CONNECTION,
- oldDeveloperConnection, developerConnection));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getTag() {
- return tag;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setTag(String newTag) {
- String oldTag = tag;
- tag = newTag;
- boolean oldTagESet = tagESet;
- tagESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.SCM__TAG, oldTag, tag, !oldTagESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void unsetTag() {
- String oldTag = tag;
- boolean oldTagESet = tagESet;
- tag = TAG_EDEFAULT;
- tagESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
- PomPackage.SCM__TAG, oldTag, TAG_EDEFAULT, oldTagESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isSetTag() {
- return tagESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getUrl() {
- return url;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setUrl(String newUrl) {
- String oldUrl = url;
- url = newUrl;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.SCM__URL, oldUrl, url));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.SCM__CONNECTION:
- return getConnection();
- case PomPackage.SCM__DEVELOPER_CONNECTION:
- return getDeveloperConnection();
- case PomPackage.SCM__TAG:
- return getTag();
- case PomPackage.SCM__URL:
- return getUrl();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.SCM__CONNECTION:
- setConnection((String) newValue);
- return;
- case PomPackage.SCM__DEVELOPER_CONNECTION:
- setDeveloperConnection((String) newValue);
- return;
- case PomPackage.SCM__TAG:
- setTag((String) newValue);
- return;
- case PomPackage.SCM__URL:
- setUrl((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.SCM__CONNECTION:
- setConnection(CONNECTION_EDEFAULT);
- return;
- case PomPackage.SCM__DEVELOPER_CONNECTION:
- setDeveloperConnection(DEVELOPER_CONNECTION_EDEFAULT);
- return;
- case PomPackage.SCM__TAG:
- unsetTag();
- return;
- case PomPackage.SCM__URL:
- setUrl(URL_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.SCM__CONNECTION:
- return CONNECTION_EDEFAULT == null ? connection != null
- : !CONNECTION_EDEFAULT.equals(connection);
- case PomPackage.SCM__DEVELOPER_CONNECTION:
- return DEVELOPER_CONNECTION_EDEFAULT == null ? developerConnection != null
- : !DEVELOPER_CONNECTION_EDEFAULT
- .equals(developerConnection);
- case PomPackage.SCM__TAG:
- return isSetTag();
- case PomPackage.SCM__URL:
- return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT
- .equals(url);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (connection: "); //$NON-NLS-1$
- result.append(connection);
- result.append(", developerConnection: "); //$NON-NLS-1$
- result.append(developerConnection);
- result.append(", tag: "); //$NON-NLS-1$
- if (tagESet)
- result.append(tag);
- else
- result.append("<unset>"); //$NON-NLS-1$
- result.append(", url: "); //$NON-NLS-1$
- result.append(url);
- result.append(')');
- return result.toString();
- }
+ /**
+ * The default value of the '{@link #getConnection() <em>Connection</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getConnection()
+ * @generated
+ * @ordered
+ */
+ protected static final String CONNECTION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getConnection() <em>Connection</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getConnection()
+ * @generated
+ * @ordered
+ */
+ protected String connection = CONNECTION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getDeveloperConnection() <em>Developer Connection</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getDeveloperConnection()
+ * @generated
+ * @ordered
+ */
+ protected static final String DEVELOPER_CONNECTION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDeveloperConnection() <em>Developer Connection</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getDeveloperConnection()
+ * @generated
+ * @ordered
+ */
+ protected String developerConnection = DEVELOPER_CONNECTION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTag() <em>Tag</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getTag()
+ * @generated
+ * @ordered
+ */
+ protected static final String TAG_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTag() <em>Tag</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getTag()
+ * @generated
+ * @ordered
+ */
+ protected String tag = TAG_EDEFAULT;
+
+ /**
+ * This is true if the Tag attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean tagESet;
+
+ /**
+ * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String URL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected String url = URL_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ScmImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.SCM;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getConnection() {
+ return connection;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setConnection(String newConnection) {
+ String oldConnection = connection;
+ connection = newConnection;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.SCM__CONNECTION, oldConnection, connection));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getDeveloperConnection() {
+ return developerConnection;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setDeveloperConnection(String newDeveloperConnection) {
+ String oldDeveloperConnection = developerConnection;
+ developerConnection = newDeveloperConnection;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.SCM__DEVELOPER_CONNECTION,
+ oldDeveloperConnection, developerConnection));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getTag() {
+ return tag;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setTag(String newTag) {
+ String oldTag = tag;
+ tag = newTag;
+ boolean oldTagESet = tagESet;
+ tagESet = true;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.SCM__TAG, oldTag, tag, !oldTagESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetTag() {
+ String oldTag = tag;
+ boolean oldTagESet = tagESet;
+ tag = TAG_EDEFAULT;
+ tagESet = false;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, PomPackage.SCM__TAG, oldTag, TAG_EDEFAULT, oldTagESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetTag() {
+ return tagESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getUrl() {
+ return url;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setUrl(String newUrl) {
+ String oldUrl = url;
+ url = newUrl;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.SCM__URL, oldUrl, url));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.SCM__CONNECTION:
+ return getConnection();
+ case PomPackage.SCM__DEVELOPER_CONNECTION:
+ return getDeveloperConnection();
+ case PomPackage.SCM__TAG:
+ return getTag();
+ case PomPackage.SCM__URL:
+ return getUrl();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.SCM__CONNECTION:
+ setConnection((String) newValue);
+ return;
+ case PomPackage.SCM__DEVELOPER_CONNECTION:
+ setDeveloperConnection((String) newValue);
+ return;
+ case PomPackage.SCM__TAG:
+ setTag((String) newValue);
+ return;
+ case PomPackage.SCM__URL:
+ setUrl((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.SCM__CONNECTION:
+ setConnection(CONNECTION_EDEFAULT);
+ return;
+ case PomPackage.SCM__DEVELOPER_CONNECTION:
+ setDeveloperConnection(DEVELOPER_CONNECTION_EDEFAULT);
+ return;
+ case PomPackage.SCM__TAG:
+ unsetTag();
+ return;
+ case PomPackage.SCM__URL:
+ setUrl(URL_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.SCM__CONNECTION:
+ return CONNECTION_EDEFAULT == null ? connection != null : !CONNECTION_EDEFAULT.equals(connection);
+ case PomPackage.SCM__DEVELOPER_CONNECTION:
+ return DEVELOPER_CONNECTION_EDEFAULT == null ? developerConnection != null : !DEVELOPER_CONNECTION_EDEFAULT
+ .equals(developerConnection);
+ case PomPackage.SCM__TAG:
+ return isSetTag();
+ case PomPackage.SCM__URL:
+ return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (connection: "); //$NON-NLS-1$
+ result.append(connection);
+ result.append(", developerConnection: "); //$NON-NLS-1$
+ result.append(developerConnection);
+ result.append(", tag: "); //$NON-NLS-1$
+ if(tagESet)
+ result.append(tag);
+ else
+ result.append("<unset>"); //$NON-NLS-1$
+ result.append(", url: "); //$NON-NLS-1$
+ result.append(url);
+ result.append(')');
+ return result.toString();
+ }
} // ScmImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/SiteImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/SiteImpl.java
index 5e3faf98..55a86cc3 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/SiteImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/impl/SiteImpl.java
@@ -12,18 +12,16 @@
package org.eclipse.m2e.model.edit.pom.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.Site;
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Site</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Site</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
@@ -36,250 +34,240 @@ import org.eclipse.m2e.model.edit.pom.Site;
* @generated
*/
public class SiteImpl extends EObjectImpl implements Site {
- /**
- * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected static final String ID_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected String id = ID_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected static final String URL_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String URL_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUrl()
- * @generated
- * @ordered
- */
- protected String url = URL_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected String url = URL_EDEFAULT;
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected SiteImpl() {
- super();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected SiteImpl() {
+ super();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PomPackage.Literals.SITE;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PomPackage.Literals.SITE;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getId() {
- return id;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setId(String newId) {
- String oldId = id;
- id = newId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.SITE__ID, oldId, id));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.SITE__ID, oldId, id));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName() {
- return name;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.SITE__NAME, oldName, name));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.SITE__NAME, oldName, name));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getUrl() {
- return url;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getUrl() {
+ return url;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setUrl(String newUrl) {
- String oldUrl = url;
- url = newUrl;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- PomPackage.SITE__URL, oldUrl, url));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setUrl(String newUrl) {
+ String oldUrl = url;
+ url = newUrl;
+ if(eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PomPackage.SITE__URL, oldUrl, url));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PomPackage.SITE__ID:
- return getId();
- case PomPackage.SITE__NAME:
- return getName();
- case PomPackage.SITE__URL:
- return getUrl();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch(featureID) {
+ case PomPackage.SITE__ID:
+ return getId();
+ case PomPackage.SITE__NAME:
+ return getName();
+ case PomPackage.SITE__URL:
+ return getUrl();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PomPackage.SITE__ID:
- setId((String) newValue);
- return;
- case PomPackage.SITE__NAME:
- setName((String) newValue);
- return;
- case PomPackage.SITE__URL:
- setUrl((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch(featureID) {
+ case PomPackage.SITE__ID:
+ setId((String) newValue);
+ return;
+ case PomPackage.SITE__NAME:
+ setName((String) newValue);
+ return;
+ case PomPackage.SITE__URL:
+ setUrl((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PomPackage.SITE__ID:
- setId(ID_EDEFAULT);
- return;
- case PomPackage.SITE__NAME:
- setName(NAME_EDEFAULT);
- return;
- case PomPackage.SITE__URL:
- setUrl(URL_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch(featureID) {
+ case PomPackage.SITE__ID:
+ setId(ID_EDEFAULT);
+ return;
+ case PomPackage.SITE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case PomPackage.SITE__URL:
+ setUrl(URL_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PomPackage.SITE__ID:
- return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
- case PomPackage.SITE__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT
- .equals(name);
- case PomPackage.SITE__URL:
- return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT
- .equals(url);
- }
- return super.eIsSet(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch(featureID) {
+ case PomPackage.SITE__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case PomPackage.SITE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case PomPackage.SITE__URL:
+ return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url);
+ }
+ return super.eIsSet(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if(eIsProxy())
+ return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (id: "); //$NON-NLS-1$
- result.append(id);
- result.append(", name: "); //$NON-NLS-1$
- result.append(name);
- result.append(", url: "); //$NON-NLS-1$
- result.append(url);
- result.append(')');
- return result.toString();
- }
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (id: "); //$NON-NLS-1$
+ result.append(id);
+ result.append(", name: "); //$NON-NLS-1$
+ result.append(name);
+ result.append(", url: "); //$NON-NLS-1$
+ result.append(url);
+ result.append(')');
+ return result.toString();
+ }
} // SiteImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationFileItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationFileItemProvider.java
index 3d4eda1e..080f7564 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationFileItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationFileItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,152 +27,136 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.ActivationFile;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.ActivationFile} object. <!--
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.ActivationFile} object. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class ActivationFileItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivationFileItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addMissingPropertyDescriptor(object);
- addExistsPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Missing feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addMissingPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_ActivationFile_missing_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_ActivationFile_missing_feature",
- "_UI_ActivationFile_type"),
- PomPackage.Literals.ACTIVATION_FILE__MISSING, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Exists feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addExistsPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_ActivationFile_exists_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_ActivationFile_exists_feature",
- "_UI_ActivationFile_type"),
- PomPackage.Literals.ACTIVATION_FILE__EXISTS, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This returns ActivationFile.gif. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/ActivationFile"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ActivationFile) object).getMissing();
- return label == null || label.length() == 0 ? getString("_UI_ActivationFile_type")
- : getString("_UI_ActivationFile_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(ActivationFile.class)) {
- case PomPackage.ACTIVATION_FILE__MISSING:
- case PomPackage.ACTIVATION_FILE__EXISTS:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class ActivationFileItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ActivationFileItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addMissingPropertyDescriptor(object);
+ addExistsPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Missing feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addMissingPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ActivationFile_missing_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ActivationFile_missing_feature",
+ "_UI_ActivationFile_type"), PomPackage.Literals.ACTIVATION_FILE__MISSING, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Exists feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addExistsPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ActivationFile_exists_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ActivationFile_exists_feature",
+ "_UI_ActivationFile_type"), PomPackage.Literals.ACTIVATION_FILE__EXISTS, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This returns ActivationFile.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/ActivationFile"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((ActivationFile) object).getMissing();
+ return label == null || label.length() == 0 ? getString("_UI_ActivationFile_type")
+ : getString("_UI_ActivationFile_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(ActivationFile.class)) {
+ case PomPackage.ACTIVATION_FILE__MISSING:
+ case PomPackage.ACTIVATION_FILE__EXISTS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationItemProvider.java
index cecd8bb9..204e313d 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,206 +28,182 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.Activation;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Activation} object. <!-- begin-user-doc
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Activation} object. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated
*/
-public class ActivationItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivationItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addActiveByDefaultPropertyDescriptor(object);
- addJdkPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Active By Default feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addActiveByDefaultPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Activation_activeByDefault_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Activation_activeByDefault_feature",
- "_UI_Activation_type"),
- PomPackage.Literals.ACTIVATION__ACTIVE_BY_DEFAULT, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Jdk feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addJdkPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Activation_jdk_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Activation_jdk_feature", "_UI_Activation_type"),
- PomPackage.Literals.ACTIVATION__JDK, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.ACTIVATION__OS);
- childrenFeatures.add(PomPackage.Literals.ACTIVATION__PROPERTY);
- childrenFeatures.add(PomPackage.Literals.ACTIVATION__FILE);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns Activation.gif. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Activation"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Activation) object).getActiveByDefault();
- return label == null || label.length() == 0 ? getString("_UI_Activation_type")
- : getString("_UI_Activation_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Activation.class)) {
- case PomPackage.ACTIVATION__ACTIVE_BY_DEFAULT:
- case PomPackage.ACTIVATION__JDK:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.ACTIVATION__OS:
- case PomPackage.ACTIVATION__PROPERTY:
- case PomPackage.ACTIVATION__FILE:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.ACTIVATION__OS, PomFactory.eINSTANCE
- .createActivationOS()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.ACTIVATION__PROPERTY, PomFactory.eINSTANCE
- .createActivationProperty()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.ACTIVATION__FILE, PomFactory.eINSTANCE
- .createActivationFile()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class ActivationItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ActivationItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addActiveByDefaultPropertyDescriptor(object);
+ addJdkPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Active By Default feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addActiveByDefaultPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Activation_activeByDefault_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Activation_activeByDefault_feature",
+ "_UI_Activation_type"), PomPackage.Literals.ACTIVATION__ACTIVE_BY_DEFAULT, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Jdk feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addJdkPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(), getString("_UI_Activation_jdk_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Activation_jdk_feature", "_UI_Activation_type"),
+ PomPackage.Literals.ACTIVATION__JDK, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.ACTIVATION__OS);
+ childrenFeatures.add(PomPackage.Literals.ACTIVATION__PROPERTY);
+ childrenFeatures.add(PomPackage.Literals.ACTIVATION__FILE);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns Activation.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Activation"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Activation) object).getActiveByDefault();
+ return label == null || label.length() == 0 ? getString("_UI_Activation_type") : getString("_UI_Activation_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(Activation.class)) {
+ case PomPackage.ACTIVATION__ACTIVE_BY_DEFAULT:
+ case PomPackage.ACTIVATION__JDK:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.ACTIVATION__OS:
+ case PomPackage.ACTIVATION__PROPERTY:
+ case PomPackage.ACTIVATION__FILE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.ACTIVATION__OS,
+ PomFactory.eINSTANCE.createActivationOS()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.ACTIVATION__PROPERTY,
+ PomFactory.eINSTANCE.createActivationProperty()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.ACTIVATION__FILE,
+ PomFactory.eINSTANCE.createActivationFile()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationOSItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationOSItemProvider.java
index 14248305..373fdf9a 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationOSItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationOSItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,192 +27,164 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.ActivationOS;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.ActivationOS} object. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.ActivationOS} object. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class ActivationOSItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivationOSItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addNamePropertyDescriptor(object);
- addFamilyPropertyDescriptor(object);
- addArchPropertyDescriptor(object);
- addVersionPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_ActivationOS_name_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_ActivationOS_name_feature",
- "_UI_ActivationOS_type"),
- PomPackage.Literals.ACTIVATION_OS__NAME, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Family feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addFamilyPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_ActivationOS_family_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_ActivationOS_family_feature",
- "_UI_ActivationOS_type"),
- PomPackage.Literals.ACTIVATION_OS__FAMILY, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Arch feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addArchPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_ActivationOS_arch_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_ActivationOS_arch_feature",
- "_UI_ActivationOS_type"),
- PomPackage.Literals.ACTIVATION_OS__ARCH, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Version feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addVersionPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_ActivationOS_version_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_ActivationOS_version_feature",
- "_UI_ActivationOS_type"),
- PomPackage.Literals.ACTIVATION_OS__VERSION, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This returns ActivationOS.gif. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/ActivationOS"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ActivationOS) object).getName();
- return label == null || label.length() == 0 ? getString("_UI_ActivationOS_type")
- : getString("_UI_ActivationOS_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(ActivationOS.class)) {
- case PomPackage.ACTIVATION_OS__NAME:
- case PomPackage.ACTIVATION_OS__FAMILY:
- case PomPackage.ACTIVATION_OS__ARCH:
- case PomPackage.ACTIVATION_OS__VERSION:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class ActivationOSItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ActivationOSItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addNamePropertyDescriptor(object);
+ addFamilyPropertyDescriptor(object);
+ addArchPropertyDescriptor(object);
+ addVersionPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_ActivationOS_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ActivationOS_name_feature", "_UI_ActivationOS_type"),
+ PomPackage.Literals.ACTIVATION_OS__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Family feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addFamilyPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_ActivationOS_family_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ActivationOS_family_feature", "_UI_ActivationOS_type"),
+ PomPackage.Literals.ACTIVATION_OS__FAMILY, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Arch feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addArchPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_ActivationOS_arch_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ActivationOS_arch_feature", "_UI_ActivationOS_type"),
+ PomPackage.Literals.ACTIVATION_OS__ARCH, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Version feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addVersionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_ActivationOS_version_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ActivationOS_version_feature", "_UI_ActivationOS_type"),
+ PomPackage.Literals.ACTIVATION_OS__VERSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This returns ActivationOS.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/ActivationOS"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((ActivationOS) object).getName();
+ return label == null || label.length() == 0 ? getString("_UI_ActivationOS_type")
+ : getString("_UI_ActivationOS_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(ActivationOS.class)) {
+ case PomPackage.ACTIVATION_OS__NAME:
+ case PomPackage.ACTIVATION_OS__FAMILY:
+ case PomPackage.ACTIVATION_OS__ARCH:
+ case PomPackage.ACTIVATION_OS__VERSION:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationPropertyItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationPropertyItemProvider.java
index d7b00628..870dc5c9 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationPropertyItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ActivationPropertyItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,152 +27,134 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.ActivationProperty;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.ActivationProperty} object. <!--
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.ActivationProperty} object. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class ActivationPropertyItemProvider extends ItemProviderAdapter
- implements IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivationPropertyItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addNamePropertyDescriptor(object);
- addValuePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_ActivationProperty_name_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_ActivationProperty_name_feature",
- "_UI_ActivationProperty_type"),
- PomPackage.Literals.ACTIVATION_PROPERTY__NAME, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 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_ActivationProperty_value_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_ActivationProperty_value_feature",
- "_UI_ActivationProperty_type"),
- PomPackage.Literals.ACTIVATION_PROPERTY__VALUE, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This returns ActivationProperty.gif. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/ActivationProperty"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ActivationProperty) object).getName();
- return label == null || label.length() == 0 ? getString("_UI_ActivationProperty_type")
- : getString("_UI_ActivationProperty_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(ActivationProperty.class)) {
- case PomPackage.ACTIVATION_PROPERTY__NAME:
- case PomPackage.ACTIVATION_PROPERTY__VALUE:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class ActivationPropertyItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ActivationPropertyItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addNamePropertyDescriptor(object);
+ addValuePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ActivationProperty_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ActivationProperty_name_feature",
+ "_UI_ActivationProperty_type"), PomPackage.Literals.ACTIVATION_PROPERTY__NAME, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 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_ActivationProperty_value_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ActivationProperty_value_feature",
+ "_UI_ActivationProperty_type"), PomPackage.Literals.ACTIVATION_PROPERTY__VALUE, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This returns ActivationProperty.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/ActivationProperty"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((ActivationProperty) object).getName();
+ return label == null || label.length() == 0 ? getString("_UI_ActivationProperty_type")
+ : getString("_UI_ActivationProperty_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(ActivationProperty.class)) {
+ case PomPackage.ACTIVATION_PROPERTY__NAME:
+ case PomPackage.ACTIVATION_PROPERTY__VALUE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/BuildBaseItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/BuildBaseItemProvider.java
index 2abaafe3..c59a98c5 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/BuildBaseItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/BuildBaseItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,267 +28,226 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.BuildBase;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase} object. <!-- begin-user-doc
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.BuildBase} object. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated
*/
-public class BuildBaseItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public BuildBaseItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addDefaultGoalPropertyDescriptor(object);
- addDirectoryPropertyDescriptor(object);
- addFinalNamePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Default Goal feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addDefaultGoalPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_BuildBase_defaultGoal_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_BuildBase_defaultGoal_feature",
- "_UI_BuildBase_type"),
- PomPackage.Literals.BUILD_BASE__DEFAULT_GOAL, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Directory feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addDirectoryPropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_BuildBase_directory_feature"),
- getString("_UI_PropertyDescriptor_description",
- "_UI_BuildBase_directory_feature",
- "_UI_BuildBase_type"),
- PomPackage.Literals.BUILD_BASE__DIRECTORY, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
-
- /**
- * This adds a property descriptor for the Final Name feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addFinalNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_BuildBase_finalName_feature"),
- getString("_UI_PropertyDescriptor_description",
- "_UI_BuildBase_finalName_feature",
- "_UI_BuildBase_type"),
- PomPackage.Literals.BUILD_BASE__FINAL_NAME, true,
- false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.BUILD_BASE__RESOURCES);
- childrenFeatures
- .add(PomPackage.Literals.BUILD_BASE__TEST_RESOURCES);
- childrenFeatures
- .add(PomPackage.Literals.BUILD_BASE__PLUGIN_MANAGEMENT);
- childrenFeatures.add(PomPackage.Literals.BUILD_BASE__PLUGINS);
- childrenFeatures.add(PomPackage.Literals.BUILD_BASE__FILTERS);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns BuildBase.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/BuildBase"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((BuildBase) object).getFinalName();
- return label == null || label.length() == 0 ? getString("_UI_BuildBase_type")
- : getString("_UI_BuildBase_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(BuildBase.class)) {
- case PomPackage.BUILD_BASE__DEFAULT_GOAL:
- case PomPackage.BUILD_BASE__DIRECTORY:
- case PomPackage.BUILD_BASE__FINAL_NAME:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.BUILD_BASE__RESOURCES:
- case PomPackage.BUILD_BASE__TEST_RESOURCES:
- case PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT:
- case PomPackage.BUILD_BASE__PLUGINS:
- case PomPackage.BUILD_BASE__FILTERS:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.BUILD_BASE__RESOURCES, PomFactory.eINSTANCE
- .createResource()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.BUILD_BASE__TEST_RESOURCES,
- PomFactory.eINSTANCE.createResource()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.BUILD_BASE__PLUGIN_MANAGEMENT,
- PomFactory.eINSTANCE.createPluginManagement()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.BUILD_BASE__PLUGINS, PomFactory.eINSTANCE
- .createPlugin()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.BUILD_BASE__FILTERS, ""));
- }
-
- /**
- * This returns the label text for
- * {@link org.eclipse.emf.edit.command.CreateChildCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getCreateChildText(Object owner, Object feature,
- Object child, Collection<?> selection) {
- Object childFeature = feature;
- Object childObject = child;
-
- boolean qualify = childFeature == PomPackage.Literals.BUILD_BASE__RESOURCES
- || childFeature == PomPackage.Literals.BUILD_BASE__TEST_RESOURCES;
-
- if (qualify) {
- return getString("_UI_CreateChild_text2", new Object[] {
- getTypeText(childObject), getFeatureText(childFeature),
- getTypeText(owner) });
- }
- return super.getCreateChildText(owner, feature, child, selection);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class BuildBaseItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public BuildBaseItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addDefaultGoalPropertyDescriptor(object);
+ addDirectoryPropertyDescriptor(object);
+ addFinalNamePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Default Goal feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addDefaultGoalPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_BuildBase_defaultGoal_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_BuildBase_defaultGoal_feature", "_UI_BuildBase_type"),
+ PomPackage.Literals.BUILD_BASE__DEFAULT_GOAL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Directory feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addDirectoryPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_BuildBase_directory_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_BuildBase_directory_feature", "_UI_BuildBase_type"),
+ PomPackage.Literals.BUILD_BASE__DIRECTORY, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Final Name feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addFinalNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_BuildBase_finalName_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_BuildBase_finalName_feature", "_UI_BuildBase_type"),
+ PomPackage.Literals.BUILD_BASE__FINAL_NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.BUILD_BASE__RESOURCES);
+ childrenFeatures.add(PomPackage.Literals.BUILD_BASE__TEST_RESOURCES);
+ childrenFeatures.add(PomPackage.Literals.BUILD_BASE__PLUGIN_MANAGEMENT);
+ childrenFeatures.add(PomPackage.Literals.BUILD_BASE__PLUGINS);
+ childrenFeatures.add(PomPackage.Literals.BUILD_BASE__FILTERS);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns BuildBase.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/BuildBase"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((BuildBase) object).getFinalName();
+ return label == null || label.length() == 0 ? getString("_UI_BuildBase_type") : getString("_UI_BuildBase_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(BuildBase.class)) {
+ case PomPackage.BUILD_BASE__DEFAULT_GOAL:
+ case PomPackage.BUILD_BASE__DIRECTORY:
+ case PomPackage.BUILD_BASE__FINAL_NAME:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.BUILD_BASE__RESOURCES:
+ case PomPackage.BUILD_BASE__TEST_RESOURCES:
+ case PomPackage.BUILD_BASE__PLUGIN_MANAGEMENT:
+ case PomPackage.BUILD_BASE__PLUGINS:
+ case PomPackage.BUILD_BASE__FILTERS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.BUILD_BASE__RESOURCES,
+ PomFactory.eINSTANCE.createResource()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.BUILD_BASE__TEST_RESOURCES,
+ PomFactory.eINSTANCE.createResource()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.BUILD_BASE__PLUGIN_MANAGEMENT,
+ PomFactory.eINSTANCE.createPluginManagement()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.BUILD_BASE__PLUGINS,
+ PomFactory.eINSTANCE.createPlugin()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.BUILD_BASE__FILTERS, ""));
+ }
+
+ /**
+ * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) {
+ Object childFeature = feature;
+ Object childObject = child;
+
+ boolean qualify = childFeature == PomPackage.Literals.BUILD_BASE__RESOURCES
+ || childFeature == PomPackage.Literals.BUILD_BASE__TEST_RESOURCES;
+
+ if(qualify) {
+ return getString("_UI_CreateChild_text2", new Object[] {getTypeText(childObject), getFeatureText(childFeature),
+ getTypeText(owner)});
+ }
+ return super.getCreateChildText(owner, feature, child, selection);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/BuildItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/BuildItemProvider.java
index 0917d886..d893b567 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/BuildItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/BuildItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -28,266 +26,232 @@ import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.Build;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Build} object. <!-- begin-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Build} object. <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
-public class BuildItemProvider extends BuildBaseItemProvider implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public BuildItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
+public class BuildItemProvider extends BuildBaseItemProvider implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public BuildItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
- addSourceDirectoryPropertyDescriptor(object);
- addScriptSourceDirectoryPropertyDescriptor(object);
- addTestSourceDirectoryPropertyDescriptor(object);
- addOutputDirectoryPropertyDescriptor(object);
- addTestOutputDirectoryPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
+ addSourceDirectoryPropertyDescriptor(object);
+ addScriptSourceDirectoryPropertyDescriptor(object);
+ addTestSourceDirectoryPropertyDescriptor(object);
+ addOutputDirectoryPropertyDescriptor(object);
+ addTestOutputDirectoryPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
- /**
- * This adds a property descriptor for the Source Directory feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addSourceDirectoryPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Build_sourceDirectory_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Build_sourceDirectory_feature", "_UI_Build_type"),
- PomPackage.Literals.BUILD__SOURCE_DIRECTORY, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Source Directory feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addSourceDirectoryPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Build_sourceDirectory_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Build_sourceDirectory_feature", "_UI_Build_type"),
+ PomPackage.Literals.BUILD__SOURCE_DIRECTORY, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
- /**
- * This adds a property descriptor for the Script Source Directory feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addScriptSourceDirectoryPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Build_scriptSourceDirectory_feature"),
- getString("_UI_PropertyDescriptor_description",
- "_UI_Build_scriptSourceDirectory_feature",
- "_UI_Build_type"),
- PomPackage.Literals.BUILD__SCRIPT_SOURCE_DIRECTORY, true,
- false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
- null));
- }
+ /**
+ * This adds a property descriptor for the Script Source Directory feature. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected void addScriptSourceDirectoryPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Build_scriptSourceDirectory_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Build_scriptSourceDirectory_feature", "_UI_Build_type"),
+ PomPackage.Literals.BUILD__SCRIPT_SOURCE_DIRECTORY, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
- /**
- * This adds a property descriptor for the Test Source Directory feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addTestSourceDirectoryPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Build_testSourceDirectory_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Build_testSourceDirectory_feature",
- "_UI_Build_type"),
- PomPackage.Literals.BUILD__TEST_SOURCE_DIRECTORY, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Test Source Directory feature. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected void addTestSourceDirectoryPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Build_testSourceDirectory_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Build_testSourceDirectory_feature", "_UI_Build_type"),
+ PomPackage.Literals.BUILD__TEST_SOURCE_DIRECTORY, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
- /**
- * This adds a property descriptor for the Output Directory feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addOutputDirectoryPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Build_outputDirectory_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Build_outputDirectory_feature", "_UI_Build_type"),
- PomPackage.Literals.BUILD__OUTPUT_DIRECTORY, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Output Directory feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addOutputDirectoryPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Build_outputDirectory_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Build_outputDirectory_feature", "_UI_Build_type"),
+ PomPackage.Literals.BUILD__OUTPUT_DIRECTORY, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
- /**
- * This adds a property descriptor for the Test Output Directory feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addTestOutputDirectoryPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Build_testOutputDirectory_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Build_testOutputDirectory_feature",
- "_UI_Build_type"),
- PomPackage.Literals.BUILD__TEST_OUTPUT_DIRECTORY, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Test Output Directory feature. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected void addTestOutputDirectoryPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Build_testOutputDirectory_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Build_testOutputDirectory_feature", "_UI_Build_type"),
+ PomPackage.Literals.BUILD__TEST_OUTPUT_DIRECTORY, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.BUILD__EXTENSIONS);
- }
- return childrenFeatures;
- }
+ /**
+ * 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
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.BUILD__EXTENSIONS);
+ }
+ return childrenFeatures;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
- return super.getChildFeature(object, child);
- }
+ return super.getChildFeature(object, child);
+ }
- /**
- * This returns Build.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Build"));
- }
+ /**
+ * This returns Build.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Build"));
+ }
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Build) object).getFinalName();
- return label == null || label.length() == 0 ? getString("_UI_Build_type")
- : getString("_UI_Build_type") + " " + label;
- }
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Build) object).getFinalName();
+ return label == null || label.length() == 0 ? getString("_UI_Build_type") : getString("_UI_Build_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
+ /**
+ * 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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
- switch (notification.getFeatureID(Build.class)) {
- case PomPackage.BUILD__SOURCE_DIRECTORY:
- case PomPackage.BUILD__SCRIPT_SOURCE_DIRECTORY:
- case PomPackage.BUILD__TEST_SOURCE_DIRECTORY:
- case PomPackage.BUILD__OUTPUT_DIRECTORY:
- case PomPackage.BUILD__TEST_OUTPUT_DIRECTORY:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.BUILD__EXTENSIONS:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
+ switch(notification.getFeatureID(Build.class)) {
+ case PomPackage.BUILD__SOURCE_DIRECTORY:
+ case PomPackage.BUILD__SCRIPT_SOURCE_DIRECTORY:
+ case PomPackage.BUILD__TEST_SOURCE_DIRECTORY:
+ case PomPackage.BUILD__OUTPUT_DIRECTORY:
+ case PomPackage.BUILD__TEST_OUTPUT_DIRECTORY:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.BUILD__EXTENSIONS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.BUILD__EXTENSIONS, PomFactory.eINSTANCE
- .createExtension()));
- }
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.BUILD__EXTENSIONS,
+ PomFactory.eINSTANCE.createExtension()));
+ }
- /**
- * This returns the label text for
- * {@link org.eclipse.emf.edit.command.CreateChildCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getCreateChildText(Object owner, Object feature,
- Object child, Collection<?> selection) {
- Object childFeature = feature;
- Object childObject = child;
+ /**
+ * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) {
+ Object childFeature = feature;
+ Object childObject = child;
- boolean qualify = childFeature == PomPackage.Literals.BUILD_BASE__RESOURCES
- || childFeature == PomPackage.Literals.BUILD_BASE__TEST_RESOURCES;
+ boolean qualify = childFeature == PomPackage.Literals.BUILD_BASE__RESOURCES
+ || childFeature == PomPackage.Literals.BUILD_BASE__TEST_RESOURCES;
- if (qualify) {
- return getString("_UI_CreateChild_text2", new Object[] {
- getTypeText(childObject), getFeatureText(childFeature),
- getTypeText(owner) });
- }
- return super.getCreateChildText(owner, feature, child, selection);
- }
+ if(qualify) {
+ return getString("_UI_CreateChild_text2", new Object[] {getTypeText(childObject), getFeatureText(childFeature),
+ getTypeText(owner)});
+ }
+ return super.getCreateChildText(owner, feature, child, selection);
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/CiManagementItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/CiManagementItemProvider.java
index 39176994..662af369 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/CiManagementItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/CiManagementItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,197 +28,170 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.CiManagement;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.CiManagement} object. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.CiManagement} object. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class CiManagementItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public CiManagementItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addSystemPropertyDescriptor(object);
- addUrlPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the System feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addSystemPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_CiManagement_system_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_CiManagement_system_feature",
- "_UI_CiManagement_type"),
- PomPackage.Literals.CI_MANAGEMENT__SYSTEM, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Url feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addUrlPropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_CiManagement_url_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_CiManagement_url_feature",
- "_UI_CiManagement_type"),
- PomPackage.Literals.CI_MANAGEMENT__URL, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.CI_MANAGEMENT__NOTIFIERS);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns CiManagement.gif. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/CiManagement"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((CiManagement) object).getSystem();
- return label == null || label.length() == 0 ? getString("_UI_CiManagement_type")
- : getString("_UI_CiManagement_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(CiManagement.class)) {
- case PomPackage.CI_MANAGEMENT__SYSTEM:
- case PomPackage.CI_MANAGEMENT__URL:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.CI_MANAGEMENT__NOTIFIERS:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.CI_MANAGEMENT__NOTIFIERS,
- PomFactory.eINSTANCE.createNotifier()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class CiManagementItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public CiManagementItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addSystemPropertyDescriptor(object);
+ addUrlPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the System feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addSystemPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_CiManagement_system_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_CiManagement_system_feature", "_UI_CiManagement_type"),
+ PomPackage.Literals.CI_MANAGEMENT__SYSTEM, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Url feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addUrlPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_CiManagement_url_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_CiManagement_url_feature", "_UI_CiManagement_type"),
+ PomPackage.Literals.CI_MANAGEMENT__URL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.CI_MANAGEMENT__NOTIFIERS);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns CiManagement.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/CiManagement"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((CiManagement) object).getSystem();
+ return label == null || label.length() == 0 ? getString("_UI_CiManagement_type")
+ : getString("_UI_CiManagement_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(CiManagement.class)) {
+ case PomPackage.CI_MANAGEMENT__SYSTEM:
+ case PomPackage.CI_MANAGEMENT__URL:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.CI_MANAGEMENT__NOTIFIERS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.CI_MANAGEMENT__NOTIFIERS,
+ PomFactory.eINSTANCE.createNotifier()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ConfigurationItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ConfigurationItemProvider.java
index cccca85c..af57d843 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ConfigurationItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ConfigurationItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
@@ -27,98 +25,89 @@ import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Configuration} object. <!--
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Configuration} object. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class ConfigurationItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ConfigurationItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
+public class ConfigurationItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ConfigurationItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
- }
- return itemPropertyDescriptors;
- }
+ }
+ return itemPropertyDescriptors;
+ }
- /**
- * This returns Configuration.gif. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/Configuration"));
- }
+ /**
+ * This returns Configuration.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Configuration"));
+ }
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- return getString("_UI_Configuration_type");
- }
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_Configuration_type");
+ }
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any cached
- * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
- super.notifyChanged(notification);
- }
+ /**
+ * 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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+ super.notifyChanged(notification);
+ }
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ContributorItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ContributorItemProvider.java
index bbec6410..23978c96 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ContributorItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ContributorItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,283 +28,241 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.Contributor;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Contributor} object. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Contributor} object. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class ContributorItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ContributorItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
+public class ContributorItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ContributorItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
- addNamePropertyDescriptor(object);
- addEmailPropertyDescriptor(object);
- addUrlPropertyDescriptor(object);
- addOrganizationPropertyDescriptor(object);
- addOrganizationUrlPropertyDescriptor(object);
- addTimezonePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
+ addNamePropertyDescriptor(object);
+ addEmailPropertyDescriptor(object);
+ addUrlPropertyDescriptor(object);
+ addOrganizationPropertyDescriptor(object);
+ addOrganizationUrlPropertyDescriptor(object);
+ addTimezonePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
- /**
- * This adds a property descriptor for the Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Contributor_name_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Contributor_name_feature",
- "_UI_Contributor_type"),
- PomPackage.Literals.CONTRIBUTOR__NAME, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
+ /**
+ * This adds a property descriptor for the Name feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Contributor_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Contributor_name_feature", "_UI_Contributor_type"),
+ PomPackage.Literals.CONTRIBUTOR__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This adds a property descriptor for the Email feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addEmailPropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Contributor_email_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Contributor_email_feature",
- "_UI_Contributor_type"),
- PomPackage.Literals.CONTRIBUTOR__EMAIL, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
+ /**
+ * This adds a property descriptor for the Email feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addEmailPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Contributor_email_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Contributor_email_feature", "_UI_Contributor_type"),
+ PomPackage.Literals.CONTRIBUTOR__EMAIL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This adds a property descriptor for the Url feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addUrlPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Contributor_url_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Contributor_url_feature", "_UI_Contributor_type"),
- PomPackage.Literals.CONTRIBUTOR__URL, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Url feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addUrlPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Contributor_url_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Contributor_url_feature", "_UI_Contributor_type"),
+ PomPackage.Literals.CONTRIBUTOR__URL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This adds a property descriptor for the Organization feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addOrganizationPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Contributor_organization_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Contributor_organization_feature",
- "_UI_Contributor_type"),
- PomPackage.Literals.CONTRIBUTOR__ORGANIZATION, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Organization feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addOrganizationPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Contributor_organization_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Contributor_organization_feature",
+ "_UI_Contributor_type"), PomPackage.Literals.CONTRIBUTOR__ORGANIZATION, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
- /**
- * This adds a property descriptor for the Organization Url feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addOrganizationUrlPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Contributor_organizationUrl_feature"),
- getString("_UI_PropertyDescriptor_description",
- "_UI_Contributor_organizationUrl_feature",
- "_UI_Contributor_type"),
- PomPackage.Literals.CONTRIBUTOR__ORGANIZATION_URL, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Organization Url feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addOrganizationUrlPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Contributor_organizationUrl_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Contributor_organizationUrl_feature",
+ "_UI_Contributor_type"), PomPackage.Literals.CONTRIBUTOR__ORGANIZATION_URL, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
- /**
- * This adds a property descriptor for the Timezone feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addTimezonePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Contributor_timezone_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Contributor_timezone_feature",
- "_UI_Contributor_type"),
- PomPackage.Literals.CONTRIBUTOR__TIMEZONE, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Timezone feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addTimezonePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Contributor_timezone_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Contributor_timezone_feature", "_UI_Contributor_type"),
+ PomPackage.Literals.CONTRIBUTOR__TIMEZONE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.CONTRIBUTOR__PROPERTIES);
- childrenFeatures.add(PomPackage.Literals.CONTRIBUTOR__ROLES);
- }
- return childrenFeatures;
- }
+ /**
+ * 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
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.CONTRIBUTOR__PROPERTIES);
+ childrenFeatures.add(PomPackage.Literals.CONTRIBUTOR__ROLES);
+ }
+ return childrenFeatures;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
- return super.getChildFeature(object, child);
- }
+ return super.getChildFeature(object, child);
+ }
- /**
- * This returns Contributor.gif. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Contributor"));
- }
+ /**
+ * This returns Contributor.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Contributor"));
+ }
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Contributor) object).getName();
- return label == null || label.length() == 0 ? getString("_UI_Contributor_type")
- : getString("_UI_Contributor_type") + " " + label;
- }
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Contributor) object).getName();
+ return label == null || label.length() == 0 ? getString("_UI_Contributor_type") : getString("_UI_Contributor_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
+ /**
+ * 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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
- switch (notification.getFeatureID(Contributor.class)) {
- case PomPackage.CONTRIBUTOR__NAME:
- case PomPackage.CONTRIBUTOR__EMAIL:
- case PomPackage.CONTRIBUTOR__URL:
- case PomPackage.CONTRIBUTOR__ORGANIZATION:
- case PomPackage.CONTRIBUTOR__ORGANIZATION_URL:
- case PomPackage.CONTRIBUTOR__TIMEZONE:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.CONTRIBUTOR__PROPERTIES:
- case PomPackage.CONTRIBUTOR__ROLES:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
+ switch(notification.getFeatureID(Contributor.class)) {
+ case PomPackage.CONTRIBUTOR__NAME:
+ case PomPackage.CONTRIBUTOR__EMAIL:
+ case PomPackage.CONTRIBUTOR__URL:
+ case PomPackage.CONTRIBUTOR__ORGANIZATION:
+ case PomPackage.CONTRIBUTOR__ORGANIZATION_URL:
+ case PomPackage.CONTRIBUTOR__TIMEZONE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.CONTRIBUTOR__PROPERTIES:
+ case PomPackage.CONTRIBUTOR__ROLES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.CONTRIBUTOR__PROPERTIES,
- PomFactory.eINSTANCE.createPropertyElement()));
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.CONTRIBUTOR__PROPERTIES,
+ PomFactory.eINSTANCE.createPropertyElement()));
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.CONTRIBUTOR__ROLES, ""));
- }
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.CONTRIBUTOR__ROLES, ""));
+ }
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DependencyItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DependencyItemProvider.java
index 89401c66..1fd5d3f9 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DependencyItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DependencyItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,317 +28,266 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.Dependency;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Dependency} object. <!-- begin-user-doc
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Dependency} object. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated
*/
-public class DependencyItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DependencyItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
+public class DependencyItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DependencyItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
- addGroupIdPropertyDescriptor(object);
- addArtifactIdPropertyDescriptor(object);
- addVersionPropertyDescriptor(object);
- addTypePropertyDescriptor(object);
- addClassifierPropertyDescriptor(object);
- addScopePropertyDescriptor(object);
- addSystemPathPropertyDescriptor(object);
- addOptionalPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
+ addGroupIdPropertyDescriptor(object);
+ addArtifactIdPropertyDescriptor(object);
+ addVersionPropertyDescriptor(object);
+ addTypePropertyDescriptor(object);
+ addClassifierPropertyDescriptor(object);
+ addScopePropertyDescriptor(object);
+ addSystemPathPropertyDescriptor(object);
+ addOptionalPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
- /**
- * This adds a property descriptor for the Group Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addGroupIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Dependency_groupId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Dependency_groupId_feature",
- "_UI_Dependency_type"),
- PomPackage.Literals.DEPENDENCY__GROUP_ID, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
+ /**
+ * This adds a property descriptor for the Group Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addGroupIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Dependency_groupId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Dependency_groupId_feature", "_UI_Dependency_type"),
+ PomPackage.Literals.DEPENDENCY__GROUP_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This adds a property descriptor for the Artifact Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addArtifactIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Dependency_artifactId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Dependency_artifactId_feature",
- "_UI_Dependency_type"),
- PomPackage.Literals.DEPENDENCY__ARTIFACT_ID, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Artifact Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addArtifactIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Dependency_artifactId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Dependency_artifactId_feature", "_UI_Dependency_type"),
+ PomPackage.Literals.DEPENDENCY__ARTIFACT_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
- /**
- * This adds a property descriptor for the Version feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addVersionPropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Dependency_version_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Dependency_version_feature",
- "_UI_Dependency_type"),
- PomPackage.Literals.DEPENDENCY__VERSION, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
+ /**
+ * This adds a property descriptor for the Version feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addVersionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Dependency_version_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Dependency_version_feature", "_UI_Dependency_type"),
+ PomPackage.Literals.DEPENDENCY__VERSION, true, false, false, ItemPropertyDescriptor.GENERIC_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_Dependency_type_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Dependency_type_feature", "_UI_Dependency_type"),
- PomPackage.Literals.DEPENDENCY__TYPE, true, false, false,
- ItemPropertyDescriptor.GENERIC_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_Dependency_type_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Dependency_type_feature", "_UI_Dependency_type"),
+ PomPackage.Literals.DEPENDENCY__TYPE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This adds a property descriptor for the Classifier feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addClassifierPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Dependency_classifier_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Dependency_classifier_feature",
- "_UI_Dependency_type"),
- PomPackage.Literals.DEPENDENCY__CLASSIFIER, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Classifier feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addClassifierPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Dependency_classifier_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Dependency_classifier_feature", "_UI_Dependency_type"),
+ PomPackage.Literals.DEPENDENCY__CLASSIFIER, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
- /**
- * This adds a property descriptor for the Scope feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addScopePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Dependency_scope_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Dependency_scope_feature", "_UI_Dependency_type"),
- PomPackage.Literals.DEPENDENCY__SCOPE, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Scope feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addScopePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Dependency_scope_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Dependency_scope_feature", "_UI_Dependency_type"),
+ PomPackage.Literals.DEPENDENCY__SCOPE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This adds a property descriptor for the System Path feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addSystemPathPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Dependency_systemPath_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Dependency_systemPath_feature",
- "_UI_Dependency_type"),
- PomPackage.Literals.DEPENDENCY__SYSTEM_PATH, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the System Path feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addSystemPathPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Dependency_systemPath_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Dependency_systemPath_feature", "_UI_Dependency_type"),
+ PomPackage.Literals.DEPENDENCY__SYSTEM_PATH, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
- /**
- * This adds a property descriptor for the Optional feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addOptionalPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Dependency_optional_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Dependency_optional_feature",
- "_UI_Dependency_type"),
- PomPackage.Literals.DEPENDENCY__OPTIONAL, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Optional feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addOptionalPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Dependency_optional_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Dependency_optional_feature", "_UI_Dependency_type"),
+ PomPackage.Literals.DEPENDENCY__OPTIONAL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.DEPENDENCY__EXCLUSIONS);
- }
- return childrenFeatures;
- }
+ /**
+ * 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
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.DEPENDENCY__EXCLUSIONS);
+ }
+ return childrenFeatures;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
- return super.getChildFeature(object, child);
- }
+ return super.getChildFeature(object, child);
+ }
- /**
- * This returns Dependency.gif. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Dependency"));
- }
+ /**
+ * This returns Dependency.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Dependency"));
+ }
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Dependency) object).getGroupId();
- return label == null || label.length() == 0 ? getString("_UI_Dependency_type")
- : getString("_UI_Dependency_type") + " " + label;
- }
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Dependency) object).getGroupId();
+ return label == null || label.length() == 0 ? getString("_UI_Dependency_type") : getString("_UI_Dependency_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
+ /**
+ * 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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
- switch (notification.getFeatureID(Dependency.class)) {
- case PomPackage.DEPENDENCY__GROUP_ID:
- case PomPackage.DEPENDENCY__ARTIFACT_ID:
- case PomPackage.DEPENDENCY__VERSION:
- case PomPackage.DEPENDENCY__TYPE:
- case PomPackage.DEPENDENCY__CLASSIFIER:
- case PomPackage.DEPENDENCY__SCOPE:
- case PomPackage.DEPENDENCY__SYSTEM_PATH:
- case PomPackage.DEPENDENCY__OPTIONAL:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.DEPENDENCY__EXCLUSIONS:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
+ switch(notification.getFeatureID(Dependency.class)) {
+ case PomPackage.DEPENDENCY__GROUP_ID:
+ case PomPackage.DEPENDENCY__ARTIFACT_ID:
+ case PomPackage.DEPENDENCY__VERSION:
+ case PomPackage.DEPENDENCY__TYPE:
+ case PomPackage.DEPENDENCY__CLASSIFIER:
+ case PomPackage.DEPENDENCY__SCOPE:
+ case PomPackage.DEPENDENCY__SYSTEM_PATH:
+ case PomPackage.DEPENDENCY__OPTIONAL:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.DEPENDENCY__EXCLUSIONS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.DEPENDENCY__EXCLUSIONS,
- PomFactory.eINSTANCE.createExclusion()));
- }
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.DEPENDENCY__EXCLUSIONS,
+ PomFactory.eINSTANCE.createExclusion()));
+ }
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DependencyManagementItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DependencyManagementItemProvider.java
index 1a8024ad..4c2af99c 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DependencyManagementItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DependencyManagementItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
@@ -29,151 +26,134 @@ import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.DependencyManagement;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.DependencyManagement} object. <!--
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.DependencyManagement} object. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class DependencyManagementItemProvider extends ItemProviderAdapter
- implements IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DependencyManagementItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures
- .add(PomPackage.Literals.DEPENDENCY_MANAGEMENT__DEPENDENCIES);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns DependencyManagement.gif. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/DependencyManagement"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- return getString("_UI_DependencyManagement_type");
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to
- * update any cached children and by creating a viewer notification, which
- * it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(DependencyManagement.class)) {
- case PomPackage.DEPENDENCY_MANAGEMENT__DEPENDENCIES:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.DEPENDENCY_MANAGEMENT__DEPENDENCIES,
- PomFactory.eINSTANCE.createDependency()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class DependencyManagementItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DependencyManagementItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.DEPENDENCY_MANAGEMENT__DEPENDENCIES);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns DependencyManagement.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/DependencyManagement"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_DependencyManagement_type");
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a
+ * viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(DependencyManagement.class)) {
+ case PomPackage.DEPENDENCY_MANAGEMENT__DEPENDENCIES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.DEPENDENCY_MANAGEMENT__DEPENDENCIES,
+ PomFactory.eINSTANCE.createDependency()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DeploymentRepositoryItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DeploymentRepositoryItemProvider.java
index a0c85aef..9cbc3245 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DeploymentRepositoryItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DeploymentRepositoryItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,213 +27,185 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.DeploymentRepository;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository} object. <!--
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository} object. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class DeploymentRepositoryItemProvider extends ItemProviderAdapter
- implements IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DeploymentRepositoryItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addUniqueVersionPropertyDescriptor(object);
- addIdPropertyDescriptor(object);
- addNamePropertyDescriptor(object);
- addUrlPropertyDescriptor(object);
- addLayoutPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Unique Version feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addUniqueVersionPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_DeploymentRepository_uniqueVersion_feature"),
- getString("_UI_PropertyDescriptor_description",
- "_UI_DeploymentRepository_uniqueVersion_feature",
- "_UI_DeploymentRepository_type"),
- PomPackage.Literals.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION,
- true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_DeploymentRepository_id_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_DeploymentRepository_id_feature",
- "_UI_DeploymentRepository_type"),
- PomPackage.Literals.DEPLOYMENT_REPOSITORY__ID, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_DeploymentRepository_name_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_DeploymentRepository_name_feature",
- "_UI_DeploymentRepository_type"),
- PomPackage.Literals.DEPLOYMENT_REPOSITORY__NAME, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Url feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addUrlPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_DeploymentRepository_url_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_DeploymentRepository_url_feature",
- "_UI_DeploymentRepository_type"),
- PomPackage.Literals.DEPLOYMENT_REPOSITORY__URL, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Layout feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addLayoutPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_DeploymentRepository_layout_feature"),
- getString("_UI_PropertyDescriptor_description",
- "_UI_DeploymentRepository_layout_feature",
- "_UI_DeploymentRepository_type"),
- PomPackage.Literals.DEPLOYMENT_REPOSITORY__LAYOUT, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This returns DeploymentRepository.gif. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/DeploymentRepository"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((DeploymentRepository) object).getName();
- return label == null || label.length() == 0 ? getString("_UI_DeploymentRepository_type")
- : getString("_UI_DeploymentRepository_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(DeploymentRepository.class)) {
- case PomPackage.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION:
- case PomPackage.DEPLOYMENT_REPOSITORY__ID:
- case PomPackage.DEPLOYMENT_REPOSITORY__NAME:
- case PomPackage.DEPLOYMENT_REPOSITORY__URL:
- case PomPackage.DEPLOYMENT_REPOSITORY__LAYOUT:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class DeploymentRepositoryItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DeploymentRepositoryItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addUniqueVersionPropertyDescriptor(object);
+ addIdPropertyDescriptor(object);
+ addNamePropertyDescriptor(object);
+ addUrlPropertyDescriptor(object);
+ addLayoutPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Unique Version feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addUniqueVersionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_DeploymentRepository_uniqueVersion_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_DeploymentRepository_uniqueVersion_feature",
+ "_UI_DeploymentRepository_type"), PomPackage.Literals.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION, true, false,
+ false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_DeploymentRepository_id_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_DeploymentRepository_id_feature",
+ "_UI_DeploymentRepository_type"), PomPackage.Literals.DEPLOYMENT_REPOSITORY__ID, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_DeploymentRepository_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_DeploymentRepository_name_feature",
+ "_UI_DeploymentRepository_type"), PomPackage.Literals.DEPLOYMENT_REPOSITORY__NAME, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Url feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addUrlPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_DeploymentRepository_url_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_DeploymentRepository_url_feature",
+ "_UI_DeploymentRepository_type"), PomPackage.Literals.DEPLOYMENT_REPOSITORY__URL, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Layout feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addLayoutPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_DeploymentRepository_layout_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_DeploymentRepository_layout_feature",
+ "_UI_DeploymentRepository_type"), PomPackage.Literals.DEPLOYMENT_REPOSITORY__LAYOUT, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This returns DeploymentRepository.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/DeploymentRepository"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((DeploymentRepository) object).getName();
+ return label == null || label.length() == 0 ? getString("_UI_DeploymentRepository_type")
+ : getString("_UI_DeploymentRepository_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(DeploymentRepository.class)) {
+ case PomPackage.DEPLOYMENT_REPOSITORY__UNIQUE_VERSION:
+ case PomPackage.DEPLOYMENT_REPOSITORY__ID:
+ case PomPackage.DEPLOYMENT_REPOSITORY__NAME:
+ case PomPackage.DEPLOYMENT_REPOSITORY__URL:
+ case PomPackage.DEPLOYMENT_REPOSITORY__LAYOUT:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DeveloperItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DeveloperItemProvider.java
index d3d5f037..27c9df87 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DeveloperItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DeveloperItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,297 +28,253 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.Developer;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Developer} object. <!-- begin-user-doc
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Developer} object. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated
*/
-public class DeveloperItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DeveloperItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
+public class DeveloperItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DeveloperItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
- addIdPropertyDescriptor(object);
- addNamePropertyDescriptor(object);
- addEmailPropertyDescriptor(object);
- addUrlPropertyDescriptor(object);
- addOrganizationPropertyDescriptor(object);
- addOrganizationUrlPropertyDescriptor(object);
- addTimezonePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
+ addIdPropertyDescriptor(object);
+ addNamePropertyDescriptor(object);
+ addEmailPropertyDescriptor(object);
+ addUrlPropertyDescriptor(object);
+ addOrganizationPropertyDescriptor(object);
+ addOrganizationUrlPropertyDescriptor(object);
+ addTimezonePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Developer_id_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Developer_id_feature", "_UI_Developer_type"),
- PomPackage.Literals.DEVELOPER__ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Developer_id_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Developer_id_feature", "_UI_Developer_type"),
+ PomPackage.Literals.DEVELOPER__ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
- /**
- * This adds a property descriptor for the Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Developer_name_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Developer_name_feature", "_UI_Developer_type"),
- PomPackage.Literals.DEVELOPER__NAME, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Name feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(), getString("_UI_Developer_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Developer_name_feature", "_UI_Developer_type"),
+ PomPackage.Literals.DEVELOPER__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This adds a property descriptor for the Email feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addEmailPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Developer_email_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Developer_email_feature", "_UI_Developer_type"),
- PomPackage.Literals.DEVELOPER__EMAIL, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Email feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addEmailPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Developer_email_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Developer_email_feature", "_UI_Developer_type"),
+ PomPackage.Literals.DEVELOPER__EMAIL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This adds a property descriptor for the Url feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addUrlPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Developer_url_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Developer_url_feature", "_UI_Developer_type"),
- PomPackage.Literals.DEVELOPER__URL, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Url feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addUrlPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(), getString("_UI_Developer_url_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Developer_url_feature", "_UI_Developer_type"),
+ PomPackage.Literals.DEVELOPER__URL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This adds a property descriptor for the Organization feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addOrganizationPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Developer_organization_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Developer_organization_feature",
- "_UI_Developer_type"),
- PomPackage.Literals.DEVELOPER__ORGANIZATION, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Organization feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addOrganizationPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Developer_organization_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Developer_organization_feature", "_UI_Developer_type"),
+ PomPackage.Literals.DEVELOPER__ORGANIZATION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
- /**
- * This adds a property descriptor for the Organization Url feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addOrganizationUrlPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Developer_organizationUrl_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Developer_organizationUrl_feature",
- "_UI_Developer_type"),
- PomPackage.Literals.DEVELOPER__ORGANIZATION_URL, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Organization Url feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addOrganizationUrlPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Developer_organizationUrl_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Developer_organizationUrl_feature", "_UI_Developer_type"),
+ PomPackage.Literals.DEVELOPER__ORGANIZATION_URL, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
- /**
- * This adds a property descriptor for the Timezone feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addTimezonePropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Developer_timezone_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Developer_timezone_feature",
- "_UI_Developer_type"),
- PomPackage.Literals.DEVELOPER__TIMEZONE, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
+ /**
+ * This adds a property descriptor for the Timezone feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addTimezonePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Developer_timezone_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Developer_timezone_feature", "_UI_Developer_type"),
+ PomPackage.Literals.DEVELOPER__TIMEZONE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.DEVELOPER__PROPERTIES);
- childrenFeatures.add(PomPackage.Literals.DEVELOPER__ROLES);
- }
- return childrenFeatures;
- }
+ /**
+ * 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
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.DEVELOPER__PROPERTIES);
+ childrenFeatures.add(PomPackage.Literals.DEVELOPER__ROLES);
+ }
+ return childrenFeatures;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
- return super.getChildFeature(object, child);
- }
+ return super.getChildFeature(object, child);
+ }
- /**
- * This returns Developer.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Developer"));
- }
+ /**
+ * This returns Developer.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Developer"));
+ }
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Developer) object).getName();
- return label == null || label.length() == 0 ? getString("_UI_Developer_type")
- : getString("_UI_Developer_type") + " " + label;
- }
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Developer) object).getName();
+ return label == null || label.length() == 0 ? getString("_UI_Developer_type") : getString("_UI_Developer_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
+ /**
+ * 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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
- switch (notification.getFeatureID(Developer.class)) {
- case PomPackage.DEVELOPER__ID:
- case PomPackage.DEVELOPER__NAME:
- case PomPackage.DEVELOPER__EMAIL:
- case PomPackage.DEVELOPER__URL:
- case PomPackage.DEVELOPER__ORGANIZATION:
- case PomPackage.DEVELOPER__ORGANIZATION_URL:
- case PomPackage.DEVELOPER__TIMEZONE:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.DEVELOPER__PROPERTIES:
- case PomPackage.DEVELOPER__ROLES:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
+ switch(notification.getFeatureID(Developer.class)) {
+ case PomPackage.DEVELOPER__ID:
+ case PomPackage.DEVELOPER__NAME:
+ case PomPackage.DEVELOPER__EMAIL:
+ case PomPackage.DEVELOPER__URL:
+ case PomPackage.DEVELOPER__ORGANIZATION:
+ case PomPackage.DEVELOPER__ORGANIZATION_URL:
+ case PomPackage.DEVELOPER__TIMEZONE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.DEVELOPER__PROPERTIES:
+ case PomPackage.DEVELOPER__ROLES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.DEVELOPER__PROPERTIES, PomFactory.eINSTANCE
- .createPropertyElement()));
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.DEVELOPER__PROPERTIES,
+ PomFactory.eINSTANCE.createPropertyElement()));
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.DEVELOPER__ROLES, ""));
- }
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.DEVELOPER__ROLES, ""));
+ }
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DistributionManagementItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DistributionManagementItemProvider.java
index 68db070f..4bb6dd88 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DistributionManagementItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DistributionManagementItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,244 +28,208 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.DistributionManagement;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement} object. <!--
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.DistributionManagement} object. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class DistributionManagementItemProvider extends ItemProviderAdapter
- implements IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DistributionManagementItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addDownloadUrlPropertyDescriptor(object);
- addStatusPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Download Url feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addDownloadUrlPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_DistributionManagement_downloadUrl_feature"),
- getString("_UI_PropertyDescriptor_description",
- "_UI_DistributionManagement_downloadUrl_feature",
- "_UI_DistributionManagement_type"),
- PomPackage.Literals.DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL,
- true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
-
- /**
- * This adds a property descriptor for the Status feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addStatusPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_DistributionManagement_status_feature"),
- getString("_UI_PropertyDescriptor_description",
- "_UI_DistributionManagement_status_feature",
- "_UI_DistributionManagement_type"),
- PomPackage.Literals.DISTRIBUTION_MANAGEMENT__STATUS, true,
- false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
- null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures
- .add(PomPackage.Literals.DISTRIBUTION_MANAGEMENT__REPOSITORY);
- childrenFeatures
- .add(PomPackage.Literals.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY);
- childrenFeatures
- .add(PomPackage.Literals.DISTRIBUTION_MANAGEMENT__SITE);
- childrenFeatures
- .add(PomPackage.Literals.DISTRIBUTION_MANAGEMENT__RELOCATION);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns DistributionManagement.gif. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/DistributionManagement"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((DistributionManagement) object).getDownloadUrl();
- return label == null || label.length() == 0 ? getString("_UI_DistributionManagement_type")
- : getString("_UI_DistributionManagement_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(DistributionManagement.class)) {
- case PomPackage.DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL:
- case PomPackage.DISTRIBUTION_MANAGEMENT__STATUS:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY:
- case PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY:
- case PomPackage.DISTRIBUTION_MANAGEMENT__SITE:
- case PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.DISTRIBUTION_MANAGEMENT__REPOSITORY,
- PomFactory.eINSTANCE.createDeploymentRepository()));
-
- newChildDescriptors
- .add(createChildParameter(
- PomPackage.Literals.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY,
- PomFactory.eINSTANCE.createDeploymentRepository()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.DISTRIBUTION_MANAGEMENT__SITE,
- PomFactory.eINSTANCE.createSite()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.DISTRIBUTION_MANAGEMENT__RELOCATION,
- PomFactory.eINSTANCE.createRelocation()));
- }
-
- /**
- * This returns the label text for
- * {@link org.eclipse.emf.edit.command.CreateChildCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getCreateChildText(Object owner, Object feature,
- Object child, Collection<?> selection) {
- Object childFeature = feature;
- Object childObject = child;
-
- boolean qualify = childFeature == PomPackage.Literals.DISTRIBUTION_MANAGEMENT__REPOSITORY
- || childFeature == PomPackage.Literals.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY;
-
- if (qualify) {
- return getString("_UI_CreateChild_text2", new Object[] {
- getTypeText(childObject), getFeatureText(childFeature),
- getTypeText(owner) });
- }
- return super.getCreateChildText(owner, feature, child, selection);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class DistributionManagementItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DistributionManagementItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addDownloadUrlPropertyDescriptor(object);
+ addStatusPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Download Url feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addDownloadUrlPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_DistributionManagement_downloadUrl_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_DistributionManagement_downloadUrl_feature",
+ "_UI_DistributionManagement_type"), PomPackage.Literals.DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL, true, false,
+ false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Status feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addStatusPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_DistributionManagement_status_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_DistributionManagement_status_feature",
+ "_UI_DistributionManagement_type"), PomPackage.Literals.DISTRIBUTION_MANAGEMENT__STATUS, true, false,
+ false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.DISTRIBUTION_MANAGEMENT__REPOSITORY);
+ childrenFeatures.add(PomPackage.Literals.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY);
+ childrenFeatures.add(PomPackage.Literals.DISTRIBUTION_MANAGEMENT__SITE);
+ childrenFeatures.add(PomPackage.Literals.DISTRIBUTION_MANAGEMENT__RELOCATION);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns DistributionManagement.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/DistributionManagement"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((DistributionManagement) object).getDownloadUrl();
+ return label == null || label.length() == 0 ? getString("_UI_DistributionManagement_type")
+ : getString("_UI_DistributionManagement_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(DistributionManagement.class)) {
+ case PomPackage.DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL:
+ case PomPackage.DISTRIBUTION_MANAGEMENT__STATUS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY:
+ case PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY:
+ case PomPackage.DISTRIBUTION_MANAGEMENT__SITE:
+ case PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.DISTRIBUTION_MANAGEMENT__REPOSITORY,
+ PomFactory.eINSTANCE.createDeploymentRepository()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY,
+ PomFactory.eINSTANCE.createDeploymentRepository()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.DISTRIBUTION_MANAGEMENT__SITE,
+ PomFactory.eINSTANCE.createSite()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.DISTRIBUTION_MANAGEMENT__RELOCATION,
+ PomFactory.eINSTANCE.createRelocation()));
+ }
+
+ /**
+ * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) {
+ Object childFeature = feature;
+ Object childObject = child;
+
+ boolean qualify = childFeature == PomPackage.Literals.DISTRIBUTION_MANAGEMENT__REPOSITORY
+ || childFeature == PomPackage.Literals.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY;
+
+ if(qualify) {
+ return getString("_UI_CreateChild_text2", new Object[] {getTypeText(childObject), getFeatureText(childFeature),
+ getTypeText(owner)});
+ }
+ return super.getCreateChildText(owner, feature, child, selection);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DocumentRootItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DocumentRootItemProvider.java
index 74b5278e..247ccca1 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DocumentRootItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/DocumentRootItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
@@ -29,150 +26,134 @@ import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.DocumentRoot;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.DocumentRoot} object. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.DocumentRoot} object. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class DocumentRootItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DocumentRootItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.DOCUMENT_ROOT__PROJECT);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns DocumentRoot.gif. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/DocumentRoot"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- return getString("_UI_DocumentRoot_type");
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to
- * update any cached children and by creating a viewer notification, which
- * it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(DocumentRoot.class)) {
- case PomPackage.DOCUMENT_ROOT__PROJECT:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.DOCUMENT_ROOT__PROJECT,
- PomFactory.eINSTANCE.createModel()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class DocumentRootItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DocumentRootItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.DOCUMENT_ROOT__PROJECT);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns DocumentRoot.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/DocumentRoot"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_DocumentRoot_type");
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a
+ * viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(DocumentRoot.class)) {
+ case PomPackage.DOCUMENT_ROOT__PROJECT:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.DOCUMENT_ROOT__PROJECT,
+ PomFactory.eINSTANCE.createModel()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ExclusionItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ExclusionItemProvider.java
index 5d4b48f1..c2ca9760 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ExclusionItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ExclusionItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,150 +27,132 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.Exclusion;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Exclusion} object. <!-- begin-user-doc
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Exclusion} object. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated
*/
-public class ExclusionItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ExclusionItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addArtifactIdPropertyDescriptor(object);
- addGroupIdPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Artifact Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addArtifactIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Exclusion_artifactId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Exclusion_artifactId_feature",
- "_UI_Exclusion_type"),
- PomPackage.Literals.EXCLUSION__ARTIFACT_ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Group Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addGroupIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Exclusion_groupId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Exclusion_groupId_feature", "_UI_Exclusion_type"),
- PomPackage.Literals.EXCLUSION__GROUP_ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This returns Exclusion.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Exclusion"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Exclusion) object).getArtifactId();
- return label == null || label.length() == 0 ? getString("_UI_Exclusion_type")
- : getString("_UI_Exclusion_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Exclusion.class)) {
- case PomPackage.EXCLUSION__ARTIFACT_ID:
- case PomPackage.EXCLUSION__GROUP_ID:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class ExclusionItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ExclusionItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addArtifactIdPropertyDescriptor(object);
+ addGroupIdPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Artifact Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addArtifactIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Exclusion_artifactId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Exclusion_artifactId_feature", "_UI_Exclusion_type"),
+ PomPackage.Literals.EXCLUSION__ARTIFACT_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Group Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addGroupIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Exclusion_groupId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Exclusion_groupId_feature", "_UI_Exclusion_type"),
+ PomPackage.Literals.EXCLUSION__GROUP_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This returns Exclusion.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Exclusion"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Exclusion) object).getArtifactId();
+ return label == null || label.length() == 0 ? getString("_UI_Exclusion_type") : getString("_UI_Exclusion_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(Exclusion.class)) {
+ case PomPackage.EXCLUSION__ARTIFACT_ID:
+ case PomPackage.EXCLUSION__GROUP_ID:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ExtensionItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ExtensionItemProvider.java
index e68dc41f..c87a44fa 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ExtensionItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ExtensionItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,169 +27,148 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.Extension;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Extension} object. <!-- begin-user-doc
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Extension} object. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated
*/
-public class ExtensionItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ExtensionItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addGroupIdPropertyDescriptor(object);
- addArtifactIdPropertyDescriptor(object);
- addVersionPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Group Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addGroupIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Extension_groupId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Extension_groupId_feature", "_UI_Extension_type"),
- PomPackage.Literals.EXTENSION__GROUP_ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Artifact Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addArtifactIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Extension_artifactId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Extension_artifactId_feature",
- "_UI_Extension_type"),
- PomPackage.Literals.EXTENSION__ARTIFACT_ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Version feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addVersionPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Extension_version_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Extension_version_feature", "_UI_Extension_type"),
- PomPackage.Literals.EXTENSION__VERSION, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This returns Extension.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Extension"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Extension) object).getGroupId();
- return label == null || label.length() == 0 ? getString("_UI_Extension_type")
- : getString("_UI_Extension_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Extension.class)) {
- case PomPackage.EXTENSION__GROUP_ID:
- case PomPackage.EXTENSION__ARTIFACT_ID:
- case PomPackage.EXTENSION__VERSION:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class ExtensionItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ExtensionItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addGroupIdPropertyDescriptor(object);
+ addArtifactIdPropertyDescriptor(object);
+ addVersionPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Group Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addGroupIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Extension_groupId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Extension_groupId_feature", "_UI_Extension_type"),
+ PomPackage.Literals.EXTENSION__GROUP_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Artifact Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addArtifactIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Extension_artifactId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Extension_artifactId_feature", "_UI_Extension_type"),
+ PomPackage.Literals.EXTENSION__ARTIFACT_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Version feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addVersionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Extension_version_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Extension_version_feature", "_UI_Extension_type"),
+ PomPackage.Literals.EXTENSION__VERSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This returns Extension.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Extension"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Extension) object).getGroupId();
+ return label == null || label.length() == 0 ? getString("_UI_Extension_type") : getString("_UI_Extension_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(Extension.class)) {
+ case PomPackage.EXTENSION__GROUP_ID:
+ case PomPackage.EXTENSION__ARTIFACT_ID:
+ case PomPackage.EXTENSION__VERSION:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/IssueManagementItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/IssueManagementItemProvider.java
index a18ccb30..370a11db 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/IssueManagementItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/IssueManagementItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,152 +27,133 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.IssueManagement;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.IssueManagement} object. <!--
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.IssueManagement} object. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class IssueManagementItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public IssueManagementItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addSystemPropertyDescriptor(object);
- addUrlPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the System feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addSystemPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_IssueManagement_system_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_IssueManagement_system_feature",
- "_UI_IssueManagement_type"),
- PomPackage.Literals.ISSUE_MANAGEMENT__SYSTEM, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Url feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addUrlPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_IssueManagement_url_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_IssueManagement_url_feature",
- "_UI_IssueManagement_type"),
- PomPackage.Literals.ISSUE_MANAGEMENT__URL, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This returns IssueManagement.gif. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/IssueManagement"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((IssueManagement) object).getSystem();
- return label == null || label.length() == 0 ? getString("_UI_IssueManagement_type")
- : getString("_UI_IssueManagement_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(IssueManagement.class)) {
- case PomPackage.ISSUE_MANAGEMENT__SYSTEM:
- case PomPackage.ISSUE_MANAGEMENT__URL:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class IssueManagementItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public IssueManagementItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addSystemPropertyDescriptor(object);
+ addUrlPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the System feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addSystemPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_IssueManagement_system_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_IssueManagement_system_feature",
+ "_UI_IssueManagement_type"), PomPackage.Literals.ISSUE_MANAGEMENT__SYSTEM, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Url feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addUrlPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_IssueManagement_url_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_IssueManagement_url_feature", "_UI_IssueManagement_type"),
+ PomPackage.Literals.ISSUE_MANAGEMENT__URL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This returns IssueManagement.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/IssueManagement"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((IssueManagement) object).getSystem();
+ return label == null || label.length() == 0 ? getString("_UI_IssueManagement_type")
+ : getString("_UI_IssueManagement_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(IssueManagement.class)) {
+ case PomPackage.ISSUE_MANAGEMENT__SYSTEM:
+ case PomPackage.ISSUE_MANAGEMENT__URL:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/LicenseItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/LicenseItemProvider.java
index 17e82b21..36ed82b0 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/LicenseItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/LicenseItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,190 +27,162 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.License;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.License} object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.License} object. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
*
* @generated
*/
-public class LicenseItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public LicenseItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addNamePropertyDescriptor(object);
- addUrlPropertyDescriptor(object);
- addDistributionPropertyDescriptor(object);
- addCommentsPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_License_name_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_License_name_feature", "_UI_License_type"),
- PomPackage.Literals.LICENSE__NAME, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Url feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addUrlPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_License_url_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_License_url_feature", "_UI_License_type"),
- PomPackage.Literals.LICENSE__URL, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Distribution feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addDistributionPropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_License_distribution_feature"),
- getString("_UI_PropertyDescriptor_description",
- "_UI_License_distribution_feature",
- "_UI_License_type"),
- PomPackage.Literals.LICENSE__DISTRIBUTION, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
-
- /**
- * This adds a property descriptor for the Comments feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addCommentsPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_License_comments_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_License_comments_feature", "_UI_License_type"),
- PomPackage.Literals.LICENSE__COMMENTS, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This returns License.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/License"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((License) object).getName();
- return label == null || label.length() == 0 ? getString("_UI_License_type")
- : getString("_UI_License_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(License.class)) {
- case PomPackage.LICENSE__NAME:
- case PomPackage.LICENSE__URL:
- case PomPackage.LICENSE__DISTRIBUTION:
- case PomPackage.LICENSE__COMMENTS:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class LicenseItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public LicenseItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addNamePropertyDescriptor(object);
+ addUrlPropertyDescriptor(object);
+ addDistributionPropertyDescriptor(object);
+ addCommentsPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_License_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_License_name_feature", "_UI_License_type"),
+ PomPackage.Literals.LICENSE__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Url feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addUrlPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_License_url_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_License_url_feature", "_UI_License_type"),
+ PomPackage.Literals.LICENSE__URL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Distribution feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addDistributionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_License_distribution_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_License_distribution_feature", "_UI_License_type"),
+ PomPackage.Literals.LICENSE__DISTRIBUTION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Comments feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addCommentsPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_License_comments_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_License_comments_feature", "_UI_License_type"),
+ PomPackage.Literals.LICENSE__COMMENTS, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This returns License.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/License"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((License) object).getName();
+ return label == null || label.length() == 0 ? getString("_UI_License_type") : getString("_UI_License_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(License.class)) {
+ case PomPackage.LICENSE__NAME:
+ case PomPackage.LICENSE__URL:
+ case PomPackage.LICENSE__DISTRIBUTION:
+ case PomPackage.LICENSE__COMMENTS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/MailingListItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/MailingListItemProvider.java
index 74680083..66f15641 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/MailingListItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/MailingListItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,258 +28,216 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.MailingList;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.MailingList} object. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.MailingList} object. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class MailingListItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public MailingListItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addNamePropertyDescriptor(object);
- addSubscribePropertyDescriptor(object);
- addUnsubscribePropertyDescriptor(object);
- addPostPropertyDescriptor(object);
- addArchivePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_MailingList_name_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_MailingList_name_feature",
- "_UI_MailingList_type"),
- PomPackage.Literals.MAILING_LIST__NAME, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
-
- /**
- * This adds a property descriptor for the Subscribe feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addSubscribePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_MailingList_subscribe_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_MailingList_subscribe_feature",
- "_UI_MailingList_type"),
- PomPackage.Literals.MAILING_LIST__SUBSCRIBE, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Unsubscribe feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addUnsubscribePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_MailingList_unsubscribe_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_MailingList_unsubscribe_feature",
- "_UI_MailingList_type"),
- PomPackage.Literals.MAILING_LIST__UNSUBSCRIBE, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Post feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addPostPropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_MailingList_post_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_MailingList_post_feature",
- "_UI_MailingList_type"),
- PomPackage.Literals.MAILING_LIST__POST, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
-
- /**
- * This adds a property descriptor for the Archive feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addArchivePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_MailingList_archive_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_MailingList_archive_feature",
- "_UI_MailingList_type"),
- PomPackage.Literals.MAILING_LIST__ARCHIVE, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures
- .add(PomPackage.Literals.MAILING_LIST__OTHER_ARCHIVES);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns MailingList.gif. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/MailingList"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((MailingList) object).getName();
- return label == null || label.length() == 0 ? getString("_UI_MailingList_type")
- : getString("_UI_MailingList_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(MailingList.class)) {
- case PomPackage.MAILING_LIST__NAME:
- case PomPackage.MAILING_LIST__SUBSCRIBE:
- case PomPackage.MAILING_LIST__UNSUBSCRIBE:
- case PomPackage.MAILING_LIST__POST:
- case PomPackage.MAILING_LIST__ARCHIVE:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.MAILING_LIST__OTHER_ARCHIVES:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MAILING_LIST__OTHER_ARCHIVES, ""));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class MailingListItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public MailingListItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addNamePropertyDescriptor(object);
+ addSubscribePropertyDescriptor(object);
+ addUnsubscribePropertyDescriptor(object);
+ addPostPropertyDescriptor(object);
+ addArchivePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_MailingList_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_MailingList_name_feature", "_UI_MailingList_type"),
+ PomPackage.Literals.MAILING_LIST__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Subscribe feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addSubscribePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_MailingList_subscribe_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_MailingList_subscribe_feature", "_UI_MailingList_type"),
+ PomPackage.Literals.MAILING_LIST__SUBSCRIBE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Unsubscribe feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addUnsubscribePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_MailingList_unsubscribe_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_MailingList_unsubscribe_feature", "_UI_MailingList_type"),
+ PomPackage.Literals.MAILING_LIST__UNSUBSCRIBE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Post feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addPostPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_MailingList_post_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_MailingList_post_feature", "_UI_MailingList_type"),
+ PomPackage.Literals.MAILING_LIST__POST, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Archive feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addArchivePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_MailingList_archive_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_MailingList_archive_feature", "_UI_MailingList_type"),
+ PomPackage.Literals.MAILING_LIST__ARCHIVE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.MAILING_LIST__OTHER_ARCHIVES);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns MailingList.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/MailingList"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((MailingList) object).getName();
+ return label == null || label.length() == 0 ? getString("_UI_MailingList_type") : getString("_UI_MailingList_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(MailingList.class)) {
+ case PomPackage.MAILING_LIST__NAME:
+ case PomPackage.MAILING_LIST__SUBSCRIBE:
+ case PomPackage.MAILING_LIST__UNSUBSCRIBE:
+ case PomPackage.MAILING_LIST__POST:
+ case PomPackage.MAILING_LIST__ARCHIVE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.MAILING_LIST__OTHER_ARCHIVES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MAILING_LIST__OTHER_ARCHIVES, ""));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ModelItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ModelItemProvider.java
index 81c2d12d..90f3aed7 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ModelItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ModelItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,465 +28,393 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.Model;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Model} object. <!-- begin-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Model} object. <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
-public class ModelItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ModelItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addModelVersionPropertyDescriptor(object);
- addGroupIdPropertyDescriptor(object);
- addArtifactIdPropertyDescriptor(object);
- addPackagingPropertyDescriptor(object);
- addNamePropertyDescriptor(object);
- addVersionPropertyDescriptor(object);
- addDescriptionPropertyDescriptor(object);
- addUrlPropertyDescriptor(object);
- addInceptionYearPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Model Version feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addModelVersionPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Model_modelVersion_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Model_modelVersion_feature", "_UI_Model_type"),
- PomPackage.Literals.MODEL__MODEL_VERSION, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Group Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addGroupIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Model_groupId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Model_groupId_feature", "_UI_Model_type"),
- PomPackage.Literals.MODEL__GROUP_ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Artifact Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addArtifactIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Model_artifactId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Model_artifactId_feature", "_UI_Model_type"),
- PomPackage.Literals.MODEL__ARTIFACT_ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Packaging feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addPackagingPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Model_packaging_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Model_packaging_feature", "_UI_Model_type"),
- PomPackage.Literals.MODEL__PACKAGING, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Model_name_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Model_name_feature", "_UI_Model_type"),
- PomPackage.Literals.MODEL__NAME, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Version feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addVersionPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Model_version_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Model_version_feature", "_UI_Model_type"),
- PomPackage.Literals.MODEL__VERSION, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Description feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addDescriptionPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Model_description_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Model_description_feature", "_UI_Model_type"),
- PomPackage.Literals.MODEL__DESCRIPTION, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Url feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addUrlPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Model_url_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Model_url_feature", "_UI_Model_type"),
- PomPackage.Literals.MODEL__URL, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Inception Year feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addInceptionYearPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Model_inceptionYear_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Model_inceptionYear_feature", "_UI_Model_type"),
- PomPackage.Literals.MODEL__INCEPTION_YEAR, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.MODEL__PARENT);
- childrenFeatures.add(PomPackage.Literals.MODEL__PREREQUISITES);
- childrenFeatures.add(PomPackage.Literals.MODEL__ISSUE_MANAGEMENT);
- childrenFeatures.add(PomPackage.Literals.MODEL__CI_MANAGEMENT);
- childrenFeatures.add(PomPackage.Literals.MODEL__MAILING_LISTS);
- childrenFeatures.add(PomPackage.Literals.MODEL__DEVELOPERS);
- childrenFeatures.add(PomPackage.Literals.MODEL__CONTRIBUTORS);
- childrenFeatures.add(PomPackage.Literals.MODEL__LICENSES);
- childrenFeatures.add(PomPackage.Literals.MODEL__SCM);
- childrenFeatures.add(PomPackage.Literals.MODEL__ORGANIZATION);
- childrenFeatures.add(PomPackage.Literals.MODEL__BUILD);
- childrenFeatures.add(PomPackage.Literals.MODEL__PROFILES);
- childrenFeatures.add(PomPackage.Literals.MODEL__REPOSITORIES);
- childrenFeatures
- .add(PomPackage.Literals.MODEL__PLUGIN_REPOSITORIES);
- childrenFeatures.add(PomPackage.Literals.MODEL__DEPENDENCIES);
- childrenFeatures.add(PomPackage.Literals.MODEL__REPORTING);
- childrenFeatures
- .add(PomPackage.Literals.MODEL__DEPENDENCY_MANAGEMENT);
- childrenFeatures
- .add(PomPackage.Literals.MODEL__DISTRIBUTION_MANAGEMENT);
- childrenFeatures.add(PomPackage.Literals.MODEL__PROPERTIES);
- childrenFeatures.add(PomPackage.Literals.MODEL__MODULES);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns Model.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Model"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Model) object).getName();
- return label == null || label.length() == 0 ? getString("_UI_Model_type")
- : getString("_UI_Model_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Model.class)) {
- case PomPackage.MODEL__MODEL_VERSION:
- case PomPackage.MODEL__GROUP_ID:
- case PomPackage.MODEL__ARTIFACT_ID:
- case PomPackage.MODEL__PACKAGING:
- case PomPackage.MODEL__NAME:
- case PomPackage.MODEL__VERSION:
- case PomPackage.MODEL__DESCRIPTION:
- case PomPackage.MODEL__URL:
- case PomPackage.MODEL__INCEPTION_YEAR:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.MODEL__PARENT:
- case PomPackage.MODEL__PREREQUISITES:
- case PomPackage.MODEL__ISSUE_MANAGEMENT:
- case PomPackage.MODEL__CI_MANAGEMENT:
- case PomPackage.MODEL__MAILING_LISTS:
- case PomPackage.MODEL__DEVELOPERS:
- case PomPackage.MODEL__CONTRIBUTORS:
- case PomPackage.MODEL__LICENSES:
- case PomPackage.MODEL__SCM:
- case PomPackage.MODEL__ORGANIZATION:
- case PomPackage.MODEL__BUILD:
- case PomPackage.MODEL__PROFILES:
- case PomPackage.MODEL__REPOSITORIES:
- case PomPackage.MODEL__PLUGIN_REPOSITORIES:
- case PomPackage.MODEL__DEPENDENCIES:
- case PomPackage.MODEL__REPORTING:
- case PomPackage.MODEL__DEPENDENCY_MANAGEMENT:
- case PomPackage.MODEL__DISTRIBUTION_MANAGEMENT:
- case PomPackage.MODEL__PROPERTIES:
- case PomPackage.MODEL__MODULES:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__PARENT, PomFactory.eINSTANCE
- .createParent()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__PREREQUISITES, PomFactory.eINSTANCE
- .createPrerequisites()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__ISSUE_MANAGEMENT,
- PomFactory.eINSTANCE.createIssueManagement()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__CI_MANAGEMENT, PomFactory.eINSTANCE
- .createCiManagement()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__MAILING_LISTS, PomFactory.eINSTANCE
- .createMailingList()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__DEVELOPERS, PomFactory.eINSTANCE
- .createDeveloper()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__CONTRIBUTORS, PomFactory.eINSTANCE
- .createContributor()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__LICENSES, PomFactory.eINSTANCE
- .createLicense()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__SCM, PomFactory.eINSTANCE
- .createScm()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__ORGANIZATION, PomFactory.eINSTANCE
- .createOrganization()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__BUILD, PomFactory.eINSTANCE
- .createBuild()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__PROFILES, PomFactory.eINSTANCE
- .createProfile()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__REPOSITORIES, PomFactory.eINSTANCE
- .createRepository()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__PLUGIN_REPOSITORIES,
- PomFactory.eINSTANCE.createRepository()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__DEPENDENCIES, PomFactory.eINSTANCE
- .createDependency()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__REPORTING, PomFactory.eINSTANCE
- .createReporting()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__DEPENDENCY_MANAGEMENT,
- PomFactory.eINSTANCE.createDependencyManagement()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__DISTRIBUTION_MANAGEMENT,
- PomFactory.eINSTANCE.createDistributionManagement()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__PROPERTIES, PomFactory.eINSTANCE
- .createPropertyElement()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.MODEL__MODULES, ""));
- }
-
- /**
- * This returns the label text for
- * {@link org.eclipse.emf.edit.command.CreateChildCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getCreateChildText(Object owner, Object feature,
- Object child, Collection<?> selection) {
- Object childFeature = feature;
- Object childObject = child;
-
- boolean qualify = childFeature == PomPackage.Literals.MODEL__REPOSITORIES
- || childFeature == PomPackage.Literals.MODEL__PLUGIN_REPOSITORIES;
-
- if (qualify) {
- return getString("_UI_CreateChild_text2", new Object[] {
- getTypeText(childObject), getFeatureText(childFeature),
- getTypeText(owner) });
- }
- return super.getCreateChildText(owner, feature, child, selection);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class ModelItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ModelItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addModelVersionPropertyDescriptor(object);
+ addGroupIdPropertyDescriptor(object);
+ addArtifactIdPropertyDescriptor(object);
+ addPackagingPropertyDescriptor(object);
+ addNamePropertyDescriptor(object);
+ addVersionPropertyDescriptor(object);
+ addDescriptionPropertyDescriptor(object);
+ addUrlPropertyDescriptor(object);
+ addInceptionYearPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Model Version feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addModelVersionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Model_modelVersion_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Model_modelVersion_feature", "_UI_Model_type"),
+ PomPackage.Literals.MODEL__MODEL_VERSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Group Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addGroupIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(), getString("_UI_Model_groupId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Model_groupId_feature", "_UI_Model_type"),
+ PomPackage.Literals.MODEL__GROUP_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Artifact Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addArtifactIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Model_artifactId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Model_artifactId_feature", "_UI_Model_type"),
+ PomPackage.Literals.MODEL__ARTIFACT_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Packaging feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addPackagingPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Model_packaging_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Model_packaging_feature", "_UI_Model_type"),
+ PomPackage.Literals.MODEL__PACKAGING, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Model_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Model_name_feature", "_UI_Model_type"),
+ PomPackage.Literals.MODEL__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Version feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addVersionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(), getString("_UI_Model_version_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Model_version_feature", "_UI_Model_type"),
+ PomPackage.Literals.MODEL__VERSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Description feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addDescriptionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Model_description_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Model_description_feature", "_UI_Model_type"),
+ PomPackage.Literals.MODEL__DESCRIPTION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Url feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addUrlPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Model_url_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Model_url_feature", "_UI_Model_type"),
+ PomPackage.Literals.MODEL__URL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Inception Year feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addInceptionYearPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Model_inceptionYear_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Model_inceptionYear_feature", "_UI_Model_type"),
+ PomPackage.Literals.MODEL__INCEPTION_YEAR, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.MODEL__PARENT);
+ childrenFeatures.add(PomPackage.Literals.MODEL__PREREQUISITES);
+ childrenFeatures.add(PomPackage.Literals.MODEL__ISSUE_MANAGEMENT);
+ childrenFeatures.add(PomPackage.Literals.MODEL__CI_MANAGEMENT);
+ childrenFeatures.add(PomPackage.Literals.MODEL__MAILING_LISTS);
+ childrenFeatures.add(PomPackage.Literals.MODEL__DEVELOPERS);
+ childrenFeatures.add(PomPackage.Literals.MODEL__CONTRIBUTORS);
+ childrenFeatures.add(PomPackage.Literals.MODEL__LICENSES);
+ childrenFeatures.add(PomPackage.Literals.MODEL__SCM);
+ childrenFeatures.add(PomPackage.Literals.MODEL__ORGANIZATION);
+ childrenFeatures.add(PomPackage.Literals.MODEL__BUILD);
+ childrenFeatures.add(PomPackage.Literals.MODEL__PROFILES);
+ childrenFeatures.add(PomPackage.Literals.MODEL__REPOSITORIES);
+ childrenFeatures.add(PomPackage.Literals.MODEL__PLUGIN_REPOSITORIES);
+ childrenFeatures.add(PomPackage.Literals.MODEL__DEPENDENCIES);
+ childrenFeatures.add(PomPackage.Literals.MODEL__REPORTING);
+ childrenFeatures.add(PomPackage.Literals.MODEL__DEPENDENCY_MANAGEMENT);
+ childrenFeatures.add(PomPackage.Literals.MODEL__DISTRIBUTION_MANAGEMENT);
+ childrenFeatures.add(PomPackage.Literals.MODEL__PROPERTIES);
+ childrenFeatures.add(PomPackage.Literals.MODEL__MODULES);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns Model.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Model"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Model) object).getName();
+ return label == null || label.length() == 0 ? getString("_UI_Model_type") : getString("_UI_Model_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(Model.class)) {
+ case PomPackage.MODEL__MODEL_VERSION:
+ case PomPackage.MODEL__GROUP_ID:
+ case PomPackage.MODEL__ARTIFACT_ID:
+ case PomPackage.MODEL__PACKAGING:
+ case PomPackage.MODEL__NAME:
+ case PomPackage.MODEL__VERSION:
+ case PomPackage.MODEL__DESCRIPTION:
+ case PomPackage.MODEL__URL:
+ case PomPackage.MODEL__INCEPTION_YEAR:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.MODEL__PARENT:
+ case PomPackage.MODEL__PREREQUISITES:
+ case PomPackage.MODEL__ISSUE_MANAGEMENT:
+ case PomPackage.MODEL__CI_MANAGEMENT:
+ case PomPackage.MODEL__MAILING_LISTS:
+ case PomPackage.MODEL__DEVELOPERS:
+ case PomPackage.MODEL__CONTRIBUTORS:
+ case PomPackage.MODEL__LICENSES:
+ case PomPackage.MODEL__SCM:
+ case PomPackage.MODEL__ORGANIZATION:
+ case PomPackage.MODEL__BUILD:
+ case PomPackage.MODEL__PROFILES:
+ case PomPackage.MODEL__REPOSITORIES:
+ case PomPackage.MODEL__PLUGIN_REPOSITORIES:
+ case PomPackage.MODEL__DEPENDENCIES:
+ case PomPackage.MODEL__REPORTING:
+ case PomPackage.MODEL__DEPENDENCY_MANAGEMENT:
+ case PomPackage.MODEL__DISTRIBUTION_MANAGEMENT:
+ case PomPackage.MODEL__PROPERTIES:
+ case PomPackage.MODEL__MODULES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors
+ .add(createChildParameter(PomPackage.Literals.MODEL__PARENT, PomFactory.eINSTANCE.createParent()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__PREREQUISITES,
+ PomFactory.eINSTANCE.createPrerequisites()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__ISSUE_MANAGEMENT,
+ PomFactory.eINSTANCE.createIssueManagement()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__CI_MANAGEMENT,
+ PomFactory.eINSTANCE.createCiManagement()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__MAILING_LISTS,
+ PomFactory.eINSTANCE.createMailingList()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__DEVELOPERS,
+ PomFactory.eINSTANCE.createDeveloper()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__CONTRIBUTORS,
+ PomFactory.eINSTANCE.createContributor()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__LICENSES,
+ PomFactory.eINSTANCE.createLicense()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__SCM, PomFactory.eINSTANCE.createScm()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__ORGANIZATION,
+ PomFactory.eINSTANCE.createOrganization()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__BUILD, PomFactory.eINSTANCE.createBuild()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__PROFILES,
+ PomFactory.eINSTANCE.createProfile()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__REPOSITORIES,
+ PomFactory.eINSTANCE.createRepository()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__PLUGIN_REPOSITORIES,
+ PomFactory.eINSTANCE.createRepository()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__DEPENDENCIES,
+ PomFactory.eINSTANCE.createDependency()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__REPORTING,
+ PomFactory.eINSTANCE.createReporting()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__DEPENDENCY_MANAGEMENT,
+ PomFactory.eINSTANCE.createDependencyManagement()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__DISTRIBUTION_MANAGEMENT,
+ PomFactory.eINSTANCE.createDistributionManagement()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__PROPERTIES,
+ PomFactory.eINSTANCE.createPropertyElement()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.MODEL__MODULES, ""));
+ }
+
+ /**
+ * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) {
+ Object childFeature = feature;
+ Object childObject = child;
+
+ boolean qualify = childFeature == PomPackage.Literals.MODEL__REPOSITORIES
+ || childFeature == PomPackage.Literals.MODEL__PLUGIN_REPOSITORIES;
+
+ if(qualify) {
+ return getString("_UI_CreateChild_text2", new Object[] {getTypeText(childObject), getFeatureText(childFeature),
+ getTypeText(owner)});
+ }
+ return super.getCreateChildText(owner, feature, child, selection);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/NotifierItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/NotifierItemProvider.java
index 8c958942..856b85de 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/NotifierItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/NotifierItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,274 +28,234 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.Notifier;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Notifier} object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Notifier} object. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
*
* @generated
*/
-public class NotifierItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotifierItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
+public class NotifierItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotifierItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
- addTypePropertyDescriptor(object);
- addSendOnErrorPropertyDescriptor(object);
- addSendOnFailurePropertyDescriptor(object);
- addSendOnSuccessPropertyDescriptor(object);
- addSendOnWarningPropertyDescriptor(object);
- addAddressPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
+ addTypePropertyDescriptor(object);
+ addSendOnErrorPropertyDescriptor(object);
+ addSendOnFailurePropertyDescriptor(object);
+ addSendOnSuccessPropertyDescriptor(object);
+ addSendOnWarningPropertyDescriptor(object);
+ addAddressPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
- /**
- * 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_Notifier_type_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Notifier_type_feature", "_UI_Notifier_type"),
- PomPackage.Literals.NOTIFIER__TYPE, true, false, false,
- ItemPropertyDescriptor.GENERIC_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_Notifier_type_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Notifier_type_feature", "_UI_Notifier_type"),
+ PomPackage.Literals.NOTIFIER__TYPE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This adds a property descriptor for the Send On Error feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addSendOnErrorPropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Notifier_sendOnError_feature"),
- getString("_UI_PropertyDescriptor_description",
- "_UI_Notifier_sendOnError_feature",
- "_UI_Notifier_type"),
- PomPackage.Literals.NOTIFIER__SEND_ON_ERROR, true,
- false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Send On Error feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addSendOnErrorPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Notifier_sendOnError_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Notifier_sendOnError_feature", "_UI_Notifier_type"),
+ PomPackage.Literals.NOTIFIER__SEND_ON_ERROR, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
- /**
- * This adds a property descriptor for the Send On Failure feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addSendOnFailurePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Notifier_sendOnFailure_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Notifier_sendOnFailure_feature",
- "_UI_Notifier_type"),
- PomPackage.Literals.NOTIFIER__SEND_ON_FAILURE, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Send On Failure feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addSendOnFailurePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Notifier_sendOnFailure_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Notifier_sendOnFailure_feature", "_UI_Notifier_type"),
+ PomPackage.Literals.NOTIFIER__SEND_ON_FAILURE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
- /**
- * This adds a property descriptor for the Send On Success feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addSendOnSuccessPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Notifier_sendOnSuccess_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Notifier_sendOnSuccess_feature",
- "_UI_Notifier_type"),
- PomPackage.Literals.NOTIFIER__SEND_ON_SUCCESS, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Send On Success feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addSendOnSuccessPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Notifier_sendOnSuccess_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Notifier_sendOnSuccess_feature", "_UI_Notifier_type"),
+ PomPackage.Literals.NOTIFIER__SEND_ON_SUCCESS, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
- /**
- * This adds a property descriptor for the Send On Warning feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addSendOnWarningPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Notifier_sendOnWarning_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Notifier_sendOnWarning_feature",
- "_UI_Notifier_type"),
- PomPackage.Literals.NOTIFIER__SEND_ON_WARNING, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Send On Warning feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addSendOnWarningPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Notifier_sendOnWarning_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Notifier_sendOnWarning_feature", "_UI_Notifier_type"),
+ PomPackage.Literals.NOTIFIER__SEND_ON_WARNING, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
- /**
- * This adds a property descriptor for the Address feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addAddressPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Notifier_address_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Notifier_address_feature", "_UI_Notifier_type"),
- PomPackage.Literals.NOTIFIER__ADDRESS, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Address feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addAddressPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Notifier_address_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Notifier_address_feature", "_UI_Notifier_type"),
+ PomPackage.Literals.NOTIFIER__ADDRESS, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.NOTIFIER__CONFIGURATION);
- }
- return childrenFeatures;
- }
+ /**
+ * 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
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.NOTIFIER__CONFIGURATION);
+ }
+ return childrenFeatures;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
- return super.getChildFeature(object, child);
- }
+ return super.getChildFeature(object, child);
+ }
- /**
- * This returns Notifier.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Notifier"));
- }
+ /**
+ * This returns Notifier.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Notifier"));
+ }
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Notifier) object).getType();
- return label == null || label.length() == 0 ? getString("_UI_Notifier_type")
- : getString("_UI_Notifier_type") + " " + label;
- }
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Notifier) object).getType();
+ return label == null || label.length() == 0 ? getString("_UI_Notifier_type") : getString("_UI_Notifier_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
+ /**
+ * 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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
- switch (notification.getFeatureID(Notifier.class)) {
- case PomPackage.NOTIFIER__TYPE:
- case PomPackage.NOTIFIER__SEND_ON_ERROR:
- case PomPackage.NOTIFIER__SEND_ON_FAILURE:
- case PomPackage.NOTIFIER__SEND_ON_SUCCESS:
- case PomPackage.NOTIFIER__SEND_ON_WARNING:
- case PomPackage.NOTIFIER__ADDRESS:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.NOTIFIER__CONFIGURATION:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
+ switch(notification.getFeatureID(Notifier.class)) {
+ case PomPackage.NOTIFIER__TYPE:
+ case PomPackage.NOTIFIER__SEND_ON_ERROR:
+ case PomPackage.NOTIFIER__SEND_ON_FAILURE:
+ case PomPackage.NOTIFIER__SEND_ON_SUCCESS:
+ case PomPackage.NOTIFIER__SEND_ON_WARNING:
+ case PomPackage.NOTIFIER__ADDRESS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.NOTIFIER__CONFIGURATION:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.NOTIFIER__CONFIGURATION,
- PomFactory.eINSTANCE.createPropertyElement()));
- }
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.NOTIFIER__CONFIGURATION,
+ PomFactory.eINSTANCE.createPropertyElement()));
+ }
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/OrganizationItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/OrganizationItemProvider.java
index d30dccae..18e73b78 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/OrganizationItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/OrganizationItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,154 +27,132 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.Organization;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Organization} object. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Organization} object. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class OrganizationItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public OrganizationItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addNamePropertyDescriptor(object);
- addUrlPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Organization_name_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Organization_name_feature",
- "_UI_Organization_type"),
- PomPackage.Literals.ORGANIZATION__NAME, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Url feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addUrlPropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Organization_url_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Organization_url_feature",
- "_UI_Organization_type"),
- PomPackage.Literals.ORGANIZATION__URL, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
-
- /**
- * This returns Organization.gif. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Organization"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Organization) object).getName();
- return label == null || label.length() == 0 ? getString("_UI_Organization_type")
- : getString("_UI_Organization_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Organization.class)) {
- case PomPackage.ORGANIZATION__NAME:
- case PomPackage.ORGANIZATION__URL:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class OrganizationItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public OrganizationItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addNamePropertyDescriptor(object);
+ addUrlPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Organization_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Organization_name_feature", "_UI_Organization_type"),
+ PomPackage.Literals.ORGANIZATION__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Url feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addUrlPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Organization_url_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Organization_url_feature", "_UI_Organization_type"),
+ PomPackage.Literals.ORGANIZATION__URL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This returns Organization.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Organization"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Organization) object).getName();
+ return label == null || label.length() == 0 ? getString("_UI_Organization_type")
+ : getString("_UI_Organization_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(Organization.class)) {
+ case PomPackage.ORGANIZATION__NAME:
+ case PomPackage.ORGANIZATION__URL:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ParentItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ParentItemProvider.java
index fb46c3a1..d7a3520d 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ParentItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ParentItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,187 +27,164 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.Parent;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Parent} object. <!-- begin-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Parent} object. <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
-public class ParentItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ParentItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addArtifactIdPropertyDescriptor(object);
- addGroupIdPropertyDescriptor(object);
- addVersionPropertyDescriptor(object);
- addRelativePathPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Artifact Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addArtifactIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Parent_artifactId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Parent_artifactId_feature", "_UI_Parent_type"),
- PomPackage.Literals.PARENT__ARTIFACT_ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Group Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addGroupIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Parent_groupId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Parent_groupId_feature", "_UI_Parent_type"),
- PomPackage.Literals.PARENT__GROUP_ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Version feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addVersionPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Parent_version_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Parent_version_feature", "_UI_Parent_type"),
- PomPackage.Literals.PARENT__VERSION, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Relative Path feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addRelativePathPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Parent_relativePath_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Parent_relativePath_feature", "_UI_Parent_type"),
- PomPackage.Literals.PARENT__RELATIVE_PATH, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This returns Parent.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Parent"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Parent) object).getArtifactId();
- return label == null || label.length() == 0 ? getString("_UI_Parent_type")
- : getString("_UI_Parent_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Parent.class)) {
- case PomPackage.PARENT__ARTIFACT_ID:
- case PomPackage.PARENT__GROUP_ID:
- case PomPackage.PARENT__VERSION:
- case PomPackage.PARENT__RELATIVE_PATH:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class ParentItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ParentItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addArtifactIdPropertyDescriptor(object);
+ addGroupIdPropertyDescriptor(object);
+ addVersionPropertyDescriptor(object);
+ addRelativePathPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Artifact Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addArtifactIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Parent_artifactId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Parent_artifactId_feature", "_UI_Parent_type"),
+ PomPackage.Literals.PARENT__ARTIFACT_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Group Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addGroupIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Parent_groupId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Parent_groupId_feature", "_UI_Parent_type"),
+ PomPackage.Literals.PARENT__GROUP_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Version feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addVersionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(), getString("_UI_Parent_version_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Parent_version_feature", "_UI_Parent_type"),
+ PomPackage.Literals.PARENT__VERSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Relative Path feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addRelativePathPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Parent_relativePath_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Parent_relativePath_feature", "_UI_Parent_type"),
+ PomPackage.Literals.PARENT__RELATIVE_PATH, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This returns Parent.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Parent"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Parent) object).getArtifactId();
+ return label == null || label.length() == 0 ? getString("_UI_Parent_type") : getString("_UI_Parent_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(Parent.class)) {
+ case PomPackage.PARENT__ARTIFACT_ID:
+ case PomPackage.PARENT__GROUP_ID:
+ case PomPackage.PARENT__VERSION:
+ case PomPackage.PARENT__RELATIVE_PATH:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PluginExecutionItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PluginExecutionItemProvider.java
index 3a1d1340..aeff70ac 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PluginExecutionItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PluginExecutionItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,232 +28,203 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.PluginExecution;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.PluginExecution} object. <!--
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.PluginExecution} object. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class PluginExecutionItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public PluginExecutionItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addPhasePropertyDescriptor(object);
- addInheritedPropertyDescriptor(object);
- addConfigurationPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_PluginExecution_id_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_PluginExecution_id_feature",
- "_UI_PluginExecution_type"),
- PomPackage.Literals.PLUGIN_EXECUTION__ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Phase feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addPhasePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_PluginExecution_phase_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_PluginExecution_phase_feature",
- "_UI_PluginExecution_type"),
- PomPackage.Literals.PLUGIN_EXECUTION__PHASE, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Inherited feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addInheritedPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_PluginExecution_inherited_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_PluginExecution_inherited_feature",
- "_UI_PluginExecution_type"),
- PomPackage.Literals.PLUGIN_EXECUTION__INHERITED, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Configuration feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addConfigurationPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_PluginExecution_configuration_feature"),
- getString("_UI_PropertyDescriptor_description",
- "_UI_PluginExecution_configuration_feature",
- "_UI_PluginExecution_type"),
- PomPackage.Literals.PLUGIN_EXECUTION__CONFIGURATION, true,
- false, true, null, null, null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.PLUGIN_EXECUTION__GOALS);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns PluginExecution.gif. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/PluginExecution"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((PluginExecution) object).getId();
- return label == null || label.length() == 0 ? getString("_UI_PluginExecution_type")
- : getString("_UI_PluginExecution_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(PluginExecution.class)) {
- case PomPackage.PLUGIN_EXECUTION__ID:
- case PomPackage.PLUGIN_EXECUTION__PHASE:
- case PomPackage.PLUGIN_EXECUTION__INHERITED:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.PLUGIN_EXECUTION__GOALS:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.PLUGIN_EXECUTION__GOALS, ""));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class PluginExecutionItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PluginExecutionItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addIdPropertyDescriptor(object);
+ addPhasePropertyDescriptor(object);
+ addInheritedPropertyDescriptor(object);
+ addConfigurationPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_PluginExecution_id_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_PluginExecution_id_feature", "_UI_PluginExecution_type"),
+ PomPackage.Literals.PLUGIN_EXECUTION__ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Phase feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addPhasePropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_PluginExecution_phase_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_PluginExecution_phase_feature",
+ "_UI_PluginExecution_type"), PomPackage.Literals.PLUGIN_EXECUTION__PHASE, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Inherited feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addInheritedPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_PluginExecution_inherited_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_PluginExecution_inherited_feature",
+ "_UI_PluginExecution_type"), PomPackage.Literals.PLUGIN_EXECUTION__INHERITED, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Configuration feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addConfigurationPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_PluginExecution_configuration_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_PluginExecution_configuration_feature",
+ "_UI_PluginExecution_type"), PomPackage.Literals.PLUGIN_EXECUTION__CONFIGURATION, true, false, true, null,
+ null, null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.PLUGIN_EXECUTION__GOALS);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns PluginExecution.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/PluginExecution"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((PluginExecution) object).getId();
+ return label == null || label.length() == 0 ? getString("_UI_PluginExecution_type")
+ : getString("_UI_PluginExecution_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(PluginExecution.class)) {
+ case PomPackage.PLUGIN_EXECUTION__ID:
+ case PomPackage.PLUGIN_EXECUTION__PHASE:
+ case PomPackage.PLUGIN_EXECUTION__INHERITED:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.PLUGIN_EXECUTION__GOALS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.PLUGIN_EXECUTION__GOALS, ""));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PluginItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PluginItemProvider.java
index ba7965eb..691fd19a 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PluginItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PluginItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,273 +28,237 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.Plugin;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Plugin} object. <!-- begin-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Plugin} object. <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
-public class PluginItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public PluginItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
+public class PluginItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PluginItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
- addGroupIdPropertyDescriptor(object);
- addArtifactIdPropertyDescriptor(object);
- addVersionPropertyDescriptor(object);
- addExtensionsPropertyDescriptor(object);
- addInheritedPropertyDescriptor(object);
- addConfigurationPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
+ addGroupIdPropertyDescriptor(object);
+ addArtifactIdPropertyDescriptor(object);
+ addVersionPropertyDescriptor(object);
+ addExtensionsPropertyDescriptor(object);
+ addInheritedPropertyDescriptor(object);
+ addConfigurationPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
- /**
- * This adds a property descriptor for the Group Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addGroupIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Plugin_groupId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Plugin_groupId_feature", "_UI_Plugin_type"),
- PomPackage.Literals.PLUGIN__GROUP_ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Group Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addGroupIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Plugin_groupId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Plugin_groupId_feature", "_UI_Plugin_type"),
+ PomPackage.Literals.PLUGIN__GROUP_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This adds a property descriptor for the Artifact Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addArtifactIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Plugin_artifactId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Plugin_artifactId_feature", "_UI_Plugin_type"),
- PomPackage.Literals.PLUGIN__ARTIFACT_ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Artifact Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addArtifactIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Plugin_artifactId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Plugin_artifactId_feature", "_UI_Plugin_type"),
+ PomPackage.Literals.PLUGIN__ARTIFACT_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This adds a property descriptor for the Version feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addVersionPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Plugin_version_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Plugin_version_feature", "_UI_Plugin_type"),
- PomPackage.Literals.PLUGIN__VERSION, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Version feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addVersionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(), getString("_UI_Plugin_version_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Plugin_version_feature", "_UI_Plugin_type"),
+ PomPackage.Literals.PLUGIN__VERSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This adds a property descriptor for the Extensions feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addExtensionsPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Plugin_extensions_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Plugin_extensions_feature", "_UI_Plugin_type"),
- PomPackage.Literals.PLUGIN__EXTENSIONS, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Extensions feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addExtensionsPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Plugin_extensions_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Plugin_extensions_feature", "_UI_Plugin_type"),
+ PomPackage.Literals.PLUGIN__EXTENSIONS, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This adds a property descriptor for the Inherited feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addInheritedPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Plugin_inherited_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Plugin_inherited_feature", "_UI_Plugin_type"),
- PomPackage.Literals.PLUGIN__INHERITED, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
+ /**
+ * This adds a property descriptor for the Inherited feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addInheritedPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Plugin_inherited_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Plugin_inherited_feature", "_UI_Plugin_type"),
+ PomPackage.Literals.PLUGIN__INHERITED, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
- /**
- * This adds a property descriptor for the Configuration feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addConfigurationPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Plugin_configuration_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Plugin_configuration_feature", "_UI_Plugin_type"),
- PomPackage.Literals.PLUGIN__CONFIGURATION, true, false, true,
- null, null, null));
- }
+ /**
+ * This adds a property descriptor for the Configuration feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addConfigurationPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Plugin_configuration_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Plugin_configuration_feature", "_UI_Plugin_type"),
+ PomPackage.Literals.PLUGIN__CONFIGURATION, true, false, true, null, null, null));
+ }
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.PLUGIN__EXECUTIONS);
- childrenFeatures.add(PomPackage.Literals.PLUGIN__DEPENDENCIES);
- }
- return childrenFeatures;
- }
+ /**
+ * 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
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.PLUGIN__EXECUTIONS);
+ childrenFeatures.add(PomPackage.Literals.PLUGIN__DEPENDENCIES);
+ }
+ return childrenFeatures;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
- return super.getChildFeature(object, child);
- }
+ return super.getChildFeature(object, child);
+ }
- /**
- * This returns Plugin.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Plugin"));
- }
+ /**
+ * This returns Plugin.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Plugin"));
+ }
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Plugin) object).getGroupId();
- return label == null || label.length() == 0 ? getString("_UI_Plugin_type")
- : getString("_UI_Plugin_type") + " " + label;
- }
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Plugin) object).getGroupId();
+ return label == null || label.length() == 0 ? getString("_UI_Plugin_type") : getString("_UI_Plugin_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
+ /**
+ * 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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
- switch (notification.getFeatureID(Plugin.class)) {
- case PomPackage.PLUGIN__GROUP_ID:
- case PomPackage.PLUGIN__ARTIFACT_ID:
- case PomPackage.PLUGIN__VERSION:
- case PomPackage.PLUGIN__EXTENSIONS:
- case PomPackage.PLUGIN__INHERITED:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.PLUGIN__EXECUTIONS:
- case PomPackage.PLUGIN__DEPENDENCIES:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
+ switch(notification.getFeatureID(Plugin.class)) {
+ case PomPackage.PLUGIN__GROUP_ID:
+ case PomPackage.PLUGIN__ARTIFACT_ID:
+ case PomPackage.PLUGIN__VERSION:
+ case PomPackage.PLUGIN__EXTENSIONS:
+ case PomPackage.PLUGIN__INHERITED:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.PLUGIN__EXECUTIONS:
+ case PomPackage.PLUGIN__DEPENDENCIES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.PLUGIN__EXECUTIONS, PomFactory.eINSTANCE
- .createPluginExecution()));
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.PLUGIN__EXECUTIONS,
+ PomFactory.eINSTANCE.createPluginExecution()));
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.PLUGIN__DEPENDENCIES, PomFactory.eINSTANCE
- .createDependency()));
- }
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.PLUGIN__DEPENDENCIES,
+ PomFactory.eINSTANCE.createDependency()));
+ }
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PluginManagementItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PluginManagementItemProvider.java
index b2e3eba5..a6df2335 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PluginManagementItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PluginManagementItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
@@ -29,151 +26,134 @@ import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.PluginManagement;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.PluginManagement} object. <!--
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.PluginManagement} object. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class PluginManagementItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public PluginManagementItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures
- .add(PomPackage.Literals.PLUGIN_MANAGEMENT__PLUGINS);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns PluginManagement.gif. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/PluginManagement"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- return getString("_UI_PluginManagement_type");
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to
- * update any cached children and by creating a viewer notification, which
- * it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(PluginManagement.class)) {
- case PomPackage.PLUGIN_MANAGEMENT__PLUGINS:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.PLUGIN_MANAGEMENT__PLUGINS,
- PomFactory.eINSTANCE.createPlugin()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class PluginManagementItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PluginManagementItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.PLUGIN_MANAGEMENT__PLUGINS);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns PluginManagement.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/PluginManagement"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_PluginManagement_type");
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a
+ * viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(PluginManagement.class)) {
+ case PomPackage.PLUGIN_MANAGEMENT__PLUGINS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.PLUGIN_MANAGEMENT__PLUGINS,
+ PomFactory.eINSTANCE.createPlugin()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PomEditPlugin.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PomEditPlugin.java
index a395f972..025cefbf 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PomEditPlugin.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PomEditPlugin.java
@@ -12,83 +12,77 @@
package org.eclipse.m2e.model.edit.pom.provider;
import org.eclipse.emf.common.EMFPlugin;
-
import org.eclipse.emf.common.util.ResourceLocator;
+
/**
- * This is the central singleton for the Pom edit plugin. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
+ * This is the central singleton for the Pom edit plugin. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public final class PomEditPlugin extends EMFPlugin {
- /**
- * Keep track of the singleton. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- public static final PomEditPlugin INSTANCE = new PomEditPlugin();
+ /**
+ * Keep track of the singleton. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static final PomEditPlugin INSTANCE = new PomEditPlugin();
- /**
- * Keep track of the singleton. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- private static Implementation plugin;
+ /**
+ * Keep track of the singleton. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private static Implementation plugin;
- /**
- * Create the instance. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public PomEditPlugin() {
- super(new ResourceLocator[] {});
- }
+ /**
+ * Create the instance. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PomEditPlugin() {
+ super(new ResourceLocator[] {});
+ }
- /**
- * Returns the singleton instance of the Eclipse plugin. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return the singleton instance.
- * @generated
- */
- @Override
- public ResourceLocator getPluginResourceLocator() {
- return plugin;
- }
+ /**
+ * Returns the singleton instance of the Eclipse plugin. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the singleton instance.
+ * @generated
+ */
+ @Override
+ 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;
- }
+ /**
+ * 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 EclipsePlugin {
- /**
- * Creates an instance. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Implementation() {
- super();
+ /**
+ * The actual implementation of the Eclipse <b>Plugin</b>. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static class Implementation extends EclipsePlugin {
+ /**
+ * Creates an instance. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Implementation() {
+ super();
- // Remember the static instance.
- //
- plugin = this;
- }
- }
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PomItemProviderAdapterFactory.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PomItemProviderAdapterFactory.java
index 150ee816..749e31ef 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PomItemProviderAdapterFactory.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PomItemProviderAdapterFactory.java
@@ -17,7 +17,6 @@ import java.util.Collection;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.Notifier;
-
import org.eclipse.emf.edit.provider.ChangeNotifier;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
@@ -29,1215 +28,1126 @@ import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.INotifyChangedListener;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+
import org.eclipse.m2e.model.edit.pom.util.PomAdapterFactory;
/**
- * This is the factory that is used to provide the interfaces needed to support
- * Viewers. The adapters generated by this factory convert EMF adapter
- * notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. The
- * adapters also support Eclipse property sheets. Note that most of the adapters
- * are shared among multiple instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
+ * This is the factory that is used to provide the interfaces needed to support Viewers. The adapters generated by this
+ * factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. The adapters
+ * also support Eclipse property sheets. Note that most of the adapters are shared among multiple instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class PomItemProviderAdapterFactory extends PomAdapterFactory implements
- ComposeableAdapterFactory, IChangeNotifier, IDisposable {
- /**
- * This keeps track of the root adapter factory that delegates to this
- * adapter factory. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ComposedAdapterFactory parentAdapterFactory;
-
- /**
- * This is used to implement
- * {@link org.eclipse.emf.edit.provider.IChangeNotifier}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected IChangeNotifier changeNotifier = new ChangeNotifier();
-
- /**
- * 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>();
-
- /**
- * This constructs an instance. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- public PomItemProviderAdapterFactory() {
- supportedTypes.add(IEditingDomainItemProvider.class);
- supportedTypes.add(IStructuredItemContentProvider.class);
- supportedTypes.add(ITreeItemContentProvider.class);
- supportedTypes.add(IItemLabelProvider.class);
- supportedTypes.add(IItemPropertySource.class);
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Activation} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ActivationItemProvider activationItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Activation}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createActivationAdapter() {
- if (activationItemProvider == null) {
- activationItemProvider = new ActivationItemProvider(this);
- }
-
- return activationItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.ActivationFile} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ActivationFileItemProvider activationFileItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.ActivationFile}. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createActivationFileAdapter() {
- if (activationFileItemProvider == null) {
- activationFileItemProvider = new ActivationFileItemProvider(this);
- }
-
- return activationFileItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.ActivationOS} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ActivationOSItemProvider activationOSItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.ActivationOS}. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createActivationOSAdapter() {
- if (activationOSItemProvider == null) {
- activationOSItemProvider = new ActivationOSItemProvider(this);
- }
-
- return activationOSItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.ActivationProperty} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ActivationPropertyItemProvider activationPropertyItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.ActivationProperty}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createActivationPropertyAdapter() {
- if (activationPropertyItemProvider == null) {
- activationPropertyItemProvider = new ActivationPropertyItemProvider(
- this);
- }
-
- return activationPropertyItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Build} instances. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected BuildItemProvider buildItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Build}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createBuildAdapter() {
- if (buildItemProvider == null) {
- buildItemProvider = new BuildItemProvider(this);
- }
-
- return buildItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected BuildBaseItemProvider buildBaseItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createBuildBaseAdapter() {
- if (buildBaseItemProvider == null) {
- buildBaseItemProvider = new BuildBaseItemProvider(this);
- }
-
- return buildBaseItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.CiManagement} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected CiManagementItemProvider ciManagementItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.CiManagement}. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createCiManagementAdapter() {
- if (ciManagementItemProvider == null) {
- ciManagementItemProvider = new CiManagementItemProvider(this);
- }
-
- return ciManagementItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Contributor} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ContributorItemProvider contributorItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Contributor}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createContributorAdapter() {
- if (contributorItemProvider == null) {
- contributorItemProvider = new ContributorItemProvider(this);
- }
-
- return contributorItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Dependency} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DependencyItemProvider dependencyItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Dependency}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createDependencyAdapter() {
- if (dependencyItemProvider == null) {
- dependencyItemProvider = new DependencyItemProvider(this);
- }
-
- return dependencyItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.DependencyManagement} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DependencyManagementItemProvider dependencyManagementItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.DependencyManagement}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createDependencyManagementAdapter() {
- if (dependencyManagementItemProvider == null) {
- dependencyManagementItemProvider = new DependencyManagementItemProvider(
- this);
- }
-
- return dependencyManagementItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DeploymentRepositoryItemProvider deploymentRepositoryItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createDeploymentRepositoryAdapter() {
- if (deploymentRepositoryItemProvider == null) {
- deploymentRepositoryItemProvider = new DeploymentRepositoryItemProvider(
- this);
- }
-
- return deploymentRepositoryItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Developer} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DeveloperItemProvider developerItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Developer}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createDeveloperAdapter() {
- if (developerItemProvider == null) {
- developerItemProvider = new DeveloperItemProvider(this);
- }
-
- return developerItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement} instances.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DistributionManagementItemProvider distributionManagementItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createDistributionManagementAdapter() {
- if (distributionManagementItemProvider == null) {
- distributionManagementItemProvider = new DistributionManagementItemProvider(
- this);
- }
-
- return distributionManagementItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.DocumentRoot} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DocumentRootItemProvider documentRootItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.DocumentRoot}. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createDocumentRootAdapter() {
- if (documentRootItemProvider == null) {
- documentRootItemProvider = new DocumentRootItemProvider(this);
- }
-
- return documentRootItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Exclusion} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ExclusionItemProvider exclusionItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Exclusion}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createExclusionAdapter() {
- if (exclusionItemProvider == null) {
- exclusionItemProvider = new ExclusionItemProvider(this);
- }
-
- return exclusionItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Extension} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ExtensionItemProvider extensionItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Extension}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createExtensionAdapter() {
- if (extensionItemProvider == null) {
- extensionItemProvider = new ExtensionItemProvider(this);
- }
-
- return extensionItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.IssueManagement} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected IssueManagementItemProvider issueManagementItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.IssueManagement}. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createIssueManagementAdapter() {
- if (issueManagementItemProvider == null) {
- issueManagementItemProvider = new IssueManagementItemProvider(this);
- }
-
- return issueManagementItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.License} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected LicenseItemProvider licenseItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.License}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createLicenseAdapter() {
- if (licenseItemProvider == null) {
- licenseItemProvider = new LicenseItemProvider(this);
- }
-
- return licenseItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.MailingList} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected MailingListItemProvider mailingListItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.MailingList}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createMailingListAdapter() {
- if (mailingListItemProvider == null) {
- mailingListItemProvider = new MailingListItemProvider(this);
- }
-
- return mailingListItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Model} instances. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ModelItemProvider modelItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Model}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createModelAdapter() {
- if (modelItemProvider == null) {
- modelItemProvider = new ModelItemProvider(this);
- }
-
- return modelItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Notifier} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected NotifierItemProvider notifierItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Notifier}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createNotifierAdapter() {
- if (notifierItemProvider == null) {
- notifierItemProvider = new NotifierItemProvider(this);
- }
-
- return notifierItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Organization} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected OrganizationItemProvider organizationItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Organization}. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createOrganizationAdapter() {
- if (organizationItemProvider == null) {
- organizationItemProvider = new OrganizationItemProvider(this);
- }
-
- return organizationItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Parent} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ParentItemProvider parentItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Parent}
- * . <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createParentAdapter() {
- if (parentItemProvider == null) {
- parentItemProvider = new ParentItemProvider(this);
- }
-
- return parentItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Plugin} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected PluginItemProvider pluginItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Plugin}
- * . <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createPluginAdapter() {
- if (pluginItemProvider == null) {
- pluginItemProvider = new PluginItemProvider(this);
- }
-
- return pluginItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.PluginExecution} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected PluginExecutionItemProvider pluginExecutionItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.PluginExecution}. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createPluginExecutionAdapter() {
- if (pluginExecutionItemProvider == null) {
- pluginExecutionItemProvider = new PluginExecutionItemProvider(this);
- }
-
- return pluginExecutionItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.PluginManagement} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected PluginManagementItemProvider pluginManagementItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.PluginManagement}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createPluginManagementAdapter() {
- if (pluginManagementItemProvider == null) {
- pluginManagementItemProvider = new PluginManagementItemProvider(
- this);
- }
-
- return pluginManagementItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Prerequisites} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected PrerequisitesItemProvider prerequisitesItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Prerequisites}. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createPrerequisitesAdapter() {
- if (prerequisitesItemProvider == null) {
- prerequisitesItemProvider = new PrerequisitesItemProvider(this);
- }
-
- return prerequisitesItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Profile} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ProfileItemProvider profileItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Profile}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createProfileAdapter() {
- if (profileItemProvider == null) {
- profileItemProvider = new ProfileItemProvider(this);
- }
-
- return profileItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Relocation} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected RelocationItemProvider relocationItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Relocation}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createRelocationAdapter() {
- if (relocationItemProvider == null) {
- relocationItemProvider = new RelocationItemProvider(this);
- }
-
- return relocationItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Reporting} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ReportingItemProvider reportingItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Reporting}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createReportingAdapter() {
- if (reportingItemProvider == null) {
- reportingItemProvider = new ReportingItemProvider(this);
- }
-
- return reportingItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ReportPluginItemProvider reportPluginItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin}. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createReportPluginAdapter() {
- if (reportPluginItemProvider == null) {
- reportPluginItemProvider = new ReportPluginItemProvider(this);
- }
-
- return reportPluginItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.ReportSet} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ReportSetItemProvider reportSetItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.ReportSet}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createReportSetAdapter() {
- if (reportSetItemProvider == null) {
- reportSetItemProvider = new ReportSetItemProvider(this);
- }
-
- return reportSetItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Repository} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected RepositoryItemProvider repositoryItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Repository}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createRepositoryAdapter() {
- if (repositoryItemProvider == null) {
- repositoryItemProvider = new RepositoryItemProvider(this);
- }
-
- return repositoryItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected RepositoryPolicyItemProvider repositoryPolicyItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createRepositoryPolicyAdapter() {
- if (repositoryPolicyItemProvider == null) {
- repositoryPolicyItemProvider = new RepositoryPolicyItemProvider(
- this);
- }
-
- return repositoryPolicyItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Resource} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ResourceItemProvider resourceItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Resource}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createResourceAdapter() {
- if (resourceItemProvider == null) {
- resourceItemProvider = new ResourceItemProvider(this);
- }
-
- return resourceItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Scm} instances. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ScmItemProvider scmItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Scm}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createScmAdapter() {
- if (scmItemProvider == null) {
- scmItemProvider = new ScmItemProvider(this);
- }
-
- return scmItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Site} instances. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected SiteItemProvider siteItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Site}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createSiteAdapter() {
- if (siteItemProvider == null) {
- siteItemProvider = new SiteItemProvider(this);
- }
-
- return siteItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.PropertyElement} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected PropertyElementItemProvider propertyElementItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.PropertyElement}. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createPropertyElementAdapter() {
- if (propertyElementItemProvider == null) {
- propertyElementItemProvider = new PropertyElementItemProvider(this);
- }
-
- return propertyElementItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.m2e.model.edit.pom.Configuration} instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ConfigurationItemProvider configurationItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Configuration}. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createConfigurationAdapter() {
- if (configurationItemProvider == null) {
- configurationItemProvider = new ConfigurationItemProvider(this);
- }
-
- return configurationItemProvider;
- }
-
- /**
- * This returns the root adapter factory that contains this factory. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ComposeableAdapterFactory getRootAdapterFactory() {
- return parentAdapterFactory == null ? this : parentAdapterFactory
- .getRootAdapterFactory();
- }
-
- /**
- * This sets the composed adapter factory that contains this factory. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setParentAdapterFactory(
- ComposedAdapterFactory parentAdapterFactory) {
- this.parentAdapterFactory = parentAdapterFactory;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object type) {
- return supportedTypes.contains(type) || super.isFactoryForType(type);
- }
-
- /**
- * This implementation substitutes the factory itself as the key for the
- * adapter. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter adapt(Notifier notifier, Object type) {
- return super.adapt(notifier, this);
- }
-
- /**
- * <!-- 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))) {
- return adapter;
- }
- }
-
- return null;
- }
-
- /**
- * This adds a listener. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void addListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.addListener(notifyChangedListener);
- }
-
- /**
- * This removes a listener. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void removeListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.removeListener(notifyChangedListener);
- }
-
- /**
- * This delegates to {@link #changeNotifier} and to
- * {@link #parentAdapterFactory}. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- public void fireNotifyChanged(Notification notification) {
- changeNotifier.fireNotifyChanged(notification);
-
- if (parentAdapterFactory != null) {
- parentAdapterFactory.fireNotifyChanged(notification);
- }
- }
-
- /**
- * This disposes all of the item providers created by this factory. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void dispose() {
- if (activationItemProvider != null)
- activationItemProvider.dispose();
- if (activationFileItemProvider != null)
- activationFileItemProvider.dispose();
- if (activationOSItemProvider != null)
- activationOSItemProvider.dispose();
- if (activationPropertyItemProvider != null)
- activationPropertyItemProvider.dispose();
- if (buildItemProvider != null)
- buildItemProvider.dispose();
- if (buildBaseItemProvider != null)
- buildBaseItemProvider.dispose();
- if (ciManagementItemProvider != null)
- ciManagementItemProvider.dispose();
- if (contributorItemProvider != null)
- contributorItemProvider.dispose();
- if (dependencyItemProvider != null)
- dependencyItemProvider.dispose();
- if (dependencyManagementItemProvider != null)
- dependencyManagementItemProvider.dispose();
- if (deploymentRepositoryItemProvider != null)
- deploymentRepositoryItemProvider.dispose();
- if (developerItemProvider != null)
- developerItemProvider.dispose();
- if (distributionManagementItemProvider != null)
- distributionManagementItemProvider.dispose();
- if (documentRootItemProvider != null)
- documentRootItemProvider.dispose();
- if (exclusionItemProvider != null)
- exclusionItemProvider.dispose();
- if (extensionItemProvider != null)
- extensionItemProvider.dispose();
- if (issueManagementItemProvider != null)
- issueManagementItemProvider.dispose();
- if (licenseItemProvider != null)
- licenseItemProvider.dispose();
- if (mailingListItemProvider != null)
- mailingListItemProvider.dispose();
- if (modelItemProvider != null)
- modelItemProvider.dispose();
- if (notifierItemProvider != null)
- notifierItemProvider.dispose();
- if (organizationItemProvider != null)
- organizationItemProvider.dispose();
- if (parentItemProvider != null)
- parentItemProvider.dispose();
- if (pluginItemProvider != null)
- pluginItemProvider.dispose();
- if (pluginExecutionItemProvider != null)
- pluginExecutionItemProvider.dispose();
- if (pluginManagementItemProvider != null)
- pluginManagementItemProvider.dispose();
- if (prerequisitesItemProvider != null)
- prerequisitesItemProvider.dispose();
- if (profileItemProvider != null)
- profileItemProvider.dispose();
- if (relocationItemProvider != null)
- relocationItemProvider.dispose();
- if (reportingItemProvider != null)
- reportingItemProvider.dispose();
- if (reportPluginItemProvider != null)
- reportPluginItemProvider.dispose();
- if (reportSetItemProvider != null)
- reportSetItemProvider.dispose();
- if (repositoryItemProvider != null)
- repositoryItemProvider.dispose();
- if (repositoryPolicyItemProvider != null)
- repositoryPolicyItemProvider.dispose();
- if (resourceItemProvider != null)
- resourceItemProvider.dispose();
- if (scmItemProvider != null)
- scmItemProvider.dispose();
- if (siteItemProvider != null)
- siteItemProvider.dispose();
- if (propertyElementItemProvider != null)
- propertyElementItemProvider.dispose();
- if (configurationItemProvider != null)
- configurationItemProvider.dispose();
- }
+public class PomItemProviderAdapterFactory extends PomAdapterFactory implements ComposeableAdapterFactory,
+ IChangeNotifier, IDisposable {
+ /**
+ * This keeps track of the root adapter factory that delegates to this adapter factory. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected ComposedAdapterFactory parentAdapterFactory;
+
+ /**
+ * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected IChangeNotifier changeNotifier = new ChangeNotifier();
+
+ /**
+ * 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>();
+
+ /**
+ * This constructs an instance. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PomItemProviderAdapterFactory() {
+ supportedTypes.add(IEditingDomainItemProvider.class);
+ supportedTypes.add(IStructuredItemContentProvider.class);
+ supportedTypes.add(ITreeItemContentProvider.class);
+ supportedTypes.add(IItemLabelProvider.class);
+ supportedTypes.add(IItemPropertySource.class);
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Activation} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ActivationItemProvider activationItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Activation}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createActivationAdapter() {
+ if(activationItemProvider == null) {
+ activationItemProvider = new ActivationItemProvider(this);
+ }
+
+ return activationItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.ActivationFile} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ActivationFileItemProvider activationFileItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.ActivationFile}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createActivationFileAdapter() {
+ if(activationFileItemProvider == null) {
+ activationFileItemProvider = new ActivationFileItemProvider(this);
+ }
+
+ return activationFileItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.ActivationOS} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ActivationOSItemProvider activationOSItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.ActivationOS}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createActivationOSAdapter() {
+ if(activationOSItemProvider == null) {
+ activationOSItemProvider = new ActivationOSItemProvider(this);
+ }
+
+ return activationOSItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.ActivationProperty}
+ * instances. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ActivationPropertyItemProvider activationPropertyItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.ActivationProperty}. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createActivationPropertyAdapter() {
+ if(activationPropertyItemProvider == null) {
+ activationPropertyItemProvider = new ActivationPropertyItemProvider(this);
+ }
+
+ return activationPropertyItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Build} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected BuildItemProvider buildItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Build}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createBuildAdapter() {
+ if(buildItemProvider == null) {
+ buildItemProvider = new BuildItemProvider(this);
+ }
+
+ return buildItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.BuildBase} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected BuildBaseItemProvider buildBaseItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.BuildBase}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createBuildBaseAdapter() {
+ if(buildBaseItemProvider == null) {
+ buildBaseItemProvider = new BuildBaseItemProvider(this);
+ }
+
+ return buildBaseItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.CiManagement} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected CiManagementItemProvider ciManagementItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.CiManagement}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createCiManagementAdapter() {
+ if(ciManagementItemProvider == null) {
+ ciManagementItemProvider = new CiManagementItemProvider(this);
+ }
+
+ return ciManagementItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Contributor} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ContributorItemProvider contributorItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Contributor}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createContributorAdapter() {
+ if(contributorItemProvider == null) {
+ contributorItemProvider = new ContributorItemProvider(this);
+ }
+
+ return contributorItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Dependency} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DependencyItemProvider dependencyItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Dependency}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createDependencyAdapter() {
+ if(dependencyItemProvider == null) {
+ dependencyItemProvider = new DependencyItemProvider(this);
+ }
+
+ return dependencyItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.DependencyManagement}
+ * instances. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DependencyManagementItemProvider dependencyManagementItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.DependencyManagement}. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createDependencyManagementAdapter() {
+ if(dependencyManagementItemProvider == null) {
+ dependencyManagementItemProvider = new DependencyManagementItemProvider(this);
+ }
+
+ return dependencyManagementItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository}
+ * instances. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DeploymentRepositoryItemProvider deploymentRepositoryItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository}. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createDeploymentRepositoryAdapter() {
+ if(deploymentRepositoryItemProvider == null) {
+ deploymentRepositoryItemProvider = new DeploymentRepositoryItemProvider(this);
+ }
+
+ return deploymentRepositoryItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Developer} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DeveloperItemProvider developerItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Developer}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createDeveloperAdapter() {
+ if(developerItemProvider == null) {
+ developerItemProvider = new DeveloperItemProvider(this);
+ }
+
+ return developerItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.DistributionManagement}
+ * instances. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DistributionManagementItemProvider distributionManagementItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.DistributionManagement}. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createDistributionManagementAdapter() {
+ if(distributionManagementItemProvider == null) {
+ distributionManagementItemProvider = new DistributionManagementItemProvider(this);
+ }
+
+ return distributionManagementItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.DocumentRoot} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DocumentRootItemProvider documentRootItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.DocumentRoot}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createDocumentRootAdapter() {
+ if(documentRootItemProvider == null) {
+ documentRootItemProvider = new DocumentRootItemProvider(this);
+ }
+
+ return documentRootItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Exclusion} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ExclusionItemProvider exclusionItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Exclusion}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createExclusionAdapter() {
+ if(exclusionItemProvider == null) {
+ exclusionItemProvider = new ExclusionItemProvider(this);
+ }
+
+ return exclusionItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Extension} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ExtensionItemProvider extensionItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Extension}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createExtensionAdapter() {
+ if(extensionItemProvider == null) {
+ extensionItemProvider = new ExtensionItemProvider(this);
+ }
+
+ return extensionItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.IssueManagement} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected IssueManagementItemProvider issueManagementItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.IssueManagement}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createIssueManagementAdapter() {
+ if(issueManagementItemProvider == null) {
+ issueManagementItemProvider = new IssueManagementItemProvider(this);
+ }
+
+ return issueManagementItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.License} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected LicenseItemProvider licenseItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.License}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createLicenseAdapter() {
+ if(licenseItemProvider == null) {
+ licenseItemProvider = new LicenseItemProvider(this);
+ }
+
+ return licenseItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.MailingList} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected MailingListItemProvider mailingListItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.MailingList}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createMailingListAdapter() {
+ if(mailingListItemProvider == null) {
+ mailingListItemProvider = new MailingListItemProvider(this);
+ }
+
+ return mailingListItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Model} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ModelItemProvider modelItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Model}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createModelAdapter() {
+ if(modelItemProvider == null) {
+ modelItemProvider = new ModelItemProvider(this);
+ }
+
+ return modelItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Notifier} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected NotifierItemProvider notifierItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Notifier}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createNotifierAdapter() {
+ if(notifierItemProvider == null) {
+ notifierItemProvider = new NotifierItemProvider(this);
+ }
+
+ return notifierItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Organization} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected OrganizationItemProvider organizationItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Organization}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createOrganizationAdapter() {
+ if(organizationItemProvider == null) {
+ organizationItemProvider = new OrganizationItemProvider(this);
+ }
+
+ return organizationItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Parent} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ParentItemProvider parentItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Parent} . <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createParentAdapter() {
+ if(parentItemProvider == null) {
+ parentItemProvider = new ParentItemProvider(this);
+ }
+
+ return parentItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Plugin} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected PluginItemProvider pluginItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Plugin} . <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createPluginAdapter() {
+ if(pluginItemProvider == null) {
+ pluginItemProvider = new PluginItemProvider(this);
+ }
+
+ return pluginItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.PluginExecution} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected PluginExecutionItemProvider pluginExecutionItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.PluginExecution}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createPluginExecutionAdapter() {
+ if(pluginExecutionItemProvider == null) {
+ pluginExecutionItemProvider = new PluginExecutionItemProvider(this);
+ }
+
+ return pluginExecutionItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.PluginManagement} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected PluginManagementItemProvider pluginManagementItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.PluginManagement}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createPluginManagementAdapter() {
+ if(pluginManagementItemProvider == null) {
+ pluginManagementItemProvider = new PluginManagementItemProvider(this);
+ }
+
+ return pluginManagementItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Prerequisites} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected PrerequisitesItemProvider prerequisitesItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Prerequisites}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createPrerequisitesAdapter() {
+ if(prerequisitesItemProvider == null) {
+ prerequisitesItemProvider = new PrerequisitesItemProvider(this);
+ }
+
+ return prerequisitesItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Profile} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ProfileItemProvider profileItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Profile}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createProfileAdapter() {
+ if(profileItemProvider == null) {
+ profileItemProvider = new ProfileItemProvider(this);
+ }
+
+ return profileItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Relocation} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RelocationItemProvider relocationItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Relocation}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createRelocationAdapter() {
+ if(relocationItemProvider == null) {
+ relocationItemProvider = new RelocationItemProvider(this);
+ }
+
+ return relocationItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Reporting} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ReportingItemProvider reportingItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Reporting}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createReportingAdapter() {
+ if(reportingItemProvider == null) {
+ reportingItemProvider = new ReportingItemProvider(this);
+ }
+
+ return reportingItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.ReportPlugin} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ReportPluginItemProvider reportPluginItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.ReportPlugin}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createReportPluginAdapter() {
+ if(reportPluginItemProvider == null) {
+ reportPluginItemProvider = new ReportPluginItemProvider(this);
+ }
+
+ return reportPluginItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.ReportSet} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ReportSetItemProvider reportSetItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.ReportSet}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createReportSetAdapter() {
+ if(reportSetItemProvider == null) {
+ reportSetItemProvider = new ReportSetItemProvider(this);
+ }
+
+ return reportSetItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Repository} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RepositoryItemProvider repositoryItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Repository}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createRepositoryAdapter() {
+ if(repositoryItemProvider == null) {
+ repositoryItemProvider = new RepositoryItemProvider(this);
+ }
+
+ return repositoryItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RepositoryPolicyItemProvider repositoryPolicyItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createRepositoryPolicyAdapter() {
+ if(repositoryPolicyItemProvider == null) {
+ repositoryPolicyItemProvider = new RepositoryPolicyItemProvider(this);
+ }
+
+ return repositoryPolicyItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Resource} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ResourceItemProvider resourceItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Resource}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createResourceAdapter() {
+ if(resourceItemProvider == null) {
+ resourceItemProvider = new ResourceItemProvider(this);
+ }
+
+ return resourceItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Scm} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ScmItemProvider scmItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Scm}. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createScmAdapter() {
+ if(scmItemProvider == null) {
+ scmItemProvider = new ScmItemProvider(this);
+ }
+
+ return scmItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Site} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected SiteItemProvider siteItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Site}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createSiteAdapter() {
+ if(siteItemProvider == null) {
+ siteItemProvider = new SiteItemProvider(this);
+ }
+
+ return siteItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.PropertyElement} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected PropertyElementItemProvider propertyElementItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.PropertyElement}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createPropertyElementAdapter() {
+ if(propertyElementItemProvider == null) {
+ propertyElementItemProvider = new PropertyElementItemProvider(this);
+ }
+
+ return propertyElementItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.m2e.model.edit.pom.Configuration} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ConfigurationItemProvider configurationItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.m2e.model.edit.pom.Configuration}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createConfigurationAdapter() {
+ if(configurationItemProvider == null) {
+ configurationItemProvider = new ConfigurationItemProvider(this);
+ }
+
+ return configurationItemProvider;
+ }
+
+ /**
+ * This returns the root adapter factory that contains this factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ComposeableAdapterFactory getRootAdapterFactory() {
+ return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
+ }
+
+ /**
+ * This sets the composed adapter factory that contains this factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
+ this.parentAdapterFactory = parentAdapterFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object type) {
+ return supportedTypes.contains(type) || super.isFactoryForType(type);
+ }
+
+ /**
+ * This implementation substitutes the factory itself as the key for the adapter. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter adapt(Notifier notifier, Object type) {
+ return super.adapt(notifier, this);
+ }
+
+ /**
+ * <!-- 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))) {
+ return adapter;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * This adds a listener. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void addListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.addListener(notifyChangedListener);
+ }
+
+ /**
+ * This removes a listener. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void removeListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.removeListener(notifyChangedListener);
+ }
+
+ /**
+ * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public void fireNotifyChanged(Notification notification) {
+ changeNotifier.fireNotifyChanged(notification);
+
+ if(parentAdapterFactory != null) {
+ parentAdapterFactory.fireNotifyChanged(notification);
+ }
+ }
+
+ /**
+ * This disposes all of the item providers created by this factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void dispose() {
+ if(activationItemProvider != null)
+ activationItemProvider.dispose();
+ if(activationFileItemProvider != null)
+ activationFileItemProvider.dispose();
+ if(activationOSItemProvider != null)
+ activationOSItemProvider.dispose();
+ if(activationPropertyItemProvider != null)
+ activationPropertyItemProvider.dispose();
+ if(buildItemProvider != null)
+ buildItemProvider.dispose();
+ if(buildBaseItemProvider != null)
+ buildBaseItemProvider.dispose();
+ if(ciManagementItemProvider != null)
+ ciManagementItemProvider.dispose();
+ if(contributorItemProvider != null)
+ contributorItemProvider.dispose();
+ if(dependencyItemProvider != null)
+ dependencyItemProvider.dispose();
+ if(dependencyManagementItemProvider != null)
+ dependencyManagementItemProvider.dispose();
+ if(deploymentRepositoryItemProvider != null)
+ deploymentRepositoryItemProvider.dispose();
+ if(developerItemProvider != null)
+ developerItemProvider.dispose();
+ if(distributionManagementItemProvider != null)
+ distributionManagementItemProvider.dispose();
+ if(documentRootItemProvider != null)
+ documentRootItemProvider.dispose();
+ if(exclusionItemProvider != null)
+ exclusionItemProvider.dispose();
+ if(extensionItemProvider != null)
+ extensionItemProvider.dispose();
+ if(issueManagementItemProvider != null)
+ issueManagementItemProvider.dispose();
+ if(licenseItemProvider != null)
+ licenseItemProvider.dispose();
+ if(mailingListItemProvider != null)
+ mailingListItemProvider.dispose();
+ if(modelItemProvider != null)
+ modelItemProvider.dispose();
+ if(notifierItemProvider != null)
+ notifierItemProvider.dispose();
+ if(organizationItemProvider != null)
+ organizationItemProvider.dispose();
+ if(parentItemProvider != null)
+ parentItemProvider.dispose();
+ if(pluginItemProvider != null)
+ pluginItemProvider.dispose();
+ if(pluginExecutionItemProvider != null)
+ pluginExecutionItemProvider.dispose();
+ if(pluginManagementItemProvider != null)
+ pluginManagementItemProvider.dispose();
+ if(prerequisitesItemProvider != null)
+ prerequisitesItemProvider.dispose();
+ if(profileItemProvider != null)
+ profileItemProvider.dispose();
+ if(relocationItemProvider != null)
+ relocationItemProvider.dispose();
+ if(reportingItemProvider != null)
+ reportingItemProvider.dispose();
+ if(reportPluginItemProvider != null)
+ reportPluginItemProvider.dispose();
+ if(reportSetItemProvider != null)
+ reportSetItemProvider.dispose();
+ if(repositoryItemProvider != null)
+ repositoryItemProvider.dispose();
+ if(repositoryPolicyItemProvider != null)
+ repositoryPolicyItemProvider.dispose();
+ if(resourceItemProvider != null)
+ resourceItemProvider.dispose();
+ if(scmItemProvider != null)
+ scmItemProvider.dispose();
+ if(siteItemProvider != null)
+ siteItemProvider.dispose();
+ if(propertyElementItemProvider != null)
+ propertyElementItemProvider.dispose();
+ if(configurationItemProvider != null)
+ configurationItemProvider.dispose();
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PrerequisitesItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PrerequisitesItemProvider.java
index 216d9334..40b9427a 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PrerequisitesItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PrerequisitesItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,132 +27,116 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.Prerequisites;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Prerequisites} object. <!--
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Prerequisites} object. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class PrerequisitesItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public PrerequisitesItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addMavenPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Maven feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addMavenPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Prerequisites_maven_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Prerequisites_maven_feature",
- "_UI_Prerequisites_type"),
- PomPackage.Literals.PREREQUISITES__MAVEN, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This returns Prerequisites.gif. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Prerequisites"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Prerequisites) object).getMaven();
- return label == null || label.length() == 0 ? getString("_UI_Prerequisites_type")
- : getString("_UI_Prerequisites_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Prerequisites.class)) {
- case PomPackage.PREREQUISITES__MAVEN:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class PrerequisitesItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PrerequisitesItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addMavenPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Maven feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addMavenPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Prerequisites_maven_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Prerequisites_maven_feature", "_UI_Prerequisites_type"),
+ PomPackage.Literals.PREREQUISITES__MAVEN, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This returns Prerequisites.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Prerequisites"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Prerequisites) object).getMaven();
+ return label == null || label.length() == 0 ? getString("_UI_Prerequisites_type")
+ : getString("_UI_Prerequisites_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(Prerequisites.class)) {
+ case PomPackage.PREREQUISITES__MAVEN:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ProfileItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ProfileItemProvider.java
index 3a449d30..c645c3ad 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ProfileItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ProfileItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,275 +28,235 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.Profile;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Profile} object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Profile} object. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
*
* @generated
*/
-public class ProfileItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ProfileItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addReportingPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Profile_id_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Profile_id_feature", "_UI_Profile_type"),
- PomPackage.Literals.PROFILE__ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Reporting feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addReportingPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Profile_reporting_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Profile_reporting_feature", "_UI_Profile_type"),
- PomPackage.Literals.PROFILE__REPORTING, true, false, true,
- null, null, null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.PROFILE__ACTIVATION);
- childrenFeatures.add(PomPackage.Literals.PROFILE__BUILD);
- childrenFeatures.add(PomPackage.Literals.PROFILE__REPOSITORIES);
- childrenFeatures
- .add(PomPackage.Literals.PROFILE__PLUGIN_REPOSITORIES);
- childrenFeatures.add(PomPackage.Literals.PROFILE__DEPENDENCIES);
- childrenFeatures.add(PomPackage.Literals.PROFILE__REPORTS);
- childrenFeatures
- .add(PomPackage.Literals.PROFILE__DEPENDENCY_MANAGEMENT);
- childrenFeatures
- .add(PomPackage.Literals.PROFILE__DISTRIBUTION_MANAGEMENT);
- childrenFeatures.add(PomPackage.Literals.PROFILE__PROPERTIES);
- childrenFeatures.add(PomPackage.Literals.PROFILE__MODULES);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns Profile.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Profile"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Profile) object).getId();
- return label == null || label.length() == 0 ? getString("_UI_Profile_type")
- : getString("_UI_Profile_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Profile.class)) {
- case PomPackage.PROFILE__ID:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.PROFILE__ACTIVATION:
- case PomPackage.PROFILE__BUILD:
- case PomPackage.PROFILE__REPOSITORIES:
- case PomPackage.PROFILE__PLUGIN_REPOSITORIES:
- case PomPackage.PROFILE__DEPENDENCIES:
- case PomPackage.PROFILE__REPORTS:
- case PomPackage.PROFILE__DEPENDENCY_MANAGEMENT:
- case PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT:
- case PomPackage.PROFILE__PROPERTIES:
- case PomPackage.PROFILE__MODULES:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.PROFILE__ACTIVATION, PomFactory.eINSTANCE
- .createActivation()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.PROFILE__BUILD, PomFactory.eINSTANCE
- .createBuildBase()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.PROFILE__BUILD, PomFactory.eINSTANCE
- .createBuild()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.PROFILE__REPOSITORIES, PomFactory.eINSTANCE
- .createRepository()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.PROFILE__PLUGIN_REPOSITORIES,
- PomFactory.eINSTANCE.createRepository()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.PROFILE__DEPENDENCIES, PomFactory.eINSTANCE
- .createDependency()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.PROFILE__REPORTS, PomFactory.eINSTANCE
- .createReportPlugin()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.PROFILE__DEPENDENCY_MANAGEMENT,
- PomFactory.eINSTANCE.createDependencyManagement()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.PROFILE__DISTRIBUTION_MANAGEMENT,
- PomFactory.eINSTANCE.createDistributionManagement()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.PROFILE__PROPERTIES, PomFactory.eINSTANCE
- .createPropertyElement()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.PROFILE__MODULES, ""));
- }
-
- /**
- * This returns the label text for
- * {@link org.eclipse.emf.edit.command.CreateChildCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getCreateChildText(Object owner, Object feature,
- Object child, Collection<?> selection) {
- Object childFeature = feature;
- Object childObject = child;
-
- boolean qualify = childFeature == PomPackage.Literals.PROFILE__REPOSITORIES
- || childFeature == PomPackage.Literals.PROFILE__PLUGIN_REPOSITORIES;
-
- if (qualify) {
- return getString("_UI_CreateChild_text2", new Object[] {
- getTypeText(childObject), getFeatureText(childFeature),
- getTypeText(owner) });
- }
- return super.getCreateChildText(owner, feature, child, selection);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class ProfileItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ProfileItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addIdPropertyDescriptor(object);
+ addReportingPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Profile_id_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Profile_id_feature", "_UI_Profile_type"),
+ PomPackage.Literals.PROFILE__ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Reporting feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addReportingPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Profile_reporting_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Profile_reporting_feature", "_UI_Profile_type"),
+ PomPackage.Literals.PROFILE__REPORTING, true, false, true, null, null, null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.PROFILE__ACTIVATION);
+ childrenFeatures.add(PomPackage.Literals.PROFILE__BUILD);
+ childrenFeatures.add(PomPackage.Literals.PROFILE__REPOSITORIES);
+ childrenFeatures.add(PomPackage.Literals.PROFILE__PLUGIN_REPOSITORIES);
+ childrenFeatures.add(PomPackage.Literals.PROFILE__DEPENDENCIES);
+ childrenFeatures.add(PomPackage.Literals.PROFILE__REPORTS);
+ childrenFeatures.add(PomPackage.Literals.PROFILE__DEPENDENCY_MANAGEMENT);
+ childrenFeatures.add(PomPackage.Literals.PROFILE__DISTRIBUTION_MANAGEMENT);
+ childrenFeatures.add(PomPackage.Literals.PROFILE__PROPERTIES);
+ childrenFeatures.add(PomPackage.Literals.PROFILE__MODULES);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns Profile.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Profile"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Profile) object).getId();
+ return label == null || label.length() == 0 ? getString("_UI_Profile_type") : getString("_UI_Profile_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(Profile.class)) {
+ case PomPackage.PROFILE__ID:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.PROFILE__ACTIVATION:
+ case PomPackage.PROFILE__BUILD:
+ case PomPackage.PROFILE__REPOSITORIES:
+ case PomPackage.PROFILE__PLUGIN_REPOSITORIES:
+ case PomPackage.PROFILE__DEPENDENCIES:
+ case PomPackage.PROFILE__REPORTS:
+ case PomPackage.PROFILE__DEPENDENCY_MANAGEMENT:
+ case PomPackage.PROFILE__DISTRIBUTION_MANAGEMENT:
+ case PomPackage.PROFILE__PROPERTIES:
+ case PomPackage.PROFILE__MODULES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.PROFILE__ACTIVATION,
+ PomFactory.eINSTANCE.createActivation()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.PROFILE__BUILD,
+ PomFactory.eINSTANCE.createBuildBase()));
+
+ newChildDescriptors
+ .add(createChildParameter(PomPackage.Literals.PROFILE__BUILD, PomFactory.eINSTANCE.createBuild()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.PROFILE__REPOSITORIES,
+ PomFactory.eINSTANCE.createRepository()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.PROFILE__PLUGIN_REPOSITORIES,
+ PomFactory.eINSTANCE.createRepository()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.PROFILE__DEPENDENCIES,
+ PomFactory.eINSTANCE.createDependency()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.PROFILE__REPORTS,
+ PomFactory.eINSTANCE.createReportPlugin()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.PROFILE__DEPENDENCY_MANAGEMENT,
+ PomFactory.eINSTANCE.createDependencyManagement()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.PROFILE__DISTRIBUTION_MANAGEMENT,
+ PomFactory.eINSTANCE.createDistributionManagement()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.PROFILE__PROPERTIES,
+ PomFactory.eINSTANCE.createPropertyElement()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.PROFILE__MODULES, ""));
+ }
+
+ /**
+ * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) {
+ Object childFeature = feature;
+ Object childObject = child;
+
+ boolean qualify = childFeature == PomPackage.Literals.PROFILE__REPOSITORIES
+ || childFeature == PomPackage.Literals.PROFILE__PLUGIN_REPOSITORIES;
+
+ if(qualify) {
+ return getString("_UI_CreateChild_text2", new Object[] {getTypeText(childObject), getFeatureText(childFeature),
+ getTypeText(owner)});
+ }
+ return super.getCreateChildText(owner, feature, child, selection);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PropertyElementItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PropertyElementItemProvider.java
index 0015d7cc..a15a29a2 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PropertyElementItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/PropertyElementItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,152 +27,136 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.PropertyElement;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.PropertyElement} object. <!--
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.PropertyElement} object. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class PropertyElementItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public PropertyElementItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addNamePropertyDescriptor(object);
- addValuePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_PropertyElement_name_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_PropertyElement_name_feature",
- "_UI_PropertyElement_type"),
- PomPackage.Literals.PROPERTY_ELEMENT__NAME, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 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_PropertyElement_value_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_PropertyElement_value_feature",
- "_UI_PropertyElement_type"),
- PomPackage.Literals.PROPERTY_ELEMENT__VALUE, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This returns PropertyElement.gif. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/PropertyElement"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((PropertyElement) object).getName();
- return label == null || label.length() == 0 ? getString("_UI_PropertyElement_type")
- : getString("_UI_PropertyElement_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(PropertyElement.class)) {
- case PomPackage.PROPERTY_ELEMENT__NAME:
- case PomPackage.PROPERTY_ELEMENT__VALUE:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class PropertyElementItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PropertyElementItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addNamePropertyDescriptor(object);
+ addValuePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_PropertyElement_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_PropertyElement_name_feature",
+ "_UI_PropertyElement_type"), PomPackage.Literals.PROPERTY_ELEMENT__NAME, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, 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_PropertyElement_value_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_PropertyElement_value_feature",
+ "_UI_PropertyElement_type"), PomPackage.Literals.PROPERTY_ELEMENT__VALUE, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This returns PropertyElement.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/PropertyElement"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((PropertyElement) object).getName();
+ return label == null || label.length() == 0 ? getString("_UI_PropertyElement_type")
+ : getString("_UI_PropertyElement_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(PropertyElement.class)) {
+ case PomPackage.PROPERTY_ELEMENT__NAME:
+ case PomPackage.PROPERTY_ELEMENT__VALUE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/RelocationItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/RelocationItemProvider.java
index 8f35e7ef..49303cc3 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/RelocationItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/RelocationItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,198 +27,164 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.Relocation;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Relocation} object. <!-- begin-user-doc
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Relocation} object. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated
*/
-public class RelocationItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public RelocationItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addGroupIdPropertyDescriptor(object);
- addArtifactIdPropertyDescriptor(object);
- addVersionPropertyDescriptor(object);
- addMessagePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Group Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addGroupIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Relocation_groupId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Relocation_groupId_feature",
- "_UI_Relocation_type"),
- PomPackage.Literals.RELOCATION__GROUP_ID, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
-
- /**
- * This adds a property descriptor for the Artifact Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addArtifactIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Relocation_artifactId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Relocation_artifactId_feature",
- "_UI_Relocation_type"),
- PomPackage.Literals.RELOCATION__ARTIFACT_ID, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Version feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addVersionPropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Relocation_version_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Relocation_version_feature",
- "_UI_Relocation_type"),
- PomPackage.Literals.RELOCATION__VERSION, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
-
- /**
- * This adds a property descriptor for the Message feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addMessagePropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Relocation_message_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Relocation_message_feature",
- "_UI_Relocation_type"),
- PomPackage.Literals.RELOCATION__MESSAGE, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
-
- /**
- * This returns Relocation.gif. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Relocation"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Relocation) object).getGroupId();
- return label == null || label.length() == 0 ? getString("_UI_Relocation_type")
- : getString("_UI_Relocation_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Relocation.class)) {
- case PomPackage.RELOCATION__GROUP_ID:
- case PomPackage.RELOCATION__ARTIFACT_ID:
- case PomPackage.RELOCATION__VERSION:
- case PomPackage.RELOCATION__MESSAGE:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class RelocationItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RelocationItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addGroupIdPropertyDescriptor(object);
+ addArtifactIdPropertyDescriptor(object);
+ addVersionPropertyDescriptor(object);
+ addMessagePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Group Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addGroupIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Relocation_groupId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Relocation_groupId_feature", "_UI_Relocation_type"),
+ PomPackage.Literals.RELOCATION__GROUP_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Artifact Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addArtifactIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Relocation_artifactId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Relocation_artifactId_feature", "_UI_Relocation_type"),
+ PomPackage.Literals.RELOCATION__ARTIFACT_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Version feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addVersionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Relocation_version_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Relocation_version_feature", "_UI_Relocation_type"),
+ PomPackage.Literals.RELOCATION__VERSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Message feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addMessagePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Relocation_message_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Relocation_message_feature", "_UI_Relocation_type"),
+ PomPackage.Literals.RELOCATION__MESSAGE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This returns Relocation.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Relocation"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Relocation) object).getGroupId();
+ return label == null || label.length() == 0 ? getString("_UI_Relocation_type") : getString("_UI_Relocation_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(Relocation.class)) {
+ case PomPackage.RELOCATION__GROUP_ID:
+ case PomPackage.RELOCATION__ARTIFACT_ID:
+ case PomPackage.RELOCATION__VERSION:
+ case PomPackage.RELOCATION__MESSAGE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ReportPluginItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ReportPluginItemProvider.java
index 22196167..39a91d5f 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ReportPluginItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ReportPluginItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,255 +28,220 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.ReportPlugin;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin} object. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.ReportPlugin} object. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class ReportPluginItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ReportPluginItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addGroupIdPropertyDescriptor(object);
- addArtifactIdPropertyDescriptor(object);
- addVersionPropertyDescriptor(object);
- addInheritedPropertyDescriptor(object);
- addConfigurationPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Group Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addGroupIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_ReportPlugin_groupId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_ReportPlugin_groupId_feature",
- "_UI_ReportPlugin_type"),
- PomPackage.Literals.REPORT_PLUGIN__GROUP_ID, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Artifact Id feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addArtifactIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_ReportPlugin_artifactId_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_ReportPlugin_artifactId_feature",
- "_UI_ReportPlugin_type"),
- PomPackage.Literals.REPORT_PLUGIN__ARTIFACT_ID, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Version feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addVersionPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_ReportPlugin_version_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_ReportPlugin_version_feature",
- "_UI_ReportPlugin_type"),
- PomPackage.Literals.REPORT_PLUGIN__VERSION, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Inherited feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addInheritedPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_ReportPlugin_inherited_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_ReportPlugin_inherited_feature",
- "_UI_ReportPlugin_type"),
- PomPackage.Literals.REPORT_PLUGIN__INHERITED, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Configuration feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addConfigurationPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_ReportPlugin_configuration_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_ReportPlugin_configuration_feature",
- "_UI_ReportPlugin_type"),
- PomPackage.Literals.REPORT_PLUGIN__CONFIGURATION, true, false,
- true, null, null, null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures
- .add(PomPackage.Literals.REPORT_PLUGIN__REPORT_SETS);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns ReportPlugin.gif. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/ReportPlugin"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ReportPlugin) object).getGroupId();
- return label == null || label.length() == 0 ? getString("_UI_ReportPlugin_type")
- : getString("_UI_ReportPlugin_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(ReportPlugin.class)) {
- case PomPackage.REPORT_PLUGIN__GROUP_ID:
- case PomPackage.REPORT_PLUGIN__ARTIFACT_ID:
- case PomPackage.REPORT_PLUGIN__VERSION:
- case PomPackage.REPORT_PLUGIN__INHERITED:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.REPORT_PLUGIN__REPORT_SETS:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.REPORT_PLUGIN__REPORT_SETS,
- PomFactory.eINSTANCE.createReportSet()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class ReportPluginItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ReportPluginItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addGroupIdPropertyDescriptor(object);
+ addArtifactIdPropertyDescriptor(object);
+ addVersionPropertyDescriptor(object);
+ addInheritedPropertyDescriptor(object);
+ addConfigurationPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Group Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addGroupIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_ReportPlugin_groupId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ReportPlugin_groupId_feature", "_UI_ReportPlugin_type"),
+ PomPackage.Literals.REPORT_PLUGIN__GROUP_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Artifact Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addArtifactIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ReportPlugin_artifactId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ReportPlugin_artifactId_feature",
+ "_UI_ReportPlugin_type"), PomPackage.Literals.REPORT_PLUGIN__ARTIFACT_ID, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Version feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addVersionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_ReportPlugin_version_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ReportPlugin_version_feature", "_UI_ReportPlugin_type"),
+ PomPackage.Literals.REPORT_PLUGIN__VERSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Inherited feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addInheritedPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_ReportPlugin_inherited_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ReportPlugin_inherited_feature", "_UI_ReportPlugin_type"),
+ PomPackage.Literals.REPORT_PLUGIN__INHERITED, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Configuration feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addConfigurationPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ReportPlugin_configuration_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ReportPlugin_configuration_feature",
+ "_UI_ReportPlugin_type"), PomPackage.Literals.REPORT_PLUGIN__CONFIGURATION, true, false, true, null, null,
+ null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.REPORT_PLUGIN__REPORT_SETS);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns ReportPlugin.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/ReportPlugin"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((ReportPlugin) object).getGroupId();
+ return label == null || label.length() == 0 ? getString("_UI_ReportPlugin_type")
+ : getString("_UI_ReportPlugin_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(ReportPlugin.class)) {
+ case PomPackage.REPORT_PLUGIN__GROUP_ID:
+ case PomPackage.REPORT_PLUGIN__ARTIFACT_ID:
+ case PomPackage.REPORT_PLUGIN__VERSION:
+ case PomPackage.REPORT_PLUGIN__INHERITED:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.REPORT_PLUGIN__REPORT_SETS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.REPORT_PLUGIN__REPORT_SETS,
+ PomFactory.eINSTANCE.createReportSet()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ReportSetItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ReportSetItemProvider.java
index dbd17522..7bbae29f 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ReportSetItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ReportSetItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,212 +28,182 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.ReportSet;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.ReportSet} object. <!-- begin-user-doc
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.ReportSet} object. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated
*/
-public class ReportSetItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ReportSetItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addInheritedPropertyDescriptor(object);
- addConfigurationPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_ReportSet_id_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_ReportSet_id_feature", "_UI_ReportSet_type"),
- PomPackage.Literals.REPORT_SET__ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Inherited feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addInheritedPropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_ReportSet_inherited_feature"),
- getString("_UI_PropertyDescriptor_description",
- "_UI_ReportSet_inherited_feature",
- "_UI_ReportSet_type"),
- PomPackage.Literals.REPORT_SET__INHERITED, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
-
- /**
- * This adds a property descriptor for the Configuration feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addConfigurationPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_ReportSet_configuration_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_ReportSet_configuration_feature",
- "_UI_ReportSet_type"),
- PomPackage.Literals.REPORT_SET__CONFIGURATION, true, false,
- true, null, null, null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.REPORT_SET__REPORTS);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns ReportSet.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/ReportSet"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ReportSet) object).getId();
- return label == null || label.length() == 0 ? getString("_UI_ReportSet_type")
- : getString("_UI_ReportSet_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(ReportSet.class)) {
- case PomPackage.REPORT_SET__ID:
- case PomPackage.REPORT_SET__INHERITED:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.REPORT_SET__REPORTS:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.REPORT_SET__REPORTS, ""));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class ReportSetItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ReportSetItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addIdPropertyDescriptor(object);
+ addInheritedPropertyDescriptor(object);
+ addConfigurationPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(), getString("_UI_ReportSet_id_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ReportSet_id_feature", "_UI_ReportSet_type"),
+ PomPackage.Literals.REPORT_SET__ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Inherited feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addInheritedPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_ReportSet_inherited_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ReportSet_inherited_feature", "_UI_ReportSet_type"),
+ PomPackage.Literals.REPORT_SET__INHERITED, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Configuration feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addConfigurationPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_ReportSet_configuration_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ReportSet_configuration_feature", "_UI_ReportSet_type"),
+ PomPackage.Literals.REPORT_SET__CONFIGURATION, true, false, true, null, null, null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.REPORT_SET__REPORTS);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns ReportSet.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/ReportSet"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((ReportSet) object).getId();
+ return label == null || label.length() == 0 ? getString("_UI_ReportSet_type") : getString("_UI_ReportSet_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(ReportSet.class)) {
+ case PomPackage.REPORT_SET__ID:
+ case PomPackage.REPORT_SET__INHERITED:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.REPORT_SET__REPORTS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.REPORT_SET__REPORTS, ""));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ReportingItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ReportingItemProvider.java
index bf398207..9076d49a 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ReportingItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ReportingItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,194 +28,170 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.Reporting;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Reporting} object. <!-- begin-user-doc
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Reporting} object. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated
*/
-public class ReportingItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ReportingItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addExcludeDefaultsPropertyDescriptor(object);
- addOutputDirectoryPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Exclude Defaults feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addExcludeDefaultsPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Reporting_excludeDefaults_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Reporting_excludeDefaults_feature",
- "_UI_Reporting_type"),
- PomPackage.Literals.REPORTING__EXCLUDE_DEFAULTS, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Output Directory feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addOutputDirectoryPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Reporting_outputDirectory_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Reporting_outputDirectory_feature",
- "_UI_Reporting_type"),
- PomPackage.Literals.REPORTING__OUTPUT_DIRECTORY, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.REPORTING__PLUGINS);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns Reporting.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Reporting"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Reporting) object).getExcludeDefaults();
- return label == null || label.length() == 0 ? getString("_UI_Reporting_type")
- : getString("_UI_Reporting_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Reporting.class)) {
- case PomPackage.REPORTING__EXCLUDE_DEFAULTS:
- case PomPackage.REPORTING__OUTPUT_DIRECTORY:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.REPORTING__PLUGINS:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.REPORTING__PLUGINS, PomFactory.eINSTANCE
- .createReportPlugin()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class ReportingItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ReportingItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addExcludeDefaultsPropertyDescriptor(object);
+ addOutputDirectoryPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Exclude Defaults feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addExcludeDefaultsPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Reporting_excludeDefaults_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Reporting_excludeDefaults_feature", "_UI_Reporting_type"),
+ PomPackage.Literals.REPORTING__EXCLUDE_DEFAULTS, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Output Directory feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addOutputDirectoryPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Reporting_outputDirectory_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Reporting_outputDirectory_feature", "_UI_Reporting_type"),
+ PomPackage.Literals.REPORTING__OUTPUT_DIRECTORY, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.REPORTING__PLUGINS);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns Reporting.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Reporting"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Reporting) object).getExcludeDefaults();
+ return label == null || label.length() == 0 ? getString("_UI_Reporting_type") : getString("_UI_Reporting_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(Reporting.class)) {
+ case PomPackage.REPORTING__EXCLUDE_DEFAULTS:
+ case PomPackage.REPORTING__OUTPUT_DIRECTORY:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.REPORTING__PLUGINS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.REPORTING__PLUGINS,
+ PomFactory.eINSTANCE.createReportPlugin()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/RepositoryItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/RepositoryItemProvider.java
index 19c6618b..f3486f6b 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/RepositoryItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/RepositoryItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,264 +28,228 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.Repository;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Repository} object. <!-- begin-user-doc
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Repository} object. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated
*/
-public class RepositoryItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public RepositoryItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addNamePropertyDescriptor(object);
- addUrlPropertyDescriptor(object);
- addLayoutPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Repository_id_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Repository_id_feature", "_UI_Repository_type"),
- PomPackage.Literals.REPOSITORY__ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Repository_name_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Repository_name_feature", "_UI_Repository_type"),
- PomPackage.Literals.REPOSITORY__NAME, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Url feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addUrlPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Repository_url_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Repository_url_feature", "_UI_Repository_type"),
- PomPackage.Literals.REPOSITORY__URL, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Layout feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addLayoutPropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Repository_layout_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Repository_layout_feature",
- "_UI_Repository_type"),
- PomPackage.Literals.REPOSITORY__LAYOUT, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.REPOSITORY__RELEASES);
- childrenFeatures.add(PomPackage.Literals.REPOSITORY__SNAPSHOTS);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns Repository.gif. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Repository"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Repository) object).getName();
- return label == null || label.length() == 0 ? getString("_UI_Repository_type")
- : getString("_UI_Repository_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Repository.class)) {
- case PomPackage.REPOSITORY__ID:
- case PomPackage.REPOSITORY__NAME:
- case PomPackage.REPOSITORY__URL:
- case PomPackage.REPOSITORY__LAYOUT:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.REPOSITORY__RELEASES:
- case PomPackage.REPOSITORY__SNAPSHOTS:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.REPOSITORY__RELEASES, PomFactory.eINSTANCE
- .createRepositoryPolicy()));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.REPOSITORY__SNAPSHOTS, PomFactory.eINSTANCE
- .createRepositoryPolicy()));
- }
-
- /**
- * This returns the label text for
- * {@link org.eclipse.emf.edit.command.CreateChildCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getCreateChildText(Object owner, Object feature,
- Object child, Collection<?> selection) {
- Object childFeature = feature;
- Object childObject = child;
-
- boolean qualify = childFeature == PomPackage.Literals.REPOSITORY__RELEASES
- || childFeature == PomPackage.Literals.REPOSITORY__SNAPSHOTS;
-
- if (qualify) {
- return getString("_UI_CreateChild_text2", new Object[] {
- getTypeText(childObject), getFeatureText(childFeature),
- getTypeText(owner) });
- }
- return super.getCreateChildText(owner, feature, child, selection);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class RepositoryItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RepositoryItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addIdPropertyDescriptor(object);
+ addNamePropertyDescriptor(object);
+ addUrlPropertyDescriptor(object);
+ addLayoutPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(), getString("_UI_Repository_id_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Repository_id_feature", "_UI_Repository_type"),
+ PomPackage.Literals.REPOSITORY__ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Repository_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Repository_name_feature", "_UI_Repository_type"),
+ PomPackage.Literals.REPOSITORY__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Url feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addUrlPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(), getString("_UI_Repository_url_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Repository_url_feature", "_UI_Repository_type"),
+ PomPackage.Literals.REPOSITORY__URL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Layout feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addLayoutPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Repository_layout_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Repository_layout_feature", "_UI_Repository_type"),
+ PomPackage.Literals.REPOSITORY__LAYOUT, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.REPOSITORY__RELEASES);
+ childrenFeatures.add(PomPackage.Literals.REPOSITORY__SNAPSHOTS);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns Repository.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Repository"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Repository) object).getName();
+ return label == null || label.length() == 0 ? getString("_UI_Repository_type") : getString("_UI_Repository_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(Repository.class)) {
+ case PomPackage.REPOSITORY__ID:
+ case PomPackage.REPOSITORY__NAME:
+ case PomPackage.REPOSITORY__URL:
+ case PomPackage.REPOSITORY__LAYOUT:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.REPOSITORY__RELEASES:
+ case PomPackage.REPOSITORY__SNAPSHOTS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.REPOSITORY__RELEASES,
+ PomFactory.eINSTANCE.createRepositoryPolicy()));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.REPOSITORY__SNAPSHOTS,
+ PomFactory.eINSTANCE.createRepositoryPolicy()));
+ }
+
+ /**
+ * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) {
+ Object childFeature = feature;
+ Object childObject = child;
+
+ boolean qualify = childFeature == PomPackage.Literals.REPOSITORY__RELEASES
+ || childFeature == PomPackage.Literals.REPOSITORY__SNAPSHOTS;
+
+ if(qualify) {
+ return getString("_UI_CreateChild_text2", new Object[] {getTypeText(childObject), getFeatureText(childFeature),
+ getTypeText(owner)});
+ }
+ return super.getCreateChildText(owner, feature, child, selection);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/RepositoryPolicyItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/RepositoryPolicyItemProvider.java
index 08977f15..fc23bbbc 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/RepositoryPolicyItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/RepositoryPolicyItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,174 +27,151 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.RepositoryPolicy;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy} object. <!--
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy} object. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
-public class RepositoryPolicyItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public RepositoryPolicyItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addEnabledPropertyDescriptor(object);
- addUpdatePolicyPropertyDescriptor(object);
- addChecksumPolicyPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Enabled feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addEnabledPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_RepositoryPolicy_enabled_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_RepositoryPolicy_enabled_feature",
- "_UI_RepositoryPolicy_type"),
- PomPackage.Literals.REPOSITORY_POLICY__ENABLED, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Update Policy feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addUpdatePolicyPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_RepositoryPolicy_updatePolicy_feature"),
- getString("_UI_PropertyDescriptor_description",
- "_UI_RepositoryPolicy_updatePolicy_feature",
- "_UI_RepositoryPolicy_type"),
- PomPackage.Literals.REPOSITORY_POLICY__UPDATE_POLICY, true,
- false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Checksum Policy feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addChecksumPolicyPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_RepositoryPolicy_checksumPolicy_feature"),
- getString("_UI_PropertyDescriptor_description",
- "_UI_RepositoryPolicy_checksumPolicy_feature",
- "_UI_RepositoryPolicy_type"),
- PomPackage.Literals.REPOSITORY_POLICY__CHECKSUM_POLICY, true,
- false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
- null));
- }
-
- /**
- * This returns RepositoryPolicy.gif. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/RepositoryPolicy"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((RepositoryPolicy) object).getEnabled();
- return label == null || label.length() == 0 ? getString("_UI_RepositoryPolicy_type")
- : getString("_UI_RepositoryPolicy_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(RepositoryPolicy.class)) {
- case PomPackage.REPOSITORY_POLICY__ENABLED:
- case PomPackage.REPOSITORY_POLICY__UPDATE_POLICY:
- case PomPackage.REPOSITORY_POLICY__CHECKSUM_POLICY:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class RepositoryPolicyItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RepositoryPolicyItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addEnabledPropertyDescriptor(object);
+ addUpdatePolicyPropertyDescriptor(object);
+ addChecksumPolicyPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Enabled feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addEnabledPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_RepositoryPolicy_enabled_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_RepositoryPolicy_enabled_feature",
+ "_UI_RepositoryPolicy_type"), PomPackage.Literals.REPOSITORY_POLICY__ENABLED, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Update Policy feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addUpdatePolicyPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_RepositoryPolicy_updatePolicy_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_RepositoryPolicy_updatePolicy_feature",
+ "_UI_RepositoryPolicy_type"), PomPackage.Literals.REPOSITORY_POLICY__UPDATE_POLICY, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Checksum Policy feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addChecksumPolicyPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_RepositoryPolicy_checksumPolicy_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_RepositoryPolicy_checksumPolicy_feature",
+ "_UI_RepositoryPolicy_type"), PomPackage.Literals.REPOSITORY_POLICY__CHECKSUM_POLICY, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This returns RepositoryPolicy.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/RepositoryPolicy"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((RepositoryPolicy) object).getEnabled();
+ return label == null || label.length() == 0 ? getString("_UI_RepositoryPolicy_type")
+ : getString("_UI_RepositoryPolicy_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(RepositoryPolicy.class)) {
+ case PomPackage.REPOSITORY_POLICY__ENABLED:
+ case PomPackage.REPOSITORY_POLICY__UPDATE_POLICY:
+ case PomPackage.REPOSITORY_POLICY__CHECKSUM_POLICY:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ResourceItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ResourceItemProvider.java
index 51c6a44c..7dc4cb6c 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ResourceItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ResourceItemProvider.java
@@ -16,11 +16,8 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.ecore.EStructuralFeature;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -31,217 +28,188 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.Resource;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Resource} object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Resource} object. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
*
* @generated
*/
-public class ResourceItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ResourceItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addTargetPathPropertyDescriptor(object);
- addFilteringPropertyDescriptor(object);
- addDirectoryPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Target Path feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addTargetPathPropertyDescriptor(Object object) {
- itemPropertyDescriptors
- .add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Resource_targetPath_feature"),
- getString("_UI_PropertyDescriptor_description",
- "_UI_Resource_targetPath_feature",
- "_UI_Resource_type"),
- PomPackage.Literals.RESOURCE__TARGET_PATH, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
- }
-
- /**
- * This adds a property descriptor for the Filtering feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addFilteringPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Resource_filtering_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Resource_filtering_feature", "_UI_Resource_type"),
- PomPackage.Literals.RESOURCE__FILTERING, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Directory feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addDirectoryPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Resource_directory_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Resource_directory_feature", "_UI_Resource_type"),
- PomPackage.Literals.RESOURCE__DIRECTORY, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to
- * deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand},
- * {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in
- * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(
- Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(PomPackage.Literals.RESOURCE__INCLUDES);
- childrenFeatures.add(PomPackage.Literals.RESOURCE__EXCLUDES);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper
- // feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns Resource.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Resource"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Resource) object).getTargetPath();
- return label == null || label.length() == 0 ? getString("_UI_Resource_type")
- : getString("_UI_Resource_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Resource.class)) {
- case PomPackage.RESOURCE__TARGET_PATH:
- case PomPackage.RESOURCE__FILTERING:
- case PomPackage.RESOURCE__DIRECTORY:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- case PomPackage.RESOURCE__INCLUDES:
- case PomPackage.RESOURCE__EXCLUDES:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.RESOURCE__INCLUDES, ""));
-
- newChildDescriptors.add(createChildParameter(
- PomPackage.Literals.RESOURCE__EXCLUDES, ""));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class ResourceItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ResourceItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addTargetPathPropertyDescriptor(object);
+ addFilteringPropertyDescriptor(object);
+ addDirectoryPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Target Path feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addTargetPathPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Resource_targetPath_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Resource_targetPath_feature", "_UI_Resource_type"),
+ PomPackage.Literals.RESOURCE__TARGET_PATH, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Filtering feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addFilteringPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Resource_filtering_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Resource_filtering_feature", "_UI_Resource_type"),
+ PomPackage.Literals.RESOURCE__FILTERING, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Directory feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addDirectoryPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Resource_directory_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Resource_directory_feature", "_UI_Resource_type"),
+ PomPackage.Literals.RESOURCE__DIRECTORY, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if(childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(PomPackage.Literals.RESOURCE__INCLUDES);
+ childrenFeatures.add(PomPackage.Literals.RESOURCE__EXCLUDES);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper
+ // feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns Resource.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Resource"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Resource) object).getTargetPath();
+ return label == null || label.length() == 0 ? getString("_UI_Resource_type") : getString("_UI_Resource_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(Resource.class)) {
+ case PomPackage.RESOURCE__TARGET_PATH:
+ case PomPackage.RESOURCE__FILTERING:
+ case PomPackage.RESOURCE__DIRECTORY:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PomPackage.RESOURCE__INCLUDES:
+ case PomPackage.RESOURCE__EXCLUDES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.RESOURCE__INCLUDES, ""));
+
+ newChildDescriptors.add(createChildParameter(PomPackage.Literals.RESOURCE__EXCLUDES, ""));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ScmItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ScmItemProvider.java
index 82db76ba..dc02439b 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ScmItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/ScmItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,187 +27,161 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.Scm;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Scm} object. <!-- begin-user-doc --> <!--
- * end-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Scm} object. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
*
* @generated
*/
-public class ScmItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ScmItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addConnectionPropertyDescriptor(object);
- addDeveloperConnectionPropertyDescriptor(object);
- addTagPropertyDescriptor(object);
- addUrlPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Connection feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addConnectionPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Scm_connection_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Scm_connection_feature", "_UI_Scm_type"),
- PomPackage.Literals.SCM__CONNECTION, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Developer Connection feature.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addDeveloperConnectionPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Scm_developerConnection_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Scm_developerConnection_feature", "_UI_Scm_type"),
- PomPackage.Literals.SCM__DEVELOPER_CONNECTION, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Tag feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addTagPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Scm_tag_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Scm_tag_feature", "_UI_Scm_type"),
- PomPackage.Literals.SCM__TAG, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Url feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addUrlPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Scm_url_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Scm_url_feature", "_UI_Scm_type"),
- PomPackage.Literals.SCM__URL, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This returns Scm.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Scm"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Scm) object).getConnection();
- return label == null || label.length() == 0 ? getString("_UI_Scm_type")
- : getString("_UI_Scm_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Scm.class)) {
- case PomPackage.SCM__CONNECTION:
- case PomPackage.SCM__DEVELOPER_CONNECTION:
- case PomPackage.SCM__TAG:
- case PomPackage.SCM__URL:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class ScmItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ScmItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addConnectionPropertyDescriptor(object);
+ addDeveloperConnectionPropertyDescriptor(object);
+ addTagPropertyDescriptor(object);
+ addUrlPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Connection feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addConnectionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(), getString("_UI_Scm_connection_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Scm_connection_feature", "_UI_Scm_type"),
+ PomPackage.Literals.SCM__CONNECTION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Developer Connection feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addDeveloperConnectionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Scm_developerConnection_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Scm_developerConnection_feature", "_UI_Scm_type"),
+ PomPackage.Literals.SCM__DEVELOPER_CONNECTION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Tag feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addTagPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Scm_tag_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Scm_tag_feature", "_UI_Scm_type"),
+ PomPackage.Literals.SCM__TAG, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Url feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addUrlPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Scm_url_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Scm_url_feature", "_UI_Scm_type"),
+ PomPackage.Literals.SCM__URL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This returns Scm.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Scm"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Scm) object).getConnection();
+ return label == null || label.length() == 0 ? getString("_UI_Scm_type") : getString("_UI_Scm_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(Scm.class)) {
+ case PomPackage.SCM__CONNECTION:
+ case PomPackage.SCM__DEVELOPER_CONNECTION:
+ case PomPackage.SCM__TAG:
+ case PomPackage.SCM__URL:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/SiteItemProvider.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/SiteItemProvider.java
index f03c7db7..26501aee 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/SiteItemProvider.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/provider/SiteItemProvider.java
@@ -16,9 +16,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -29,168 +27,144 @@ import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.Site;
/**
- * This is the item provider adapter for a
- * {@link org.eclipse.m2e.model.edit.pom.Site} object. <!-- begin-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.m2e.model.edit.pom.Site} object. <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
-public class SiteItemProvider extends ItemProviderAdapter implements
- IEditingDomainItemProvider, IStructuredItemContentProvider,
- ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public SiteItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addNamePropertyDescriptor(object);
- addUrlPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Site_id_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Site_id_feature", "_UI_Site_type"),
- PomPackage.Literals.SITE__ID, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Site_name_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Site_name_feature", "_UI_Site_type"),
- PomPackage.Literals.SITE__NAME, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This adds a property descriptor for the Url feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addUrlPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(
- ((ComposeableAdapterFactory) adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_Site_url_feature"), getString(
- "_UI_PropertyDescriptor_description",
- "_UI_Site_url_feature", "_UI_Site_type"),
- PomPackage.Literals.SITE__URL, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
- }
-
- /**
- * This returns Site.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage(
- "full/obj16/Site"));
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Site) object).getName();
- return label == null || label.length() == 0 ? getString("_UI_Site_type")
- : getString("_UI_Site_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
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Site.class)) {
- case PomPackage.SITE__ID:
- case PomPackage.SITE__NAME:
- case PomPackage.SITE__URL:
- fireNotifyChanged(new ViewerNotification(notification, notification
- .getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing the children that can be created under this object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(
- Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return PomEditPlugin.INSTANCE;
- }
+public class SiteItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public SiteItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if(itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addIdPropertyDescriptor(object);
+ addNamePropertyDescriptor(object);
+ addUrlPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Site_id_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Site_id_feature", "_UI_Site_type"),
+ PomPackage.Literals.SITE__ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Site_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Site_name_feature", "_UI_Site_type"),
+ PomPackage.Literals.SITE__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Url feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addUrlPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_Site_url_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Site_url_feature", "_UI_Site_type"),
+ PomPackage.Literals.SITE__URL, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This returns Site.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Site"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Site) object).getName();
+ return label == null || label.length() == 0 ? getString("_UI_Site_type") : getString("_UI_Site_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
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch(notification.getFeatureID(Site.class)) {
+ case PomPackage.SITE__ID:
+ case PomPackage.SITE__NAME:
+ case PomPackage.SITE__URL:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under
+ * this object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return PomEditPlugin.INSTANCE;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ConfigurationAdapter.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ConfigurationAdapter.java
index 918e1e87..ac42555d 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ConfigurationAdapter.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ConfigurationAdapter.java
@@ -11,11 +11,14 @@
package org.eclipse.m2e.model.edit.pom.translators;
-import org.eclipse.m2e.model.edit.pom.Configuration;
-import org.eclipse.m2e.model.edit.pom.impl.ConfigurationImpl;
+import org.w3c.dom.Element;
+
import org.eclipse.wst.sse.core.internal.provisional.INodeAdapter;
import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier;
-import org.w3c.dom.Element;
+
+import org.eclipse.m2e.model.edit.pom.Configuration;
+import org.eclipse.m2e.model.edit.pom.impl.ConfigurationImpl;
+
/**
* Synchronizes configuration elements between XML and model
@@ -24,38 +27,37 @@ import org.w3c.dom.Element;
*/
class ConfigurationAdapter extends TranslatorAdapter implements INodeAdapter {
- private Configuration modelObject;
+ private Configuration modelObject;
- public ConfigurationAdapter(SSESyncResource resource, Element node,
- Configuration object) {
- super(resource);
- this.node = node;
- this.modelObject = object;
- load();
- }
+ public ConfigurationAdapter(SSESyncResource resource, Element node, Configuration object) {
+ super(resource);
+ this.node = node;
+ this.modelObject = object;
+ load();
+ }
- public boolean isAdapterForType(Object type) {
- return ConfigurationAdapter.class.equals(type);
- }
+ public boolean isAdapterForType(Object type) {
+ return ConfigurationAdapter.class.equals(type);
+ }
- public void notifyChanged(INodeNotifier notifier, int eventType,
- Object changedFeature, Object oldValue, Object newValue, int pos) {
+ public void notifyChanged(INodeNotifier notifier, int eventType, Object changedFeature, Object oldValue,
+ Object newValue, int pos) {
// A catch-all notificator.
// The configuration section can differ with every plugin, so we cannot really have a
// static EMF model. So we'll just notify the subscribers and let them act accordingly.
- ((ConfigurationImpl)modelObject).doNotify(eventType, changedFeature, oldValue, newValue);
- }
-
- @Override
- public void load() {
- ((ConfigurationImpl)modelObject).setConfigurationNode(node);
- }
-
- @Override
- public void save() {
- }
-
- @Override
- public void update(Object oldValue, Object newValue, int index) {
- }
-} \ No newline at end of file
+ ((ConfigurationImpl) modelObject).doNotify(eventType, changedFeature, oldValue, newValue);
+ }
+
+ @Override
+ public void load() {
+ ((ConfigurationImpl) modelObject).setConfigurationNode(node);
+ }
+
+ @Override
+ public void save() {
+ }
+
+ @Override
+ public void update(Object oldValue, Object newValue, int index) {
+ }
+}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ListAdapter.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ListAdapter.java
index f3deb3e8..9f0ed218 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ListAdapter.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ListAdapter.java
@@ -13,218 +13,209 @@ package org.eclipse.m2e.model.edit.pom.translators;
import java.util.List;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.Text;
+
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.Text;
+
+import org.eclipse.m2e.model.edit.pom.PomFactory;
+
/**
- * Translates a multi valued feature into a <foos> <foo>bar</foo> </foos>
- *
- * structure.
+ * Translates a multi valued feature into a <foos> <foo>bar</foo> </foos> structure.
*
* @author Mike Poindexter
- *
*/
@SuppressWarnings("restriction")
public class ListAdapter extends TranslatorAdapter {
protected List list;
- private EClass elementType;
-
- public ListAdapter(SSESyncResource resc, Element containerNode,
- List<?> list, EClass elementType) {
- super(resc);
- this.node = containerNode;
- this.elementType = elementType;
- this.list = list;
- this.resource = resc;
- }
-
- public void notifyChanged(INodeNotifier notifier, int eventType,
- Object changedFeature, Object oldValue, Object newValue, int pos) {
- if (resource.isProcessEvents()) {
- try {
- resource.setProcessEvents(false);
- if (INodeNotifier.ADD == eventType
- && newValue instanceof Element) {
- if (notifier == node) {
- IDOMElement addedElement = (IDOMElement) newValue;
- int idx = absoluteIndexOf(node, addedElement);
- if (idx == -1)
- idx = 0;
- list.add(idx, getObject(addedElement, true));
- }
- } else if (INodeNotifier.REMOVE == eventType
- && oldValue instanceof Element) {
- if (notifier == node) {
- // Remove the corresponding object from the model.
- Object o = getObject((Element) oldValue, false);
- if (o instanceof String && o.toString().length() == 0) {
- // the removed oldValue has unfortunately no text value in it, so no way to identify the
- // remove entry.
- // -> just remove all and add the ones that stayed around.
- // only after checking that the object to be removed is a string, just to be sure..
+ private EClass elementType;
+
+ public ListAdapter(SSESyncResource resc, Element containerNode, List<?> list, EClass elementType) {
+ super(resc);
+ this.node = containerNode;
+ this.elementType = elementType;
+ this.list = list;
+ this.resource = resc;
+ }
+
+ public void notifyChanged(INodeNotifier notifier, int eventType, Object changedFeature, Object oldValue,
+ Object newValue, int pos) {
+ if(resource.isProcessEvents()) {
+ try {
+ resource.setProcessEvents(false);
+ if(INodeNotifier.ADD == eventType && newValue instanceof Element) {
+ if(notifier == node) {
+ IDOMElement addedElement = (IDOMElement) newValue;
+ int idx = absoluteIndexOf(node, addedElement);
+ if(idx == -1)
+ idx = 0;
+ list.add(idx, getObject(addedElement, true));
+ }
+ } else if(INodeNotifier.REMOVE == eventType && oldValue instanceof Element) {
+ if(notifier == node) {
+ // Remove the corresponding object from the model.
+ Object o = getObject((Element) oldValue, false);
+ if(o instanceof String && o.toString().length() == 0) {
+ // the removed oldValue has unfortunately no text value in it, so no way to identify the
+ // remove entry.
+ // -> just remove all and add the ones that stayed around.
+ // only after checking that the object to be removed is a string, just to be sure..
NodeList lst = node.getChildNodes();
list.clear();
- for (int i = 0; i < lst.getLength(); i++) {
+ for(int i = 0; i < lst.getLength(); i++ ) {
Node nd = lst.item(i);
- if (nd instanceof Element) {
- list.add(getElementText((Element)nd));
+ if(nd instanceof Element) {
+ list.add(getElementText((Element) nd));
}
}
- } else if (o != null) {
- list.remove(o);
- }
- // TODO: What to do here? We don't know which model
- // child
- // to remove. I don't think this can happen. -MDP
- }
- } else if (changedFeature instanceof Text
- && elementType == null) {
- if (notifier != node && notifier instanceof Element) {
- Element e = (Element) notifier;
- int idx = absoluteIndexOf(node, e);
- if (idx < 0)
- idx = 0;
- list.remove(idx);
- list.add(idx, getObject(e, true));
- }
- }
- } finally {
- resource.setProcessEvents(true);
- }
- }
- }
-
- public void add(Object newValue, int position) {
- Object value = getElementValue(newValue);
- if (value instanceof EObject) {
- EObject eo = (EObject) value;
- if (EcoreUtil.getAdapter(eo.eAdapters(), ModelObjectAdapter.class) == null) {
- String tagName = getElementName(newValue);
- Element newElement = node.getOwnerDocument().createElement(
- tagName);
- Node before = getNthChildWithName(node, "*", position); //$NON-NLS-1$
- if (before != null) {
- node.insertBefore(newElement, before);
- } else {
- node.appendChild(newElement);
- }
-
- ModelObjectAdapter newAdapter = new ModelObjectAdapter(
- resource, eo, newElement);
- eo.eAdapters().add(newAdapter);
- formatNode(newElement);
- ((IDOMNode) newElement).addAdapter(newAdapter);
- newAdapter.save();
-
- }
- } else {
- String tagName = getElementName(newValue);
- Element newElement = node.getOwnerDocument().createElement(tagName);
- org.w3c.dom.Text text = node.getOwnerDocument().createTextNode(
- value.toString());
- newElement.appendChild(text);
- Node before = getNthChildWithName(node, "*", position); //$NON-NLS-1$
- if (before != null) {
- node.insertBefore(newElement, before);
- } else {
- node.appendChild(newElement);
- }
- formatNode(newElement);
- ((IDOMNode) newElement).addAdapter(this);
- }
- }
-
- public void remove(Object oldValue, int position) {
- if (position == -1) {
- position = 0;
- }
- Element n = getNthChildWithName(node, "*", position); //$NON-NLS-1$
-
- if (n != null)
- removeChildElement(n);
- }
-
- @Override
- public void update(Object oldValue, Object newValue, int index) {
- remove(oldValue, index);
- add(newValue, index);
- }
-
- protected String getElementName(Object o) {
- String name = node.getLocalName();
- if (name.endsWith("ies")) //$NON-NLS-1$
- name = name.replaceAll("ies$", "y"); //$NON-NLS-1$ //$NON-NLS-2$
- else
- name = name.replaceAll("s$", ""); //$NON-NLS-1$ //$NON-NLS-2$
- return name;
- }
-
- protected Object getElementValue(Object o) {
- return o;
- }
-
- protected Object getObject(Element childElement, boolean createIfNeeded) {
- if (elementType == null) {
- ListAdapter existing = (ListAdapter) ((IDOMNode) childElement)
- .getExistingAdapter(ListAdapter.class);
- if (existing == null) {
- ((IDOMNode) childElement).addAdapter(this);
- }
- return getElementText(childElement);
- } else {
- ModelObjectAdapter existing = (ModelObjectAdapter) ((IDOMNode) childElement)
- .getExistingAdapter(ModelObjectAdapter.class);
- if (existing == null) {
- if (createIfNeeded) {
- EObject eo = PomFactory.eINSTANCE.create(elementType);
- existing = new ModelObjectAdapter(resource, eo,
- childElement);
- eo.eAdapters().add(existing);
- ((IDOMNode) childElement).addAdapter(existing);
- existing.load();
- return eo;
- } else {
- return null;
- }
- } else {
- return existing.getTarget();
- }
- }
- }
-
- public boolean isAdapterForType(Object type) {
- return ListAdapter.class.equals(type);
- }
-
- @Override
- public void load() {
- //MNGECLIPSE-2345, MNGECLIPSE-2694 when load is called on a list adapter already containing items,
- // the old items shall be discarded to avoid duplicates.
- list.clear();
- NodeList children = node.getChildNodes();
- int nChildren = children.getLength();
- for (int i = 0; i < nChildren; i++) {
- Node child = children.item(i);
- if (child instanceof Element) {
+ } else if(o != null) {
+ list.remove(o);
+ }
+ // TODO: What to do here? We don't know which model
+ // child
+ // to remove. I don't think this can happen. -MDP
+ }
+ } else if(changedFeature instanceof Text && elementType == null) {
+ if(notifier != node && notifier instanceof Element) {
+ Element e = (Element) notifier;
+ int idx = absoluteIndexOf(node, e);
+ if(idx < 0)
+ idx = 0;
+ list.remove(idx);
+ list.add(idx, getObject(e, true));
+ }
+ }
+ } finally {
+ resource.setProcessEvents(true);
+ }
+ }
+ }
+
+ public void add(Object newValue, int position) {
+ Object value = getElementValue(newValue);
+ if(value instanceof EObject) {
+ EObject eo = (EObject) value;
+ if(EcoreUtil.getAdapter(eo.eAdapters(), ModelObjectAdapter.class) == null) {
+ String tagName = getElementName(newValue);
+ Element newElement = node.getOwnerDocument().createElement(tagName);
+ Node before = getNthChildWithName(node, "*", position); //$NON-NLS-1$
+ if(before != null) {
+ node.insertBefore(newElement, before);
+ } else {
+ node.appendChild(newElement);
+ }
+
+ ModelObjectAdapter newAdapter = new ModelObjectAdapter(resource, eo, newElement);
+ eo.eAdapters().add(newAdapter);
+ formatNode(newElement);
+ ((IDOMNode) newElement).addAdapter(newAdapter);
+ newAdapter.save();
+
+ }
+ } else {
+ String tagName = getElementName(newValue);
+ Element newElement = node.getOwnerDocument().createElement(tagName);
+ org.w3c.dom.Text text = node.getOwnerDocument().createTextNode(value.toString());
+ newElement.appendChild(text);
+ Node before = getNthChildWithName(node, "*", position); //$NON-NLS-1$
+ if(before != null) {
+ node.insertBefore(newElement, before);
+ } else {
+ node.appendChild(newElement);
+ }
+ formatNode(newElement);
+ ((IDOMNode) newElement).addAdapter(this);
+ }
+ }
+
+ public void remove(Object oldValue, int position) {
+ if(position == -1) {
+ position = 0;
+ }
+ Element n = getNthChildWithName(node, "*", position); //$NON-NLS-1$
+
+ if(n != null)
+ removeChildElement(n);
+ }
+
+ @Override
+ public void update(Object oldValue, Object newValue, int index) {
+ remove(oldValue, index);
+ add(newValue, index);
+ }
+
+ protected String getElementName(Object o) {
+ String name = node.getLocalName();
+ if(name.endsWith("ies")) //$NON-NLS-1$
+ name = name.replaceAll("ies$", "y"); //$NON-NLS-1$ //$NON-NLS-2$
+ else
+ name = name.replaceAll("s$", ""); //$NON-NLS-1$ //$NON-NLS-2$
+ return name;
+ }
+
+ protected Object getElementValue(Object o) {
+ return o;
+ }
+
+ protected Object getObject(Element childElement, boolean createIfNeeded) {
+ if(elementType == null) {
+ ListAdapter existing = (ListAdapter) ((IDOMNode) childElement).getExistingAdapter(ListAdapter.class);
+ if(existing == null) {
+ ((IDOMNode) childElement).addAdapter(this);
+ }
+ return getElementText(childElement);
+ } else {
+ ModelObjectAdapter existing = (ModelObjectAdapter) ((IDOMNode) childElement)
+ .getExistingAdapter(ModelObjectAdapter.class);
+ if(existing == null) {
+ if(createIfNeeded) {
+ EObject eo = PomFactory.eINSTANCE.create(elementType);
+ existing = new ModelObjectAdapter(resource, eo, childElement);
+ eo.eAdapters().add(existing);
+ ((IDOMNode) childElement).addAdapter(existing);
+ existing.load();
+ return eo;
+ } else {
+ return null;
+ }
+ } else {
+ return existing.getTarget();
+ }
+ }
+ }
+
+ public boolean isAdapterForType(Object type) {
+ return ListAdapter.class.equals(type);
+ }
+
+ @Override
+ public void load() {
+ //MNGECLIPSE-2345, MNGECLIPSE-2694 when load is called on a list adapter already containing items,
+ // the old items shall be discarded to avoid duplicates.
+ list.clear();
+ NodeList children = node.getChildNodes();
+ int nChildren = children.getLength();
+ for(int i = 0; i < nChildren; i++ ) {
+ Node child = children.item(i);
+ if(child instanceof Element) {
list.add(getObject((Element) child, true));
- }
- }
- }
-
- @Override
- public void save() {
- for (Object o : list) {
- add(o, -1);
- }
- }
+ }
+ }
+ }
+
+ @Override
+ public void save() {
+ for(Object o : list) {
+ add(o, -1);
+ }
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ModelObjectAdapter.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ModelObjectAdapter.java
index eab5cb15..9395c9ce 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ModelObjectAdapter.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ModelObjectAdapter.java
@@ -16,6 +16,10 @@ import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.Notifier;
@@ -23,304 +27,275 @@ import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.wst.sse.core.internal.provisional.INodeAdapter;
+import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier;
+import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement;
+
import org.eclipse.m2e.model.edit.pom.Configuration;
import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.m2e.model.edit.pom.PomPackage;
import org.eclipse.m2e.model.edit.pom.PropertyElement;
-import org.eclipse.wst.sse.core.internal.provisional.INodeAdapter;
-import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
+
/**
- * Listens for notifications from the dom model and the E model, and syncs the
- * models.
+ * Listens for notifications from the dom model and the E model, and syncs the models.
*
* @author Mike Poindexter
*/
-public class ModelObjectAdapter extends TranslatorAdapter implements Adapter,
- INodeAdapter {
- private SSESyncResource resource;
-
- private EObject eobject;
-
- private Notifier target;
-
- private Map<EStructuralFeature, TranslatorAdapter> childAdapters = new LinkedHashMap<EStructuralFeature, TranslatorAdapter>();
-
- public ModelObjectAdapter(SSESyncResource resource, EObject eobject,
- Element node) {
- super(resource);
- this.eobject = eobject;
- this.node = node;
- this.resource = resource;
- }
-
- public boolean isAdapterForType(Object type) {
- return ModelObjectAdapter.class.equals(type);
- }
-
- public void notifyChanged(INodeNotifier notifier, int eventType,
- Object changedFeature, Object oldValue, Object newValue, int pos) {
- if (resource.isProcessEvents()) {
- resource.setProcessEvents(false);
- try {
- if (INodeNotifier.ADD == eventType
- && newValue instanceof Element) {
- if (notifier == node) {
- IDOMElement addedElement = (IDOMElement) newValue;
- EStructuralFeature feature = eobject.eClass()
- .getEStructuralFeature(
- addedElement.getLocalName());
- if (feature != null) {
- createOrGetChildAdapter(feature).load();
- }
- }
- } else if (INodeNotifier.REMOVE == eventType
- && oldValue instanceof Element) {
- if (notifier == node) {
- IDOMElement removedElement = (IDOMElement) oldValue;
- EStructuralFeature feature = eobject.eClass()
- .getEStructuralFeature(
- removedElement.getLocalName());
- if (feature != null) {
- eobject.eUnset(feature);
- childAdapters.remove(feature);
- }
- }
- }
- } finally {
- resource.setProcessEvents(true);
- }
- }
- }
-
- public void notifyChanged(Notification notification) {
- if (resource.isProcessEvents()) {
- resource.setProcessEvents(false);
- try {
- EStructuralFeature feature = (EStructuralFeature) notification
- .getFeature();
- switch (notification.getEventType()) {
-
- case Notification.SET:
- if (null == notification.getNewValue()
- || "".equals(notification.getNewValue())) { //$NON-NLS-1$
- removeDomChild(feature);
- } else {
- TranslatorAdapter setAdapter = createOrGetChildAdapter(feature);
- setAdapter.update(notification.getOldValue(),
- notification.getNewValue(), notification
- .getPosition());
- }
-
- break;
-
- case Notification.ADD:
- ListAdapter addListAdapter = (ListAdapter) createOrGetChildAdapter(feature);
- addListAdapter.add(notification.getNewValue(), notification
- .getPosition());
- break;
-
- case Notification.ADD_MANY:
- ListAdapter addManyListAdapter = (ListAdapter) createOrGetChildAdapter(feature);
- Collection<?> addMany = (Collection<?>) notification
- .getNewValue();
- int addPosition = notification.getPosition();
- int addIdx = addPosition;
- for (Object object : addMany) {
- addManyListAdapter
- .add(
- object,
- addPosition == Notification.NO_INDEX ? Notification.NO_INDEX
- : addIdx);
- addIdx++;
- }
- break;
-
- case Notification.REMOVE:
- ListAdapter removeListAdapter = (ListAdapter) createOrGetChildAdapter(feature);
- removeListAdapter.remove(notification.getOldValue(),
- notification.getPosition());
- break;
-
- case Notification.UNSET:
- removeDomChild(feature);
- break;
-
- case Notification.REMOVE_MANY:
- ListAdapter removeManyListAdapter = (ListAdapter) createOrGetChildAdapter(feature);
- Collection<?> removeMany = (Collection<?>) notification
- .getOldValue();
- int removePosition = notification.getPosition();
- int removeIdx = removePosition;
- for (Object object : removeMany) {
- removeManyListAdapter
- .remove(
- object,
- removePosition == Notification.NO_INDEX ? Notification.NO_INDEX
- : removeIdx);
- removeIdx++;
- }
- break;
-
- }
- } finally {
- resource.setProcessEvents(true);
- }
- }
-
- }
-
- @Override
- public void update(Object oldValue, Object newValObject, int index) {
- save();
- }
-
- private TranslatorAdapter createOrGetChildAdapter(EStructuralFeature feature) {
- TranslatorAdapter ret = childAdapters.get(feature);
- if (null == ret) {
- Element element = getFirstChildWithName(node, feature.getName());
- boolean isNew = false;
- if (element == null) {
- element = node.getOwnerDocument().createElement(feature.getName());
- insertElement(element);
- isNew = true;
- }
-
- if (feature.isMany()) {
- EClass elementType = null;
- if (feature instanceof EReference) {
- elementType = ((EReference) feature).getEReferenceType();
- }
-
- if (elementType != null && elementType.getClassifierID() == PomPackage.Literals.PROPERTY_ELEMENT.getClassifierID()) {
- ret = new PropertiesAdapter(resource, element, (List<PropertyElement>) eobject.eGet(feature));
- } else {
- ret = new ListAdapter(resource, element, (List<?>) eobject.eGet(feature), elementType);
- }
- } else if (feature instanceof EReference) {
- EReference ref = (EReference) feature;
- EObject eo = (EObject) eobject.eGet(feature);
- if (null == eo) {
- eo = PomFactory.eINSTANCE.create(ref.getEReferenceType());
- eobject.eSet(ref, eo);
- }
-
- EClass elementType = ref.getEReferenceType();
- if (elementType != null && elementType.getClassifierID() == PomPackage.Literals.CONFIGURATION.getClassifierID()) {
- ret = new ConfigurationAdapter(resource, element, (Configuration)eobject.eGet(feature));
+public class ModelObjectAdapter extends TranslatorAdapter implements Adapter, INodeAdapter {
+ private SSESyncResource resource;
+
+ private EObject eobject;
+
+ private Notifier target;
+
+ private Map<EStructuralFeature, TranslatorAdapter> childAdapters = new LinkedHashMap<EStructuralFeature, TranslatorAdapter>();
+
+ public ModelObjectAdapter(SSESyncResource resource, EObject eobject, Element node) {
+ super(resource);
+ this.eobject = eobject;
+ this.node = node;
+ this.resource = resource;
+ }
+
+ public boolean isAdapterForType(Object type) {
+ return ModelObjectAdapter.class.equals(type);
+ }
+
+ public void notifyChanged(INodeNotifier notifier, int eventType, Object changedFeature, Object oldValue,
+ Object newValue, int pos) {
+ if(resource.isProcessEvents()) {
+ resource.setProcessEvents(false);
+ try {
+ if(INodeNotifier.ADD == eventType && newValue instanceof Element) {
+ if(notifier == node) {
+ IDOMElement addedElement = (IDOMElement) newValue;
+ EStructuralFeature feature = eobject.eClass().getEStructuralFeature(addedElement.getLocalName());
+ if(feature != null) {
+ createOrGetChildAdapter(feature).load();
+ }
+ }
+ } else if(INodeNotifier.REMOVE == eventType && oldValue instanceof Element) {
+ if(notifier == node) {
+ IDOMElement removedElement = (IDOMElement) oldValue;
+ EStructuralFeature feature = eobject.eClass().getEStructuralFeature(removedElement.getLocalName());
+ if(feature != null) {
+ eobject.eUnset(feature);
+ childAdapters.remove(feature);
+ }
+ }
+ }
+ } finally {
+ resource.setProcessEvents(true);
+ }
+ }
+ }
+
+ public void notifyChanged(Notification notification) {
+ if(resource.isProcessEvents()) {
+ resource.setProcessEvents(false);
+ try {
+ EStructuralFeature feature = (EStructuralFeature) notification.getFeature();
+ switch(notification.getEventType()) {
+
+ case Notification.SET:
+ if(null == notification.getNewValue() || "".equals(notification.getNewValue())) { //$NON-NLS-1$
+ removeDomChild(feature);
+ } else {
+ TranslatorAdapter setAdapter = createOrGetChildAdapter(feature);
+ setAdapter.update(notification.getOldValue(), notification.getNewValue(), notification.getPosition());
+ }
+
+ break;
+
+ case Notification.ADD:
+ ListAdapter addListAdapter = (ListAdapter) createOrGetChildAdapter(feature);
+ addListAdapter.add(notification.getNewValue(), notification.getPosition());
+ break;
+
+ case Notification.ADD_MANY:
+ ListAdapter addManyListAdapter = (ListAdapter) createOrGetChildAdapter(feature);
+ Collection<?> addMany = (Collection<?>) notification.getNewValue();
+ int addPosition = notification.getPosition();
+ int addIdx = addPosition;
+ for(Object object : addMany) {
+ addManyListAdapter.add(object, addPosition == Notification.NO_INDEX ? Notification.NO_INDEX : addIdx);
+ addIdx++ ;
+ }
+ break;
+
+ case Notification.REMOVE:
+ ListAdapter removeListAdapter = (ListAdapter) createOrGetChildAdapter(feature);
+ removeListAdapter.remove(notification.getOldValue(), notification.getPosition());
+ break;
+
+ case Notification.UNSET:
+ removeDomChild(feature);
+ break;
+
+ case Notification.REMOVE_MANY:
+ ListAdapter removeManyListAdapter = (ListAdapter) createOrGetChildAdapter(feature);
+ Collection<?> removeMany = (Collection<?>) notification.getOldValue();
+ int removePosition = notification.getPosition();
+ int removeIdx = removePosition;
+ for(Object object : removeMany) {
+ removeManyListAdapter.remove(object, removePosition == Notification.NO_INDEX ? Notification.NO_INDEX
+ : removeIdx);
+ removeIdx++ ;
+ }
+ break;
+
+ }
+ } finally {
+ resource.setProcessEvents(true);
+ }
+ }
+
+ }
+
+ @Override
+ public void update(Object oldValue, Object newValObject, int index) {
+ save();
+ }
+
+ private TranslatorAdapter createOrGetChildAdapter(EStructuralFeature feature) {
+ TranslatorAdapter ret = childAdapters.get(feature);
+ if(null == ret) {
+ Element element = getFirstChildWithName(node, feature.getName());
+ boolean isNew = false;
+ if(element == null) {
+ element = node.getOwnerDocument().createElement(feature.getName());
+ insertElement(element);
+ isNew = true;
+ }
+
+ if(feature.isMany()) {
+ EClass elementType = null;
+ if(feature instanceof EReference) {
+ elementType = ((EReference) feature).getEReferenceType();
+ }
+
+ if(elementType != null
+ && elementType.getClassifierID() == PomPackage.Literals.PROPERTY_ELEMENT.getClassifierID()) {
+ ret = new PropertiesAdapter(resource, element, (List<PropertyElement>) eobject.eGet(feature));
+ } else {
+ ret = new ListAdapter(resource, element, (List<?>) eobject.eGet(feature), elementType);
+ }
+ } else if(feature instanceof EReference) {
+ EReference ref = (EReference) feature;
+ EObject eo = (EObject) eobject.eGet(feature);
+ if(null == eo) {
+ eo = PomFactory.eINSTANCE.create(ref.getEReferenceType());
+ eobject.eSet(ref, eo);
+ }
+
+ EClass elementType = ref.getEReferenceType();
+ if(elementType != null && elementType.getClassifierID() == PomPackage.Literals.CONFIGURATION.getClassifierID()) {
+ ret = new ConfigurationAdapter(resource, element, (Configuration) eobject.eGet(feature));
} else {
ret = new ModelObjectAdapter(this.resource, eo, element);
((ModelObjectAdapter) ret).eobject.eAdapters().add((ModelObjectAdapter) ret);
}
- } else {
- ret = new ValueUpdateAdapter(resource, element, eobject, feature);
- }
- if (isNew) {
- formatNode(element);
- }
- ((IDOMElement) element).addAdapter(ret);
- childAdapters.put(feature, ret);
- }
- return ret;
- }
-
- /**
- * Removes the dom child matching the feature.
- *
- * @param feature
- */
- private void removeDomChild(EStructuralFeature feature) {
- TranslatorAdapter ta = childAdapters.get(feature);
- if (ta != null && ta.getNode() != null) {
- removeChildElement(ta.getNode());
- }
- childAdapters.remove(feature);
- }
-
- /**
- * Inserts an element under the current node, attempting to preserve proper
- * node ordering.
- *
- * @param element
- * @param position
- */
- private void insertElement(Element element) {
- Node beforeNode = null;
- boolean searching = false;
- for (EStructuralFeature feature : eobject.eClass()
- .getEStructuralFeatures()) {
- if (element.getLocalName().equals(feature.getName())) {
- searching = true;
- }
- if (searching) {
- beforeNode = getFirstChildWithName(node, feature.getName());
- if (beforeNode != null) {
- break;
- }
- }
- }
-
- if (beforeNode == null) {
- beforeNode = node.getLastChild();
- while (!(beforeNode == null
- || beforeNode.getPreviousSibling() instanceof Element || beforeNode
- .getPreviousSibling() == null)) {
- beforeNode = beforeNode.getPreviousSibling();
- }
- }
-
- if (beforeNode == null) {
- node.appendChild(element);
- } else {
- node.insertBefore(element, beforeNode);
- }
- }
-
- /**
- * Populates all child model objects from the child nodes in the dom tree.
- */
- public void load() {
- NodeList children = node.getChildNodes();
- int nChildren = children.getLength();
- for (int i = 0; i < nChildren; i++) {
- Node child = children.item(i);
- if (child instanceof Element) {
- Element element = (Element) child;
- EStructuralFeature feature = eobject.eClass()
- .getEStructuralFeature(element.getLocalName());
- if (feature != null) {
- createOrGetChildAdapter(feature).load();
- }
- }
-
- }
- }
-
- /**
- * Populates all child dom objects from the model children.
- */
- public void save() {
- for (EStructuralFeature feature : eobject.eClass()
- .getEStructuralFeatures()) {
- if (eobject.eIsSet(feature)) {
- Object o = eobject.eGet(feature);
- if (!"".equals(o) && o != null) { //$NON-NLS-1$
- createOrGetChildAdapter(feature).save();
- }
- }
- }
- }
-
- public Notifier getTarget() {
- return target;
- }
-
- public void setTarget(Notifier target) {
- this.target = target;
- }
+ } else {
+ ret = new ValueUpdateAdapter(resource, element, eobject, feature);
+ }
+ if(isNew) {
+ formatNode(element);
+ }
+ ((IDOMElement) element).addAdapter(ret);
+ childAdapters.put(feature, ret);
+ }
+ return ret;
+ }
+
+ /**
+ * Removes the dom child matching the feature.
+ *
+ * @param feature
+ */
+ private void removeDomChild(EStructuralFeature feature) {
+ TranslatorAdapter ta = childAdapters.get(feature);
+ if(ta != null && ta.getNode() != null) {
+ removeChildElement(ta.getNode());
+ }
+ childAdapters.remove(feature);
+ }
+
+ /**
+ * Inserts an element under the current node, attempting to preserve proper node ordering.
+ *
+ * @param element
+ * @param position
+ */
+ private void insertElement(Element element) {
+ Node beforeNode = null;
+ boolean searching = false;
+ for(EStructuralFeature feature : eobject.eClass().getEStructuralFeatures()) {
+ if(element.getLocalName().equals(feature.getName())) {
+ searching = true;
+ }
+ if(searching) {
+ beforeNode = getFirstChildWithName(node, feature.getName());
+ if(beforeNode != null) {
+ break;
+ }
+ }
+ }
+
+ if(beforeNode == null) {
+ beforeNode = node.getLastChild();
+ while(!(beforeNode == null || beforeNode.getPreviousSibling() instanceof Element || beforeNode
+ .getPreviousSibling() == null)) {
+ beforeNode = beforeNode.getPreviousSibling();
+ }
+ }
+
+ if(beforeNode == null) {
+ node.appendChild(element);
+ } else {
+ node.insertBefore(element, beforeNode);
+ }
+ }
+
+ /**
+ * Populates all child model objects from the child nodes in the dom tree.
+ */
+ public void load() {
+ NodeList children = node.getChildNodes();
+ int nChildren = children.getLength();
+ for(int i = 0; i < nChildren; i++ ) {
+ Node child = children.item(i);
+ if(child instanceof Element) {
+ Element element = (Element) child;
+ EStructuralFeature feature = eobject.eClass().getEStructuralFeature(element.getLocalName());
+ if(feature != null) {
+ createOrGetChildAdapter(feature).load();
+ }
+ }
+
+ }
+ }
+
+ /**
+ * Populates all child dom objects from the model children.
+ */
+ public void save() {
+ for(EStructuralFeature feature : eobject.eClass().getEStructuralFeatures()) {
+ if(eobject.eIsSet(feature)) {
+ Object o = eobject.eGet(feature);
+ if(!"".equals(o) && o != null) { //$NON-NLS-1$
+ createOrGetChildAdapter(feature).save();
+ }
+ }
+ }
+ }
+
+ public Notifier getTarget() {
+ return target;
+ }
+
+ public void setTarget(Notifier target) {
+ this.target = target;
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/PropertiesAdapter.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/PropertiesAdapter.java
index dc997e90..94dda081 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/PropertiesAdapter.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/PropertiesAdapter.java
@@ -13,226 +13,217 @@ package org.eclipse.m2e.model.edit.pom.translators;
import java.util.List;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.Text;
+
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.m2e.model.edit.pom.PomFactory;
-import org.eclipse.m2e.model.edit.pom.PropertyElement;
import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.Text;
+
+import org.eclipse.m2e.model.edit.pom.PomFactory;
+import org.eclipse.m2e.model.edit.pom.PropertyElement;
+
/**
* Translates a property list using the name and value instead of reflection.
*
* @author Mike Poindexter
- *
*/
public class PropertiesAdapter extends ListAdapter {
- protected List<PropertyElement> properties;
-
- public PropertiesAdapter(SSESyncResource resc, Element containerNode,
- List<PropertyElement> properties) {
- super(resc, containerNode, properties, null);
- this.node = containerNode;
- this.properties = properties;
- }
-
- @Override
- public void notifyChanged(INodeNotifier notifier, int eventType,
- Object changedFeature, Object oldValue, Object newValue, int pos) {
- if (resource.isProcessEvents()) {
- try {
- resource.setProcessEvents(false);
- if (INodeNotifier.ADD == eventType
- && newValue instanceof Element) {
- if (notifier == node) {
- IDOMElement addedElement = (IDOMElement) newValue;
- int idx = absoluteIndexOf(node, addedElement);
- if (idx == -1)
- idx = 0;
- properties.add(idx, createObject(addedElement));
- }
- } else if (INodeNotifier.REMOVE == eventType
- && oldValue instanceof Element) {
- if (notifier == node) {
- for (PropertyElement prop : properties) {
- PropertyChildAdapter adapter = (PropertyChildAdapter) EcoreUtil
- .getExistingAdapter(prop,
- PropertyChildAdapter.class);
- if (adapter.getElement().equals(oldValue)) {
- properties.remove(prop);
- break;
- }
- }
- }
- } else if (changedFeature instanceof Text) {
- if (notifier != node && notifier instanceof Element) {
- Element e = (Element) notifier;
- String name = e.getLocalName();
- for (PropertyElement prop : properties) {
- if (name.equals(prop.getName())) {
- prop.setValue(getElementText(e));
- }
- }
- }
- }
- } finally {
- resource.setProcessEvents(true);
- }
-
- }
-
- }
-
- public void add(Object newValue, int position) {
- final PropertyElement prop = (PropertyElement) newValue;
- Element newElement = node.getOwnerDocument().createElement(
- prop.getName());
- Text value = node.getOwnerDocument().createTextNode(prop.getValue());
- newElement.appendChild(value);
-
- if (position < 0)
- position = 0;
- Node n = getNthChildWithName(node, "*", position); //$NON-NLS-1$
- if (n != null) {
- node.insertBefore(newElement, n);
- } else {
- node.appendChild(newElement);
- }
- formatNode(newElement);
- if (null == EcoreUtil.getExistingAdapter(prop,
- PropertyChildAdapter.class)) {
- prop.eAdapters().add(new PropertyChildAdapter(prop, newElement));
- }
- ((IDOMNode) newElement).addAdapter(this);
- }
-
- public void remove(Object oldValue, int position) {
- if (position == -1)
- position = 0;
-
- Element n = getNthChildWithName(node, "*", position); //$NON-NLS-1$
- if (n != null)
- removeChildElement(n);
- }
-
- public PropertyElement createObject(Element child) {
- PropertyElement propertyElement = PomFactory.eINSTANCE
- .createPropertyElement();
- propertyElement.setName(child.getLocalName());
- propertyElement.setValue(getElementText(child));
- if (null == ((IDOMNode) child)
- .getExistingAdapter(PropertiesAdapter.class)) {
- ((IDOMNode) child).addAdapter(this);
- }
- propertyElement.eAdapters().add(
- new PropertyChildAdapter(propertyElement, child));
- return propertyElement;
- }
-
- @Override
- public boolean isAdapterForType(Object type) {
- return PropertiesAdapter.class.equals(type);
- }
-
- @Override
- public void load() {
+ protected List<PropertyElement> properties;
+
+ public PropertiesAdapter(SSESyncResource resc, Element containerNode, List<PropertyElement> properties) {
+ super(resc, containerNode, properties, null);
+ this.node = containerNode;
+ this.properties = properties;
+ }
+
+ @Override
+ public void notifyChanged(INodeNotifier notifier, int eventType, Object changedFeature, Object oldValue,
+ Object newValue, int pos) {
+ if(resource.isProcessEvents()) {
+ try {
+ resource.setProcessEvents(false);
+ if(INodeNotifier.ADD == eventType && newValue instanceof Element) {
+ if(notifier == node) {
+ IDOMElement addedElement = (IDOMElement) newValue;
+ int idx = absoluteIndexOf(node, addedElement);
+ if(idx == -1)
+ idx = 0;
+ properties.add(idx, createObject(addedElement));
+ }
+ } else if(INodeNotifier.REMOVE == eventType && oldValue instanceof Element) {
+ if(notifier == node) {
+ for(PropertyElement prop : properties) {
+ PropertyChildAdapter adapter = (PropertyChildAdapter) EcoreUtil.getExistingAdapter(prop,
+ PropertyChildAdapter.class);
+ if(adapter.getElement().equals(oldValue)) {
+ properties.remove(prop);
+ break;
+ }
+ }
+ }
+ } else if(changedFeature instanceof Text) {
+ if(notifier != node && notifier instanceof Element) {
+ Element e = (Element) notifier;
+ String name = e.getLocalName();
+ for(PropertyElement prop : properties) {
+ if(name.equals(prop.getName())) {
+ prop.setValue(getElementText(e));
+ }
+ }
+ }
+ }
+ } finally {
+ resource.setProcessEvents(true);
+ }
+
+ }
+
+ }
+
+ public void add(Object newValue, int position) {
+ final PropertyElement prop = (PropertyElement) newValue;
+ Element newElement = node.getOwnerDocument().createElement(prop.getName());
+ Text value = node.getOwnerDocument().createTextNode(prop.getValue());
+ newElement.appendChild(value);
+
+ if(position < 0)
+ position = 0;
+ Node n = getNthChildWithName(node, "*", position); //$NON-NLS-1$
+ if(n != null) {
+ node.insertBefore(newElement, n);
+ } else {
+ node.appendChild(newElement);
+ }
+ formatNode(newElement);
+ if(null == EcoreUtil.getExistingAdapter(prop, PropertyChildAdapter.class)) {
+ prop.eAdapters().add(new PropertyChildAdapter(prop, newElement));
+ }
+ ((IDOMNode) newElement).addAdapter(this);
+ }
+
+ public void remove(Object oldValue, int position) {
+ if(position == -1)
+ position = 0;
+
+ Element n = getNthChildWithName(node, "*", position); //$NON-NLS-1$
+ if(n != null)
+ removeChildElement(n);
+ }
+
+ public PropertyElement createObject(Element child) {
+ PropertyElement propertyElement = PomFactory.eINSTANCE.createPropertyElement();
+ propertyElement.setName(child.getLocalName());
+ propertyElement.setValue(getElementText(child));
+ if(null == ((IDOMNode) child).getExistingAdapter(PropertiesAdapter.class)) {
+ ((IDOMNode) child).addAdapter(this);
+ }
+ propertyElement.eAdapters().add(new PropertyChildAdapter(propertyElement, child));
+ return propertyElement;
+ }
+
+ @Override
+ public boolean isAdapterForType(Object type) {
+ return PropertiesAdapter.class.equals(type);
+ }
+
+ @Override
+ public void load() {
//MNGECLIPSE-2345, MNGECLIPSE-2694 when load is called on a list adapter already containing items,
// the old items shall be discarded to avoid duplicates.
- properties.clear();
- NodeList children = node.getChildNodes();
- int nChildren = children.getLength();
- for (int i = 0; i < nChildren; i++) {
- Node child = children.item(i);
- if (child instanceof Element) {
- properties.add(createObject((Element) child));
- }
-
- }
-
- }
-
- @Override
- public void save() {
- for (PropertyElement o : properties) {
- add(o, -1);
- }
- }
-
- private class PropertyChildAdapter implements Adapter {
- private Notifier target;
- private PropertyElement property;
- private Element element;
-
- /**
- * @param propertyElement
- * @param container
- */
- public PropertyChildAdapter(PropertyElement propertyElement,
- Element element) {
- super();
- this.property = propertyElement;
- this.element = element;
- }
-
- public boolean isAdapterForType(Object type) {
- return PropertyChildAdapter.class.equals(type);
- }
-
- public void notifyChanged(Notification notification) {
- if (resource.isProcessEvents()) {
- try {
- resource.setProcessEvents(false);
- Element newElement = node.getOwnerDocument().createElement(
- property.getName());
- Text value = node.getOwnerDocument().createTextNode(
- property.getValue());
- newElement.appendChild(value);
- node.replaceChild(newElement, element);
- formatNode(newElement);
- this.element = newElement;
- ((IDOMNode) newElement).addAdapter(PropertiesAdapter.this);
- } finally {
- resource.setProcessEvents(true);
- }
- }
- }
-
- /**
- * @return the target
- */
- public Notifier getTarget() {
- return target;
- }
-
- /**
- * @param target
- * the target to set
- */
- public void setTarget(Notifier target) {
- this.target = target;
- }
-
- /**
- * @return the property
- */
- public PropertyElement getProperty() {
- return property;
- }
-
- /**
- * @return the element
- */
- public Element getElement() {
- return element;
- }
-
- }
+ properties.clear();
+ NodeList children = node.getChildNodes();
+ int nChildren = children.getLength();
+ for(int i = 0; i < nChildren; i++ ) {
+ Node child = children.item(i);
+ if(child instanceof Element) {
+ properties.add(createObject((Element) child));
+ }
+
+ }
+
+ }
+
+ @Override
+ public void save() {
+ for(PropertyElement o : properties) {
+ add(o, -1);
+ }
+ }
+
+ private class PropertyChildAdapter implements Adapter {
+ private Notifier target;
+
+ private PropertyElement property;
+
+ private Element element;
+
+ /**
+ * @param propertyElement
+ * @param container
+ */
+ public PropertyChildAdapter(PropertyElement propertyElement, Element element) {
+ super();
+ this.property = propertyElement;
+ this.element = element;
+ }
+
+ public boolean isAdapterForType(Object type) {
+ return PropertyChildAdapter.class.equals(type);
+ }
+
+ public void notifyChanged(Notification notification) {
+ if(resource.isProcessEvents()) {
+ try {
+ resource.setProcessEvents(false);
+ Element newElement = node.getOwnerDocument().createElement(property.getName());
+ Text value = node.getOwnerDocument().createTextNode(property.getValue());
+ newElement.appendChild(value);
+ node.replaceChild(newElement, element);
+ formatNode(newElement);
+ this.element = newElement;
+ ((IDOMNode) newElement).addAdapter(PropertiesAdapter.this);
+ } finally {
+ resource.setProcessEvents(true);
+ }
+ }
+ }
+
+ /**
+ * @return the target
+ */
+ public Notifier getTarget() {
+ return target;
+ }
+
+ /**
+ * @param target the target to set
+ */
+ public void setTarget(Notifier target) {
+ this.target = target;
+ }
+
+ /**
+ * @return the property
+ */
+ public PropertyElement getProperty() {
+ return property;
+ }
+
+ /**
+ * @return the element
+ */
+ public Element getElement() {
+ return element;
+ }
+
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/SSESyncResource.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/SSESyncResource.java
index 999bcadc..68ae161e 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/SSESyncResource.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/SSESyncResource.java
@@ -19,6 +19,9 @@ import java.util.HashSet;
import java.util.Map;
import java.util.Set;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
@@ -29,8 +32,6 @@ import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.resource.impl.ResourceImpl;
import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.m2e.model.edit.pom.Model;
-import org.eclipse.m2e.model.edit.pom.PomFactory;
import org.eclipse.wst.sse.core.StructuredModelManager;
import org.eclipse.wst.sse.core.internal.provisional.IModelManager;
import org.eclipse.wst.sse.core.internal.provisional.INodeAdapter;
@@ -38,8 +39,10 @@ import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
+
+import org.eclipse.m2e.model.edit.pom.Model;
+import org.eclipse.m2e.model.edit.pom.PomFactory;
+
public class SSESyncResource extends ResourceImpl {
private static final Set<String> NO_EVENT_MODELS = new HashSet<String>();
@@ -60,7 +63,7 @@ public class SSESyncResource extends ResourceImpl {
@Override
public void load(Map<?, ?> options) throws IOException {
- if (isLoaded()) {
+ if(isLoaded()) {
return;
}
loadDOMModel();
@@ -69,9 +72,8 @@ public class SSESyncResource extends ResourceImpl {
pomModel = PomFactory.eINSTANCE.createModel();
doc = domModel.getDocument();
DocumentAdapter da = new DocumentAdapter();
- if (doc.getDocumentElement() != null) {
- createAdapterForRootNode(
- domModel.getDocument().getDocumentElement()).load();
+ if(doc.getDocumentElement() != null) {
+ createAdapterForRootNode(domModel.getDocument().getDocumentElement()).load();
} else {
pomModel.eAdapters().add(da);
}
@@ -85,11 +87,10 @@ public class SSESyncResource extends ResourceImpl {
}
@Override
- protected void doSave(OutputStream outputStream, Map<?, ?> options)
- throws IOException {
+ protected void doSave(OutputStream outputStream, Map<?, ?> options) throws IOException {
try {
domModel.save(outputStream);
- } catch (CoreException e) {
+ } catch(CoreException e) {
IOException ioe = new IOException(e.getMessage());
ioe.initCause(e);
throw ioe;
@@ -103,27 +104,27 @@ public class SSESyncResource extends ResourceImpl {
private void loadDOMModel() throws IOException {
IFile ifile = null;
- if (uri.isPlatformResource()) {
+ if(uri.isPlatformResource()) {
String localPath = uri.toPlatformString(true);
ifile = (IFile) ResourcesPlugin.getWorkspace().getRoot().findMember(localPath);
- } else if (uri.isFile()) {
+ } else if(uri.isFile()) {
String filePath = uri.toFileString();
File f = new File(filePath);
IFile[] files = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocationURI(f.getAbsoluteFile().toURI());
- if (files.length > 0) {
+ if(files.length > 0) {
ifile = files[0];
}
}
try {
IModelManager modelManager = StructuredModelManager.getModelManager();
- if (ifile != null && ifile.exists()) {
+ if(ifile != null && ifile.exists()) {
domModel = (IDOMModel) modelManager.getExistingModelForEdit(ifile);
}
- if (null == domModel) {
- if (ifile != null && ifile.exists()) {
+ if(null == domModel) {
+ if(ifile != null && ifile.exists()) {
domModel = (IDOMModel) modelManager.getModelForEdit(ifile);
- } else if (uri.isFile()) {
+ } else if(uri.isFile()) {
File f = new File(uri.toFileString());
FileInputStream is = new FileInputStream(f);
try {
@@ -131,7 +132,7 @@ public class SSESyncResource extends ResourceImpl {
} finally {
is.close();
}
- }
+ }
// Had to comment this out, ExtensibleURIConverterImpl isn't available in Eclipse 3.3
// else {
// ExtensibleURIConverterImpl converter = new ExtensibleURIConverterImpl();
@@ -140,9 +141,9 @@ public class SSESyncResource extends ResourceImpl {
// is.close();
// }
}
- } catch (CoreException e) {
+ } catch(CoreException e) {
// IOException can't wrap another exception before Java 6
- if (e.getCause() != null && e.getCause() instanceof IOException) {
+ if(e.getCause() != null && e.getCause() instanceof IOException) {
throw (IOException) e.getCause();
} else {
throw new IOException(e.getMessage());
@@ -151,8 +152,7 @@ public class SSESyncResource extends ResourceImpl {
}
private ModelObjectAdapter createAdapterForRootNode(Element root) {
- ModelObjectAdapter adapter = new ModelObjectAdapter(this, pomModel,
- root);
+ ModelObjectAdapter adapter = new ModelObjectAdapter(this, pomModel, root);
((IDOMElement) root).addAdapter(adapter);
pomModel.eAdapters().add(adapter);
return adapter;
@@ -178,30 +178,24 @@ public class SSESyncResource extends ResourceImpl {
}
public void notifyChanged(Notification notification) {
- if (isProcessEvents()) {
+ if(isProcessEvents()) {
setProcessEvents(false);
try {
int type = notification.getEventType();
- if (Notification.ADD == type
- || Notification.ADD_MANY == type
- || Notification.SET == type) {
- if (null == doc.getDocumentElement()) {
- Element newRoot = doc.createElementNS(
- "http://maven.apache.org/POM/4.0.0", //$NON-NLS-1$
+ if(Notification.ADD == type || Notification.ADD_MANY == type || Notification.SET == type) {
+ if(null == doc.getDocumentElement()) {
+ Element newRoot = doc.createElementNS("http://maven.apache.org/POM/4.0.0", //$NON-NLS-1$
"project"); //$NON-NLS-1$
- newRoot
- .setAttributeNS(
- "http://www.w3.org/2001/XMLSchema-instance", //$NON-NLS-1$
- "xsi:schemaLocation", //$NON-NLS-1$
- "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"); //$NON-NLS-1$
+ newRoot.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", //$NON-NLS-1$
+ "xsi:schemaLocation", //$NON-NLS-1$
+ "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"); //$NON-NLS-1$
// I think this is just wrong...but can't find a
// better way.
newRoot.setAttribute("xmlns", //$NON-NLS-1$
"http://maven.apache.org/POM/4.0.0"); //$NON-NLS-1$
- newRoot
- .setAttribute("xmlns:xsi", //$NON-NLS-1$
- "http://www.w3.org/2001/XMLSchema-instance"); //$NON-NLS-1$
+ newRoot.setAttribute("xmlns:xsi", //$NON-NLS-1$
+ "http://www.w3.org/2001/XMLSchema-instance"); //$NON-NLS-1$
doc.appendChild(newRoot);
pomModel.setModelVersion("4.0.0"); //$NON-NLS-1$
createAdapterForRootNode(newRoot).save();
@@ -209,10 +203,9 @@ public class SSESyncResource extends ResourceImpl {
Element root = doc.getDocumentElement();
createAdapterForRootNode(root).load();
}
- DocumentAdapter existingDocAdapter = (DocumentAdapter) EcoreUtil
- .getExistingAdapter(pomModel,
- DocumentAdapter.class);
- if (null != existingDocAdapter) {
+ DocumentAdapter existingDocAdapter = (DocumentAdapter) EcoreUtil.getExistingAdapter(pomModel,
+ DocumentAdapter.class);
+ if(null != existingDocAdapter) {
pomModel.eAdapters().remove(existingDocAdapter);
}
}
@@ -223,45 +216,40 @@ public class SSESyncResource extends ResourceImpl {
}
- public void notifyChanged(INodeNotifier notifier, int eventType,
- Object changedFeature, Object oldValue, Object newValue, int pos) {
- if (isProcessEvents()) {
+ public void notifyChanged(INodeNotifier notifier, int eventType, Object changedFeature, Object oldValue,
+ Object newValue, int pos) {
+ if(isProcessEvents()) {
setProcessEvents(false);
try {
- if (INodeNotifier.ADD == eventType) {
- if (newValue instanceof Element) {
+ if(INodeNotifier.ADD == eventType) {
+ if(newValue instanceof Element) {
Element e = (Element) newValue;
- if (doc.getDocumentElement().equals(e)) {
- DocumentAdapter existingDocAdapter = (DocumentAdapter) EcoreUtil
- .getExistingAdapter(pomModel,
- DocumentAdapter.class);
- if (null != existingDocAdapter) {
- pomModel.eAdapters().remove(
- existingDocAdapter);
+ if(doc.getDocumentElement().equals(e)) {
+ DocumentAdapter existingDocAdapter = (DocumentAdapter) EcoreUtil.getExistingAdapter(pomModel,
+ DocumentAdapter.class);
+ if(null != existingDocAdapter) {
+ pomModel.eAdapters().remove(existingDocAdapter);
}
createAdapterForRootNode(e).load();
}
}
- } else if (INodeNotifier.REMOVE == eventType) {
- if (changedFeature instanceof Element) {
- ModelObjectAdapter existing = (ModelObjectAdapter) EcoreUtil
- .getExistingAdapter(pomModel,
- ModelObjectAdapter.class);
- if (existing != null) {
+ } else if(INodeNotifier.REMOVE == eventType) {
+ if(changedFeature instanceof Element) {
+ ModelObjectAdapter existing = (ModelObjectAdapter) EcoreUtil.getExistingAdapter(pomModel,
+ ModelObjectAdapter.class);
+ if(existing != null) {
pomModel.eAdapters().remove(existing);
}
- if (null == doc.getDocumentElement()) {
- for (EStructuralFeature feature : pomModel
- .eClass().getEStructuralFeatures()) {
+ if(null == doc.getDocumentElement()) {
+ for(EStructuralFeature feature : pomModel.eClass().getEStructuralFeatures()) {
pomModel.eUnset(feature);
}
}
- DocumentAdapter existingDocAdapter = (DocumentAdapter) EcoreUtil
- .getExistingAdapter(pomModel,
- DocumentAdapter.class);
- if (null == existingDocAdapter) {
+ DocumentAdapter existingDocAdapter = (DocumentAdapter) EcoreUtil.getExistingAdapter(pomModel,
+ DocumentAdapter.class);
+ if(null == existingDocAdapter) {
pomModel.eAdapters().add(this);
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/TranslatorAdapter.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/TranslatorAdapter.java
index c7250fdb..517f08b2 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/TranslatorAdapter.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/TranslatorAdapter.java
@@ -11,10 +11,6 @@
package org.eclipse.m2e.model.edit.pom.translators;
-import org.eclipse.jface.text.BadLocationException;
-import org.eclipse.wst.sse.core.internal.provisional.INodeAdapter;
-import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
@@ -22,350 +18,343 @@ import org.w3c.dom.Text;
import com.ibm.icu.lang.UCharacter;
+import org.eclipse.jface.text.BadLocationException;
+import org.eclipse.wst.sse.core.internal.provisional.INodeAdapter;
+import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
+import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
+
/**
- * A base class for all adapters that can translate a EMF to DOM and vice-versa.
- *
- * Each translator adaptor is expected to have a single root element that
- * controls its existence. It is responsible for the subtree of that node by
- * updating it directly or delegating to child adapters to do the work.
- *
+ * A base class for all adapters that can translate a EMF to DOM and vice-versa. Each translator adaptor is expected to
+ * have a single root element that controls its existence. It is responsible for the subtree of that node by updating it
+ * directly or delegating to child adapters to do the work.
*
* @author Mike Poindexter
*/
public abstract class TranslatorAdapter implements INodeAdapter {
- protected SSESyncResource resource;
-
- protected Element node;
-
- public TranslatorAdapter(SSESyncResource resource) {
- this.resource = resource;
- }
-
- /**
- * Returns the textual value of an element.
- *
- * @param e
- * @return
- */
- protected static String getElementText(Element e) {
- StringBuilder ret = new StringBuilder();
- NodeList children = e.getChildNodes();
- int nChildren = children.getLength();
- for (int i = 0; i < nChildren; i++) {
- Node child = children.item(i);
- if (child instanceof Text) {
- ret.append(((Text) child).getData());
- }
- }
- return ret.toString().trim();
- }
-
- /**
- * Load the model value from this adapter's xml value
- */
- public abstract void load();
-
- /**
- * Save the xml value of this adapter from the model.
- */
- public abstract void save();
-
- /**
- * @param oldValue
- */
- public abstract void update(Object oldValue, Object newValue, int index);
-
- /**
- * Returns the index of the given element in the list of elements of the
- * same name.
- *
- * @param e
- * @return
- */
- protected int namedIndexOf(Element parentNode, Element element) {
- int ret = 0;
- NodeList children = parentNode.getChildNodes();
- int nChildren = children.getLength();
- for (int i = 0; i < nChildren; i++) {
- Node child = children.item(i);
- if (child instanceof Element) {
- Element e = (Element) child;
- if (e.getLocalName().equals(element.getLocalName())) {
- if (e == element) {
- return ret;
- } else {
- ret++;
- }
- }
- }
- }
- return -1;
- }
-
- /**
- * Returns the index of the given element in the list of child elements.
- *
- * @param e
- * @return
- */
- protected int absoluteIndexOf(Element parentNode, Element element) {
- int ret = 0;
- NodeList children = parentNode.getChildNodes();
- int nChildren = children.getLength();
- for (int i = 0; i < nChildren; i++) {
- Node child = children.item(i);
- if (child instanceof Element) {
- Element e = (Element) child;
- if (e.getLocalName().equals(element.getLocalName())) {
- if (e == element) {
- return ret;
- } else {
- ret++;
- }
- }
- }
- }
- return -1;
- }
-
- /**
- * Returns the first child with the given name, or null if none exists.
- *
- * @param name
- * @return
- */
- protected Element getFirstChildWithName(Element parent, String name) {
- return getNthChildWithName(parent, name, 0);
- }
-
- /**
- * Returns the nth child element with a given name, or null if no such
- * element exists.
- *
- * @param name
- * @param n
- * @return
- */
- protected Element getNthChildWithName(Element parent, String name, int n) {
- int matchCount = 0;
- NodeList children = parent.getChildNodes();
- int nChildren = children.getLength();
- for (int i = 0; i < nChildren; i++) {
- Node child = children.item(i);
- if (child instanceof Element) {
- Element e = (Element) child;
- if (e.getTagName().equals(name) || "*".equals(name)) { //$NON-NLS-1$
- if (matchCount == n) {
- return e;
- } else {
- matchCount++;
- }
- }
- }
- }
- return null;
- }
-
- public Element getNode() {
- return node;
- }
-
- public void setNode(Element node) {
- this.node = node;
- }
-
- protected void formatNode(Element element) {
- createWSBefore(element);
- createWSAfter(element);
- }
-
- /**
- * Ensure at least one NL between this node and the previous, and proper
- * start tag indentation.
- *
- * @param element
- * @return
- */
- protected void createWSBefore(Element element) {
- try {
- IStructuredDocument doc = ((IDOMNode) element)
- .getStructuredDocument();
- int nodeStartOff = ((IDOMNode) element).getStartOffset();
- StringBuilder betweenText = new StringBuilder();
- int i = nodeStartOff - 1;
- while (i > -1) {
- char next = doc.getChar(i);
- if (next == '>') {
- break;
- }
- betweenText.insert(0, next);
- i--;
- }
- int origLen = betweenText.length();
- int nlIndex = betweenText.lastIndexOf("\n"); //$NON-NLS-1$
- if (nlIndex == -1) {
- String nl = getNewlineString();
- betweenText.insert(0, nl);
- nlIndex = nl.length() - 1;
- }
-
- String indent = getIndentForNode(element);
- if (!indent.equals(betweenText.substring(nlIndex + 1))) {
- betweenText.replace(nlIndex + 1, betweenText.length(), indent);
- }
- if (origLen > 0) {
- doc.replaceText(this, i + 1, origLen, betweenText.toString());
- } else {
- Text t = element.getOwnerDocument().createTextNode(
- betweenText.toString());
- element.getParentNode().insertBefore(t, element);
- }
- } catch (BadLocationException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- }
-
- /**
- * Ensure at least one NL between this node and the next, and proper indent
- * to the next tag tag indentation.
- *
- * @param element
- * @return
- */
- protected void createWSAfter(Element element) {
- try {
- IStructuredDocument doc = ((IDOMNode) element)
- .getStructuredDocument();
- int nodeEndOff = ((IDOMNode) element).getEndOffset();
- StringBuilder betweenText = new StringBuilder();
- int i = nodeEndOff;
- while (i < doc.getLength()) {
- char next = doc.getChar(i);
- if (next == '<') {
- break;
- }
- betweenText.append(next);
- i++;
- }
- int origLen = betweenText.length();
- int nlIndex = betweenText.lastIndexOf("\n"); //$NON-NLS-1$
- if (nlIndex == -1) {
- String nl = getNewlineString();
- betweenText.insert(0, nl);
- nlIndex = nl.length() - 1;
- }
-
- Node refNode = element.getNextSibling();
- while (refNode != null && !(refNode instanceof Element)) {
- refNode = refNode.getNextSibling();
- }
- String indent = ""; //$NON-NLS-1$
- if (refNode == null) {
- indent = getIndentBeforeStartTag(element.getParentNode());
- } else {
- indent = getIndentForNode((Element) refNode);
- }
- if (!indent.equals(betweenText.substring(nlIndex + 1))) {
- betweenText.replace(nlIndex + 1, betweenText.length(), indent);
- }
- if (origLen > 0) {
- doc.replaceText(this, nodeEndOff, origLen, betweenText
- .toString());
- } else {
- Text t = element.getOwnerDocument().createTextNode(
- betweenText.toString());
-
- if (null == refNode) {
- element.getParentNode().appendChild(t);
- } else {
- element.getParentNode().insertBefore(t, refNode);
- }
- }
- } catch (BadLocationException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- }
-
- protected void removeChildElement(Element e) {
- IStructuredDocument doc = ((IDOMNode) e).getStructuredDocument();
- int nodeStartOff = ((IDOMNode) e).getStartOffset();
- int nodeEndOff = ((IDOMNode) e).getEndOffset();
- int i = nodeStartOff - 1;
-
- while (i > 0) {
- char c = ' ';
- try {
- c = doc.getChar(i);
- } catch (BadLocationException ble) {
- // We check for bad locations so this should not happen
- }
+ protected SSESyncResource resource;
+
+ protected Element node;
+
+ public TranslatorAdapter(SSESyncResource resource) {
+ this.resource = resource;
+ }
+
+ /**
+ * Returns the textual value of an element.
+ *
+ * @param e
+ * @return
+ */
+ protected static String getElementText(Element e) {
+ StringBuilder ret = new StringBuilder();
+ NodeList children = e.getChildNodes();
+ int nChildren = children.getLength();
+ for(int i = 0; i < nChildren; i++ ) {
+ Node child = children.item(i);
+ if(child instanceof Text) {
+ ret.append(((Text) child).getData());
+ }
+ }
+ return ret.toString().trim();
+ }
+
+ /**
+ * Load the model value from this adapter's xml value
+ */
+ public abstract void load();
+
+ /**
+ * Save the xml value of this adapter from the model.
+ */
+ public abstract void save();
+
+ /**
+ * @param oldValue
+ */
+ public abstract void update(Object oldValue, Object newValue, int index);
+
+ /**
+ * Returns the index of the given element in the list of elements of the same name.
+ *
+ * @param e
+ * @return
+ */
+ protected int namedIndexOf(Element parentNode, Element element) {
+ int ret = 0;
+ NodeList children = parentNode.getChildNodes();
+ int nChildren = children.getLength();
+ for(int i = 0; i < nChildren; i++ ) {
+ Node child = children.item(i);
+ if(child instanceof Element) {
+ Element e = (Element) child;
+ if(e.getLocalName().equals(element.getLocalName())) {
+ if(e == element) {
+ return ret;
+ } else {
+ ret++ ;
+ }
+ }
+ }
+ }
+ return -1;
+ }
+
+ /**
+ * Returns the index of the given element in the list of child elements.
+ *
+ * @param e
+ * @return
+ */
+ protected int absoluteIndexOf(Element parentNode, Element element) {
+ int ret = 0;
+ NodeList children = parentNode.getChildNodes();
+ int nChildren = children.getLength();
+ for(int i = 0; i < nChildren; i++ ) {
+ Node child = children.item(i);
+ if(child instanceof Element) {
+ Element e = (Element) child;
+ if(e.getLocalName().equals(element.getLocalName())) {
+ if(e == element) {
+ return ret;
+ } else {
+ ret++ ;
+ }
+ }
+ }
+ }
+ return -1;
+ }
+
+ /**
+ * Returns the first child with the given name, or null if none exists.
+ *
+ * @param name
+ * @return
+ */
+ protected Element getFirstChildWithName(Element parent, String name) {
+ return getNthChildWithName(parent, name, 0);
+ }
+
+ /**
+ * Returns the nth child element with a given name, or null if no such element exists.
+ *
+ * @param name
+ * @param n
+ * @return
+ */
+ protected Element getNthChildWithName(Element parent, String name, int n) {
+ int matchCount = 0;
+ NodeList children = parent.getChildNodes();
+ int nChildren = children.getLength();
+ for(int i = 0; i < nChildren; i++ ) {
+ Node child = children.item(i);
+ if(child instanceof Element) {
+ Element e = (Element) child;
+ if(e.getTagName().equals(name) || "*".equals(name)) { //$NON-NLS-1$
+ if(matchCount == n) {
+ return e;
+ } else {
+ matchCount++ ;
+ }
+ }
+ }
+ }
+ return null;
+ }
+
+ public Element getNode() {
+ return node;
+ }
+
+ public void setNode(Element node) {
+ this.node = node;
+ }
+
+ protected void formatNode(Element element) {
+ createWSBefore(element);
+ createWSAfter(element);
+ }
+
+ /**
+ * Ensure at least one NL between this node and the previous, and proper start tag indentation.
+ *
+ * @param element
+ * @return
+ */
+ protected void createWSBefore(Element element) {
+ try {
+ IStructuredDocument doc = ((IDOMNode) element).getStructuredDocument();
+ int nodeStartOff = ((IDOMNode) element).getStartOffset();
+ StringBuilder betweenText = new StringBuilder();
+ int i = nodeStartOff - 1;
+ while(i > -1) {
+ char next = doc.getChar(i);
+ if(next == '>') {
+ break;
+ }
+ betweenText.insert(0, next);
+ i-- ;
+ }
+ int origLen = betweenText.length();
+ int nlIndex = betweenText.lastIndexOf("\n"); //$NON-NLS-1$
+ if(nlIndex == -1) {
+ String nl = getNewlineString();
+ betweenText.insert(0, nl);
+ nlIndex = nl.length() - 1;
+ }
+
+ String indent = getIndentForNode(element);
+ if(!indent.equals(betweenText.substring(nlIndex + 1))) {
+ betweenText.replace(nlIndex + 1, betweenText.length(), indent);
+ }
+ if(origLen > 0) {
+ doc.replaceText(this, i + 1, origLen, betweenText.toString());
+ } else {
+ Text t = element.getOwnerDocument().createTextNode(betweenText.toString());
+ element.getParentNode().insertBefore(t, element);
+ }
+ } catch(BadLocationException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ }
+
+ /**
+ * Ensure at least one NL between this node and the next, and proper indent to the next tag tag indentation.
+ *
+ * @param element
+ * @return
+ */
+ protected void createWSAfter(Element element) {
+ try {
+ IStructuredDocument doc = ((IDOMNode) element).getStructuredDocument();
+ int nodeEndOff = ((IDOMNode) element).getEndOffset();
+ StringBuilder betweenText = new StringBuilder();
+ int i = nodeEndOff;
+ while(i < doc.getLength()) {
+ char next = doc.getChar(i);
+ if(next == '<') {
+ break;
+ }
+ betweenText.append(next);
+ i++ ;
+ }
+ int origLen = betweenText.length();
+ int nlIndex = betweenText.lastIndexOf("\n"); //$NON-NLS-1$
+ if(nlIndex == -1) {
+ String nl = getNewlineString();
+ betweenText.insert(0, nl);
+ nlIndex = nl.length() - 1;
+ }
+
+ Node refNode = element.getNextSibling();
+ while(refNode != null && !(refNode instanceof Element)) {
+ refNode = refNode.getNextSibling();
+ }
+ String indent = ""; //$NON-NLS-1$
+ if(refNode == null) {
+ indent = getIndentBeforeStartTag(element.getParentNode());
+ } else {
+ indent = getIndentForNode((Element) refNode);
+ }
+ if(!indent.equals(betweenText.substring(nlIndex + 1))) {
+ betweenText.replace(nlIndex + 1, betweenText.length(), indent);
+ }
+ if(origLen > 0) {
+ doc.replaceText(this, nodeEndOff, origLen, betweenText.toString());
+ } else {
+ Text t = element.getOwnerDocument().createTextNode(betweenText.toString());
+
+ if(null == refNode) {
+ element.getParentNode().appendChild(t);
+ } else {
+ element.getParentNode().insertBefore(t, refNode);
+ }
+ }
+ } catch(BadLocationException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ }
+
+ protected void removeChildElement(Element e) {
+ IStructuredDocument doc = ((IDOMNode) e).getStructuredDocument();
+ int nodeStartOff = ((IDOMNode) e).getStartOffset();
+ int nodeEndOff = ((IDOMNode) e).getEndOffset();
+ int i = nodeStartOff - 1;
+
+ while(i > 0) {
+ char c = ' ';
+ try {
+ c = doc.getChar(i);
+ } catch(BadLocationException ble) {
+ // We check for bad locations so this should not happen
+ }
if(UCharacter.isWhitespace(c)) {
- i--;
- }
-
- if (c == '\n') {
- if (i > 0) {
- try {
- c = doc.getChar(i);
- } catch (BadLocationException ble) {
- // We check for bad locations so this should not happen
- }
- if (c == '\r')
- i--;
- }
- break;
- }
-
- }
- doc.replaceText(this, i + 1, nodeEndOff - i - 1, null);
- }
-
- private String getIndentForNode(Element node) {
- String ret = null;
- Node prev = node.getPreviousSibling();
- while (prev != null) {
- if (prev instanceof Element) {
- ret = getIndentBeforeStartTag(prev);
- break;
- }
- prev = prev.getPreviousSibling();
- }
-
- if (null == ret) {
- ret = getIndentBeforeStartTag(node.getParentNode()) + "\t"; //$NON-NLS-1$
- }
- return ret;
- }
-
- private String getIndentBeforeStartTag(Node node) {
- StringBuilder builder = new StringBuilder(100);
- IStructuredDocument doc = ((IDOMNode) node).getStructuredDocument();
- int nodeStartOff = ((IDOMNode) node).getStartOffset();
- int i = nodeStartOff - 1;
- while (i > 0) {
- char c = ' ';
- try {
- c = doc.getChar(i);
- } catch (BadLocationException e) {
- // We check for bad locations so this should not happen
- }
+ i-- ;
+ }
+
+ if(c == '\n') {
+ if(i > 0) {
+ try {
+ c = doc.getChar(i);
+ } catch(BadLocationException ble) {
+ // We check for bad locations so this should not happen
+ }
+ if(c == '\r')
+ i-- ;
+ }
+ break;
+ }
+
+ }
+ doc.replaceText(this, i + 1, nodeEndOff - i - 1, null);
+ }
+
+ private String getIndentForNode(Element node) {
+ String ret = null;
+ Node prev = node.getPreviousSibling();
+ while(prev != null) {
+ if(prev instanceof Element) {
+ ret = getIndentBeforeStartTag(prev);
+ break;
+ }
+ prev = prev.getPreviousSibling();
+ }
+
+ if(null == ret) {
+ ret = getIndentBeforeStartTag(node.getParentNode()) + "\t"; //$NON-NLS-1$
+ }
+ return ret;
+ }
+
+ private String getIndentBeforeStartTag(Node node) {
+ StringBuilder builder = new StringBuilder(100);
+ IStructuredDocument doc = ((IDOMNode) node).getStructuredDocument();
+ int nodeStartOff = ((IDOMNode) node).getStartOffset();
+ int i = nodeStartOff - 1;
+ while(i > 0) {
+ char c = ' ';
+ try {
+ c = doc.getChar(i);
+ } catch(BadLocationException e) {
+ // We check for bad locations so this should not happen
+ }
if(UCharacter.isWhitespace(c) && !(c == '\r' || c == '\n')) {
- builder.insert(0, c);
- i--;
- } else {
- break;
- }
- }
- return builder.toString();
- }
-
- private String getNewlineString() {
- return ((IDOMNode) node).getStructuredDocument().getLineDelimiter();
- }
+ builder.insert(0, c);
+ i-- ;
+ } else {
+ break;
+ }
+ }
+ return builder.toString();
+ }
+
+ private String getNewlineString() {
+ return ((IDOMNode) node).getStructuredDocument().getLineDelimiter();
+ }
}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ValueUpdateAdapter.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ValueUpdateAdapter.java
index 0449a812..0ff29d7c 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ValueUpdateAdapter.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/translators/ValueUpdateAdapter.java
@@ -14,6 +14,11 @@ package org.eclipse.m2e.model.edit.pom.translators;
import java.util.Collections;
import java.util.List;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.Text;
+
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
@@ -21,10 +26,7 @@ import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.wst.common.internal.emf.utilities.ExtendedEcoreUtil;
import org.eclipse.wst.sse.core.internal.provisional.INodeAdapter;
import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.Text;
+
/**
* Handles notifications from the DOM that a simple text value has changed.
@@ -32,127 +34,118 @@ import org.w3c.dom.Text;
* @author Mike Poindexter
*/
class ValueUpdateAdapter extends TranslatorAdapter implements INodeAdapter {
- /**
+ /**
*
*/
- private EObject modelObject;
-
- private EStructuralFeature feature;
-
- private List<Node> linkedWhitespaceNodes = Collections.emptyList();
-
- public ValueUpdateAdapter(SSESyncResource resource, Element node,
- EObject object, EStructuralFeature feature) {
- super(resource);
- this.node = node;
- this.modelObject = object;
- this.feature = feature;
- }
-
- public boolean isAdapterForType(Object type) {
- return ValueUpdateAdapter.class.equals(type);
- }
-
- public void notifyChanged(INodeNotifier notifier, int eventType,
- Object changedFeature, Object oldValue, Object newValue, int pos) {
- if (resource.isProcessEvents()) {
- try {
- resource.setProcessEvents(false);
- if (newValue instanceof Text) {
- changedFeature = newValue;
- newValue = ((Text) newValue).getData();
- }
- if (changedFeature instanceof Text) {
- if (null == newValue) {
- ExtendedEcoreUtil.eUnsetOrRemove(modelObject, feature,
- oldValue);
- } else {
- ExtendedEcoreUtil.eSetOrAdd(modelObject, feature,
- newValue.toString().trim());
- }
- }
- } finally {
- resource.setProcessEvents(true);
- }
-
- }
-
- }
-
- @Override
- public void load() {
- Object value = getElementText(node);
- if (feature instanceof EAttribute) {
- EAttribute ea = (EAttribute) feature;
- value = EcoreUtil.createFromString(ea.getEAttributeType(), value
- .toString());
- }
-
- modelObject.eSet(feature, value);
- }
-
- @Override
- public void save() {
- setElementTextValue(node, null, modelObject.eGet(feature));
- }
-
- @Override
- public void update(Object oldValue, Object newValue, int index) {
- setElementTextValue(node, oldValue, modelObject.eGet(feature));
- }
-
- /**
- * Sets the text value of an existing node, attempting to preserve
- * whitespace
- *
- * @param element
- * @param oldValue
- * @param newValue
- */
- private void setElementTextValue(Element element, Object oldValue,
- Object newValue) {
- newValue = newValue == null ? "" : newValue.toString(); //$NON-NLS-1$
- boolean replacedChild = false;
-
- if (oldValue != null) {
- // First try to find a text node with the old value and set it (to
- // preserve whitespace)
- NodeList children = element.getChildNodes();
- int nChildren = children.getLength();
- for (int i = 0; i < nChildren; i++) {
- Node child = children.item(i);
- if (child instanceof Text) {
- String value = ((Text) child).getData();
- int oldIdx = value.indexOf(oldValue.toString());
- if (oldIdx > -1) {
- String replacement = value.substring(0, oldIdx)
- + newValue.toString()
- + value.substring(oldIdx
- + oldValue.toString().length());
- ((Text) child).setData(replacement);
- replacedChild = true;
- }
- }
- }
- }
-
- // If for some reason we couldn't find a text to update, just clear the
- // element contents and put in our text.
- if (!replacedChild) {
- while (element.getFirstChild() != null) {
- element.removeChild(element.getFirstChild());
- }
- Text text = node.getOwnerDocument().createTextNode(
- newValue.toString());
- element.appendChild(text);
- }
- }
-
- public List<Node> getLinkedWhitespaceNodes() {
- return linkedWhitespaceNodes;
- }
-
- public void setLinkedWhitespaceNodes(List<Node> linkedWhitespaceNodes) {
- this.linkedWhitespaceNodes = linkedWhitespaceNodes;
- }
-} \ No newline at end of file
+ private EObject modelObject;
+
+ private EStructuralFeature feature;
+
+ private List<Node> linkedWhitespaceNodes = Collections.emptyList();
+
+ public ValueUpdateAdapter(SSESyncResource resource, Element node, EObject object, EStructuralFeature feature) {
+ super(resource);
+ this.node = node;
+ this.modelObject = object;
+ this.feature = feature;
+ }
+
+ public boolean isAdapterForType(Object type) {
+ return ValueUpdateAdapter.class.equals(type);
+ }
+
+ public void notifyChanged(INodeNotifier notifier, int eventType, Object changedFeature, Object oldValue,
+ Object newValue, int pos) {
+ if(resource.isProcessEvents()) {
+ try {
+ resource.setProcessEvents(false);
+ if(newValue instanceof Text) {
+ changedFeature = newValue;
+ newValue = ((Text) newValue).getData();
+ }
+ if(changedFeature instanceof Text) {
+ if(null == newValue) {
+ ExtendedEcoreUtil.eUnsetOrRemove(modelObject, feature, oldValue);
+ } else {
+ ExtendedEcoreUtil.eSetOrAdd(modelObject, feature, newValue.toString().trim());
+ }
+ }
+ } finally {
+ resource.setProcessEvents(true);
+ }
+
+ }
+
+ }
+
+ @Override
+ public void load() {
+ Object value = getElementText(node);
+ if(feature instanceof EAttribute) {
+ EAttribute ea = (EAttribute) feature;
+ value = EcoreUtil.createFromString(ea.getEAttributeType(), value.toString());
+ }
+
+ modelObject.eSet(feature, value);
+ }
+
+ @Override
+ public void save() {
+ setElementTextValue(node, null, modelObject.eGet(feature));
+ }
+
+ @Override
+ public void update(Object oldValue, Object newValue, int index) {
+ setElementTextValue(node, oldValue, modelObject.eGet(feature));
+ }
+
+ /**
+ * Sets the text value of an existing node, attempting to preserve whitespace
+ *
+ * @param element
+ * @param oldValue
+ * @param newValue
+ */
+ private void setElementTextValue(Element element, Object oldValue, Object newValue) {
+ newValue = newValue == null ? "" : newValue.toString(); //$NON-NLS-1$
+ boolean replacedChild = false;
+
+ if(oldValue != null) {
+ // First try to find a text node with the old value and set it (to
+ // preserve whitespace)
+ NodeList children = element.getChildNodes();
+ int nChildren = children.getLength();
+ for(int i = 0; i < nChildren; i++ ) {
+ Node child = children.item(i);
+ if(child instanceof Text) {
+ String value = ((Text) child).getData();
+ int oldIdx = value.indexOf(oldValue.toString());
+ if(oldIdx > -1) {
+ String replacement = value.substring(0, oldIdx) + newValue.toString()
+ + value.substring(oldIdx + oldValue.toString().length());
+ ((Text) child).setData(replacement);
+ replacedChild = true;
+ }
+ }
+ }
+ }
+
+ // If for some reason we couldn't find a text to update, just clear the
+ // element contents and put in our text.
+ if(!replacedChild) {
+ while(element.getFirstChild() != null) {
+ element.removeChild(element.getFirstChild());
+ }
+ Text text = node.getOwnerDocument().createTextNode(newValue.toString());
+ element.appendChild(text);
+ }
+ }
+
+ public List<Node> getLinkedWhitespaceNodes() {
+ return linkedWhitespaceNodes;
+ }
+
+ public void setLinkedWhitespaceNodes(List<Node> linkedWhitespaceNodes) {
+ this.linkedWhitespaceNodes = linkedWhitespaceNodes;
+ }
+}
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomAdapterFactory.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomAdapterFactory.java
index 8717ecb2..c23c76f3 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomAdapterFactory.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomAdapterFactory.java
@@ -15,890 +15,841 @@
*
* $Id: PomAdapterFactory.java 20588 2008-12-04 17:59:55Z jerdfelt $
*/
+
package org.eclipse.m2e.model.edit.pom.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
-
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
import org.eclipse.emf.ecore.EObject;
-import org.eclipse.m2e.model.edit.pom.*;
+
+import org.eclipse.m2e.model.edit.pom.Activation;
+import org.eclipse.m2e.model.edit.pom.ActivationFile;
+import org.eclipse.m2e.model.edit.pom.ActivationOS;
+import org.eclipse.m2e.model.edit.pom.ActivationProperty;
+import org.eclipse.m2e.model.edit.pom.Build;
+import org.eclipse.m2e.model.edit.pom.BuildBase;
+import org.eclipse.m2e.model.edit.pom.CiManagement;
+import org.eclipse.m2e.model.edit.pom.Configuration;
+import org.eclipse.m2e.model.edit.pom.Contributor;
+import org.eclipse.m2e.model.edit.pom.Dependency;
+import org.eclipse.m2e.model.edit.pom.DependencyManagement;
+import org.eclipse.m2e.model.edit.pom.DeploymentRepository;
+import org.eclipse.m2e.model.edit.pom.Developer;
+import org.eclipse.m2e.model.edit.pom.DistributionManagement;
+import org.eclipse.m2e.model.edit.pom.DocumentRoot;
+import org.eclipse.m2e.model.edit.pom.Exclusion;
+import org.eclipse.m2e.model.edit.pom.Extension;
+import org.eclipse.m2e.model.edit.pom.IssueManagement;
+import org.eclipse.m2e.model.edit.pom.License;
+import org.eclipse.m2e.model.edit.pom.MailingList;
+import org.eclipse.m2e.model.edit.pom.Model;
+import org.eclipse.m2e.model.edit.pom.Organization;
+import org.eclipse.m2e.model.edit.pom.Parent;
+import org.eclipse.m2e.model.edit.pom.Plugin;
+import org.eclipse.m2e.model.edit.pom.PluginExecution;
+import org.eclipse.m2e.model.edit.pom.PluginManagement;
+import org.eclipse.m2e.model.edit.pom.PomPackage;
+import org.eclipse.m2e.model.edit.pom.Prerequisites;
+import org.eclipse.m2e.model.edit.pom.Profile;
+import org.eclipse.m2e.model.edit.pom.PropertyElement;
+import org.eclipse.m2e.model.edit.pom.Relocation;
+import org.eclipse.m2e.model.edit.pom.ReportPlugin;
+import org.eclipse.m2e.model.edit.pom.ReportSet;
+import org.eclipse.m2e.model.edit.pom.Reporting;
+import org.eclipse.m2e.model.edit.pom.Repository;
+import org.eclipse.m2e.model.edit.pom.RepositoryPolicy;
+import org.eclipse.m2e.model.edit.pom.Resource;
+import org.eclipse.m2e.model.edit.pom.Scm;
+import org.eclipse.m2e.model.edit.pom.Site;
+
/**
- * <!-- begin-user-doc --> The <b>Adapter Factory</b> for the model. It provides
- * an adapter <code>createXXX</code> method for each class of the model. <!--
- * end-user-doc -->
+ * <!-- begin-user-doc --> The <b>Adapter Factory</b> for the model. It provides an adapter <code>createXXX</code>
+ * method for each class of the model. <!-- end-user-doc -->
*
* @see org.eclipse.m2e.model.edit.pom.PomPackage
* @generated
*/
public class PomAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected static PomPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public PomAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = PomPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc --> This implementation returns <code>true</code> if
- * the object is either the model's package or is an instance object of the
- * model. <!-- end-user-doc -->
- *
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object) {
- if (object == modelPackage) {
- return true;
- }
- if (object instanceof EObject) {
- return ((EObject) object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the <code>createXXX</code> methods. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected PomSwitch<Adapter> modelSwitch = new PomSwitch<Adapter>() {
- @Override
- public Adapter caseActivation(Activation object) {
- return createActivationAdapter();
- }
-
- @Override
- public Adapter caseActivationFile(ActivationFile object) {
- return createActivationFileAdapter();
- }
-
- @Override
- public Adapter caseActivationOS(ActivationOS object) {
- return createActivationOSAdapter();
- }
-
- @Override
- public Adapter caseActivationProperty(ActivationProperty object) {
- return createActivationPropertyAdapter();
- }
-
- @Override
- public Adapter caseBuild(Build object) {
- return createBuildAdapter();
- }
-
- @Override
- public Adapter caseBuildBase(BuildBase object) {
- return createBuildBaseAdapter();
- }
-
- @Override
- public Adapter caseCiManagement(CiManagement object) {
- return createCiManagementAdapter();
- }
-
- @Override
- public Adapter caseContributor(Contributor object) {
- return createContributorAdapter();
- }
-
- @Override
- public Adapter caseDependency(Dependency object) {
- return createDependencyAdapter();
- }
-
- @Override
- public Adapter caseDependencyManagement(DependencyManagement object) {
- return createDependencyManagementAdapter();
- }
-
- @Override
- public Adapter caseDeploymentRepository(DeploymentRepository object) {
- return createDeploymentRepositoryAdapter();
- }
-
- @Override
- public Adapter caseDeveloper(Developer object) {
- return createDeveloperAdapter();
- }
-
- @Override
- public Adapter caseDistributionManagement(DistributionManagement object) {
- return createDistributionManagementAdapter();
- }
-
- @Override
- public Adapter caseDocumentRoot(DocumentRoot object) {
- return createDocumentRootAdapter();
- }
-
- @Override
- public Adapter caseExclusion(Exclusion object) {
- return createExclusionAdapter();
- }
-
- @Override
- public Adapter caseExtension(Extension object) {
- return createExtensionAdapter();
- }
-
- @Override
- public Adapter caseIssueManagement(IssueManagement object) {
- return createIssueManagementAdapter();
- }
-
- @Override
- public Adapter caseLicense(License object) {
- return createLicenseAdapter();
- }
-
- @Override
- public Adapter caseMailingList(MailingList object) {
- return createMailingListAdapter();
- }
-
- @Override
- public Adapter caseModel(Model object) {
- return createModelAdapter();
- }
-
- @Override
- public Adapter caseNotifier(org.eclipse.m2e.model.edit.pom.Notifier object) {
- return createNotifierAdapter();
- }
-
- @Override
- public Adapter caseOrganization(Organization object) {
- return createOrganizationAdapter();
- }
-
- @Override
- public Adapter caseParent(Parent object) {
- return createParentAdapter();
- }
-
- @Override
- public Adapter casePlugin(Plugin object) {
- return createPluginAdapter();
- }
-
- @Override
- public Adapter casePluginExecution(PluginExecution object) {
- return createPluginExecutionAdapter();
- }
-
- @Override
- public Adapter casePluginManagement(PluginManagement object) {
- return createPluginManagementAdapter();
- }
-
- @Override
- public Adapter casePrerequisites(Prerequisites object) {
- return createPrerequisitesAdapter();
- }
-
- @Override
- public Adapter caseProfile(Profile object) {
- return createProfileAdapter();
- }
-
- @Override
- public Adapter caseRelocation(Relocation object) {
- return createRelocationAdapter();
- }
-
- @Override
- public Adapter caseReporting(Reporting object) {
- return createReportingAdapter();
- }
-
- @Override
- public Adapter caseReportPlugin(ReportPlugin object) {
- return createReportPluginAdapter();
- }
-
- @Override
- public Adapter caseReportSet(ReportSet object) {
- return createReportSetAdapter();
- }
-
- @Override
- public Adapter caseRepository(Repository object) {
- return createRepositoryAdapter();
- }
-
- @Override
- public Adapter caseRepositoryPolicy(RepositoryPolicy object) {
- return createRepositoryPolicyAdapter();
- }
-
- @Override
- public Adapter caseResource(Resource object) {
- return createResourceAdapter();
- }
-
- @Override
- public Adapter caseScm(Scm object) {
- return createScmAdapter();
- }
-
- @Override
- public Adapter caseSite(Site object) {
- return createSiteAdapter();
- }
-
- @Override
- public Adapter casePropertyElement(PropertyElement object) {
- return createPropertyElementAdapter();
- }
-
- @Override
- public Adapter caseConfiguration(Configuration object) {
- return createConfigurationAdapter();
- }
-
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param target
- * the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject) target);
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Activation <em>Activation</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that
- * we can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Activation
- * @generated
- */
- public Adapter createActivationAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.ActivationFile
- * <em>Activation File</em>}'. <!-- begin-user-doc --> This default
- * implementation returns null so that we can easily ignore cases; it's
- * useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.ActivationFile
- * @generated
- */
- public Adapter createActivationFileAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.ActivationOS <em>Activation OS</em>}
- * '. <!-- begin-user-doc --> This default implementation returns null so
- * that we can easily ignore cases; it's useful to ignore a case when
- * inheritance will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.ActivationOS
- * @generated
- */
- public Adapter createActivationOSAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.ActivationProperty
- * <em>Activation Property</em>}'. <!-- begin-user-doc --> This default
- * implementation returns null so that we can easily ignore cases; it's
- * useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.ActivationProperty
- * @generated
- */
- public Adapter createActivationPropertyAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Build <em>Build</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Build
- * @generated
- */
- public Adapter createBuildAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.BuildBase <em>Build Base</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.BuildBase
- * @generated
- */
- public Adapter createBuildBaseAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.CiManagement <em>Ci Management</em>}
- * '. <!-- begin-user-doc --> This default implementation returns null so
- * that we can easily ignore cases; it's useful to ignore a case when
- * inheritance will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.CiManagement
- * @generated
- */
- public Adapter createCiManagementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Contributor <em>Contributor</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that
- * we can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Contributor
- * @generated
- */
- public Adapter createContributorAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Dependency <em>Dependency</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that
- * we can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Dependency
- * @generated
- */
- public Adapter createDependencyAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.DependencyManagement
- * <em>Dependency Management</em>}'. <!-- begin-user-doc --> This default
- * implementation returns null so that we can easily ignore cases; it's
- * useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.DependencyManagement
- * @generated
- */
- public Adapter createDependencyManagementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository
- * <em>Deployment Repository</em>}'. <!-- begin-user-doc --> This default
- * implementation returns null so that we can easily ignore cases; it's
- * useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.DeploymentRepository
- * @generated
- */
- public Adapter createDeploymentRepositoryAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Developer <em>Developer</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Developer
- * @generated
- */
- public Adapter createDeveloperAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.DistributionManagement
- * <em>Distribution Management</em>}'. <!-- begin-user-doc --> This default
- * implementation returns null so that we can easily ignore cases; it's
- * useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.DistributionManagement
- * @generated
- */
- public Adapter createDistributionManagementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.DocumentRoot <em>Document Root</em>}
- * '. <!-- begin-user-doc --> This default implementation returns null so
- * that we can easily ignore cases; it's useful to ignore a case when
- * inheritance will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.DocumentRoot
- * @generated
- */
- public Adapter createDocumentRootAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Exclusion <em>Exclusion</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Exclusion
- * @generated
- */
- public Adapter createExclusionAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Extension <em>Extension</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Extension
- * @generated
- */
- public Adapter createExtensionAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.IssueManagement
- * <em>Issue Management</em>}'. <!-- begin-user-doc --> This default
- * implementation returns null so that we can easily ignore cases; it's
- * useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.IssueManagement
- * @generated
- */
- public Adapter createIssueManagementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.License <em>License</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.License
- * @generated
- */
- public Adapter createLicenseAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.MailingList <em>Mailing List</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that
- * we can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.MailingList
- * @generated
- */
- public Adapter createMailingListAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Model <em>Model</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Model
- * @generated
- */
- public Adapter createModelAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Notifier <em>Notifier</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Notifier
- * @generated
- */
- public Adapter createNotifierAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Organization <em>Organization</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that
- * we can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Organization
- * @generated
- */
- public Adapter createOrganizationAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Parent <em>Parent</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Parent
- * @generated
- */
- public Adapter createParentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Plugin <em>Plugin</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Plugin
- * @generated
- */
- public Adapter createPluginAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.PluginExecution
- * <em>Plugin Execution</em>}'. <!-- begin-user-doc --> This default
- * implementation returns null so that we can easily ignore cases; it's
- * useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.PluginExecution
- * @generated
- */
- public Adapter createPluginExecutionAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.PluginManagement
- * <em>Plugin Management</em>}'. <!-- begin-user-doc --> This default
- * implementation returns null so that we can easily ignore cases; it's
- * useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.PluginManagement
- * @generated
- */
- public Adapter createPluginManagementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Prerequisites <em>Prerequisites</em>}
- * '. <!-- begin-user-doc --> This default implementation returns null so
- * that we can easily ignore cases; it's useful to ignore a case when
- * inheritance will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Prerequisites
- * @generated
- */
- public Adapter createPrerequisitesAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Profile <em>Profile</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Profile
- * @generated
- */
- public Adapter createProfileAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Relocation <em>Relocation</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that
- * we can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Relocation
- * @generated
- */
- public Adapter createRelocationAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Reporting <em>Reporting</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Reporting
- * @generated
- */
- public Adapter createReportingAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.ReportPlugin <em>Report Plugin</em>}
- * '. <!-- begin-user-doc --> This default implementation returns null so
- * that we can easily ignore cases; it's useful to ignore a case when
- * inheritance will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.ReportPlugin
- * @generated
- */
- public Adapter createReportPluginAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.ReportSet <em>Report Set</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.ReportSet
- * @generated
- */
- public Adapter createReportSetAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Repository <em>Repository</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that
- * we can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Repository
- * @generated
- */
- public Adapter createRepositoryAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy
- * <em>Repository Policy</em>}'. <!-- begin-user-doc --> This default
- * implementation returns null so that we can easily ignore cases; it's
- * useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.RepositoryPolicy
- * @generated
- */
- public Adapter createRepositoryPolicyAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Resource <em>Resource</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Resource
- * @generated
- */
- public Adapter createResourceAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Scm <em>Scm</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Scm
- * @generated
- */
- public Adapter createScmAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Site <em>Site</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Site
- * @generated
- */
- public Adapter createSiteAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.PropertyElement
- * <em>Property Element</em>}'. <!-- begin-user-doc --> This default
- * implementation returns null so that we can easily ignore cases; it's
- * useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.PropertyElement
- * @generated
- */
- public Adapter createPropertyElementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.m2e.model.edit.pom.Configuration <em>Configuration</em>}
- * '. <!-- begin-user-doc --> This default implementation returns null so
- * that we can easily ignore cases; it's useful to ignore a case when
- * inheritance will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.m2e.model.edit.pom.Configuration
- * @generated
- */
- public Adapter createConfigurationAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case. <!-- begin-user-doc --> This
- * default implementation returns null. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
+ /**
+ * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected static PomPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PomAdapterFactory() {
+ if(modelPackage == null) {
+ modelPackage = PomPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object. <!-- begin-user-doc --> This implementation
+ * returns <code>true</code> if the object is either the model's package or is an instance object of the model. <!--
+ * end-user-doc -->
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if(object == modelPackage) {
+ return true;
+ }
+ if(object instanceof EObject) {
+ return ((EObject) object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected PomSwitch<Adapter> modelSwitch = new PomSwitch<Adapter>() {
+ @Override
+ public Adapter caseActivation(Activation object) {
+ return createActivationAdapter();
+ }
+
+ @Override
+ public Adapter caseActivationFile(ActivationFile object) {
+ return createActivationFileAdapter();
+ }
+
+ @Override
+ public Adapter caseActivationOS(ActivationOS object) {
+ return createActivationOSAdapter();
+ }
+
+ @Override
+ public Adapter caseActivationProperty(ActivationProperty object) {
+ return createActivationPropertyAdapter();
+ }
+
+ @Override
+ public Adapter caseBuild(Build object) {
+ return createBuildAdapter();
+ }
+
+ @Override
+ public Adapter caseBuildBase(BuildBase object) {
+ return createBuildBaseAdapter();
+ }
+
+ @Override
+ public Adapter caseCiManagement(CiManagement object) {
+ return createCiManagementAdapter();
+ }
+
+ @Override
+ public Adapter caseContributor(Contributor object) {
+ return createContributorAdapter();
+ }
+
+ @Override
+ public Adapter caseDependency(Dependency object) {
+ return createDependencyAdapter();
+ }
+
+ @Override
+ public Adapter caseDependencyManagement(DependencyManagement object) {
+ return createDependencyManagementAdapter();
+ }
+
+ @Override
+ public Adapter caseDeploymentRepository(DeploymentRepository object) {
+ return createDeploymentRepositoryAdapter();
+ }
+
+ @Override
+ public Adapter caseDeveloper(Developer object) {
+ return createDeveloperAdapter();
+ }
+
+ @Override
+ public Adapter caseDistributionManagement(DistributionManagement object) {
+ return createDistributionManagementAdapter();
+ }
+
+ @Override
+ public Adapter caseDocumentRoot(DocumentRoot object) {
+ return createDocumentRootAdapter();
+ }
+
+ @Override
+ public Adapter caseExclusion(Exclusion object) {
+ return createExclusionAdapter();
+ }
+
+ @Override
+ public Adapter caseExtension(Extension object) {
+ return createExtensionAdapter();
+ }
+
+ @Override
+ public Adapter caseIssueManagement(IssueManagement object) {
+ return createIssueManagementAdapter();
+ }
+
+ @Override
+ public Adapter caseLicense(License object) {
+ return createLicenseAdapter();
+ }
+
+ @Override
+ public Adapter caseMailingList(MailingList object) {
+ return createMailingListAdapter();
+ }
+
+ @Override
+ public Adapter caseModel(Model object) {
+ return createModelAdapter();
+ }
+
+ @Override
+ public Adapter caseNotifier(org.eclipse.m2e.model.edit.pom.Notifier object) {
+ return createNotifierAdapter();
+ }
+
+ @Override
+ public Adapter caseOrganization(Organization object) {
+ return createOrganizationAdapter();
+ }
+
+ @Override
+ public Adapter caseParent(Parent object) {
+ return createParentAdapter();
+ }
+
+ @Override
+ public Adapter casePlugin(Plugin object) {
+ return createPluginAdapter();
+ }
+
+ @Override
+ public Adapter casePluginExecution(PluginExecution object) {
+ return createPluginExecutionAdapter();
+ }
+
+ @Override
+ public Adapter casePluginManagement(PluginManagement object) {
+ return createPluginManagementAdapter();
+ }
+
+ @Override
+ public Adapter casePrerequisites(Prerequisites object) {
+ return createPrerequisitesAdapter();
+ }
+
+ @Override
+ public Adapter caseProfile(Profile object) {
+ return createProfileAdapter();
+ }
+
+ @Override
+ public Adapter caseRelocation(Relocation object) {
+ return createRelocationAdapter();
+ }
+
+ @Override
+ public Adapter caseReporting(Reporting object) {
+ return createReportingAdapter();
+ }
+
+ @Override
+ public Adapter caseReportPlugin(ReportPlugin object) {
+ return createReportPluginAdapter();
+ }
+
+ @Override
+ public Adapter caseReportSet(ReportSet object) {
+ return createReportSetAdapter();
+ }
+
+ @Override
+ public Adapter caseRepository(Repository object) {
+ return createRepositoryAdapter();
+ }
+
+ @Override
+ public Adapter caseRepositoryPolicy(RepositoryPolicy object) {
+ return createRepositoryPolicyAdapter();
+ }
+
+ @Override
+ public Adapter caseResource(Resource object) {
+ return createResourceAdapter();
+ }
+
+ @Override
+ public Adapter caseScm(Scm object) {
+ return createScmAdapter();
+ }
+
+ @Override
+ public Adapter caseSite(Site object) {
+ return createSiteAdapter();
+ }
+
+ @Override
+ public Adapter casePropertyElement(PropertyElement object) {
+ return createPropertyElementAdapter();
+ }
+
+ @Override
+ public Adapter caseConfiguration(Configuration object) {
+ return createConfigurationAdapter();
+ }
+
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject) target);
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Activation
+ * <em>Activation</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Activation
+ * @generated
+ */
+ public Adapter createActivationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.ActivationFile
+ * <em>Activation File</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.ActivationFile
+ * @generated
+ */
+ public Adapter createActivationFileAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.ActivationOS
+ * <em>Activation OS</em>} '. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.ActivationOS
+ * @generated
+ */
+ public Adapter createActivationOSAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.ActivationProperty
+ * <em>Activation Property</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.ActivationProperty
+ * @generated
+ */
+ public Adapter createActivationPropertyAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Build <em>Build</em>}'. <!--
+ * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Build
+ * @generated
+ */
+ public Adapter createBuildAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.BuildBase <em>Build Base</em>}
+ * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful
+ * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.BuildBase
+ * @generated
+ */
+ public Adapter createBuildBaseAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.CiManagement
+ * <em>Ci Management</em>} '. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.CiManagement
+ * @generated
+ */
+ public Adapter createCiManagementAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Contributor
+ * <em>Contributor</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Contributor
+ * @generated
+ */
+ public Adapter createContributorAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Dependency
+ * <em>Dependency</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Dependency
+ * @generated
+ */
+ public Adapter createDependencyAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.DependencyManagement
+ * <em>Dependency Management</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.DependencyManagement
+ * @generated
+ */
+ public Adapter createDependencyManagementAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.DeploymentRepository
+ * <em>Deployment Repository</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.DeploymentRepository
+ * @generated
+ */
+ public Adapter createDeploymentRepositoryAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Developer <em>Developer</em>}
+ * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful
+ * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Developer
+ * @generated
+ */
+ public Adapter createDeveloperAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.DistributionManagement
+ * <em>Distribution Management</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.DistributionManagement
+ * @generated
+ */
+ public Adapter createDistributionManagementAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.DocumentRoot
+ * <em>Document Root</em>} '. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.DocumentRoot
+ * @generated
+ */
+ public Adapter createDocumentRootAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Exclusion <em>Exclusion</em>}
+ * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful
+ * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Exclusion
+ * @generated
+ */
+ public Adapter createExclusionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Extension <em>Extension</em>}
+ * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful
+ * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Extension
+ * @generated
+ */
+ public Adapter createExtensionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.IssueManagement
+ * <em>Issue Management</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.IssueManagement
+ * @generated
+ */
+ public Adapter createIssueManagementAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.License <em>License</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.License
+ * @generated
+ */
+ public Adapter createLicenseAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.MailingList
+ * <em>Mailing List</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.MailingList
+ * @generated
+ */
+ public Adapter createMailingListAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Model <em>Model</em>}'. <!--
+ * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Model
+ * @generated
+ */
+ public Adapter createModelAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Notifier <em>Notifier</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Notifier
+ * @generated
+ */
+ public Adapter createNotifierAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Organization
+ * <em>Organization</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Organization
+ * @generated
+ */
+ public Adapter createOrganizationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Parent <em>Parent</em>}'. <!--
+ * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Parent
+ * @generated
+ */
+ public Adapter createParentAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Plugin <em>Plugin</em>}'. <!--
+ * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Plugin
+ * @generated
+ */
+ public Adapter createPluginAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.PluginExecution
+ * <em>Plugin Execution</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.PluginExecution
+ * @generated
+ */
+ public Adapter createPluginExecutionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.PluginManagement
+ * <em>Plugin Management</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.PluginManagement
+ * @generated
+ */
+ public Adapter createPluginManagementAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Prerequisites
+ * <em>Prerequisites</em>} '. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Prerequisites
+ * @generated
+ */
+ public Adapter createPrerequisitesAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Profile <em>Profile</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Profile
+ * @generated
+ */
+ public Adapter createProfileAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Relocation
+ * <em>Relocation</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Relocation
+ * @generated
+ */
+ public Adapter createRelocationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Reporting <em>Reporting</em>}
+ * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful
+ * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Reporting
+ * @generated
+ */
+ public Adapter createReportingAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.ReportPlugin
+ * <em>Report Plugin</em>} '. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.ReportPlugin
+ * @generated
+ */
+ public Adapter createReportPluginAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.ReportSet <em>Report Set</em>}
+ * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful
+ * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.ReportSet
+ * @generated
+ */
+ public Adapter createReportSetAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Repository
+ * <em>Repository</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Repository
+ * @generated
+ */
+ public Adapter createRepositoryAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.RepositoryPolicy
+ * <em>Repository Policy</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.RepositoryPolicy
+ * @generated
+ */
+ public Adapter createRepositoryPolicyAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Resource <em>Resource</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Resource
+ * @generated
+ */
+ public Adapter createResourceAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Scm <em>Scm</em>}'. <!--
+ * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Scm
+ * @generated
+ */
+ public Adapter createScmAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Site <em>Site</em>}'. <!--
+ * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Site
+ * @generated
+ */
+ public Adapter createSiteAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.PropertyElement
+ * <em>Property Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.PropertyElement
+ * @generated
+ */
+ public Adapter createPropertyElementAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class ' {@link org.eclipse.m2e.model.edit.pom.Configuration
+ * <em>Configuration</em>} '. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.m2e.model.edit.pom.Configuration
+ * @generated
+ */
+ public Adapter createConfigurationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case. <!-- begin-user-doc --> This default implementation returns null. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
} // PomAdapterFactory
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomResourceFactoryImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomResourceFactoryImpl.java
index 26c2b49f..f6a6fb5f 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomResourceFactoryImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomResourceFactoryImpl.java
@@ -15,31 +15,31 @@
*
* $Id: PomResourceFactoryImpl.java 20719 2009-02-02 05:52:56Z mpoindexter $
*/
+
package org.eclipse.m2e.model.edit.pom.util;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
+
/**
- * <!-- begin-user-doc --> The <b>Resource Factory</b> associated with the
- * package. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> The <b>Resource Factory</b> associated with the package. <!-- end-user-doc -->
*
* @see org.eclipse.m2e.model.edit.pom.util.PomResourceImpl
*/
public class PomResourceFactoryImpl extends ResourceFactoryImpl {
- /**
- * Creates an instance of the resource factory. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- */
- public PomResourceFactoryImpl() {
+ /**
+ * Creates an instance of the resource factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ */
+ public PomResourceFactoryImpl() {
- }
+ }
- @Override
- public Resource createResource(URI uri) {
- return new PomResourceImpl(uri);
- }
+ @Override
+ public Resource createResource(URI uri) {
+ return new PomResourceImpl(uri);
+ }
} // PomResourceFactoryImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomResourceImpl.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomResourceImpl.java
index 63dc5b92..86a2c853 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomResourceImpl.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomResourceImpl.java
@@ -15,33 +15,34 @@ import java.io.IOException;
import java.util.Map;
import org.eclipse.emf.common.util.URI;
+
import org.eclipse.m2e.model.edit.pom.Model;
import org.eclipse.m2e.model.edit.pom.translators.SSESyncResource;
+
/**
- * <!-- begin-user-doc --> The <b>Resource </b> associated with the package.
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> The <b>Resource </b> associated with the package. <!-- end-user-doc -->
+ *
* @see org.eclipse.m2e.model.edit.pom.util.PomResourceFactoryImpl
* @generated NOT
*/
public class PomResourceImpl extends SSESyncResource {
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @param uri the URI of the new resource.
- * @generated
- */
- public PomResourceImpl(URI uri) {
- super(uri);
- }
-
- public void load(Map<?, ?> options) throws IOException {
- super.load(options);
- }
-
- public Model getModel() {
- return (Model) getContents().get(0);
- }
+ /**
+ * Creates an instance of the resource. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param uri the URI of the new resource.
+ * @generated
+ */
+ public PomResourceImpl(URI uri) {
+ super(uri);
+ }
+
+ public void load(Map<?, ?> options) throws IOException {
+ super.load(options);
+ }
+
+ public Model getModel() {
+ return (Model) getContents().get(0);
+ }
} // PomResourceImpl
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomSwitch.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomSwitch.java
index 5ee48ad5..1dbcca97 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomSwitch.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomSwitch.java
@@ -15,1046 +15,923 @@
*
* $Id: PomSwitch.java 20588 2008-12-04 17:59:55Z jerdfelt $
*/
+
package org.eclipse.m2e.model.edit.pom.util;
import java.util.List;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
-import org.eclipse.m2e.model.edit.pom.*;
+
+import org.eclipse.m2e.model.edit.pom.Activation;
+import org.eclipse.m2e.model.edit.pom.ActivationFile;
+import org.eclipse.m2e.model.edit.pom.ActivationOS;
+import org.eclipse.m2e.model.edit.pom.ActivationProperty;
+import org.eclipse.m2e.model.edit.pom.Build;
+import org.eclipse.m2e.model.edit.pom.BuildBase;
+import org.eclipse.m2e.model.edit.pom.CiManagement;
+import org.eclipse.m2e.model.edit.pom.Configuration;
+import org.eclipse.m2e.model.edit.pom.Contributor;
+import org.eclipse.m2e.model.edit.pom.Dependency;
+import org.eclipse.m2e.model.edit.pom.DependencyManagement;
+import org.eclipse.m2e.model.edit.pom.DeploymentRepository;
+import org.eclipse.m2e.model.edit.pom.Developer;
+import org.eclipse.m2e.model.edit.pom.DistributionManagement;
+import org.eclipse.m2e.model.edit.pom.DocumentRoot;
+import org.eclipse.m2e.model.edit.pom.Exclusion;
+import org.eclipse.m2e.model.edit.pom.Extension;
+import org.eclipse.m2e.model.edit.pom.IssueManagement;
+import org.eclipse.m2e.model.edit.pom.License;
+import org.eclipse.m2e.model.edit.pom.MailingList;
+import org.eclipse.m2e.model.edit.pom.Model;
+import org.eclipse.m2e.model.edit.pom.Notifier;
+import org.eclipse.m2e.model.edit.pom.Organization;
+import org.eclipse.m2e.model.edit.pom.Parent;
+import org.eclipse.m2e.model.edit.pom.Plugin;
+import org.eclipse.m2e.model.edit.pom.PluginExecution;
+import org.eclipse.m2e.model.edit.pom.PluginManagement;
+import org.eclipse.m2e.model.edit.pom.PomPackage;
+import org.eclipse.m2e.model.edit.pom.Prerequisites;
+import org.eclipse.m2e.model.edit.pom.Profile;
+import org.eclipse.m2e.model.edit.pom.PropertyElement;
+import org.eclipse.m2e.model.edit.pom.Relocation;
+import org.eclipse.m2e.model.edit.pom.ReportPlugin;
+import org.eclipse.m2e.model.edit.pom.ReportSet;
+import org.eclipse.m2e.model.edit.pom.Reporting;
+import org.eclipse.m2e.model.edit.pom.Repository;
+import org.eclipse.m2e.model.edit.pom.RepositoryPolicy;
+import org.eclipse.m2e.model.edit.pom.Resource;
+import org.eclipse.m2e.model.edit.pom.Scm;
+import org.eclipse.m2e.model.edit.pom.Site;
+
/**
- * <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance
- * hierarchy. It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object and proceeding up the
- * inheritance hierarchy until a non-null result is returned, which is the
- * result of the switch. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance hierarchy. It supports the call
+ * {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is
+ * returned, which is the result of the switch. <!-- end-user-doc -->
*
* @see org.eclipse.m2e.model.edit.pom.PomPackage
* @generated
*/
public class PomSwitch<T> {
- /**
- * The cached model package <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected static PomPackage modelPackage;
-
- /**
- * Creates an instance of the switch. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public PomSwitch() {
- if (modelPackage == null) {
- modelPackage = PomPackage.eINSTANCE;
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns
- * a non null result; it yields that result. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code>
- * call.
- * @generated
- */
- public T doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns
- * a non null result; it yields that result. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code>
- * call.
- * @generated
- */
- protected T doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- } else {
- List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(
- eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns
- * a non null result; it yields that result. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code>
- * call.
- * @generated
- */
- protected T doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case PomPackage.ACTIVATION: {
- Activation activation = (Activation) theEObject;
- T result = caseActivation(activation);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.ACTIVATION_FILE: {
- ActivationFile activationFile = (ActivationFile) theEObject;
- T result = caseActivationFile(activationFile);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.ACTIVATION_OS: {
- ActivationOS activationOS = (ActivationOS) theEObject;
- T result = caseActivationOS(activationOS);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.ACTIVATION_PROPERTY: {
- ActivationProperty activationProperty = (ActivationProperty) theEObject;
- T result = caseActivationProperty(activationProperty);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.BUILD: {
- Build build = (Build) theEObject;
- T result = caseBuild(build);
- if (result == null)
- result = caseBuildBase(build);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.BUILD_BASE: {
- BuildBase buildBase = (BuildBase) theEObject;
- T result = caseBuildBase(buildBase);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.CI_MANAGEMENT: {
- CiManagement ciManagement = (CiManagement) theEObject;
- T result = caseCiManagement(ciManagement);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.CONTRIBUTOR: {
- Contributor contributor = (Contributor) theEObject;
- T result = caseContributor(contributor);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.DEPENDENCY: {
- Dependency dependency = (Dependency) theEObject;
- T result = caseDependency(dependency);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.DEPENDENCY_MANAGEMENT: {
- DependencyManagement dependencyManagement = (DependencyManagement) theEObject;
- T result = caseDependencyManagement(dependencyManagement);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.DEPLOYMENT_REPOSITORY: {
- DeploymentRepository deploymentRepository = (DeploymentRepository) theEObject;
- T result = caseDeploymentRepository(deploymentRepository);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.DEVELOPER: {
- Developer developer = (Developer) theEObject;
- T result = caseDeveloper(developer);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.DISTRIBUTION_MANAGEMENT: {
- DistributionManagement distributionManagement = (DistributionManagement) theEObject;
- T result = caseDistributionManagement(distributionManagement);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.DOCUMENT_ROOT: {
- DocumentRoot documentRoot = (DocumentRoot) theEObject;
- T result = caseDocumentRoot(documentRoot);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.EXCLUSION: {
- Exclusion exclusion = (Exclusion) theEObject;
- T result = caseExclusion(exclusion);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.EXTENSION: {
- Extension extension = (Extension) theEObject;
- T result = caseExtension(extension);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.ISSUE_MANAGEMENT: {
- IssueManagement issueManagement = (IssueManagement) theEObject;
- T result = caseIssueManagement(issueManagement);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.LICENSE: {
- License license = (License) theEObject;
- T result = caseLicense(license);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.MAILING_LIST: {
- MailingList mailingList = (MailingList) theEObject;
- T result = caseMailingList(mailingList);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.MODEL: {
- Model model = (Model) theEObject;
- T result = caseModel(model);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.NOTIFIER: {
- Notifier notifier = (Notifier) theEObject;
- T result = caseNotifier(notifier);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.ORGANIZATION: {
- Organization organization = (Organization) theEObject;
- T result = caseOrganization(organization);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.PARENT: {
- Parent parent = (Parent) theEObject;
- T result = caseParent(parent);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.PLUGIN: {
- Plugin plugin = (Plugin) theEObject;
- T result = casePlugin(plugin);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.PLUGIN_EXECUTION: {
- PluginExecution pluginExecution = (PluginExecution) theEObject;
- T result = casePluginExecution(pluginExecution);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.PLUGIN_MANAGEMENT: {
- PluginManagement pluginManagement = (PluginManagement) theEObject;
- T result = casePluginManagement(pluginManagement);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.PREREQUISITES: {
- Prerequisites prerequisites = (Prerequisites) theEObject;
- T result = casePrerequisites(prerequisites);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.PROFILE: {
- Profile profile = (Profile) theEObject;
- T result = caseProfile(profile);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.RELOCATION: {
- Relocation relocation = (Relocation) theEObject;
- T result = caseRelocation(relocation);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.REPORTING: {
- Reporting reporting = (Reporting) theEObject;
- T result = caseReporting(reporting);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.REPORT_PLUGIN: {
- ReportPlugin reportPlugin = (ReportPlugin) theEObject;
- T result = caseReportPlugin(reportPlugin);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.REPORT_SET: {
- ReportSet reportSet = (ReportSet) theEObject;
- T result = caseReportSet(reportSet);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.REPOSITORY: {
- Repository repository = (Repository) theEObject;
- T result = caseRepository(repository);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.REPOSITORY_POLICY: {
- RepositoryPolicy repositoryPolicy = (RepositoryPolicy) theEObject;
- T result = caseRepositoryPolicy(repositoryPolicy);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.RESOURCE: {
- Resource resource = (Resource) theEObject;
- T result = caseResource(resource);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.SCM: {
- Scm scm = (Scm) theEObject;
- T result = caseScm(scm);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.SITE: {
- Site site = (Site) theEObject;
- T result = caseSite(site);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.PROPERTY_ELEMENT: {
- PropertyElement propertyElement = (PropertyElement) theEObject;
- T result = casePropertyElement(propertyElement);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case PomPackage.CONFIGURATION: {
- Configuration configuration = (Configuration) theEObject;
- T result = caseConfiguration(configuration);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Activation</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Activation</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseActivation(Activation object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Activation File</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Activation File</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseActivationFile(ActivationFile object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Activation OS</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Activation OS</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseActivationOS(ActivationOS object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Activation Property</em>'. <!-- begin-user-doc --> This
- * implementation returns null; returning a non-null result will terminate
- * the switch. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Activation Property</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseActivationProperty(ActivationProperty object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Build</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Build</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseBuild(Build object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Build Base</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Build Base</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseBuildBase(BuildBase object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Ci Management</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Ci Management</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCiManagement(CiManagement object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Contributor</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Contributor</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseContributor(Contributor object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Dependency</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Dependency</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDependency(Dependency object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Dependency Management</em>'. <!-- begin-user-doc --> This
- * implementation returns null; returning a non-null result will terminate
- * the switch. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Dependency Management</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDependencyManagement(DependencyManagement object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Deployment Repository</em>'. <!-- begin-user-doc --> This
- * implementation returns null; returning a non-null result will terminate
- * the switch. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Deployment Repository</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDeploymentRepository(DeploymentRepository object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Developer</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Developer</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDeveloper(Developer object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Distribution Management</em>'. <!-- begin-user-doc --> This
- * implementation returns null; returning a non-null result will terminate
- * the switch. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Distribution Management</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDistributionManagement(DistributionManagement object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Document Root</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Document Root</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDocumentRoot(DocumentRoot object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Exclusion</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Exclusion</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseExclusion(Exclusion object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Extension</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Extension</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseExtension(Extension object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Issue Management</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Issue Management</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseIssueManagement(IssueManagement object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>License</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>License</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseLicense(License object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Mailing List</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Mailing List</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseMailingList(MailingList object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Model</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Model</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseModel(Model object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Notifier</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Notifier</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseNotifier(Notifier object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Organization</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Organization</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseOrganization(Organization object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Parent</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Parent</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseParent(Parent object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Plugin</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Plugin</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePlugin(Plugin object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Plugin Execution</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Plugin Execution</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePluginExecution(PluginExecution object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Plugin Management</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Plugin Management</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePluginManagement(PluginManagement object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Prerequisites</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Prerequisites</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePrerequisites(Prerequisites object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Profile</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Profile</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseProfile(Profile object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Relocation</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Relocation</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRelocation(Relocation object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Reporting</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Reporting</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseReporting(Reporting object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Report Plugin</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Report Plugin</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseReportPlugin(ReportPlugin object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Report Set</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Report Set</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseReportSet(ReportSet object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Repository</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Repository</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRepository(Repository object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Repository Policy</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Repository Policy</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRepositoryPolicy(RepositoryPolicy object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Resource</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Resource</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseResource(Resource object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Scm</em>'. <!-- begin-user-doc --> This implementation returns null;
- * returning a non-null result will terminate the switch. <!-- end-user-doc
- * -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Scm</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseScm(Scm object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Site</em>'. <!-- begin-user-doc --> This implementation returns null;
- * returning a non-null result will terminate the switch. <!-- end-user-doc
- * -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Site</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseSite(Site object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Property Element</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Property Element</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePropertyElement(PropertyElement object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Configuration</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Configuration</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseConfiguration(Configuration object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>EObject</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch, but this is
- * the last case anyway. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object) {
- return null;
- }
+ /**
+ * The cached model package <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected static PomPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PomSwitch() {
+ if(modelPackage == null) {
+ modelPackage = PomPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ public T doSwitch(EObject theEObject) {
+ return doSwitch(theEObject.eClass(), theEObject);
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ protected T doSwitch(EClass theEClass, EObject theEObject) {
+ if(theEClass.eContainer() == modelPackage) {
+ return doSwitch(theEClass.getClassifierID(), theEObject);
+ } else {
+ List<EClass> eSuperTypes = theEClass.getESuperTypes();
+ return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject);
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch(classifierID) {
+ case PomPackage.ACTIVATION: {
+ Activation activation = (Activation) theEObject;
+ T result = caseActivation(activation);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.ACTIVATION_FILE: {
+ ActivationFile activationFile = (ActivationFile) theEObject;
+ T result = caseActivationFile(activationFile);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.ACTIVATION_OS: {
+ ActivationOS activationOS = (ActivationOS) theEObject;
+ T result = caseActivationOS(activationOS);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.ACTIVATION_PROPERTY: {
+ ActivationProperty activationProperty = (ActivationProperty) theEObject;
+ T result = caseActivationProperty(activationProperty);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.BUILD: {
+ Build build = (Build) theEObject;
+ T result = caseBuild(build);
+ if(result == null)
+ result = caseBuildBase(build);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.BUILD_BASE: {
+ BuildBase buildBase = (BuildBase) theEObject;
+ T result = caseBuildBase(buildBase);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.CI_MANAGEMENT: {
+ CiManagement ciManagement = (CiManagement) theEObject;
+ T result = caseCiManagement(ciManagement);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.CONTRIBUTOR: {
+ Contributor contributor = (Contributor) theEObject;
+ T result = caseContributor(contributor);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.DEPENDENCY: {
+ Dependency dependency = (Dependency) theEObject;
+ T result = caseDependency(dependency);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.DEPENDENCY_MANAGEMENT: {
+ DependencyManagement dependencyManagement = (DependencyManagement) theEObject;
+ T result = caseDependencyManagement(dependencyManagement);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.DEPLOYMENT_REPOSITORY: {
+ DeploymentRepository deploymentRepository = (DeploymentRepository) theEObject;
+ T result = caseDeploymentRepository(deploymentRepository);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.DEVELOPER: {
+ Developer developer = (Developer) theEObject;
+ T result = caseDeveloper(developer);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.DISTRIBUTION_MANAGEMENT: {
+ DistributionManagement distributionManagement = (DistributionManagement) theEObject;
+ T result = caseDistributionManagement(distributionManagement);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.DOCUMENT_ROOT: {
+ DocumentRoot documentRoot = (DocumentRoot) theEObject;
+ T result = caseDocumentRoot(documentRoot);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.EXCLUSION: {
+ Exclusion exclusion = (Exclusion) theEObject;
+ T result = caseExclusion(exclusion);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.EXTENSION: {
+ Extension extension = (Extension) theEObject;
+ T result = caseExtension(extension);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.ISSUE_MANAGEMENT: {
+ IssueManagement issueManagement = (IssueManagement) theEObject;
+ T result = caseIssueManagement(issueManagement);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.LICENSE: {
+ License license = (License) theEObject;
+ T result = caseLicense(license);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.MAILING_LIST: {
+ MailingList mailingList = (MailingList) theEObject;
+ T result = caseMailingList(mailingList);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.MODEL: {
+ Model model = (Model) theEObject;
+ T result = caseModel(model);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.NOTIFIER: {
+ Notifier notifier = (Notifier) theEObject;
+ T result = caseNotifier(notifier);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.ORGANIZATION: {
+ Organization organization = (Organization) theEObject;
+ T result = caseOrganization(organization);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.PARENT: {
+ Parent parent = (Parent) theEObject;
+ T result = caseParent(parent);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.PLUGIN: {
+ Plugin plugin = (Plugin) theEObject;
+ T result = casePlugin(plugin);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.PLUGIN_EXECUTION: {
+ PluginExecution pluginExecution = (PluginExecution) theEObject;
+ T result = casePluginExecution(pluginExecution);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.PLUGIN_MANAGEMENT: {
+ PluginManagement pluginManagement = (PluginManagement) theEObject;
+ T result = casePluginManagement(pluginManagement);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.PREREQUISITES: {
+ Prerequisites prerequisites = (Prerequisites) theEObject;
+ T result = casePrerequisites(prerequisites);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.PROFILE: {
+ Profile profile = (Profile) theEObject;
+ T result = caseProfile(profile);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.RELOCATION: {
+ Relocation relocation = (Relocation) theEObject;
+ T result = caseRelocation(relocation);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.REPORTING: {
+ Reporting reporting = (Reporting) theEObject;
+ T result = caseReporting(reporting);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.REPORT_PLUGIN: {
+ ReportPlugin reportPlugin = (ReportPlugin) theEObject;
+ T result = caseReportPlugin(reportPlugin);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.REPORT_SET: {
+ ReportSet reportSet = (ReportSet) theEObject;
+ T result = caseReportSet(reportSet);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.REPOSITORY: {
+ Repository repository = (Repository) theEObject;
+ T result = caseRepository(repository);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.REPOSITORY_POLICY: {
+ RepositoryPolicy repositoryPolicy = (RepositoryPolicy) theEObject;
+ T result = caseRepositoryPolicy(repositoryPolicy);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.RESOURCE: {
+ Resource resource = (Resource) theEObject;
+ T result = caseResource(resource);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.SCM: {
+ Scm scm = (Scm) theEObject;
+ T result = caseScm(scm);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.SITE: {
+ Site site = (Site) theEObject;
+ T result = caseSite(site);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.PROPERTY_ELEMENT: {
+ PropertyElement propertyElement = (PropertyElement) theEObject;
+ T result = casePropertyElement(propertyElement);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case PomPackage.CONFIGURATION: {
+ Configuration configuration = (Configuration) theEObject;
+ T result = caseConfiguration(configuration);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Activation</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Activation</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseActivation(Activation object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Activation File</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Activation File</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseActivationFile(ActivationFile object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Activation OS</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Activation OS</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseActivationOS(ActivationOS object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Activation Property</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Activation Property</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseActivationProperty(ActivationProperty object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Build</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Build</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseBuild(Build object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Build Base</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Build Base</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseBuildBase(BuildBase object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Ci Management</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Ci Management</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCiManagement(CiManagement object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Contributor</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Contributor</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseContributor(Contributor object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Dependency</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Dependency</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDependency(Dependency object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Dependency Management</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Dependency Management</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDependencyManagement(DependencyManagement object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Deployment Repository</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Deployment Repository</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDeploymentRepository(DeploymentRepository object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Developer</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Developer</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDeveloper(Developer object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Distribution Management</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Distribution Management</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDistributionManagement(DistributionManagement object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Document Root</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Document Root</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDocumentRoot(DocumentRoot object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Exclusion</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Exclusion</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseExclusion(Exclusion object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Extension</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Extension</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseExtension(Extension object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Issue Management</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Issue Management</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIssueManagement(IssueManagement object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>License</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>License</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLicense(License object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Mailing List</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Mailing List</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMailingList(MailingList object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Model</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Model</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseModel(Model object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Notifier</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Notifier</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNotifier(Notifier object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Organization</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Organization</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOrganization(Organization object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Parent</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Parent</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseParent(Parent object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Plugin</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Plugin</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T casePlugin(Plugin object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Plugin Execution</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Plugin Execution</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T casePluginExecution(PluginExecution object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Plugin Management</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Plugin Management</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T casePluginManagement(PluginManagement object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Prerequisites</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Prerequisites</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T casePrerequisites(Prerequisites object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Profile</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Profile</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseProfile(Profile object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Relocation</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Relocation</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRelocation(Relocation object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Reporting</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Reporting</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseReporting(Reporting object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Report Plugin</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Report Plugin</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseReportPlugin(ReportPlugin object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Report Set</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Report Set</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseReportSet(ReportSet object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Repository</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Repository</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRepository(Repository object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Repository Policy</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Repository Policy</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRepositoryPolicy(RepositoryPolicy object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Resource</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Resource</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseResource(Resource object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Scm</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Scm</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseScm(Scm object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Site</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Site</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSite(Site object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Property Element</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Property Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T casePropertyElement(PropertyElement object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>Configuration</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>Configuration</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseConfiguration(Configuration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of ' <em>EObject</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch, but this is the last case
+ * anyway. <!-- end-user-doc -->
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of ' <em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ public T defaultCase(EObject object) {
+ return null;
+ }
} // PomSwitch
diff --git a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomXMLProcessor.java b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomXMLProcessor.java
index 0afa6afb..75d1c160 100644
--- a/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomXMLProcessor.java
+++ b/org.eclipse.m2e.model.edit/src/main/java/org/eclipse/m2e/model/edit/pom/util/PomXMLProcessor.java
@@ -15,50 +15,50 @@
*
* $Id: PomXMLProcessor.java 20588 2008-12-04 17:59:55Z jerdfelt $
*/
+
package org.eclipse.m2e.model.edit.pom.util;
import java.util.Map;
import org.eclipse.emf.ecore.EPackage;
-
import org.eclipse.emf.ecore.resource.Resource;
-
import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
+
import org.eclipse.m2e.model.edit.pom.PomPackage;
+
/**
- * This class contains helper methods to serialize and deserialize XML documents
- * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * This class contains helper methods to serialize and deserialize XML documents <!-- begin-user-doc --> <!--
+ * end-user-doc -->
*
* @generated
*/
public class PomXMLProcessor extends XMLProcessor {
- /**
- * Public constructor to instantiate the helper. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public PomXMLProcessor() {
- super((EPackage.Registry.INSTANCE));
- PomPackage.eINSTANCE.eClass();
- }
+ /**
+ * Public constructor to instantiate the helper. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PomXMLProcessor() {
+ super((EPackage.Registry.INSTANCE));
+ PomPackage.eINSTANCE.eClass();
+ }
- /**
- * Register for "*" and "xml" file extensions the PomResourceFactoryImpl
- * factory. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected Map<String, Resource.Factory> getRegistrations() {
- if (registrations == null) {
- super.getRegistrations();
- registrations.put(XML_EXTENSION, new PomResourceFactoryImpl());
- registrations.put(STAR_EXTENSION, new PomResourceFactoryImpl());
- }
- return registrations;
- }
+ /**
+ * Register for "*" and "xml" file extensions the PomResourceFactoryImpl factory. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected Map<String, Resource.Factory> getRegistrations() {
+ if(registrations == null) {
+ super.getRegistrations();
+ registrations.put(XML_EXTENSION, new PomResourceFactoryImpl());
+ registrations.put(STAR_EXTENSION, new PomResourceFactoryImpl());
+ }
+ return registrations;
+ }
} // PomXMLProcessor
diff --git a/org.eclipse.m2e.refactoring/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.refactoring/.settings/org.eclipse.jdt.core.prefs
index 20336c24..80d9c54b 100644
--- a/org.eclipse.m2e.refactoring/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.m2e.refactoring/.settings/org.eclipse.jdt.core.prefs
@@ -1,5 +1,12 @@
-#Sat Jul 30 19:01:59 MSD 2011
eclipse.preferences.version=1
+org.eclipse.jdt.core.builder.cleanOutputFolder=clean
+org.eclipse.jdt.core.builder.duplicateResourceTask=warning
+org.eclipse.jdt.core.builder.invalidClasspath=abort
+org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder=ignore
+org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch
+org.eclipse.jdt.core.circularClasspath=error
+org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
+org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
org.eclipse.jdt.core.codeComplete.argumentPrefixes=
org.eclipse.jdt.core.codeComplete.argumentSuffixes=
org.eclipse.jdt.core.codeComplete.fieldPrefixes=
@@ -8,6 +15,8 @@ org.eclipse.jdt.core.codeComplete.localPrefixes=
org.eclipse.jdt.core.codeComplete.localSuffixes=
org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
@@ -15,14 +24,16 @@ org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.doc.comment.support=enabled
+org.eclipse.jdt.core.compiler.maxProblemPerUnit=100
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
org.eclipse.jdt.core.compiler.problem.deadCode=warning
org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
@@ -31,67 +42,76 @@ org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
+org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
org.eclipse.jdt.core.compiler.problem.nullReference=warning
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
-org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
-org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=enabled
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.5
org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled
-org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,NORMAL
+org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH
org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
@@ -102,15 +122,18 @@ org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=2
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
org.eclipse.jdt.core.formatter.blank_lines_before_field=1
@@ -146,10 +169,16 @@ org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert
org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=2
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
@@ -167,6 +196,7 @@ org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert
org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
@@ -233,12 +263,14 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invoca
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
@@ -262,6 +294,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
@@ -317,6 +350,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
@@ -326,6 +360,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=inser
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
@@ -335,6 +370,8 @@ org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
@@ -347,5 +384,10 @@ org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
org.eclipse.jdt.core.formatter.tabulation.char=space
org.eclipse.jdt.core.formatter.tabulation.size=2
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
+org.eclipse.jdt.core.incompatibleJDKLevel=ignore
+org.eclipse.jdt.core.incompleteClasspath=error
diff --git a/org.eclipse.m2e.refactoring/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.m2e.refactoring/.settings/org.eclipse.jdt.ui.prefs
index 4308aea5..595d9975 100644
--- a/org.eclipse.m2e.refactoring/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.m2e.refactoring/.settings/org.eclipse.jdt.ui.prefs
@@ -1,9 +1,66 @@
eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_m2 plugin
-formatter_settings_version=11
+formatter_settings_version=12
org.eclipse.jdt.ui.exception.name=ex
org.eclipse.jdt.ui.gettersetter.use.is=true
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=java;javax;org;org.w3c;org.xml;org.apache;com;junit;org.eclipse;org.codehaus;org.apache.lucene;org.apache.maven;org.sonatype;org.eclipse.m2e;
org.eclipse.jdt.ui.javadoc=true
-org.eclipse.jdt.ui.keywordthis=false
+org.eclipse.jdt.ui.keywordthis=true
+org.eclipse.jdt.ui.ondemandthreshold=99
org.eclipse.jdt.ui.overrideannotation=false
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************\n * Copyright (c) 2010 Sonatype, Inc.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http\://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors\:\n * Sonatype, Inc. - initial API and implementation\n *******************************************************************************/</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nMavenLogger.log(${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+org.eclipse.jdt.ui.staticondemandthreshold=99
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/AbstractPomRefactoring.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/AbstractPomRefactoring.java
index 954cab0e..95326c19 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/AbstractPomRefactoring.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/AbstractPomRefactoring.java
@@ -18,8 +18,9 @@ import java.util.Iterator;
import java.util.List;
import java.util.Map;
-import org.apache.maven.execution.MavenExecutionRequest;
-import org.apache.maven.project.MavenProject;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -44,6 +45,11 @@ import org.eclipse.ltk.core.refactoring.Refactoring;
import org.eclipse.ltk.core.refactoring.RefactoringStatus;
import org.eclipse.ltk.core.refactoring.TextFileChange;
import org.eclipse.ltk.core.refactoring.participants.RenameRefactoring;
+import org.eclipse.osgi.util.NLS;
+
+import org.apache.maven.execution.MavenExecutionRequest;
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.embedder.IMaven;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
@@ -54,9 +60,6 @@ import org.eclipse.m2e.model.edit.pom.util.PomResourceFactoryImpl;
import org.eclipse.m2e.model.edit.pom.util.PomResourceImpl;
import org.eclipse.m2e.refactoring.RefactoringModelResources.PropertyInfo;
import org.eclipse.m2e.refactoring.internal.Activator;
-import org.eclipse.osgi.util.NLS;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
@@ -236,17 +239,22 @@ public abstract class AbstractPomRefactoring extends Refactoring {
public RefactoringStatus isValid(IProgressMonitor pm) throws CoreException, OperationCanceledException {
return RefactoringStatus.createFatalErrorStatus(ex.getStatus().getMessage());
}
+
public Object getModifiedElement() {
return null;
}
+
public String getName() {
return ex.getStatus().getMessage();
}
+
public void initializeValidationData(IProgressMonitor pm) {
}
+
public Change perform(IProgressMonitor pm) throws CoreException {
return null;
}
+
public boolean isEnabled() {
return false;
}
@@ -318,7 +326,7 @@ public abstract class AbstractPomRefactoring extends Refactoring {
return null;
}
}
-
+
public static PomResourceImpl loadResource(IFile pomFile) throws CoreException {
String path = pomFile.getFullPath().toOSString();
URI uri = URI.createPlatformResourceURI(path, true);
@@ -326,12 +334,12 @@ public abstract class AbstractPomRefactoring extends Refactoring {
try {
Resource resource = new PomResourceFactoryImpl().createResource(uri);
resource.load(new HashMap());
- return (PomResourceImpl)resource;
+ return (PomResourceImpl) resource;
} catch(Exception ex) {
String msg = NLS.bind("Can't load model {0}", pomFile);
log.error(msg, ex);
throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID, -1, msg, ex));
}
- }
+ }
}
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/ChangeCreator.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/ChangeCreator.java
index 8bb0368d..0c201555 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/ChangeCreator.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/ChangeCreator.java
@@ -14,6 +14,9 @@ package org.eclipse.m2e.refactoring;
import java.util.ArrayList;
import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.compare.rangedifferencer.IRangeComparator;
import org.eclipse.compare.rangedifferencer.RangeDifference;
import org.eclipse.compare.rangedifferencer.RangeDifferencer;
@@ -28,8 +31,6 @@ import org.eclipse.text.edits.MultiTextEdit;
import org.eclipse.text.edits.ReplaceEdit;
import org.eclipse.text.edits.TextEdit;
import org.eclipse.text.edits.TextEditGroup;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
@@ -62,22 +63,24 @@ public class ChangeCreator {
Object leftSide = new LineComparator(oldDocument);
Object rightSide = new LineComparator(newDocument);
- RangeDifference[] differences = RangeDifferencer.findDifferences((IRangeComparator) leftSide, (IRangeComparator) rightSide);
+ RangeDifference[] differences = RangeDifferencer.findDifferences((IRangeComparator) leftSide,
+ (IRangeComparator) rightSide);
int insertOffset = 0;
for(int i = 0; i < differences.length; i++ ) {
RangeDifference curr = differences[i];
int startLine = 0;
// when comparing 2 files, only RangeDifference.CHANGE is possible, no need to test
- if (curr.rightLength() == curr.leftLength()) {
+ if(curr.rightLength() == curr.leftLength()) {
// replace
startLine = curr.rightStart();
int endLine = curr.rightEnd() - 1;
for(int j = startLine; j <= endLine; j++ ) {
int newPos = curr.leftStart() - startLine + j;
String newText = newDocument.get(newDocument.getLineOffset(newPos), newDocument.getLineLength(newPos));
- addEdit(change, startLine, new ReplaceEdit(oldDocument.getLineOffset(j), oldDocument.getLineLength(j), newText));
+ addEdit(change, startLine, new ReplaceEdit(oldDocument.getLineOffset(j), oldDocument.getLineLength(j),
+ newText));
}
- } else if (curr.rightLength() > 0 && curr.leftLength() == 0) {
+ } else if(curr.rightLength() > 0 && curr.leftLength() == 0) {
// insert
startLine = curr.rightStart();
int endLine = curr.rightEnd() - 1;
@@ -87,11 +90,11 @@ public class ChangeCreator {
int newPos = curr.leftStart() - startLine + j + insertOffset;
newText += newDocument.get(newDocument.getLineOffset(newPos), newDocument.getLineLength(newPos));
}
- if(newText.length() > 0){
+ if(newText.length() > 0) {
addEdit(change, startLine, new InsertEdit(posInsert, newText));
}
insertOffset += curr.rightEnd() - curr.rightStart();
- } else if (curr.leftLength() > 0 && curr.rightLength() == 0) {
+ } else if(curr.leftLength() > 0 && curr.rightLength() == 0) {
// delete
startLine = curr.leftStart();
int endLine = curr.leftEnd() - 1;
@@ -108,17 +111,18 @@ public class ChangeCreator {
}
return change;
}
-
+
private void addEdit(TextFileChange change, int startLine, TextEdit edit) {
change.addTextEditGroup(new TextEditGroup("Line " + (startLine + 1), edit));
change.addEdit(edit);
}
-
+
public static class LineComparator implements IRangeComparator {
private final IDocument document;
+
private final ArrayList<Integer> hashes;
- /**
+ /**
* Create a line comparator for the given document.
*
* @param document
@@ -141,7 +145,7 @@ public class ChangeCreator {
public boolean rangesEqual(int thisIndex, IRangeComparator other, int otherIndex) {
try {
return getHash(thisIndex).equals(((LineComparator) other).getHash(otherIndex));
- } catch (BadLocationException e) {
+ } catch(BadLocationException e) {
log.error("Problem comparing", e);
return false;
}
@@ -161,10 +165,10 @@ public class ChangeCreator {
*/
private Integer getHash(int line) throws BadLocationException {
Integer hash = hashes.get(line);
- if (hash == null) {
+ if(hash == null) {
IRegion lineRegion;
lineRegion = document.getLineInformation(line);
- String lineContents= document.get(lineRegion.getOffset(), lineRegion.getLength());
+ String lineContents = document.get(lineRegion.getOffset(), lineRegion.getLength());
hash = new Integer(computeDJBHash(lineContents));
hashes.set(line, hash);
}
@@ -180,7 +184,7 @@ public class ChangeCreator {
private int computeDJBHash(String string) {
int hash = 5381;
int len = string.length();
- for (int i = 0; i < len; i++) {
+ for(int i = 0; i < len; i++ ) {
hash = (hash << 5) + hash + string.charAt(i);
}
return hash;
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/Messages.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/Messages.java
index 8ad5eb8f..74995dd2 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/Messages.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/Messages.java
@@ -16,7 +16,6 @@ import org.eclipse.osgi.util.NLS;
/**
* @author mkleint
- *
*/
public class Messages extends NLS {
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/PomVisitor.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/PomVisitor.java
index 7d01169e..aa054de9 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/PomVisitor.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/PomVisitor.java
@@ -27,7 +27,7 @@ public interface PomVisitor {
* @param model - current model being visited
* @param pm - progress monitor
* @return command that executes changes (if any)
- * @throws Exception
+ * @throws Exception
*/
public CompoundCommand applyChanges(RefactoringModelResources model, IProgressMonitor pm) throws Exception;
}
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/RefactoringModelResources.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/RefactoringModelResources.java
index 91a15ea9..7eb88e9c 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/RefactoringModelResources.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/RefactoringModelResources.java
@@ -15,7 +15,9 @@ import java.io.File;
import java.io.IOException;
import java.util.Map;
-import org.apache.maven.project.MavenProject;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.filebuffers.FileBuffers;
import org.eclipse.core.filebuffers.ITextFileBuffer;
import org.eclipse.core.filebuffers.ITextFileBufferManager;
@@ -27,11 +29,13 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.emf.common.command.Command;
import org.eclipse.emf.common.command.CompoundCommand;
import org.eclipse.emf.ecore.resource.Resource;
+
+import org.apache.maven.project.MavenProject;
+
import org.eclipse.m2e.core.project.IMavenProjectFacade;
import org.eclipse.m2e.model.edit.pom.Model;
import org.eclipse.m2e.model.edit.pom.PropertyElement;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
/**
* This class manages all refactoring-related resources for a particular maven project
@@ -42,23 +46,34 @@ public class RefactoringModelResources {
private static final Logger log = LoggerFactory.getLogger(RefactoringModelResources.class);
private static final String TMP_PROJECT_NAME = ".m2eclipse_refactoring"; //$NON-NLS-1$
+
protected IFile pomFile;
+
protected IFile tmpFile;
+
protected ITextFileBuffer pomBuffer;
+
protected ITextFileBuffer tmpBuffer;
+
protected Model tmpModel;
+
protected org.apache.maven.model.Model effective;
+
protected ITextFileBufferManager textFileBufferManager;
+
protected Map<String, PropertyInfo> properties;
+
protected MavenProject project;
+
protected CompoundCommand command;
+
protected static IProject tmpProject;
-
+
protected IProject getTmpProject() {
- if (tmpProject == null) {
+ if(tmpProject == null) {
tmpProject = ResourcesPlugin.getWorkspace().getRoot().getProject(TMP_PROJECT_NAME);
}
- if (!tmpProject.exists()) {
+ if(!tmpProject.exists()) {
try {
tmpProject.create(null);
tmpProject.open(null);
@@ -68,7 +83,7 @@ public class RefactoringModelResources {
}
return tmpProject;
}
-
+
public RefactoringModelResources(IMavenProjectFacade projectFacade) throws CoreException, IOException {
textFileBufferManager = FileBuffers.getTextFileBufferManager();
project = projectFacade.getMavenProject(null);
@@ -82,9 +97,9 @@ public class RefactoringModelResources {
f.delete();
tmpFile = project.getFile(f.getName());
pomFile.copy(tmpFile.getFullPath(), true, null);
-
+
Resource resource = AbstractPomRefactoring.loadResource(tmpFile);
- tmpModel = (Model)resource.getContents().get(0);
+ tmpModel = (Model) resource.getContents().get(0);
tmpBuffer = getBuffer(tmpFile);
}
@@ -134,24 +149,23 @@ public class RefactoringModelResources {
public void releaseAllResources() throws CoreException {
releaseBuffer(pomBuffer, pomFile);
- if (tmpFile != null && tmpFile.exists()) {
+ if(tmpFile != null && tmpFile.exists()) {
releaseBuffer(tmpBuffer, tmpFile);
}
- if (tmpModel != null) {
+ if(tmpModel != null) {
tmpModel.eResource().unload();
}
}
public static void cleanupTmpProject() throws CoreException {
- if (tmpProject.exists()) {
+ if(tmpProject.exists()) {
tmpProject.delete(true, true, null);
}
}
-
-
+
protected ITextFileBuffer getBuffer(IFile file) throws CoreException {
textFileBufferManager.connect(file.getLocation(), LocationKind.NORMALIZE, null);
- return textFileBufferManager.getTextFileBuffer(file.getLocation(), LocationKind.NORMALIZE);
+ return textFileBufferManager.getTextFileBuffer(file.getLocation(), LocationKind.NORMALIZE);
}
protected void releaseBuffer(ITextFileBuffer buffer, IFile file) throws CoreException {
@@ -165,9 +179,11 @@ public class RefactoringModelResources {
public static class PropertyInfo {
protected PropertyElement pair;
+
protected RefactoringModelResources resource;
+
protected Command newValue;
-
+
public Command getNewValue() {
return newValue;
}
@@ -175,7 +191,7 @@ public class RefactoringModelResources {
public void setNewValue(Command newValue) {
this.newValue = newValue;
}
-
+
public PropertyElement getPair() {
return pair;
}
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/dependencyset/DependencySetAction.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/dependencyset/DependencySetAction.java
index d447ccc7..8a658652 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/dependencyset/DependencySetAction.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/dependencyset/DependencySetAction.java
@@ -19,13 +19,15 @@ import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation;
-import org.eclipse.m2e.core.embedder.ArtifactKey;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IActionDelegate;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.PlatformUI;
+import org.eclipse.m2e.core.embedder.ArtifactKey;
+
+
/**
* This action is intended to be used in popup menus
*
@@ -34,12 +36,13 @@ import org.eclipse.ui.PlatformUI;
public class DependencySetAction implements IActionDelegate {
public static final String ID = "org.eclipse.m2e.refactoring.DependencySet"; //$NON-NLS-1$
-
+
private IFile file;
+
private List<ArtifactKey> keys;
public void run(IAction action) {
- if (keys != null && keys.size() > 0 && file != null) {
+ if(keys != null && keys.size() > 0 && file != null) {
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
MavenDependencySetWizard wizard = new MavenDependencySetWizard(file, keys);
try {
@@ -55,39 +58,39 @@ public class DependencySetAction implements IActionDelegate {
public void selectionChanged(IAction action, ISelection selection) {
file = null;
keys = new ArrayList<ArtifactKey>();
-
- if (selection instanceof IStructuredSelection) {
+
+ if(selection instanceof IStructuredSelection) {
IStructuredSelection structuredSelection = (IStructuredSelection) selection;
for(Object selected : structuredSelection.toArray()) {
/*if (selected instanceof Artifact) {
file = getFileFromEditor();
keys.add(new ArtifactKey((Artifact) selected));
- } else*/ if (selected instanceof org.sonatype.aether.graph.DependencyNode) {
+ } else*/if(selected instanceof org.sonatype.aether.graph.DependencyNode) {
file = getFileFromEditor();
org.sonatype.aether.graph.DependencyNode selected2 = (org.sonatype.aether.graph.DependencyNode) selected;
- if (selected2.getData().get("LEVEL") == null) {
+ if(selected2.getData().get("LEVEL") == null) {
keys.add(new ArtifactKey(selected2.getDependency().getArtifact()));
}
-
+
} /*else if (selected instanceof RequiredProjectWrapper) {
RequiredProjectWrapper w = (RequiredProjectWrapper) selected;
file = getFileFromProject(w.getParentClassPathContainer().getJavaProject());
keys.add(SelectionUtil.getType(selected, ArtifactKey.class));
-
- } else {
+
+ } else {
keys.add(SelectionUtil.getType(selected, ArtifactKey.class));
if (selected instanceof IJavaElement) {
IJavaElement el = (IJavaElement) selected;
file = getFileFromProject(el.getParent().getJavaProject());
}
-
- }
- */
+
+ }
+ */
}
}
-
- if (keys.size() > 0 && file != null) {
+
+ if(keys.size() > 0 && file != null) {
action.setEnabled(true);
} else {
action.setEnabled(false);
@@ -97,7 +100,7 @@ public class DependencySetAction implements IActionDelegate {
//mkleint: scary
private IFile getFileFromEditor() {
IEditorPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
- if (part != null && part.getEditorInput() instanceof IFileEditorInput) {
+ if(part != null && part.getEditorInput() instanceof IFileEditorInput) {
IFileEditorInput input = (IFileEditorInput) part.getEditorInput();
return input.getFile();
}
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/dependencyset/DependencySetRefactoring.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/dependencyset/DependencySetRefactoring.java
index c0784866..82587deb 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/dependencyset/DependencySetRefactoring.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/dependencyset/DependencySetRefactoring.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.refactoring.dependencyset;
import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.ARTIFACT_ID;
@@ -24,6 +25,9 @@ import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.setText;
import java.util.ArrayList;
import java.util.List;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -31,19 +35,19 @@ import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.ltk.core.refactoring.Change;
import org.eclipse.ltk.core.refactoring.Refactoring;
import org.eclipse.ltk.core.refactoring.RefactoringStatus;
+
import org.eclipse.m2e.core.embedder.ArtifactKey;
import org.eclipse.m2e.core.ui.internal.editing.PomEdits.CompoundOperation;
import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
import org.eclipse.m2e.core.ui.internal.editing.PomHelper;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
+
/**
* @author mkleint
- *
*/
public class DependencySetRefactoring extends Refactoring {
private final IFile file;
+
private final List<ArtifactKey> keys;
public DependencySetRefactoring(IFile file, List<ArtifactKey> keys) {
@@ -78,24 +82,27 @@ public class DependencySetRefactoring extends Refactoring {
*/
public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException {
List<Operation> operations = new ArrayList<Operation>();
- for (ArtifactKey key : keys) {
+ for(ArtifactKey key : keys) {
operations.add(new OneDependency(key));
}
CompoundOperation compound = new CompoundOperation(operations.toArray(new Operation[0]));
return PomHelper.createChange(file, compound, getName());
}
-
+
private static class OneDependency implements Operation {
private final String groupId;
+
private final String artifactId;
+
private final String version;
-
+
public OneDependency(ArtifactKey key) {
this.groupId = key.getGroupId();
this.artifactId = key.getArtifactId();
this.version = key.getVersion();
}
+
/* (non-Javadoc)
* @see org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation#process(org.w3c.dom.Document)
*/
@@ -113,8 +120,7 @@ public class DependencySetRefactoring extends Refactoring {
} else {
//is transitive dependency
Element dm = getChild(document.getDocumentElement(), DEPENDENCY_MANAGEMENT, DEPENDENCIES);
- existing = findChild(dm, DEPENDENCY, childEquals(GROUP_ID, groupId),
- childEquals(ARTIFACT_ID, artifactId));
+ existing = findChild(dm, DEPENDENCY, childEquals(GROUP_ID, groupId), childEquals(ARTIFACT_ID, artifactId));
if(existing != null) {
setText(getChild(existing, VERSION), version);
} else {
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/dependencyset/MavenDependencySetWizard.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/dependencyset/MavenDependencySetWizard.java
index 5f92957b..030ff01e 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/dependencyset/MavenDependencySetWizard.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/dependencyset/MavenDependencySetWizard.java
@@ -15,6 +15,7 @@ import java.util.List;
import org.eclipse.core.resources.IFile;
import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
+
import org.eclipse.m2e.core.embedder.ArtifactKey;
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/DependencyExcludeAction.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/DependencyExcludeAction.java
index fbbd5fa4..f1e6d784 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/DependencyExcludeAction.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/DependencyExcludeAction.java
@@ -14,7 +14,6 @@ package org.eclipse.m2e.refactoring.exclude;
import java.util.ArrayList;
import java.util.List;
-import org.apache.maven.artifact.Artifact;
import org.eclipse.core.resources.IFile;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IJavaProject;
@@ -23,14 +22,18 @@ import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation;
-import org.eclipse.m2e.core.embedder.ArtifactKey;
-import org.eclipse.m2e.core.ui.internal.actions.SelectionUtil;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IActionDelegate;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.PlatformUI;
+import org.apache.maven.artifact.Artifact;
+
+import org.eclipse.m2e.core.embedder.ArtifactKey;
+import org.eclipse.m2e.core.ui.internal.actions.SelectionUtil;
+
+
/**
* This action is intended to be used in popup menus
*
@@ -40,7 +43,7 @@ import org.eclipse.ui.PlatformUI;
public class DependencyExcludeAction implements IActionDelegate {
public static final String ID = "org.eclipse.m2e.refactoring.DependencyExclude"; //$NON-NLS-1$
-
+
private IFile file;
private ArtifactKey[] keys;
@@ -63,26 +66,26 @@ public class DependencyExcludeAction implements IActionDelegate {
public void selectionChanged(IAction action, ISelection selection) {
file = null;
keys = null;
-
+
// TODO move logic into adapters
- if (selection instanceof IStructuredSelection) {
+ if(selection instanceof IStructuredSelection) {
IStructuredSelection structuredSelection = (IStructuredSelection) selection;
List<ArtifactKey> keys = new ArrayList<ArtifactKey>(structuredSelection.size());
for(Object selected : structuredSelection.toArray()) {
- if (selected instanceof Artifact) {
+ if(selected instanceof Artifact) {
file = getFileFromEditor();
keys.add(new ArtifactKey((Artifact) selected));
- } else if (selected instanceof org.sonatype.aether.graph.DependencyNode) {
+ } else if(selected instanceof org.sonatype.aether.graph.DependencyNode) {
file = getFileFromEditor();
keys.add(new ArtifactKey(((org.sonatype.aether.graph.DependencyNode) selected).getDependency().getArtifact()));
- } else if (selected instanceof RequiredProjectWrapper) {
+ } else if(selected instanceof RequiredProjectWrapper) {
RequiredProjectWrapper w = (RequiredProjectWrapper) selected;
file = getFileFromProject(w.getParentClassPathContainer().getJavaProject());
keys.add(SelectionUtil.getType(selected, ArtifactKey.class));
} else {
keys.add(SelectionUtil.getType(selected, ArtifactKey.class));
- if (selected instanceof IJavaElement) {
+ if(selected instanceof IJavaElement) {
IJavaElement el = (IJavaElement) selected;
file = getFileFromProject(el.getParent().getJavaProject());
}
@@ -104,7 +107,7 @@ public class DependencyExcludeAction implements IActionDelegate {
//mkleint: scary
private IFile getFileFromEditor() {
IEditorPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
- if (part != null && part.getEditorInput() instanceof IFileEditorInput) {
+ if(part != null && part.getEditorInput() instanceof IFileEditorInput) {
IFileEditorInput input = (IFileEditorInput) part.getEditorInput();
return input.getFile();
}
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/ExcludeArtifactRefactoring.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/ExcludeArtifactRefactoring.java
index 6cb39e16..0ee0939c 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/ExcludeArtifactRefactoring.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/ExcludeArtifactRefactoring.java
@@ -8,6 +8,7 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.refactoring.exclude;
import java.util.ArrayList;
@@ -19,9 +20,6 @@ import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
-import org.apache.maven.model.Dependency;
-import org.apache.maven.model.Exclusion;
-import org.apache.maven.project.MavenProject;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -35,6 +33,17 @@ import org.eclipse.ltk.core.refactoring.Change;
import org.eclipse.ltk.core.refactoring.CompositeChange;
import org.eclipse.ltk.core.refactoring.Refactoring;
import org.eclipse.ltk.core.refactoring.RefactoringStatus;
+import org.eclipse.osgi.util.NLS;
+
+import org.apache.maven.model.Dependency;
+import org.apache.maven.model.Exclusion;
+import org.apache.maven.project.MavenProject;
+
+import org.sonatype.aether.artifact.Artifact;
+import org.sonatype.aether.graph.DependencyNode;
+import org.sonatype.aether.graph.DependencyVisitor;
+import org.sonatype.aether.util.artifact.JavaScopes;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.embedder.ArtifactKey;
import org.eclipse.m2e.core.internal.M2EUtils;
@@ -46,11 +55,6 @@ import org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation;
import org.eclipse.m2e.core.ui.internal.editing.PomHelper;
import org.eclipse.m2e.core.ui.internal.editing.RemoveDependencyOperation;
import org.eclipse.m2e.refactoring.Messages;
-import org.eclipse.osgi.util.NLS;
-import org.sonatype.aether.artifact.Artifact;
-import org.sonatype.aether.graph.DependencyNode;
-import org.sonatype.aether.graph.DependencyVisitor;
-import org.sonatype.aether.util.artifact.JavaScopes;
public class ExcludeArtifactRefactoring extends Refactoring {
@@ -86,8 +90,8 @@ public class ExcludeArtifactRefactoring extends Refactoring {
}
protected IMavenProjectFacade getMavenProjectFacade(MavenProject mavenProject) {
- return MavenPlugin.getMavenProjectRegistry()
- .getMavenProject(mavenProject.getGroupId(), mavenProject.getArtifactId(), mavenProject.getVersion());
+ return MavenPlugin.getMavenProjectRegistry().getMavenProject(mavenProject.getGroupId(),
+ mavenProject.getArtifactId(), mavenProject.getVersion());
}
/* (non-Javadoc)
@@ -108,8 +112,7 @@ public class ExcludeArtifactRefactoring extends Refactoring {
public RefactoringStatus checkInitialConditions(IProgressMonitor pm) throws CoreException, OperationCanceledException {
exclusionPoint = getMavenProjectFacade(pomFile).getMavenProject(pm);
if(exclusionPoint == null) {
- return RefactoringStatus
- .createFatalErrorStatus(Messages.ExcludeArtifactRefactoring_unableToLocateProject);
+ return RefactoringStatus.createFatalErrorStatus(Messages.ExcludeArtifactRefactoring_unableToLocateProject);
}
return new RefactoringStatus();
}
@@ -129,7 +132,7 @@ public class ExcludeArtifactRefactoring extends Refactoring {
// Exclusion point
Visitor visitor = locate(exclusionPoint, monitor.newChild(1));
for(Entry<Dependency, Set<ArtifactKey>> entry : visitor.getSourceMap().entrySet()) {
- locatedKeys.addAll(entry.getValue());
+ locatedKeys.addAll(entry.getValue());
Dependency dependency = entry.getKey();
if(contains(entry.getValue(), dependency)) {
exclusionOp.add(new RemoveDependencyOperation(dependency));
@@ -176,8 +179,9 @@ public class ExcludeArtifactRefactoring extends Refactoring {
Dependency dependency = entry.getKey();
if(contains(entry.getValue(), dependency)) {
if(project.getFile() != null) {
- statuses.add(new Status(IStatus.INFO, PLUGIN_ID, NLS.bind(Messages.ExcludeArtifactRefactoring_removeDependencyFrom,
- toString(dependency), getMavenProjectFacade(project).getPom().getFullPath())));
+ statuses.add(new Status(IStatus.INFO, PLUGIN_ID, NLS.bind(
+ Messages.ExcludeArtifactRefactoring_removeDependencyFrom, toString(dependency),
+ getMavenProjectFacade(project).getPom().getFullPath())));
IFile pom = getFile(project);
changes.add(PomHelper.createChange(getFile(project), new RemoveDependencyOperation(dependency),
getName(pom)));
@@ -201,8 +205,8 @@ public class ExcludeArtifactRefactoring extends Refactoring {
if(statuses.size() == 1) {
return RefactoringStatus.create(statuses.get(0));
} else if(statuses.size() > 1) {
- return RefactoringStatus.create(new MultiStatus(PLUGIN_ID, 0, statuses
- .toArray(new IStatus[statuses.size()]), Messages.ExcludeArtifactRefactoring_errorCreatingRefactoring, null));
+ return RefactoringStatus.create(new MultiStatus(PLUGIN_ID, 0, statuses.toArray(new IStatus[statuses.size()]),
+ Messages.ExcludeArtifactRefactoring_errorCreatingRefactoring, null));
} else if(locatedKeys.isEmpty()) {
return RefactoringStatus.createFatalErrorStatus(Messages.ExcludeArtifactRefactoring_noTargets);
} else if(locatedKeys.size() != keys.length) {
@@ -220,13 +224,11 @@ public class ExcludeArtifactRefactoring extends Refactoring {
}
private String getName(IFile file) {
- return new StringBuilder().append(file.getName())
- .append(" - ").append(file.getProject().getName()).toString(); //$NON-NLS-1$
+ return new StringBuilder().append(file.getName()).append(" - ").append(file.getProject().getName()).toString(); //$NON-NLS-1$
}
private Visitor locate(MavenProject project, IProgressMonitor monitor) throws CoreException {
- DependencyNode root = MavenPlugin.getMavenModelManager()
- .readDependencyTree(project, JavaScopes.TEST, monitor);
+ DependencyNode root = MavenPlugin.getMavenModelManager().readDependencyTree(project, JavaScopes.TEST, monitor);
Visitor visitor = new Visitor(project);
root.accept(visitor);
return visitor;
@@ -413,4 +415,4 @@ public class ExcludeArtifactRefactoring extends Refactoring {
return findDependency(artifact.getGroupId(), artifact.getArtifactId());
}
}
-} \ No newline at end of file
+}
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/ExcludeWizardPage.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/ExcludeWizardPage.java
index bd2029b9..1ff2a91e 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/ExcludeWizardPage.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/ExcludeWizardPage.java
@@ -8,15 +8,12 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.refactoring.exclude;
-import org.apache.maven.project.MavenProject;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.ltk.ui.refactoring.UserInputWizardPage;
-import org.eclipse.m2e.core.project.IMavenProjectFacade;
-import org.eclipse.m2e.core.ui.internal.components.PomHierarchyComposite;
-import org.eclipse.m2e.refactoring.Messages;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CLabel;
@@ -31,6 +28,12 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.PlatformUI;
+import org.apache.maven.project.MavenProject;
+
+import org.eclipse.m2e.core.project.IMavenProjectFacade;
+import org.eclipse.m2e.core.ui.internal.components.PomHierarchyComposite;
+import org.eclipse.m2e.refactoring.Messages;
+
public class ExcludeWizardPage extends UserInputWizardPage implements SelectionListener, ISelectionChangedListener {
@@ -125,7 +128,7 @@ public class ExcludeWizardPage extends UserInputWizardPage implements SelectionL
private void updateState() {
ExcludeArtifactRefactoring refactoring = (ExcludeArtifactRefactoring) getRefactoring();
- if (hierarchy.getSelection()) {
+ if(hierarchy.getSelection()) {
MavenProject project = pomHierarchy.fromSelection();
updateStatusBar(project);
refactoring.setExclusionPoint(project);
@@ -143,8 +146,7 @@ public class ExcludeWizardPage extends UserInputWizardPage implements SelectionL
setStatus(Messages.ExcludeWizardPage_errorNonWorkspacePom);
setPageComplete(false);
} else if((project = isAboveDependencyManagement(project)) != null) {
- setStatus(NLS.bind(Messages.ExcludeWizardPage_dependenciesManagedIn,
- toString(project)));
+ setStatus(NLS.bind(Messages.ExcludeWizardPage_dependenciesManagedIn, toString(project)));
setPageComplete(false);
} else {
setStatus(null);
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/MavenExcludeWizard.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/MavenExcludeWizard.java
index 803be06e..907e4f7f 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/MavenExcludeWizard.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/MavenExcludeWizard.java
@@ -13,6 +13,7 @@ package org.eclipse.m2e.refactoring.exclude;
import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
+
/**
* @author Anton Kraev
*/
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/internal/Activator.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/internal/Activator.java
index 060a6f99..d7699388 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/internal/Activator.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/internal/Activator.java
@@ -11,9 +11,11 @@
package org.eclipse.m2e.refactoring.internal;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+
+
/**
* The activator class controls the plug-in life cycle
*
@@ -21,43 +23,43 @@ import org.osgi.framework.BundleContext;
*/
public class Activator extends AbstractUIPlugin {
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.m2e.refactoring"; //$NON-NLS-1$
-
- // The shared instance
- private static Activator plugin;
-
- /**
- * The constructor
- */
- public Activator() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return plugin;
- }
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.m2e.refactoring"; //$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
}
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/internal/RefactoringImages.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/internal/RefactoringImages.java
index 41cb9dfe..c9374e08 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/internal/RefactoringImages.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/internal/RefactoringImages.java
@@ -11,11 +11,13 @@
package org.eclipse.m2e.refactoring.internal;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
/**
* @author Eugene Kuleshov
@@ -24,23 +26,22 @@ public class RefactoringImages {
private static final Logger log = LoggerFactory.getLogger(RefactoringImages.class);
// images
-
+
// public static final Image IMG_CLEAR = createImage("clear.gif");
-
+
// image descriptors
-
- public static final ImageDescriptor EXCLUDE = create("exclude.gif"); //$NON-NLS-1$
-
+
+ public static final ImageDescriptor EXCLUDE = create("exclude.gif"); //$NON-NLS-1$
private static ImageDescriptor create(String key) {
try {
ImageDescriptor imageDescriptor = createDescriptor(key);
ImageRegistry imageRegistry = getImageRegistry();
- if(imageRegistry!=null) {
+ if(imageRegistry != null) {
imageRegistry.put(key, imageDescriptor);
}
return imageDescriptor;
- } catch (Exception ex) {
+ } catch(Exception ex) {
log.error(key, ex);
return null;
}
@@ -54,11 +55,11 @@ public class RefactoringImages {
private static ImageRegistry getImageRegistry() {
Activator plugin = Activator.getDefault();
- return plugin==null ? null : plugin.getImageRegistry();
+ return plugin == null ? null : plugin.getImageRegistry();
}
private static ImageDescriptor createDescriptor(String image) {
return AbstractUIPlugin.imageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/" + image); //$NON-NLS-1$
}
-
+
}
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/internal/SaveDirtyFilesDialog.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/internal/SaveDirtyFilesDialog.java
index 89465ffb..f01cf298 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/internal/SaveDirtyFilesDialog.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/internal/SaveDirtyFilesDialog.java
@@ -22,7 +22,6 @@ import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.window.Window;
-import org.eclipse.m2e.refactoring.Messages;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
@@ -35,61 +34,54 @@ import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.dialogs.ListDialog;
+import org.eclipse.m2e.refactoring.Messages;
+
+
/**
- * Taken from org.eclipse.wst.common.ui.internal.dialogs
- *
- * A generic save files dialog. The bulk of the code for this dialog was taken
- * from the JDT refactoring support in
- * org.eclipse.jdt.internal.ui.refactoring.RefactoringSaveHelper. This class is
- * a good candidate for reuse amoung components.
+ * Taken from org.eclipse.wst.common.ui.internal.dialogs A generic save files dialog. The bulk of the code for this
+ * dialog was taken from the JDT refactoring support in org.eclipse.jdt.internal.ui.refactoring.RefactoringSaveHelper.
+ * This class is a good candidate for reuse amoung components.
*/
public class SaveDirtyFilesDialog extends ListDialog {
public static final String ALL_MODIFIED_RESOURCES_MUST_BE_SAVED_BEFORE_THIS_OPERATION = Messages.SaveDirtyFilesDialog_message_not_saved;
- public static boolean saveDirtyFiles(String mask)
- {
+ public static boolean saveDirtyFiles(String mask) {
boolean result = true;
// TODO (cs) add support for save automatically
Shell shell = Display.getCurrent().getActiveShell();
IEditorPart[] dirtyEditors = getDirtyEditors(mask);
- if (dirtyEditors.length > 0)
- {
+ if(dirtyEditors.length > 0) {
result = false;
SaveDirtyFilesDialog saveDirtyFilesDialog = new SaveDirtyFilesDialog(shell);
saveDirtyFilesDialog.setInput(Arrays.asList(dirtyEditors));
// Save all open editors.
- if (saveDirtyFilesDialog.open() == Window.OK)
- {
- result = true;
+ if(saveDirtyFilesDialog.open() == Window.OK) {
+ result = true;
int numDirtyEditors = dirtyEditors.length;
- for (int i = 0; i < numDirtyEditors; i++)
- {
+ for(int i = 0; i < numDirtyEditors; i++ ) {
dirtyEditors[i].doSave(null);
}
- }
- else
- {
- MessageDialog dlg = new MessageDialog(shell, Messages.SaveDirtyFilesDialog_title_error, null,
- ALL_MODIFIED_RESOURCES_MUST_BE_SAVED_BEFORE_THIS_OPERATION,
- MessageDialog.ERROR, new String[] {IDialogConstants.OK_LABEL}, 0);
+ } else {
+ MessageDialog dlg = new MessageDialog(shell, Messages.SaveDirtyFilesDialog_title_error, null,
+ ALL_MODIFIED_RESOURCES_MUST_BE_SAVED_BEFORE_THIS_OPERATION, MessageDialog.ERROR,
+ new String[] {IDialogConstants.OK_LABEL}, 0);
dlg.open();
}
}
- return result;
+ return result;
}
- private static IEditorPart[] getDirtyEditors(String mask)
- {
+ private static IEditorPart[] getDirtyEditors(String mask) {
List<IEditorPart> result = new ArrayList<IEditorPart>(0);
IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchWindow[] windows = workbench.getWorkbenchWindows();
- for (int i = 0; i < windows.length; i++) {
+ for(int i = 0; i < windows.length; i++ ) {
IWorkbenchPage[] pages = windows[i].getPages();
- for (int x = 0; x < pages.length; x++) {
+ for(int x = 0; x < pages.length; x++ ) {
IEditorPart[] editors = pages[x].getDirtyEditors();
- for (int z = 0; z < editors.length; z++) {
+ for(int z = 0; z < editors.length; z++ ) {
IEditorPart ep = editors[z];
- if (ep.getTitle().indexOf(mask) > 0) {
+ if(ep.getTitle().indexOf(mask) > 0) {
result.add(ep);
}
}
@@ -98,8 +90,7 @@ public class SaveDirtyFilesDialog extends ListDialog {
return result.toArray(new IEditorPart[result.size()]);
}
- public SaveDirtyFilesDialog(Shell parent)
- {
+ public SaveDirtyFilesDialog(Shell parent) {
super(parent);
setTitle(Messages.SaveDirtyFilesDialog_title);
setAddCancelButton(true);
@@ -108,35 +99,29 @@ public class SaveDirtyFilesDialog extends ListDialog {
setContentProvider(new ListContentProvider());
}
- protected Control createDialogArea(Composite container)
- {
+ protected Control createDialogArea(Composite container) {
Composite result = (Composite) super.createDialogArea(container);
// TODO... provide preference that supports 'always save'
return result;
}
-
- private ILabelProvider createDialogLabelProvider()
- {
- return new LabelProvider()
- {
- public Image getImage(Object element)
- {
+ private ILabelProvider createDialogLabelProvider() {
+ return new LabelProvider() {
+ public Image getImage(Object element) {
return ((IEditorPart) element).getTitleImage();
}
- public String getText(Object element)
- {
+ public String getText(Object element) {
return ((IEditorPart) element).getTitle();
}
};
}
-
- /**
- * A specialized content provider to show a list of editor parts.
- * This class has been copied from org.eclipse.jdt.internal.ui.viewsupport.ListContentProvider
- * This class should be removed once a generic solution is made available.
- */
+
+ /**
+ * A specialized content provider to show a list of editor parts. This class has been copied from
+ * org.eclipse.jdt.internal.ui.viewsupport.ListContentProvider This class should be removed once a generic solution is
+ * made available.
+ */
@SuppressWarnings("rawtypes")
static class ListContentProvider implements IStructuredContentProvider {
List fContents;
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/MavenRenameWizard.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/MavenRenameWizard.java
index 401ce95b..09e73462 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/MavenRenameWizard.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/MavenRenameWizard.java
@@ -13,6 +13,7 @@ package org.eclipse.m2e.refactoring.rename;
import org.eclipse.core.resources.IFile;
import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
+
import org.eclipse.m2e.model.edit.pom.Model;
import org.eclipse.m2e.refactoring.AbstractPomRefactoring;
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/MavenRenameWizardPage.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/MavenRenameWizardPage.java
index 19d47b00..7acbb24a 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/MavenRenameWizardPage.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/MavenRenameWizardPage.java
@@ -13,7 +13,6 @@ package org.eclipse.m2e.refactoring.rename;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.ltk.ui.refactoring.UserInputWizardPage;
-import org.eclipse.m2e.refactoring.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
@@ -26,22 +25,33 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
+import org.eclipse.m2e.refactoring.Messages;
+
/**
* @author Anton Kraev
*/
public class MavenRenameWizardPage extends UserInputWizardPage {
private Text groupIdText;
+
private Text artifactIdText;
+
private Text versionText;
+
private Button renameCheckbox;
-
+
private String groupId;
+
private String artifactId;
+
private String version;
+
private String newGroupId = ""; //$NON-NLS-1$
+
private String newArtifactId = ""; //$NON-NLS-1$
+
private String newVersion = ""; //$NON-NLS-1$
+
private boolean renamed;
protected MavenRenameWizardPage() {
@@ -72,7 +82,7 @@ public class MavenRenameWizardPage extends UserInputWizardPage {
public boolean isPageComplete() {
boolean renamedArtifact = !newArtifactId.equals(artifactId);
renameCheckbox.setEnabled(renamedArtifact);
- if (!renamedArtifact) {
+ if(!renamedArtifact) {
renameCheckbox.setSelection(false);
renamed = false;
}
@@ -115,7 +125,7 @@ public class MavenRenameWizardPage extends UserInputWizardPage {
versionText = new Text(composite, SWT.BORDER);
versionText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
versionText.setData("name", "version"); //$NON-NLS-1$ //$NON-NLS-2$
-
+
new Label(composite, SWT.NONE);
renameCheckbox = new Button(composite, SWT.CHECK);
@@ -129,7 +139,7 @@ public class MavenRenameWizardPage extends UserInputWizardPage {
getWizard().getContainer().updateButtons();
}
});
-
+
ModifyListener listener = new ModifyListener() {
public void modifyText(ModifyEvent e) {
newGroupId = groupIdText.getText();
@@ -147,7 +157,7 @@ public class MavenRenameWizardPage extends UserInputWizardPage {
artifactIdText.addModifyListener(listener);
versionText.addModifyListener(listener);
}
-
+
private String nvl(String str) {
return str == null ? "" : str; //$NON-NLS-1$
}
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/RenameArtifactHandler.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/RenameArtifactHandler.java
index c0afda28..10580726 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/RenameArtifactHandler.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/RenameArtifactHandler.java
@@ -8,8 +8,12 @@
* Contributors:
* Sonatype, Inc. - initial API and implementation
*******************************************************************************/
+
package org.eclipse.m2e.refactoring.rename;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
@@ -18,12 +22,12 @@ import org.eclipse.core.resources.IProject;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation;
-import org.eclipse.m2e.refactoring.internal.SaveDirtyFilesDialog;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.handlers.HandlerUtil;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
+import org.eclipse.m2e.refactoring.internal.SaveDirtyFilesDialog;
+
public class RenameArtifactHandler extends AbstractHandler {
private static final Logger log = LoggerFactory.getLogger(RenameArtifactHandler.class);
@@ -33,28 +37,28 @@ public class RenameArtifactHandler extends AbstractHandler {
*/
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection selection = computeSelection(event);
- if (! (selection instanceof IStructuredSelection)) {
+ if(!(selection instanceof IStructuredSelection)) {
return null;
}
Object element = ((IStructuredSelection) selection).getFirstElement();
if(element instanceof IFile) {
rename((IFile) element);
- } else if (element instanceof IProject) {
+ } else if(element instanceof IProject) {
IProject project = (IProject) element;
IFile file = project.getFile("pom.xml"); //$NON-NLS-1$
- if(file!=null) {
+ if(file != null) {
rename(file);
}
}
return null;
}
-
+
private void rename(IFile file) {
try {
// get the model from existing file
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
boolean rc = SaveDirtyFilesDialog.saveDirtyFiles("pom.xml"); //$NON-NLS-1$
- if (!rc)
+ if(!rc)
return;
MavenRenameWizard wizard = new MavenRenameWizard(file);
RefactoringWizardOpenOperation op = new RefactoringWizardOpenOperation(wizard);
@@ -64,16 +68,16 @@ public class RenameArtifactHandler extends AbstractHandler {
log.error("Unable to rename " + file, e);
}
}
-
+
protected ISelection computeSelection(ExecutionEvent event) {
ISelection selection = HandlerUtil.getActiveMenuSelection(event);
- if (!(selection instanceof IStructuredSelection)) {
+ if(!(selection instanceof IStructuredSelection)) {
selection = HandlerUtil.getActiveMenuEditorInput(event);
}
- if (!(selection instanceof IStructuredSelection)) {
+ if(!(selection instanceof IStructuredSelection)) {
selection = HandlerUtil.getCurrentSelection(event);
}
- if (!(selection instanceof IStructuredSelection)) {
+ if(!(selection instanceof IStructuredSelection)) {
selection = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getSelection();
}
return selection;
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/RenameRefactoring.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/RenameRefactoring.java
index 276cf676..5a61258d 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/RenameRefactoring.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/RenameRefactoring.java
@@ -26,6 +26,8 @@ import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.edit.command.SetCommand;
import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
import org.eclipse.ltk.core.refactoring.RefactoringStatus;
+import org.eclipse.osgi.util.NLS;
+
import org.eclipse.m2e.model.edit.pom.Model;
import org.eclipse.m2e.model.edit.pom.util.PomResourceImpl;
import org.eclipse.m2e.refactoring.AbstractPomRefactoring;
@@ -33,7 +35,6 @@ import org.eclipse.m2e.refactoring.Messages;
import org.eclipse.m2e.refactoring.PomVisitor;
import org.eclipse.m2e.refactoring.RefactoringModelResources;
import org.eclipse.m2e.refactoring.RefactoringModelResources.PropertyInfo;
-import org.eclipse.osgi.util.NLS;
/**
@@ -44,11 +45,17 @@ import org.eclipse.osgi.util.NLS;
@SuppressWarnings("rawtypes")
public class RenameRefactoring extends AbstractPomRefactoring {
private static final Object[] EMPTY_OBJECT_ARRAY = new Object[] {};
+
private static final String VERSION = "version"; //$NON-NLS-1$
+
private static final String GETVERSION = Messages.RenameRefactoring_1;
+
private static final String ARTIFACT_ID = "artifactId"; //$NON-NLS-1$
+
private static final String GETARTIFACT_ID = "getArtifactId"; //$NON-NLS-1$
+
private static final String GROUP_ID = "groupId"; //$NON-NLS-1$
+
private static final String GETGROUP_ID = "getGroupId"; //$NON-NLS-1$
// this page contains new values
@@ -56,35 +63,37 @@ public class RenameRefactoring extends AbstractPomRefactoring {
// old values
String oldGroupId;
+
String oldArtifactId;
+
String oldVersion;
public RenameRefactoring(IFile file, MavenRenameWizardPage page) {
super(file);
this.page = page;
}
-
+
// gets element from effective model based on path
private Object getElement(Object root, Path path) {
- if (path == null || path.path.size() == 0) {
+ if(path == null || path.path.size() == 0) {
return root;
}
-
+
PathElement current = path.path.remove(0);
String getterName = "get" + current.element; //$NON-NLS-1$
-
+
try {
Method getter = root.getClass().getMethod(getterName, new Class[] {});
root = getElement(getter.invoke(root, EMPTY_OBJECT_ARRAY), path);
- if (root instanceof List) {
+ if(root instanceof List) {
List children = (List) root;
- for (int i=0; i<children.size(); i++) {
+ for(int i = 0; i < children.size(); i++ ) {
Object child = children.get(i);
Method artifact = child.getClass().getMethod(GETARTIFACT_ID, new Class[] {});
String artifactId = (String) artifact.invoke(child, EMPTY_OBJECT_ARRAY);
- if (current.artifactId != null && !current.artifactId.equals(artifactId))
+ if(current.artifactId != null && !current.artifactId.equals(artifactId))
continue;
-
+
//found, names are correct
return getElement(child, path);
}
@@ -96,11 +105,12 @@ public class RenameRefactoring extends AbstractPomRefactoring {
return null;
}
}
-
+
/**
* Finds all potential matched objects in model
*/
- private List<EObjectWithPath> scanModel(Model model, String groupId, String artifactId, String version, boolean processRoot) {
+ private List<EObjectWithPath> scanModel(Model model, String groupId, String artifactId, String version,
+ boolean processRoot) {
List<EObjectWithPath> res = new ArrayList<EObjectWithPath>();
Path path = new Path();
if(processRoot) {
@@ -112,8 +122,9 @@ public class RenameRefactoring extends AbstractPomRefactoring {
}
// add candidate objects with same artifactId
- private List<EObjectWithPath> scanObject(Path current, EObject obj, String groupId, String artifactId, String version, List<EObjectWithPath> res) {
- if (scanFeature(obj, ARTIFACT_ID, artifactId)) {
+ private List<EObjectWithPath> scanObject(Path current, EObject obj, String groupId, String artifactId,
+ String version, List<EObjectWithPath> res) {
+ if(scanFeature(obj, ARTIFACT_ID, artifactId)) {
// System.out.println("found object " + obj + " : " + current);
res.add(new EObjectWithPath(obj, current));
}
@@ -121,7 +132,8 @@ public class RenameRefactoring extends AbstractPomRefactoring {
return res;
}
- private List<EObjectWithPath> scanChildren(Path current, EObject obj, String groupId, String artifactId, String version, List<EObjectWithPath> res) {
+ private List<EObjectWithPath> scanChildren(Path current, EObject obj, String groupId, String artifactId,
+ String version, List<EObjectWithPath> res) {
Iterator<EObject> it = obj.eContents().iterator();
while(it.hasNext()) {
obj = it.next();
@@ -159,28 +171,30 @@ public class RenameRefactoring extends AbstractPomRefactoring {
}
public String getNewProjectName() {
- return page.getRenameEclipseProject()? page.getNewArtifactId(): null;
+ return page.getRenameEclipseProject() ? page.getNewArtifactId() : null;
}
-
+
/**
* Applies new values in model
+ *
* @param editingDomain
- * @param renameProject
- * @throws NoSuchMethodException
- * @throws Exception
+ * @param renameProject
+ * @throws NoSuchMethodException
+ * @throws Exception
*/
- public CompoundCommand applyModel(RefactoringModelResources model,
- String newGroupId, String newArtifactId, String newVersion, boolean processRoot) throws Exception {
+ public CompoundCommand applyModel(RefactoringModelResources model, String newGroupId, String newArtifactId,
+ String newVersion, boolean processRoot) throws Exception {
// find all affected objects in EMF model
- List<EObjectWithPath> affected = scanModel(model.getTmpModel(), this.oldGroupId, this.oldArtifactId, this.oldVersion, processRoot);
-
+ List<EObjectWithPath> affected = scanModel(model.getTmpModel(), this.oldGroupId, this.oldArtifactId,
+ this.oldVersion, processRoot);
+
// go through all affected objects, check in effective model
Iterator<EObjectWithPath> i = affected.iterator();
CompoundCommand command = new CompoundCommand();
- while (i.hasNext()) {
+ while(i.hasNext()) {
EObjectWithPath obj = i.next();
Object effectiveObj = getElement(model.getEffective(), obj.path.clone());
- if (effectiveObj == null) {
+ if(effectiveObj == null) {
// System.out.println("cannot find effective for: " + obj.object);
continue;
}
@@ -189,38 +203,39 @@ public class RenameRefactoring extends AbstractPomRefactoring {
method = effectiveObj.getClass().getMethod(GETGROUP_ID, new Class[] {});
String effectiveGroupId = (String) method.invoke(effectiveObj, EMPTY_OBJECT_ARRAY);
// if version from effective POM is different from old version, skip it
- if (this.oldVersion != null && !this.oldVersion.equals(effectiveVersion)) {
+ if(this.oldVersion != null && !this.oldVersion.equals(effectiveVersion)) {
continue;
}
-
+
// only set groupId if effective group id is the same as old group id
- if (oldGroupId != null && oldGroupId.equals(effectiveGroupId))
+ if(oldGroupId != null && oldGroupId.equals(effectiveGroupId))
applyFeature(editingDomain, model, GROUP_ID, newGroupId, command, obj);
// set artifact id unconditionally
applyFeature(editingDomain, model, ARTIFACT_ID, newArtifactId, command, obj);
// only set version if effective version is the same (already checked by the above)
// and new version is not empty
- if (!"".equals(newVersion)) { //$NON-NLS-1$
+ if(!"".equals(newVersion)) { //$NON-NLS-1$
applyFeature(editingDomain, model, VERSION, newVersion, command, obj);
}
}
- return command.isEmpty()? null: command;
+ return command.isEmpty() ? null : command;
}
// apply the value, considering properties
- private void applyFeature(AdapterFactoryEditingDomain editingDomain, RefactoringModelResources model,
- String feature, String newValue, CompoundCommand command, EObjectWithPath obj) {
+ private void applyFeature(AdapterFactoryEditingDomain editingDomain, RefactoringModelResources model, String feature,
+ String newValue, CompoundCommand command, EObjectWithPath obj) {
PropertyInfo info = null;
String old = getValue(obj.object, feature);
- if (old != null && old.startsWith("${")) { //$NON-NLS-1$
+ if(old != null && old.startsWith("${")) { //$NON-NLS-1$
// this is a property, go find it
String pName = old.substring(2);
pName = pName.substring(0, pName.length() - 1).trim();
info = model.getProperties().get(pName);
}
- if (info != null)
- info.setNewValue(new SetCommand(editingDomain, info.getPair(), info.getPair().eClass().getEStructuralFeature("value"), newValue)); //$NON-NLS-1$
+ if(info != null)
+ info.setNewValue(new SetCommand(editingDomain, info.getPair(), info.getPair().eClass()
+ .getEStructuralFeature("value"), newValue)); //$NON-NLS-1$
else
applyObject(editingDomain, command, obj.object, feature, newValue);
}
@@ -229,7 +244,7 @@ public class RenameRefactoring extends AbstractPomRefactoring {
String featureName, String value) {
EStructuralFeature feature = obj.eClass().getEStructuralFeature(featureName);
if(feature == null) {
- return;
+ return;
}
Object old = obj.eGet(feature);
if(old == null || old.equals(value)) {
@@ -242,7 +257,7 @@ public class RenameRefactoring extends AbstractPomRefactoring {
public RefactoringStatus checkInitialConditions(IProgressMonitor pm) throws CoreException, OperationCanceledException {
PomResourceImpl resource = AbstractPomRefactoring.loadResource(file);
try {
- Model model = (Model)resource.getContents().get(0);
+ Model model = (Model) resource.getContents().get(0);
this.oldArtifactId = model.getArtifactId();
this.oldGroupId = model.getGroupId();
this.oldVersion = model.getVersion();
@@ -265,19 +280,19 @@ public class RenameRefactoring extends AbstractPomRefactoring {
public CompoundCommand applyChanges(RefactoringModelResources current, IProgressMonitor pm) throws Exception {
//process <project> element only for the refactored file itself
boolean processRoot = current.getPomFile().equals(file);
- return RenameRefactoring.this.applyModel(current, page.getNewGroupId(),
- page.getNewArtifactId(), page.getNewVersion(), processRoot);
+ return RenameRefactoring.this.applyModel(current, page.getNewGroupId(), page.getNewArtifactId(),
+ page.getNewVersion(), processRoot);
}
};
}
static class Path {
List<PathElement> path = new ArrayList<PathElement>();
-
+
public void addElement(String element, String artifactId) {
path.add(new PathElement(element, artifactId));
}
-
+
public String toString() {
return path.toString();
}
@@ -288,32 +303,34 @@ public class RenameRefactoring extends AbstractPomRefactoring {
return res;
}
}
-
+
// path (built during traversal of EMF model, used to find in effective model)
static class PathElement {
String element;
+
String artifactId;
-
+
public PathElement(String element, String artifactId) {
this.element = element;
this.artifactId = artifactId;
}
-
+
public String toString() {
return "/" + element + "[artifactId=" + artifactId + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
}
-
+
static class EObjectWithPath {
public EObject object;
+
public Path path;
-
+
public EObjectWithPath(EObject object, Path path) {
this.object = object;
this.path = path;
}
}
-
+
// XXX move stuff UP after implementing another refactoring
// after moving up, use this
interface ScanVisitor {
@@ -327,5 +344,5 @@ public class RenameRefactoring extends AbstractPomRefactoring {
public String getTitle() {
return NLS.bind(Messages.RenameRefactoring_title, file.getParent().getName());
}
-
+
}
diff --git a/org.eclipse.m2e.scm/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.scm/.settings/org.eclipse.jdt.core.prefs
index 063a9813..80d9c54b 100644
--- a/org.eclipse.m2e.scm/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.m2e.scm/.settings/org.eclipse.jdt.core.prefs
@@ -1,11 +1,114 @@
-#Sat Jul 30 19:01:59 MSD 2011
eclipse.preferences.version=1
+org.eclipse.jdt.core.builder.cleanOutputFolder=clean
+org.eclipse.jdt.core.builder.duplicateResourceTask=warning
+org.eclipse.jdt.core.builder.invalidClasspath=abort
+org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder=ignore
+org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch
+org.eclipse.jdt.core.circularClasspath=error
+org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
+org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
+org.eclipse.jdt.core.codeComplete.argumentPrefixes=
+org.eclipse.jdt.core.codeComplete.argumentSuffixes=
+org.eclipse.jdt.core.codeComplete.fieldPrefixes=
+org.eclipse.jdt.core.codeComplete.fieldSuffixes=
+org.eclipse.jdt.core.codeComplete.localPrefixes=
+org.eclipse.jdt.core.codeComplete.localSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.doc.comment.support=enabled
+org.eclipse.jdt.core.compiler.maxProblemPerUnit=100
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
+org.eclipse.jdt.core.compiler.problem.deadCode=warning
+org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
+org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
+org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
+org.eclipse.jdt.core.compiler.problem.nullReference=warning
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning
+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
+org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=enabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled
+org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH
+org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
@@ -23,12 +126,14 @@ org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=2
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
org.eclipse.jdt.core.formatter.blank_lines_before_field=1
@@ -66,11 +171,12 @@ org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not inse
org.eclipse.jdt.core.formatter.comment.line_length=120
org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=2
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
-org.eclipse.jdt.core.formatter.disabling_tag=
-org.eclipse.jdt.core.formatter.enabling_tag=
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
@@ -157,12 +263,14 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invoca
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
@@ -186,6 +294,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
@@ -241,6 +350,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
@@ -250,6 +360,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=inser
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
@@ -276,4 +387,7 @@ org.eclipse.jdt.core.formatter.tabulation.size=2
org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
+org.eclipse.jdt.core.incompatibleJDKLevel=ignore
+org.eclipse.jdt.core.incompleteClasspath=error
diff --git a/org.eclipse.m2e.scm/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.m2e.scm/.settings/org.eclipse.jdt.ui.prefs
index 97bf99cc..595d9975 100644
--- a/org.eclipse.m2e.scm/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.m2e.scm/.settings/org.eclipse.jdt.ui.prefs
@@ -1,5 +1,66 @@
eclipse.preferences.version=1
-formatter_profile=_m2eclipse
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=_m2 plugin
formatter_settings_version=12
-org.eclipse.jdt.ui.javadoc=false
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2008 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *******************************************************************************/&\#13;\n</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nMavenLogger.log(${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+org.eclipse.jdt.ui.exception.name=ex
+org.eclipse.jdt.ui.gettersetter.use.is=true
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=java;javax;org;org.w3c;org.xml;org.apache;com;junit;org.eclipse;org.codehaus;org.apache.lucene;org.apache.maven;org.sonatype;org.eclipse.m2e;
+org.eclipse.jdt.ui.javadoc=true
+org.eclipse.jdt.ui.keywordthis=true
+org.eclipse.jdt.ui.ondemandthreshold=99
+org.eclipse.jdt.ui.overrideannotation=false
+org.eclipse.jdt.ui.staticondemandthreshold=99
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/MavenCheckoutOperation.java b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/MavenCheckoutOperation.java
index 26af0f5e..a38e0488 100644
--- a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/MavenCheckoutOperation.java
+++ b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/MavenCheckoutOperation.java
@@ -16,15 +16,17 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.osgi.util.NLS;
+
import org.eclipse.m2e.scm.internal.Messages;
import org.eclipse.m2e.scm.internal.ScmHandlerFactory;
import org.eclipse.m2e.scm.spi.ScmHandler;
-import org.eclipse.osgi.util.NLS;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
@@ -36,9 +38,9 @@ public class MavenCheckoutOperation {
private static final Logger log = LoggerFactory.getLogger(MavenCheckoutOperation.class);
private final File location;
-
+
private final Collection<MavenProjectScmInfo> mavenProjects;
-
+
private final List<String> locations = new ArrayList<String>();
public MavenCheckoutOperation(File location, Collection<MavenProjectScmInfo> mavenProjects) {
@@ -56,8 +58,9 @@ public class MavenCheckoutOperation {
}
String folderUrl = info.getFolderUrl();
-
- monitor.setTaskName(NLS.bind(Messages.MavenCheckoutOperation_task_scanning, info.getLabel(), info.getFolderUrl()));
+
+ monitor
+ .setTaskName(NLS.bind(Messages.MavenCheckoutOperation_task_scanning, info.getLabel(), info.getFolderUrl()));
// XXX check if projects already exist
boolean isNestedPath = false;
@@ -80,7 +83,8 @@ public class MavenCheckoutOperation {
throw new InterruptedException();
}
- monitor.setTaskName(NLS.bind(Messages.MavenCheckoutOperation_task_checking,info.getLabel(), info.getFolderUrl()));
+ monitor
+ .setTaskName(NLS.bind(Messages.MavenCheckoutOperation_task_checking, info.getLabel(), info.getFolderUrl()));
// XXX if location is pointing to workspace folder need to create unique dir too
File workspaceRoot = ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile();
@@ -104,7 +108,7 @@ public class MavenCheckoutOperation {
if(!tempDir.exists()) {
return tempDir;
}
- suffix++;
+ suffix++ ;
}
}
@@ -114,13 +118,12 @@ public class MavenCheckoutOperation {
public Collection<MavenProjectScmInfo> getMavenProjects() {
return this.mavenProjects;
}
-
+
/**
* @return Returns list of <code>String</code> paths for the checked out locations
*/
public List<String> getLocations() {
return this.locations;
}
-
-}
+}
diff --git a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/MavenProjectPomScanner.java b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/MavenProjectPomScanner.java
index 1b9374e2..28c9d270 100644
--- a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/MavenProjectPomScanner.java
+++ b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/MavenProjectPomScanner.java
@@ -17,6 +17,15 @@ import java.util.HashSet;
import java.util.List;
import java.util.Set;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.osgi.util.NLS;
+
+import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
+
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
@@ -26,30 +35,26 @@ import org.apache.maven.model.Model;
import org.apache.maven.model.Parent;
import org.apache.maven.model.Profile;
import org.apache.maven.model.Scm;
-import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.embedder.IMaven;
import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.core.internal.Messages;
import org.eclipse.m2e.core.project.AbstractProjectScanner;
-import org.eclipse.osgi.util.NLS;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
/**
* Maven project scanner using dependency list
- *
+ *
* @author Eugene Kuleshov
*/
public class MavenProjectPomScanner<T> extends AbstractProjectScanner<MavenProjectScmInfo> {
private static final Logger log = LoggerFactory.getLogger(MavenProjectPomScanner.class);
private final boolean developer;
-
+
private final Dependency[] dependencies;
-
+
private IMaven maven;
public MavenProjectPomScanner(boolean developer, Dependency[] dependencies) {
@@ -59,24 +64,25 @@ public class MavenProjectPomScanner<T> extends AbstractProjectScanner<MavenProje
}
public String getDescription() {
- if(dependencies.length==1) {
+ if(dependencies.length == 1) {
Dependency d = dependencies[0];
- return d.getGroupId() + ":" + d.getArtifactId() + ":" + d.getVersion() + (d.getClassifier()==null ? "" : ":" + d.getClassifier()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ return d.getGroupId()
+ + ":" + d.getArtifactId() + ":" + d.getVersion() + (d.getClassifier() == null ? "" : ":" + d.getClassifier()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
}
return "" + dependencies.length + " projects"; //$NON-NLS-1$
}
-
+
public void run(IProgressMonitor monitor) throws InterruptedException {
for(int i = 0; i < dependencies.length; i++ ) {
if(monitor.isCanceled()) {
throw new InterruptedException();
}
-
+
Dependency d = dependencies[i];
try {
Model model = resolveModel(d.getGroupId(), d.getArtifactId(), d.getVersion(), monitor);
- if(model==null) {
+ if(model == null) {
String msg = "Can't resolve " + d.getArtifactId();
Exception error = new Exception(msg);
log.error(msg, error);
@@ -85,14 +91,14 @@ public class MavenProjectPomScanner<T> extends AbstractProjectScanner<MavenProje
}
Scm scm = resolveScm(model, monitor);
- if(scm==null) {
+ if(scm == null) {
String msg = "No SCM info for " + d.getArtifactId();
Exception error = new Exception(msg);
log.error(msg, error);
addError(error);
continue;
}
-
+
String tag = scm.getTag();
log.info(d.getArtifactId());
@@ -100,11 +106,11 @@ public class MavenProjectPomScanner<T> extends AbstractProjectScanner<MavenProje
log.info(" dev: " + scm.getDeveloperConnection());
log.info(" url: " + scm.getUrl());
log.info(" tag: " + tag);
-
+
String connection;
if(developer) {
connection = scm.getDeveloperConnection();
- if(connection==null) {
+ if(connection == null) {
String msg = d.getArtifactId() + " doesn't specify developer SCM connection";
Exception error = new Exception(msg);
log.error(msg, error);
@@ -113,7 +119,7 @@ public class MavenProjectPomScanner<T> extends AbstractProjectScanner<MavenProje
}
} else {
connection = scm.getConnection();
- if(connection==null) {
+ if(connection == null) {
String msg = d.getArtifactId() + " doesn't specify SCM connection";
Exception error = new Exception(msg);
log.error(msg, error);
@@ -121,21 +127,21 @@ public class MavenProjectPomScanner<T> extends AbstractProjectScanner<MavenProje
continue;
}
}
-
+
// connection: scm:svn:https://svn.apache.org/repos/asf/incubator/wicket/branches/wicket-1.2.x/wicket
// dev: scm:svn:https://svn.apache.org/repos/asf/incubator/wicket/branches/wicket-1.2.x/wicket
// url: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.2.x/wicket
// tag: HEAD
// TODO add an option to select all modules/projects and optimize scan
-
+
if(connection.endsWith("/")) { //$NON-NLS-1$
- connection = connection.substring(0, connection.length()-1);
+ connection = connection.substring(0, connection.length() - 1);
}
-
+
int n = connection.lastIndexOf("/"); //$NON-NLS-1$
String label = (n == -1 ? connection : connection.substring(n)) + "/" + IMavenConstants.POM_FILE_NAME; //$NON-NLS-1$
-
+
addProject(new MavenProjectScmInfo(label, model, null, tag, connection, connection));
} catch(Exception ex) {
@@ -143,7 +149,7 @@ public class MavenProjectPomScanner<T> extends AbstractProjectScanner<MavenProje
String msg = "Error reading " + d.getArtifactId();
log.error(msg, ex);
}
- }
+ }
}
private Scm resolveScm(Model model, IProgressMonitor monitor) throws ArtifactResolutionException,
@@ -152,50 +158,51 @@ public class MavenProjectPomScanner<T> extends AbstractProjectScanner<MavenProje
if(scm != null) {
return scm;
}
-
+
Parent parent = model.getParent();
if(parent == null) {
return null;
}
Model parentModel = resolveModel(parent.getGroupId(), parent.getArtifactId(), parent.getVersion(), monitor);
- if(parentModel==null) {
+ if(parentModel == null) {
return null;
}
-
+
Scm parentScm = resolveScm(parentModel, monitor);
- if(parentScm==null) {
+ if(parentScm == null) {
return null;
}
-
+
Set<String> modules = new HashSet<String>(parentModel.getModules());
List<Profile> parentModelProfiles = parentModel.getProfiles();
for(Profile profile : parentModelProfiles) {
modules.addAll(profile.getModules());
}
-
+
// heuristics for matching module names to artifactId
String artifactId = model.getArtifactId();
for(String module : modules) {
if(module.equals(artifactId) || module.endsWith("/" + artifactId)) { //$NON-NLS-1$
- if(parentScm.getConnection()!=null) {
+ if(parentScm.getConnection() != null) {
parentScm.setConnection(parentScm.getConnection() + "/" + module); //$NON-NLS-1$
}
- if(parentScm.getDeveloperConnection()!=null) {
+ if(parentScm.getDeveloperConnection() != null) {
parentScm.setDeveloperConnection(parentScm.getDeveloperConnection() + "/" + module); //$NON-NLS-1$
}
- return parentScm;
+ return parentScm;
}
}
-
+
// XXX read modules from profiles
-
+
return parentScm;
}
private Model resolveModel(String groupId, String artifactId, String version, IProgressMonitor monitor)
throws CoreException {
- monitor.subTask(NLS.bind(Messages.MavenProjectPomScanner_task_resolving, new Object[] { groupId, artifactId, version}));
+ monitor.subTask(NLS.bind(Messages.MavenProjectPomScanner_task_resolving,
+ new Object[] {groupId, artifactId, version}));
List<ArtifactRepository> repositories = maven.getArtifactRepositories();
Artifact artifact = maven.resolve(groupId, artifactId, version, "pom", null, repositories, monitor); //$NON-NLS-1$
@@ -204,13 +211,12 @@ public class MavenProjectPomScanner<T> extends AbstractProjectScanner<MavenProje
if(file == null) {
return null;
}
-
+
// XXX this fail on reading extensions
// MavenProject project = embedder.readProject(file);
-
+
monitor.subTask(NLS.bind(Messages.MavenProjectPomScanner_23, new Object[] {groupId, artifactId, version}));
return maven.readModel(file);
}
-
}
diff --git a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/MavenProjectScmInfo.java b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/MavenProjectScmInfo.java
index 8b6f925a..92044832 100644
--- a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/MavenProjectScmInfo.java
+++ b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/MavenProjectScmInfo.java
@@ -24,14 +24,19 @@ import org.eclipse.m2e.core.project.MavenProjectInfo;
public class MavenProjectScmInfo extends MavenProjectInfo {
private final String folderUrl;
+
private final String repositoryUrl;
+
private final String revision;
+
private final String branch;
-
+
private String username;
+
private String password;
private File sslCertificate;
+
private String sslCertificatePassphrase;
public MavenProjectScmInfo(String label, Model model, MavenProjectInfo parent, //
@@ -47,19 +52,19 @@ public class MavenProjectScmInfo extends MavenProjectInfo {
this.repositoryUrl = repositoryUrl;
this.branch = branch;
}
-
+
public String getBranch() {
return this.branch;
}
-
+
public String getRevision() {
return this.revision;
}
-
+
public String getFolderUrl() {
return folderUrl;
}
-
+
public String getRepositoryUrl() {
return repositoryUrl;
}
@@ -75,7 +80,7 @@ public class MavenProjectScmInfo extends MavenProjectInfo {
public int hashCode() {
return folderUrl.hashCode();
}
-
+
public String toString() {
return getLabel() + " " + folderUrl; //$NON-NLS-1$
}
@@ -83,6 +88,7 @@ public class MavenProjectScmInfo extends MavenProjectInfo {
public String getUsername() {
return username;
}
+
public void setUsername(String username) {
this.username = username;
}
@@ -90,6 +96,7 @@ public class MavenProjectScmInfo extends MavenProjectInfo {
public String getPassword() {
return password;
}
+
public void setPassword(String password) {
this.password = password;
}
@@ -97,6 +104,7 @@ public class MavenProjectScmInfo extends MavenProjectInfo {
public void setSSLCertificate(File certificate) {
this.sslCertificate = certificate;
}
+
public File getSSLCertificate() {
return sslCertificate;
}
@@ -104,6 +112,7 @@ public class MavenProjectScmInfo extends MavenProjectInfo {
public String getSSLCertificatePassphrase() {
return sslCertificatePassphrase;
}
+
public void setSSLCertificatePassphrase(String passphrase) {
this.sslCertificatePassphrase = passphrase;
}
diff --git a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/ScmTag.java b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/ScmTag.java
index de5b88f9..3d73f82b 100644
--- a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/ScmTag.java
+++ b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/ScmTag.java
@@ -13,7 +13,7 @@ package org.eclipse.m2e.scm;
/**
* An SCM wrapper for tags
- *
+ *
* @author Eugene Kuleshov
*/
public class ScmTag {
@@ -21,10 +21,10 @@ public class ScmTag {
public static enum Type {
HEAD, TAG, BRANCH, DATE;
}
-
+
private final String name;
+
private final Type type;
-
public ScmTag(String name) {
this(name, null);
@@ -48,6 +48,5 @@ public class ScmTag {
public Type getType() {
return this.type;
}
-
-}
+}
diff --git a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/ScmUrl.java b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/ScmUrl.java
index 16c81a20..9dfc02ec 100644
--- a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/ScmUrl.java
+++ b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/ScmUrl.java
@@ -14,9 +14,11 @@ package org.eclipse.m2e.scm;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
+import org.eclipse.osgi.util.NLS;
+
import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.scm.internal.Messages;
-import org.eclipse.osgi.util.NLS;
+
/**
* An SCM URL wrapper used to adapt 3rd party resources:
@@ -27,18 +29,19 @@ import org.eclipse.osgi.util.NLS;
*
* @see http://maven.apache.org/scm/scm-url-format.html
* @see org.eclipse.core.runtime.IAdapterManager
- *
* @author Eugene Kuleshov
*/
public class ScmUrl {
private final String scmUrl;
+
private final String scmParentUrl;
+
private final ScmTag tag;
public ScmUrl(String scmUrl) {
this(scmUrl, null);
}
-
+
public ScmUrl(String scmUrl, String scmParentUrl) {
this(scmUrl, scmParentUrl, null);
}
@@ -48,28 +51,28 @@ public class ScmUrl {
this.scmParentUrl = scmParentUrl;
this.tag = tag;
}
-
+
/**
* Return SCM url
*/
public String getUrl() {
return scmUrl;
}
-
+
/**
* Return SCM url for the parent folder
*/
public String getParentUrl() {
return scmParentUrl;
}
-
+
/**
* Return SCM tag
*/
public ScmTag getTag() {
return this.tag;
}
-
+
/**
* Return provider-specific part of the SCM url
*
@@ -79,7 +82,7 @@ public class ScmUrl {
try {
String type = ScmUrl.getType(scmUrl);
return scmUrl.substring(type.length() + 5);
-
+
} catch(CoreException ex) {
return null;
}
@@ -87,11 +90,13 @@ public class ScmUrl {
public static synchronized String getType(String url) throws CoreException {
if(!url.startsWith("scm:")) { //$NON-NLS-1$
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, NLS.bind(Messages.ScmUrl_error, url), null));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, NLS.bind(Messages.ScmUrl_error,
+ url), null));
}
int n = url.indexOf(":", 4); //$NON-NLS-1$
if(n == -1) {
- throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, NLS.bind(Messages.ScmUrl_error, url), null));
+ throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, -1, NLS.bind(Messages.ScmUrl_error,
+ url), null));
}
return url.substring(4, n);
}
diff --git a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/Messages.java b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/Messages.java
index 797543d0..b96338ee 100644
--- a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/Messages.java
+++ b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/Messages.java
@@ -85,8 +85,8 @@ public class Messages extends NLS {
public static String MavenCheckoutOperation_task_scanning;
public static String MavenCheckoutOperation_task_checking;
-
- public static String MavenCheckoutLocationPage_linkMarketPlace;
+
+ public static String MavenCheckoutLocationPage_linkMarketPlace;
static {
// initialize resource bundle
diff --git a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/ScmHandlerFactory.java b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/ScmHandlerFactory.java
index 41890ac1..b8e9ee60 100644
--- a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/ScmHandlerFactory.java
+++ b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/ScmHandlerFactory.java
@@ -17,17 +17,19 @@ import java.util.List;
import java.util.Map;
import java.util.TreeMap;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtension;
import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.IExtensionRegistry;
import org.eclipse.core.runtime.Platform;
+
import org.eclipse.m2e.scm.ScmUrl;
import org.eclipse.m2e.scm.spi.ScmHandler;
import org.eclipse.m2e.scm.spi.ScmHandlerUi;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
@@ -37,15 +39,15 @@ import org.slf4j.LoggerFactory;
*/
public class ScmHandlerFactory {
private static final Logger log = LoggerFactory.getLogger(ScmHandlerFactory.class);
-
+
public static final String EXTENSION_SCM_HANDLERS = "org.eclipse.m2e.scm.scmHandlers"; //$NON-NLS-1$
-
+
public static final String EXTENSION_SCM_HANDLERS_UI = "org.eclipse.m2e.scm.scmHandlersUi"; //$NON-NLS-1$
-
+
private static final String ELEMENT_SCM_HANDLER = "handler"; //$NON-NLS-1$
private static final String ELEMENT_SCM_HANDLER_UI = "handlerUi"; //$NON-NLS-1$
-
+
private static volatile Map<String, List<ScmHandler>> scms;
private static volatile Map<String, ScmHandlerUi> scmUis;
@@ -128,7 +130,7 @@ public class ScmHandlerFactory {
}
return scmHandlers;
}
-
+
private static List<ScmHandlerUi> readScmHandlerUiExtensions() {
ArrayList<ScmHandlerUi> scmHandlerUis = new ArrayList<ScmHandlerUi>();
IExtensionRegistry registry = Platform.getExtensionRegistry();
diff --git a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/actions/CheckoutAsMavenAction.java b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/actions/CheckoutAsMavenAction.java
index 706b2f27..d5c70b58 100644
--- a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/actions/CheckoutAsMavenAction.java
+++ b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/actions/CheckoutAsMavenAction.java
@@ -17,39 +17,40 @@ import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
-import org.eclipse.m2e.scm.ScmUrl;
-import org.eclipse.m2e.scm.internal.wizards.MavenCheckoutWizard;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IObjectActionDelegate;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
+import org.eclipse.m2e.scm.ScmUrl;
+import org.eclipse.m2e.scm.internal.wizards.MavenCheckoutWizard;
+
/**
* Checkout as Maven project action
- *
+ *
* @author @author Eugene Kuleshov
*/
public class CheckoutAsMavenAction implements IObjectActionDelegate {
private IStructuredSelection selection;
+
private IWorkbenchPart targetPart;
/* (non-Javadoc)
* @see org.eclipse.ui.actions.ActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
public void selectionChanged(IAction action, ISelection selection) {
- if (selection instanceof IStructuredSelection) {
+ if(selection instanceof IStructuredSelection) {
this.selection = (IStructuredSelection) selection;
}
}
-
+
public void setActivePart(IAction action, IWorkbenchPart targetPart) {
this.targetPart = targetPart;
}
-
/* (non-Javadoc)
* @see org.eclipse.ui.actions.ActionDelegate#run(org.eclipse.jface.action.IAction)
@@ -60,10 +61,10 @@ public class CheckoutAsMavenAction implements IObjectActionDelegate {
urls = new ScmUrl[selection.size()];
int i = 0;
for(Iterator<?> it = selection.iterator(); it.hasNext();) {
- urls[i++] = (ScmUrl) it.next();
+ urls[i++ ] = (ScmUrl) it.next();
}
}
-
+
MavenCheckoutWizard wizard = new MavenCheckoutWizard(urls);
WizardDialog dialog = new WizardDialog(getShell(), wizard);
dialog.open();
@@ -86,5 +87,5 @@ public class CheckoutAsMavenAction implements IObjectActionDelegate {
IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
return window == null ? null : window.getShell();
}
-
+
}
diff --git a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/actions/MaterializeAction.java b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/actions/MaterializeAction.java
index 7911b715..37a3523e 100644
--- a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/actions/MaterializeAction.java
+++ b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/actions/MaterializeAction.java
@@ -11,17 +11,19 @@
package org.eclipse.m2e.scm.internal.actions;
-import org.apache.maven.model.Dependency;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.m2e.scm.internal.wizards.MavenMaterializePomWizard;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IObjectActionDelegate;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.PlatformUI;
+import org.apache.maven.model.Dependency;
+
+import org.eclipse.m2e.scm.internal.wizards.MavenMaterializePomWizard;
+
public class MaterializeAction implements IObjectActionDelegate {
diff --git a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenCheckoutLocationPage.java b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenCheckoutLocationPage.java
index 00803275..dd314beb 100644
--- a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenCheckoutLocationPage.java
+++ b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenCheckoutLocationPage.java
@@ -14,7 +14,6 @@ package org.eclipse.m2e.scm.internal.wizards;
import java.util.LinkedHashSet;
import java.util.Set;
-import org.apache.maven.model.Scm;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtension;
@@ -24,14 +23,6 @@ import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.RegistryFactory;
import org.eclipse.jface.wizard.IWizardContainer;
import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.m2e.core.project.ProjectImportConfiguration;
-import org.eclipse.m2e.core.ui.internal.IMavenDiscovery;
-import org.eclipse.m2e.core.ui.internal.wizards.AbstractMavenWizardPage;
-import org.eclipse.m2e.scm.ScmTag;
-import org.eclipse.m2e.scm.ScmUrl;
-import org.eclipse.m2e.scm.internal.Messages;
-import org.eclipse.m2e.scm.internal.ScmHandlerFactory;
-import org.eclipse.m2e.scm.spi.ScmHandlerUi;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
@@ -49,6 +40,17 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Link;
import org.eclipse.swt.widgets.Text;
+import org.apache.maven.model.Scm;
+
+import org.eclipse.m2e.core.project.ProjectImportConfiguration;
+import org.eclipse.m2e.core.ui.internal.IMavenDiscovery;
+import org.eclipse.m2e.core.ui.internal.wizards.AbstractMavenWizardPage;
+import org.eclipse.m2e.scm.ScmTag;
+import org.eclipse.m2e.scm.ScmUrl;
+import org.eclipse.m2e.scm.internal.Messages;
+import org.eclipse.m2e.scm.internal.ScmHandlerFactory;
+import org.eclipse.m2e.scm.spi.ScmHandlerUi;
+
/**
* @author Eugene Kuleshov
@@ -56,25 +58,27 @@ import org.eclipse.swt.widgets.Text;
public class MavenCheckoutLocationPage extends AbstractMavenWizardPage {
String scmType;
+
ScmUrl[] scmUrls;
+
String scmParentUrl;
-
+
Combo scmTypeCombo;
-
+
Combo scmUrlCombo;
-
+
Button scmUrlBrowseButton;
-
+
Button headRevisionButton;
Label revisionLabel;
-
+
Text revisionText;
-
+
Button revisionBrowseButton;
-
+
private Button checkoutAllProjectsButton;
-
+
private Link m2eMarketplace;
protected MavenCheckoutLocationPage(ProjectImportConfiguration projectImportConfiguration) {
@@ -119,8 +123,8 @@ public class MavenCheckoutLocationPage extends AbstractMavenWizardPage {
}
}
});
-
- if(scmUrls!=null && scmUrls.length == 1) {
+
+ if(scmUrls != null && scmUrls.length == 1) {
try {
scmType = ScmUrl.getType(scmUrls[0].getUrl());
} catch(CoreException ex) {
@@ -155,15 +159,15 @@ public class MavenCheckoutLocationPage extends AbstractMavenWizardPage {
revisionTextData.widthHint = 115;
revisionTextData.verticalIndent = 3;
revisionText.setLayoutData(revisionTextData);
-
+
if(scmUrls != null) {
ScmTag tag = scmUrls[0].getTag();
- if(tag!=null) {
+ if(tag != null) {
headRevisionButton.setSelection(false);
revisionText.setText(tag.getName());
}
}
-
+
revisionText.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
updatePage();
@@ -178,15 +182,15 @@ public class MavenCheckoutLocationPage extends AbstractMavenWizardPage {
revisionBrowseButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
String url = scmParentUrl;
- if(url==null) {
+ if(url == null) {
return;
}
-
+
String scmType = scmTypeCombo.getText();
-
+
ScmHandlerUi handlerUi = ScmHandlerFactory.getHandlerUiByType(scmType);
String revision = handlerUi.selectRevision(getShell(), scmUrls[0], revisionText.getText());
- if(revision!=null) {
+ if(revision != null) {
revisionText.setText(revision);
headRevisionButton.setSelection(false);
updatePage();
@@ -210,7 +214,7 @@ public class MavenCheckoutLocationPage extends AbstractMavenWizardPage {
advancedSettingsData.verticalIndent = 10;
createAdvancedSettings(composite, advancedSettingsData);
- if(scmUrls!=null && scmUrls.length == 1) {
+ if(scmUrls != null && scmUrls.length == 1) {
scmTypeCombo.setText(scmType == null ? "" : scmType); //$NON-NLS-1$
scmUrlCombo.setText(scmUrls[0].getProviderUrl());
}
@@ -220,11 +224,11 @@ public class MavenCheckoutLocationPage extends AbstractMavenWizardPage {
public void widgetSelected(SelectionEvent e) {
ScmHandlerUi handlerUi = ScmHandlerFactory.getHandlerUiByType(scmType);
// XXX should use null if there is no scmUrl selected
- ScmUrl currentUrl = scmUrls==null || scmUrls.length==0 ? new ScmUrl("scm:" + scmType + ":") : scmUrls[0]; //$NON-NLS-1$ //$NON-NLS-2$
+ ScmUrl currentUrl = scmUrls == null || scmUrls.length == 0 ? new ScmUrl("scm:" + scmType + ":") : scmUrls[0]; //$NON-NLS-1$ //$NON-NLS-2$
ScmUrl scmUrl = handlerUi.selectUrl(getShell(), currentUrl);
- if(scmUrl!=null) {
+ if(scmUrl != null) {
scmUrlCombo.setText(scmUrl.getProviderUrl());
- if(scmUrls==null) {
+ if(scmUrls == null) {
scmUrls = new ScmUrl[1];
}
scmUrls[0] = scmUrl;
@@ -233,7 +237,7 @@ public class MavenCheckoutLocationPage extends AbstractMavenWizardPage {
}
}
});
-
+
scmUrlCombo.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
final String url = scmUrlCombo.getText();
@@ -251,11 +255,11 @@ public class MavenCheckoutLocationPage extends AbstractMavenWizardPage {
}
return;
}
-
- if(scmUrls==null) {
+
+ if(scmUrls == null) {
scmUrls = new ScmUrl[1];
}
-
+
ScmUrl scmUrl = new ScmUrl("scm:" + scmType + ":" + url); //$NON-NLS-1$ //$NON-NLS-2$
scmUrls[0] = scmUrl;
scmParentUrl = scmUrl.getUrl();
@@ -307,29 +311,29 @@ public class MavenCheckoutLocationPage extends AbstractMavenWizardPage {
*/
public void setVisible(boolean visible) {
super.setVisible(visible);
-
- if(dialogSettings!=null && scmUrlCombo!=null) {
+
+ if(dialogSettings != null && scmUrlCombo != null) {
String[] items = dialogSettings.getArray("scmUrl"); //$NON-NLS-1$
if(items != null) {
String text = scmUrlCombo.getText();
scmUrlCombo.setItems(items);
- if (text.length() > 0) {
+ if(text.length() > 0) {
// setItems() clears the text input, so we need to restore it
scmUrlCombo.setText(text);
}
}
}
}
-
+
/* (non-Javadoc)
* @see org.eclipse.m2e.wizards.AbstractMavenWizardPage#dispose()
*/
public void dispose() {
- if(dialogSettings != null && scmUrlCombo!=null) {
+ if(dialogSettings != null && scmUrlCombo != null) {
Set<String> history = new LinkedHashSet<String>(MAX_HISTORY);
-
+
String lastValue = scmUrlCombo.getText();
- if ( lastValue!=null && lastValue.trim().length() > 0 ) {
+ if(lastValue != null && lastValue.trim().length() > 0) {
history.add("scm:" + scmType + ":" + lastValue); //$NON-NLS-1$ //$NON-NLS-2$
}
@@ -337,27 +341,27 @@ public class MavenCheckoutLocationPage extends AbstractMavenWizardPage {
for(int j = 0; j < items.length && history.size() < MAX_HISTORY; j++ ) {
history.add(items[j]);
}
-
+
dialogSettings.put("scmUrl", history.toArray(new String[history.size()])); //$NON-NLS-1$
}
-
+
super.dispose();
}
-
+
public IWizardContainer getContainer() {
return super.getContainer();
}
-
+
void updatePage() {
- boolean canSelectUrl = false ;
+ boolean canSelectUrl = false;
boolean canSelectRevision = false;
ScmHandlerUi handlerUi = ScmHandlerFactory.getHandlerUiByType(scmType);
- if(handlerUi!=null) {
+ if(handlerUi != null) {
canSelectUrl = handlerUi.canSelectUrl();
canSelectRevision = handlerUi.canSelectRevision();
}
-
- if(scmUrlBrowseButton!=null) {
+
+ if(scmUrlBrowseButton != null) {
scmUrlBrowseButton.setEnabled(canSelectUrl);
scmUrlBrowseButton.setVisible(canSelectUrl);
}
@@ -367,14 +371,14 @@ public class MavenCheckoutLocationPage extends AbstractMavenWizardPage {
boolean isHeadRevision = isHeadRevision();
revisionLabel.setEnabled(!isHeadRevision);
revisionText.setEnabled(!isHeadRevision);
-
+
setPageComplete(isPageValid());
}
private boolean isPageValid() {
setErrorMessage(null);
-
- if(scmUrls != null && scmUrls.length < 2) {
+
+ if(scmUrls != null && scmUrls.length < 2) {
if(scmType == null) {
setErrorMessage(Messages.MavenCheckoutLocationPage_error_empty);
return false;
@@ -382,52 +386,52 @@ public class MavenCheckoutLocationPage extends AbstractMavenWizardPage {
}
ScmHandlerUi handlerUi = ScmHandlerFactory.getHandlerUiByType(scmType);
-
+
if(scmUrls == null || scmUrls.length < 2) {
if(scmUrls == null || scmUrls.length == 0) {
setErrorMessage(Messages.MavenCheckoutLocationPage_error_empty_url);
return false;
}
-
- if(handlerUi!=null && !handlerUi.isValidUrl(scmUrls[0].getUrl())) {
+
+ if(handlerUi != null && !handlerUi.isValidUrl(scmUrls[0].getUrl())) {
setErrorMessage(Messages.MavenCheckoutLocationPage_error_url_empty);
return false;
}
}
-
+
if(!isHeadRevision()) {
String revision = revisionText.getText().trim();
- if(revision.length()==0) {
+ if(revision.length() == 0) {
setErrorMessage(Messages.MavenCheckoutLocationPage_error_scm_empty);
return false;
}
-
- if(handlerUi!=null && !handlerUi.isValidRevision(null, revision)) {
+
+ if(handlerUi != null && !handlerUi.isValidRevision(null, revision)) {
setErrorMessage(Messages.MavenCheckoutLocationPage_error_scm_invalid);
return false;
- }
+ }
}
-
+
return true;
}
-
+
public void setParent(String parentUrl) {
this.scmParentUrl = parentUrl;
}
-
+
public void setUrls(ScmUrl[] urls) {
this.scmUrls = urls;
}
-
+
public ScmUrl[] getUrls() {
return scmUrls;
}
-
+
public Scm[] getScms() {
- if(scmUrls==null) {
+ if(scmUrls == null) {
return new Scm[0];
}
-
+
String revision = getRevision();
Scm[] scms = new Scm[scmUrls.length];
for(int i = 0; i < scms.length; i++ ) {
@@ -438,7 +442,7 @@ public class MavenCheckoutLocationPage extends AbstractMavenWizardPage {
}
return scms;
}
-
+
public boolean isCheckoutAllProjects() {
return checkoutAllProjectsButton.getSelection();
}
diff --git a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenCheckoutWizard.java b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenCheckoutWizard.java
index 804a816f..a537a832 100644
--- a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenCheckoutWizard.java
+++ b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenCheckoutWizard.java
@@ -15,21 +15,23 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
-import org.apache.maven.model.Scm;
import org.eclipse.core.runtime.IAdapterManager;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.ui.IImportWizard;
+import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.IWorkbench;
+
+import org.apache.maven.model.Scm;
+
import org.eclipse.m2e.core.internal.IMavenConstants;
-import org.eclipse.m2e.scm.internal.Messages;
import org.eclipse.m2e.core.ui.internal.actions.SelectionUtil;
import org.eclipse.m2e.core.ui.internal.wizards.AbstractMavenProjectWizard;
import org.eclipse.m2e.core.ui.internal.wizards.MavenProjectWizardLocationPage;
import org.eclipse.m2e.scm.MavenProjectScmInfo;
import org.eclipse.m2e.scm.ScmUrl;
-import org.eclipse.ui.IImportWizard;
-import org.eclipse.ui.INewWizard;
-import org.eclipse.ui.IWorkbench;
+import org.eclipse.m2e.scm.internal.Messages;
/**
@@ -42,11 +44,11 @@ public class MavenCheckoutWizard extends AbstractMavenProjectWizard implements I
private ScmUrl[] urls;
private String parentUrl;
-
+
private MavenCheckoutLocationPage scheckoutPage;
private MavenProjectWizardLocationPage locationPage;
-
+
public MavenCheckoutWizard() {
this(null);
setNeedsProgressMonitor(true);
@@ -73,21 +75,21 @@ public class MavenCheckoutWizard extends AbstractMavenProjectWizard implements I
}
setUrls(urls.toArray(new ScmUrl[urls.size()]));
}
-
+
private void setUrls(ScmUrl[] urls) {
- if(urls!=null && urls.length>0) {
+ if(urls != null && urls.length > 0) {
this.urls = urls;
this.parentUrl = getParentUrl(urls);
}
}
private String getParentUrl(ScmUrl[] urls) {
- if(urls.length==1) {
+ if(urls.length == 1) {
return urls[0].getUrl();
}
-
+
String parent = urls[0].getParentUrl();
- for(int i = 1; parent!=null && i < urls.length; i++ ) {
+ for(int i = 1; parent != null && i < urls.length; i++ ) {
String url = urls[i].getParentUrl();
if(!parent.equals(url)) {
parent = null;
@@ -95,21 +97,20 @@ public class MavenCheckoutWizard extends AbstractMavenProjectWizard implements I
}
return parent;
}
-
+
public void addPages() {
scheckoutPage = new MavenCheckoutLocationPage(importConfiguration);
scheckoutPage.setUrls(urls);
scheckoutPage.setParent(parentUrl);
-
+
locationPage = new MavenProjectWizardLocationPage(importConfiguration, //
- Messages.MavenCheckoutWizard_location1,
- Messages.MavenCheckoutWizard_location2, workingSets);
+ Messages.MavenCheckoutWizard_location1, Messages.MavenCheckoutWizard_location2, workingSets);
locationPage.setLocationPath(SelectionUtil.getSelectedLocation(selection));
-
+
addPage(scheckoutPage);
addPage(locationPage);
}
-
+
// /** Adds the listeners after the page controls are created. */
// public void createPageControls(Composite pageContainer) {
// super.createPageControls(pageContainer);
@@ -138,16 +139,16 @@ public class MavenCheckoutWizard extends AbstractMavenProjectWizard implements I
final boolean checkoutAllProjects = scheckoutPage.isCheckoutAllProjects();
Scm[] scms = scheckoutPage.getScms();
-
+
final Collection<MavenProjectScmInfo> mavenProjects = new ArrayList<MavenProjectScmInfo>();
for(int i = 0; i < scms.length; i++ ) {
String url = scms[i].getConnection();
String revision = scms[i].getTag();
-
+
if(url.endsWith("/")) { //$NON-NLS-1$
- url = url.substring(0, url.length()-1);
+ url = url.substring(0, url.length() - 1);
}
-
+
int n = url.lastIndexOf("/"); //$NON-NLS-1$
String label = (n == -1 ? url : url.substring(n)) + "/" + IMavenConstants.POM_FILE_NAME; //$NON-NLS-1$
MavenProjectScmInfo projectInfo = new MavenProjectScmInfo(label, null, //
@@ -164,7 +165,7 @@ public class MavenCheckoutWizard extends AbstractMavenProjectWizard implements I
if(!locationPage.isInWorkspace()) {
job.setLocation(locationPage.getLocationPath().toFile());
}
-
+
job.schedule();
return true;
diff --git a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenMaterializePomWizard.java b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenMaterializePomWizard.java
index 52de1b47..d960cc7c 100644
--- a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenMaterializePomWizard.java
+++ b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenMaterializePomWizard.java
@@ -15,9 +15,18 @@ import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
-import org.apache.maven.model.Dependency;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.IImportWizard;
+import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.IWorkbench;
+
+import org.apache.maven.model.Dependency;
+
import org.eclipse.m2e.core.embedder.ArtifactKey;
import org.eclipse.m2e.core.project.ProjectImportConfiguration;
import org.eclipse.m2e.core.ui.internal.actions.SelectionUtil;
@@ -27,30 +36,23 @@ import org.eclipse.m2e.core.ui.internal.wizards.MavenProjectWizardLocationPage;
import org.eclipse.m2e.scm.MavenProjectPomScanner;
import org.eclipse.m2e.scm.MavenProjectScmInfo;
import org.eclipse.m2e.scm.internal.Messages;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.IImportWizard;
-import org.eclipse.ui.INewWizard;
-import org.eclipse.ui.IWorkbench;
/**
- * A wizard used to import projects for Maven artifacts
+ * A wizard used to import projects for Maven artifacts
*
* @author Eugene Kuleshov
*/
public class MavenMaterializePomWizard extends AbstractMavenProjectWizard implements IImportWizard, INewWizard {
-
+
MavenDependenciesWizardPage selectionPage;
-
+
MavenProjectWizardLocationPage locationPage;
-
+
Button checkOutAllButton;
-
+
Button useDeveloperConnectionButton;
-
+
// TODO replace with ArtifactKey
private Dependency[] dependencies;
@@ -63,7 +65,7 @@ public class MavenMaterializePomWizard extends AbstractMavenProjectWizard implem
public void setDependencies(Dependency[] dependencies) {
this.dependencies = dependencies;
}
-
+
public Dependency[] getDependencies() {
return dependencies;
}
@@ -76,7 +78,7 @@ public class MavenMaterializePomWizard extends AbstractMavenProjectWizard implem
for(Iterator<?> it = selection.iterator(); it.hasNext();) {
Object element = it.next();
ArtifactKey artifactKey = SelectionUtil.getType(element, ArtifactKey.class);
- if(artifactKey!=null) {
+ if(artifactKey != null) {
Dependency d = new Dependency();
d.setGroupId(artifactKey.getGroupId());
d.setArtifactId(artifactKey.getArtifactId());
@@ -85,7 +87,7 @@ public class MavenMaterializePomWizard extends AbstractMavenProjectWizard implem
dependencies.add(d);
}
}
-
+
setDependencies(dependencies.toArray(new Dependency[dependencies.size()]));
}
@@ -97,25 +99,26 @@ public class MavenMaterializePomWizard extends AbstractMavenProjectWizard implem
checkOutAllButton = new Button(composite, SWT.CHECK);
checkOutAllButton.setText(Messages.MavenMaterializePomWizard_btnCheckout);
checkOutAllButton.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 3, 1));
-
+
useDeveloperConnectionButton = new Button(composite, SWT.CHECK);
useDeveloperConnectionButton.setText(Messages.MavenMaterializePomWizard_btnDev);
useDeveloperConnectionButton.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 3, 1));
-
+
super.createAdvancedSettings(composite, gridData);
}
};
selectionPage.setDependencies(dependencies);
-
- locationPage = new MavenProjectWizardLocationPage(importConfiguration, //
- Messages.MavenMaterializePomWizard_location_title,
- Messages.MavenMaterializePomWizard_location_message, workingSets);
+
+ locationPage = new MavenProjectWizardLocationPage(
+ importConfiguration, //
+ Messages.MavenMaterializePomWizard_location_title, Messages.MavenMaterializePomWizard_location_message,
+ workingSets);
locationPage.setLocationPath(SelectionUtil.getSelectedLocation(selection));
-
+
addPage(selectionPage);
addPage(locationPage);
}
-
+
public boolean canFinish() {
return super.canFinish();
}
@@ -126,25 +129,25 @@ public class MavenMaterializePomWizard extends AbstractMavenProjectWizard implem
}
final Dependency[] dependencies = selectionPage.getDependencies();
-
+
final boolean checkoutAllProjects = checkOutAllButton.getSelection();
final boolean developer = useDeveloperConnectionButton.getSelection();
-
+
MavenProjectCheckoutJob job = new MavenProjectCheckoutJob(importConfiguration, checkoutAllProjects, workingSets) {
protected List<MavenProjectScmInfo> getProjects(IProgressMonitor monitor) throws InterruptedException {
MavenProjectPomScanner<MavenProjectScmInfo> scanner = new MavenProjectPomScanner<MavenProjectScmInfo>(
developer, dependencies);
scanner.run(monitor);
// XXX handle errors/warnings
-
+
return scanner.getProjects();
}
};
-
+
if(!locationPage.isInWorkspace()) {
job.setLocation(locationPage.getLocationPath().toFile());
}
-
+
job.schedule();
return true;
diff --git a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenProjectCheckoutJob.java b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenProjectCheckoutJob.java
index 85bd4a69..51310086 100644
--- a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenProjectCheckoutJob.java
+++ b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/internal/wizards/MavenProjectCheckoutJob.java
@@ -18,9 +18,9 @@ import java.util.Collection;
import java.util.List;
import java.util.Set;
-import org.apache.maven.model.Model;
-import org.codehaus.plexus.util.DirectoryScanner;
-import org.codehaus.plexus.util.FileUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
@@ -37,6 +37,20 @@ import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.window.Window;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.swt.dnd.Clipboard;
+import org.eclipse.swt.dnd.TextTransfer;
+import org.eclipse.swt.dnd.Transfer;
+import org.eclipse.ui.IWorkingSet;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.actions.NewProjectAction;
+import org.eclipse.ui.progress.IProgressConstants;
+import org.eclipse.ui.wizards.datatransfer.ExternalProjectImportWizard;
+
+import org.codehaus.plexus.util.DirectoryScanner;
+import org.codehaus.plexus.util.FileUtils;
+
+import org.apache.maven.model.Model;
+
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.embedder.MavenModelManager;
import org.eclipse.m2e.core.internal.lifecyclemapping.discovery.LifecycleMappingConfiguration;
@@ -51,16 +65,6 @@ import org.eclipse.m2e.core.ui.internal.wizards.MavenImportWizard;
import org.eclipse.m2e.scm.MavenCheckoutOperation;
import org.eclipse.m2e.scm.MavenProjectScmInfo;
import org.eclipse.m2e.scm.internal.Messages;
-import org.eclipse.swt.dnd.Clipboard;
-import org.eclipse.swt.dnd.TextTransfer;
-import org.eclipse.swt.dnd.Transfer;
-import org.eclipse.ui.IWorkingSet;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.actions.NewProjectAction;
-import org.eclipse.ui.progress.IProgressConstants;
-import org.eclipse.ui.wizards.datatransfer.ExternalProjectImportWizard;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
@@ -72,13 +76,13 @@ public abstract class MavenProjectCheckoutJob extends WorkspaceJob {
private static final Logger log = LoggerFactory.getLogger(MavenProjectCheckoutJob.class);
final ProjectImportConfiguration configuration;
-
+
boolean checkoutAllProjects;
Collection<MavenProjectInfo> projects;
File location;
-
+
List<String> collectedLocations = new ArrayList<String>();
final List<IWorkingSet> workingSets;
@@ -93,16 +97,15 @@ public abstract class MavenProjectCheckoutJob extends WorkspaceJob {
setProperty(IProgressConstants.ACTION_PROPERTY, new OpenMavenConsoleAction());
addJobChangeListener(new CheckoutJobChangeListener());
}
-
+
public void setLocation(File location) {
this.location = location;
}
-
+
protected abstract Collection<MavenProjectScmInfo> getProjects(IProgressMonitor monitor) throws InterruptedException;
-
-
+
// WorkspaceJob
-
+
public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
try {
MavenCheckoutOperation operation = new MavenCheckoutOperation(location, getProjects(monitor));
@@ -112,13 +115,13 @@ public abstract class MavenProjectCheckoutJob extends WorkspaceJob {
IWorkspaceRoot workspace = ResourcesPlugin.getWorkspace().getRoot();
MavenModelManager modelManager = MavenPlugin.getMavenModelManager();
-
+
LocalProjectScanner scanner = new LocalProjectScanner(workspace.getLocation().toFile(), operation.getLocations(),
true, modelManager);
scanner.run(monitor);
this.projects = MavenPlugin.getProjectConfigurationManager().collectProjects(scanner.getProjects());
-
+
if(checkoutAllProjects) {
// check if there any project name conflicts
for(MavenProjectInfo projectInfo : projects) {
@@ -160,17 +163,17 @@ public abstract class MavenProjectCheckoutJob extends WorkspaceJob {
if(projects.isEmpty()) {
log.info("No Maven projects to import");
-
- if(collectedLocations.size()==1) {
+
+ if(collectedLocations.size() == 1) {
final String location = collectedLocations.get(0);
-
+
DirectoryScanner projectScanner = new DirectoryScanner();
projectScanner.setBasedir(location);
projectScanner.setIncludes(new String[] {"**/.project"}); //$NON-NLS-1$
projectScanner.scan();
-
+
String[] projectFiles = projectScanner.getIncludedFiles();
- if(projectFiles!=null && projectFiles.length>0) {
+ if(projectFiles != null && projectFiles.length > 0) {
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
public void run() {
boolean res = MessageDialog.openConfirm(PlatformUI.getWorkbench().getDisplay().getActiveShell(), //
@@ -188,7 +191,7 @@ public abstract class MavenProjectCheckoutJob extends WorkspaceJob {
});
return;
}
-
+
PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
public void run() {
boolean res = MessageDialog.openConfirm(PlatformUI.getWorkbench().getDisplay().getActiveShell(), //
@@ -196,9 +199,10 @@ public abstract class MavenProjectCheckoutJob extends WorkspaceJob {
Messages.MavenProjectCheckoutJob_confirm2_message);
if(res) {
Clipboard clipboard = new Clipboard(PlatformUI.getWorkbench().getDisplay());
- clipboard.setContents(new Object[] { location }, new Transfer[] { TextTransfer.getInstance() });
-
- NewProjectAction newProjectAction = new NewProjectAction(PlatformUI.getWorkbench().getActiveWorkbenchWindow());
+ clipboard.setContents(new Object[] {location}, new Transfer[] {TextTransfer.getInstance()});
+
+ NewProjectAction newProjectAction = new NewProjectAction(PlatformUI.getWorkbench()
+ .getActiveWorkbenchWindow());
newProjectAction.run();
} else {
cleanup(collectedLocations);
@@ -210,7 +214,7 @@ public abstract class MavenProjectCheckoutJob extends WorkspaceJob {
cleanup(collectedLocations);
}
-
+
if(checkoutAllProjects) {
if(M2EUIPluginActivator.getDefault().getMavenDiscovery() != null) {
final LifecycleMappingConfiguration mappingConfiguration = LifecycleMappingConfiguration.calculate(projects,
diff --git a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/spi/ScmHandler.java b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/spi/ScmHandler.java
index f5f8efd1..f3a2b2a0 100644
--- a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/spi/ScmHandler.java
+++ b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/spi/ScmHandler.java
@@ -14,27 +14,33 @@ package org.eclipse.m2e.scm.spi;
import java.io.File;
import java.io.InputStream;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExecutableExtension;
import org.eclipse.core.runtime.IProgressMonitor;
+
import org.eclipse.m2e.scm.MavenProjectScmInfo;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
/**
* An SCM handler base class
- *
+ *
* @author Eugene Kuleshov
*/
public abstract class ScmHandler implements Comparable<ScmHandler>, IExecutableExtension {
private static final Logger log = LoggerFactory.getLogger(ScmHandler.class);
public static final String ATTR_CLASS = "class"; //$NON-NLS-1$
+
public static final String ATTR_TYPE = "type"; //$NON-NLS-1$
+
public static final String ATTR_PRIORITY = "priority"; //$NON-NLS-1$
-
+
private String type;
+
private int priority;
public String getType() {
@@ -44,21 +50,19 @@ public abstract class ScmHandler implements Comparable<ScmHandler>, IExecutableE
public int getPriority() {
return priority;
}
-
+
/**
* Opens resource from SCM
*
* @param url an url in maven-scm format for the resource to open
* @param revision a resource revision to open
- *
* @throws CoreException when selected resource can't be open
- *
* @see http://maven.apache.org/scm/scm-url-format.html
*/
public InputStream open(String url, String revision) throws CoreException {
return null;
}
-
+
/**
* @param info
* @param location
@@ -66,17 +70,17 @@ public abstract class ScmHandler implements Comparable<ScmHandler>, IExecutableE
*/
public abstract void checkoutProject(MavenProjectScmInfo info, //
File location, IProgressMonitor monitor) throws CoreException, InterruptedException;
-
+
// IExecutableExtension
-
+
public void setInitializationData(IConfigurationElement config, String propertyName, Object data) {
String handlerClass = config.getAttribute(propertyName);
String type = config.getAttribute(ATTR_TYPE);
String priority = config.getAttribute(ATTR_PRIORITY);
this.type = type;
-
- if(priority!=null) {
+
+ if(priority != null) {
try {
this.priority = Integer.parseInt(priority);
} catch(Exception ex) {
@@ -84,17 +88,17 @@ public abstract class ScmHandler implements Comparable<ScmHandler>, IExecutableE
}
}
}
-
+
// Comparable
-
+
public int compareTo(ScmHandler o) {
if(o != null) {
ScmHandler handler = o;
int res = getType().compareTo(handler.getType());
- if(res==0) {
+ if(res == 0) {
res = getPriority() - handler.getPriority();
}
- return res;
+ return res;
}
return -1;
}
diff --git a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/spi/ScmHandlerUi.java b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/spi/ScmHandlerUi.java
index 865a0214..6f2dde68 100644
--- a/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/spi/ScmHandlerUi.java
+++ b/org.eclipse.m2e.scm/src/org/eclipse/m2e/scm/spi/ScmHandlerUi.java
@@ -13,20 +13,23 @@ package org.eclipse.m2e.scm.spi;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExecutableExtension;
-import org.eclipse.m2e.scm.ScmUrl;
import org.eclipse.swt.widgets.Shell;
+import org.eclipse.m2e.scm.ScmUrl;
+
+
/**
* An SCM handler UI base class
- *
+ *
* @author Eugene Kuleshov
*/
public abstract class ScmHandlerUi implements IExecutableExtension {
public static final String ATTR_TYPE = "type"; //$NON-NLS-1$
+
public static final String ATTR_CLASS = "class"; //$NON-NLS-1$
-
+
private String type;
-
+
public String getType() {
return type;
}
@@ -53,11 +56,11 @@ public abstract class ScmHandlerUi implements IExecutableExtension {
public ScmUrl selectUrl(Shell shell, ScmUrl scmUrl) {
return null;
}
-
+
public boolean isValidUrl(String scmUrl) {
return false;
}
-
+
public boolean isValidRevision(ScmUrl scmUrl, String scmRevision) {
return false;
}
@@ -70,12 +73,10 @@ public abstract class ScmHandlerUi implements IExecutableExtension {
return false;
}
-
// IExecutableExtension
-
+
public void setInitializationData(IConfigurationElement config, String propertyName, Object data) {
this.type = config.getAttribute(ATTR_TYPE);
}
-
-}
+}
diff --git a/org.eclipse.m2e.tests.common/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.m2e.tests.common/.settings/org.eclipse.jdt.core.prefs
index 53a3d758..80d9c54b 100644
--- a/org.eclipse.m2e.tests.common/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.m2e.tests.common/.settings/org.eclipse.jdt.core.prefs
@@ -1,4 +1,3 @@
-#Sat Jul 30 19:01:59 MSD 2011
eclipse.preferences.version=1
org.eclipse.jdt.core.builder.cleanOutputFolder=clean
org.eclipse.jdt.core.builder.duplicateResourceTask=warning
@@ -16,6 +15,8 @@ org.eclipse.jdt.core.codeComplete.localPrefixes=
org.eclipse.jdt.core.codeComplete.localSuffixes=
org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
@@ -27,6 +28,9 @@ org.eclipse.jdt.core.compiler.doc.comment.support=enabled
org.eclipse.jdt.core.compiler.maxProblemPerUnit=100
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
+org.eclipse.jdt.core.compiler.problem.deadCode=warning
org.eclipse.jdt.core.compiler.problem.deprecation=warning
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
@@ -40,6 +44,7 @@ org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
@@ -51,6 +56,7 @@ org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
@@ -58,7 +64,9 @@ org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
@@ -72,6 +80,7 @@ org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
@@ -79,15 +88,16 @@ org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=error
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=error
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=enabled
@@ -101,6 +111,7 @@ org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH
org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
@@ -111,15 +122,18 @@ org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=2
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
org.eclipse.jdt.core.formatter.blank_lines_before_field=1
@@ -155,10 +169,16 @@ org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert
org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=2
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
@@ -176,6 +196,7 @@ org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert
org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
@@ -242,12 +263,14 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invoca
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
@@ -271,6 +294,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
@@ -326,6 +350,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
@@ -335,6 +360,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=inser
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
@@ -344,6 +370,8 @@ org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
@@ -356,7 +384,10 @@ org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
org.eclipse.jdt.core.formatter.tabulation.char=space
org.eclipse.jdt.core.formatter.tabulation.size=2
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
org.eclipse.jdt.core.incompatibleJDKLevel=ignore
org.eclipse.jdt.core.incompleteClasspath=error
diff --git a/org.eclipse.m2e.tests.common/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.m2e.tests.common/.settings/org.eclipse.jdt.ui.prefs
index a09d06cb..595d9975 100644
--- a/org.eclipse.m2e.tests.common/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.m2e.tests.common/.settings/org.eclipse.jdt.ui.prefs
@@ -1,6 +1,7 @@
eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_m2 plugin
-formatter_settings_version=11
+formatter_settings_version=12
org.eclipse.jdt.ui.exception.name=ex
org.eclipse.jdt.ui.gettersetter.use.is=true
org.eclipse.jdt.ui.ignorelowercasenames=true
@@ -10,4 +11,56 @@ org.eclipse.jdt.ui.keywordthis=true
org.eclipse.jdt.ui.ondemandthreshold=99
org.eclipse.jdt.ui.overrideannotation=false
org.eclipse.jdt.ui.staticondemandthreshold=99
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nMavenLogger.log(${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nMavenLogger.log(${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************&\#13;\n * Copyright (c) 2010 Sonatype, Inc.&\#13;\n * All rights reserved. This program and the accompanying materials&\#13;\n * are made available under the terms of the Eclipse Public License v1.0&\#13;\n * which accompanies this distribution, and is available at&\#13;\n * http\://www.eclipse.org/legal/epl-v10.html&\#13;\n *&\#13;\n * Contributors\:&\#13;\n * Sonatype, Inc. - initial API and implementation&\#13;\n *******************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${type_name}\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method ${enclosing_method}\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\nlog.error(${exception_var}.getMessage(), ${exception_var});</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractLifecycleMappingTest.java b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractLifecycleMappingTest.java
index 89eee3de..a134cff2 100644
--- a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractLifecycleMappingTest.java
+++ b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractLifecycleMappingTest.java
@@ -77,7 +77,6 @@ public abstract class AbstractLifecycleMappingTest extends AbstractMavenProjectT
return mavenProjectManager.create(project[0], monitor);
}
-
private LifecycleMappingMetadataSource loadLifecycleMappingMetadataSourceInternal(File metadataFile)
throws IOException, XmlPullParserException {
assertTrue("File does not exist:" + metadataFile.getAbsolutePath(), metadataFile.exists());
@@ -90,6 +89,7 @@ public abstract class AbstractLifecycleMappingTest extends AbstractMavenProjectT
IOUtil.close(in);
}
}
+
protected LifecycleMappingMetadataSource loadLifecycleMappingMetadataSource(String metadataFilename)
throws IOException, XmlPullParserException {
return loadLifecycleMappingMetadataSourceInternal(new File(metadataFilename));
@@ -123,7 +123,7 @@ public abstract class AbstractLifecycleMappingTest extends AbstractMavenProjectT
for(Map.Entry<MojoExecutionKey, List<IPluginExecutionMetadata>> entry : executionMapping.entrySet()) {
if(entry.getValue() == null || entry.getValue().isEmpty()) {
- if (LifecycleMappingFactory.isInterestingPhase(entry.getKey().getLifecyclePhase())) {
+ if(LifecycleMappingFactory.isInterestingPhase(entry.getKey().getLifecyclePhase())) {
result.add(entry.getKey());
}
}
diff --git a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractMavenProjectTestCase.java b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractMavenProjectTestCase.java
index ad55c406..dd92108e 100644
--- a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractMavenProjectTestCase.java
+++ b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/AbstractMavenProjectTestCase.java
@@ -73,18 +73,22 @@ import org.eclipse.m2e.core.project.ResolverConfiguration;
import org.eclipse.m2e.jdt.MavenJdtPlugin;
import org.eclipse.m2e.jdt.internal.BuildPathManager;
-@SuppressWarnings( "restriction" )
+
+@SuppressWarnings("restriction")
public abstract class AbstractMavenProjectTestCase extends TestCase {
-
+
public static final int DELETE_RETRY_COUNT = 10;
+
public static final long DELETE_RETRY_DELAY = 6000L;
protected static final IProgressMonitor monitor = new NullProgressMonitor();
-
+
protected IWorkspace workspace;
+
protected File repo;
-
+
protected ProjectRegistryRefreshJob projectRefreshJob;
+
protected Job downloadSourcesJob;
protected IMavenConfiguration mavenConfiguration;
@@ -117,7 +121,7 @@ public abstract class AbstractMavenProjectTestCase extends TestCase {
oldUserSettingsFile = mavenConfiguration.getUserSettingsFile();
File settings = new File("settings.xml").getCanonicalFile();
- if (settings.canRead()) {
+ if(settings.canRead()) {
String userSettingsFile = settings.getAbsolutePath();
System.out.println("Setting user settings file: " + userSettingsFile);
mavenConfiguration.setUserSettingsFile(userSettingsFile);
@@ -125,7 +129,7 @@ public abstract class AbstractMavenProjectTestCase extends TestCase {
ArtifactRepository localRepository = MavenPlugin.getMaven().getLocalRepository();
if(localRepository != null) {
- repo = new File(localRepository.getBasedir());
+ repo = new File(localRepository.getBasedir());
} else {
fail("Cannot determine local repository path");
}
@@ -165,14 +169,14 @@ public abstract class AbstractMavenProjectTestCase extends TestCase {
protected void deleteProject(IProject project) throws InterruptedException, CoreException {
Exception cause = null;
- for (int i = 0; i < DELETE_RETRY_COUNT; i++) {
+ for(int i = 0; i < DELETE_RETRY_COUNT; i++ ) {
try {
doDeleteProject(project);
- } catch (InterruptedException e) {
+ } catch(InterruptedException e) {
throw e;
- } catch (OperationCanceledException e) {
+ } catch(OperationCanceledException e) {
throw e;
- } catch (Exception e) {
+ } catch(Exception e) {
cause = e;
Thread.sleep(DELETE_RETRY_DELAY);
continue;
@@ -197,7 +201,7 @@ public abstract class AbstractMavenProjectTestCase extends TestCase {
project.delete(false, true, monitor);
}
}
-
+
private void deleteMember(String name, final IProject project, IProgressMonitor monitor) throws CoreException {
IResource member = project.findMember(name);
if(member != null && member.exists()) {
@@ -209,15 +213,15 @@ public abstract class AbstractMavenProjectTestCase extends TestCase {
protected IProject createProject(String projectName, final String pomResource) throws CoreException {
final IProject project = workspace.getRoot().getProject(projectName);
-
+
workspace.run(new IWorkspaceRunnable() {
public void run(IProgressMonitor monitor) throws CoreException {
project.create(monitor);
-
+
if(!project.isOpen()) {
project.open(monitor);
}
-
+
IFile pomFile = project.getFile("pom.xml");
if(!pomFile.exists()) {
InputStream is = null;
@@ -232,7 +236,7 @@ public abstract class AbstractMavenProjectTestCase extends TestCase {
}
}
}, null);
-
+
return project;
}
@@ -244,9 +248,9 @@ public abstract class AbstractMavenProjectTestCase extends TestCase {
workspace.run(new IWorkspaceRunnable() {
public void run(IProgressMonitor monitor) throws CoreException {
- if (!project.exists()) {
+ if(!project.exists()) {
IProjectDescription projectDescription = workspace.newProjectDescription(project.getName());
- projectDescription.setLocation(null);
+ projectDescription.setLocation(null);
project.create(projectDescription, monitor);
project.open(IResource.NONE, monitor);
} else {
@@ -271,10 +275,11 @@ public abstract class AbstractMavenProjectTestCase extends TestCase {
* Import a test project into the Eclipse workspace
*
* @param pomLocation - a relative location of the pom file for the project to import
- * @param configuration - a resolver configuration to be used to configure imported project
+ * @param configuration - a resolver configuration to be used to configure imported project
* @return created project
*/
- protected IProject importProject(String pomLocation, ResolverConfiguration configuration) throws IOException, CoreException {
+ protected IProject importProject(String pomLocation, ResolverConfiguration configuration) throws IOException,
+ CoreException {
File pomFile = new File(pomLocation);
return importProjects(pomFile.getParentFile().getCanonicalPath(), new String[] {pomFile.getName()}, configuration)[0];
}
@@ -284,17 +289,19 @@ public abstract class AbstractMavenProjectTestCase extends TestCase {
*
* @param basedir - a base directory for all projects to import
* @param pomNames - a relative locations of the pom files for the projects to import
- * @param configuration - a resolver configuration to be used to configure imported projects
+ * @param configuration - a resolver configuration to be used to configure imported projects
* @return created projects
*/
- protected IProject[] importProjects(String basedir, String[] pomNames, ResolverConfiguration configuration) throws IOException, CoreException {
+ protected IProject[] importProjects(String basedir, String[] pomNames, ResolverConfiguration configuration)
+ throws IOException, CoreException {
return importProjects(basedir, pomNames, configuration, false);
}
- protected IProject[] importProjects(String basedir, String[] pomNames, ResolverConfiguration configuration, boolean skipSanityCheck) throws IOException, CoreException {
+ protected IProject[] importProjects(String basedir, String[] pomNames, ResolverConfiguration configuration,
+ boolean skipSanityCheck) throws IOException, CoreException {
MavenModelManager mavenModelManager = MavenPlugin.getMavenModelManager();
IWorkspaceRoot root = workspace.getRoot();
-
+
File src = new File(basedir);
File dst = new File(root.getLocation().toFile(), src.getName());
copyDir(src, dst);
@@ -309,7 +316,7 @@ public abstract class AbstractMavenProjectTestCase extends TestCase {
}
final ProjectImportConfiguration importConfiguration = new ProjectImportConfiguration(configuration);
-
+
final ArrayList<IMavenProjectImportResult> importResults = new ArrayList<IMavenProjectImportResult>();
workspace.run(new IWorkspaceRunnable() {
@@ -320,12 +327,12 @@ public abstract class AbstractMavenProjectTestCase extends TestCase {
}, MavenPlugin.getProjectConfigurationManager().getRule(), IWorkspace.AVOID_UPDATE, monitor);
IProject[] projects = new IProject[projectInfos.size()];
- for (int i = 0; i < projectInfos.size(); i++) {
+ for(int i = 0; i < projectInfos.size(); i++ ) {
IMavenProjectImportResult importResult = importResults.get(i);
assertSame(projectInfos.get(i), importResult.getMavenProjectInfo());
projects[i] = importResult.getProject();
assertNotNull("Failed to import project " + projectInfos, projects[i]);
-
+
/*
* Sanity check: make sure they were all imported
*/
@@ -347,16 +354,19 @@ public abstract class AbstractMavenProjectTestCase extends TestCase {
File workspaceRoot = workspace.getRoot().getLocation().toFile();
File basedir = projectInfo.getPomFile().getParentFile().getCanonicalFile();
- projectInfo.setBasedirRename(basedir.getParentFile().equals(workspaceRoot)? MavenProjectInfo.RENAME_REQUIRED: MavenProjectInfo.RENAME_NO);
+ projectInfo.setBasedirRename(basedir.getParentFile().equals(workspaceRoot) ? MavenProjectInfo.RENAME_REQUIRED
+ : MavenProjectInfo.RENAME_NO);
}
- protected IProject importProject(String projectName, String projectLocation, ResolverConfiguration configuration) throws IOException, CoreException {
+ protected IProject importProject(String projectName, String projectLocation, ResolverConfiguration configuration)
+ throws IOException, CoreException {
ProjectImportConfiguration importConfiguration = new ProjectImportConfiguration(configuration);
importConfiguration.setProjectNameTemplate(projectName);
return importProject(projectName, projectLocation, importConfiguration);
}
- protected IProject importProject(String projectName, String projectLocation, final ProjectImportConfiguration importConfiguration) throws IOException, CoreException {
+ protected IProject importProject(String projectName, String projectLocation,
+ final ProjectImportConfiguration importConfiguration) throws IOException, CoreException {
File dir = new File(workspace.getRoot().getLocation().toFile(), projectName);
copyDir(new File(projectLocation), dir);
@@ -414,11 +424,11 @@ public abstract class AbstractMavenProjectTestCase extends TestCase {
/**
* closes contents stream
*/
- private void copyContent(IProject project, InputStream contents, String to, boolean waitForJobsToComplete) throws CoreException, IOException,
- InterruptedException {
+ private void copyContent(IProject project, InputStream contents, String to, boolean waitForJobsToComplete)
+ throws CoreException, IOException, InterruptedException {
try {
IFile file = project.getFile(to);
- if (!file.exists()) {
+ if(!file.exists()) {
file.create(contents, IResource.FORCE, monitor);
} else {
file.setContents(contents, IResource.FORCE, monitor);
@@ -426,7 +436,7 @@ public abstract class AbstractMavenProjectTestCase extends TestCase {
} finally {
contents.close();
}
- if (waitForJobsToComplete) {
+ if(waitForJobsToComplete) {
waitForJobsToComplete();
}
}
diff --git a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/HttpServer.java b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/HttpServer.java
index 013ef5ba..5851e7ed 100644
--- a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/HttpServer.java
+++ b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/HttpServer.java
@@ -112,10 +112,10 @@ public class HttpServer {
connector.setKeystore(new File(keyStoreLocation).getAbsolutePath());
connector.setPassword(storePassword);
connector.setKeyPassword(keyStorePassword);
- if (trustStoreLocation != null && !trustStoreLocation.equals("")) {
+ if(trustStoreLocation != null && !trustStoreLocation.equals("")) {
connector.setTruststore(new File(trustStoreLocation).getAbsolutePath());
}
- if (trustStorePassword != null && !trustStoreLocation.equals("")) {
+ if(trustStorePassword != null && !trustStoreLocation.equals("")) {
connector.setTrustPassword(trustStorePassword);
}
connector.setNeedClientAuth(needClientAuth);
@@ -191,8 +191,8 @@ public class HttpServer {
}
/**
- * Sets the keystore to use for the server certificate on the SSL connector.
- * Also sets the storePassword value to be password, if it has not been set previously.
+ * Sets the keystore to use for the server certificate on the SSL connector. Also sets the storePassword value to be
+ * password, if it has not been set previously.
*
* @param path The path to the keystore to use for the server certificate, may be {@code null}.
* @param password The password for the keystore, may be {@code null}.
@@ -201,7 +201,7 @@ public class HttpServer {
public HttpServer setKeyStore(String path, String password) {
keyStoreLocation = path;
keyStorePassword = password;
- if (storePassword == null) {
+ if(storePassword == null) {
storePassword = keyStorePassword;
}
return this;
@@ -219,9 +219,9 @@ public class HttpServer {
trustStorePassword = password;
return this;
}
-
+
/**
- * Sets the password to use for the SSL connector store.
+ * Sets the password to use for the SSL connector store.
*
* @param password The password for the store, may be {@code null}.
* @return This server, never {@code null}.
@@ -382,7 +382,8 @@ public class HttpServer {
*
* @param contextRoot The context root to make the resources accessible at, must not be {@code null}.
* @param baseDirectory The local base directory whose files should be served, must not be {@code null}.
- * @param filteredExtensions A list of extensions for files to filter, e.g. {@code "xml, "properties"}, may be {@code null}.
+ * @param filteredExtensions A list of extensions for files to filter, e.g. {@code "xml, "properties"}, may be
+ * {@code null}.
* @return This server, never {@code null}.
*/
public HttpServer addResources(String contextRoot, String baseDirectory, String... filteredExtensions) {
@@ -400,7 +401,8 @@ public class HttpServer {
* Enables request recording for the specified URI patterns. Recorded requests can be retrieved via
* {@link #getRecordedRequests()}.
*
- * @param patterns The regular expressions denoting URIs to monitor, e.g. {@code "/context/.*"}, must not be {@code null}.
+ * @param patterns The regular expressions denoting URIs to monitor, e.g. {@code "/context/.*"}, must not be
+ * {@code null}.
* @return This server, never {@code null}.
*/
public HttpServer enableRecording(String... patterns) {
diff --git a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/JobHelpers.java b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/JobHelpers.java
index 74a0e67b..a460e46c 100644
--- a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/JobHelpers.java
+++ b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/JobHelpers.java
@@ -31,6 +31,7 @@ import org.eclipse.debug.core.ILaunch;
import org.eclipse.m2e.core.internal.jobs.IBackgroundProcessingQueue;
+
public class JobHelpers {
private static final int POLLING_DELAY = 10;
@@ -64,7 +65,7 @@ public class JobHelpers {
jobManager.suspend();
try {
Job[] jobs = jobManager.find(null);
- for (int i = 0; i < jobs.length; i++) {
+ for(int i = 0; i < jobs.length; i++ ) {
if(jobs[i] instanceof WorkspaceJob || jobs[i].getClass().getName().endsWith("JREUpdateJob")) {
jobs[i].join();
}
@@ -89,18 +90,19 @@ public class JobHelpers {
waitForBuildJobs();
}
- private static boolean flushProcessingQueues(IJobManager jobManager, IProgressMonitor monitor) throws InterruptedException, CoreException {
+ private static boolean flushProcessingQueues(IJobManager jobManager, IProgressMonitor monitor)
+ throws InterruptedException, CoreException {
boolean processed = false;
- for (IBackgroundProcessingQueue queue : getProcessingQueues(jobManager)) {
+ for(IBackgroundProcessingQueue queue : getProcessingQueues(jobManager)) {
queue.join();
- if (!queue.isEmpty()) {
+ if(!queue.isEmpty()) {
IStatus status = queue.run(monitor);
- if (!status.isOK()) {
+ if(!status.isOK()) {
throw new CoreException(status);
}
processed = true;
}
- if (queue.isEmpty()) {
+ if(queue.isEmpty()) {
queue.cancel();
}
}
@@ -109,8 +111,8 @@ public class JobHelpers {
private static List<IBackgroundProcessingQueue> getProcessingQueues(IJobManager jobManager) {
ArrayList<IBackgroundProcessingQueue> queues = new ArrayList<IBackgroundProcessingQueue>();
- for (Job job : jobManager.find(null)) {
- if (job instanceof IBackgroundProcessingQueue) {
+ for(Job job : jobManager.find(null)) {
+ if(job instanceof IBackgroundProcessingQueue) {
queues.add((IBackgroundProcessingQueue) job);
}
}
diff --git a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/WorkspaceHelpers.java b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/WorkspaceHelpers.java
index 26729921..e6622cba 100644
--- a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/WorkspaceHelpers.java
+++ b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/WorkspaceHelpers.java
@@ -109,18 +109,18 @@ public class WorkspaceHelpers {
}
public static String toString(IMarker[] markers) {
- if (markers != null) {
- return toString(Arrays.asList(markers));
+ if(markers != null) {
+ return toString(Arrays.asList(markers));
}
- return "";
+ return "";
}
public static String toString(List<IMarker> markers) {
String sep = "";
StringBuilder sb = new StringBuilder();
- if (markers != null) {
+ if(markers != null) {
for(IMarker marker : markers) {
- try {
+ try {
sb.append(sep).append(toString(marker));
} catch(CoreException ex) {
// ignore
@@ -136,8 +136,7 @@ public class WorkspaceHelpers {
+ marker.getAttribute(IMarker.LINE_NUMBER);
}
- public static List<IMarker> findMarkers(IProject project, int targetSeverity)
- throws CoreException {
+ public static List<IMarker> findMarkers(IProject project, int targetSeverity) throws CoreException {
return findMarkers(project, targetSeverity, null /*withAttribute*/);
}

Back to the top