Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Piggott2011-04-15 16:44:32 +0000
committerMatthew Piggott2011-04-15 19:03:24 +0000
commitcfc9d18fb6459472703ee574e6d5a1e0e6f5effe (patch)
tree5a88be0ce50becaa93262ff039fb75e3c86358ef /org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude
parent72aebf4dd3e1edf8b158a11627fe3c0dd044557c (diff)
downloadm2e-core-cfc9d18fb6459472703ee574e6d5a1e0e6f5effe.tar.gz
m2e-core-cfc9d18fb6459472703ee574e6d5a1e0e6f5effe.tar.xz
m2e-core-cfc9d18fb6459472703ee574e6d5a1e0e6f5effe.zip
Removed many uses of depreciated MavenPlugin.getDefault()
Diffstat (limited to 'org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude')
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/exclude/ExcludeArtifactRefactoring.java6
1 files changed, 3 insertions, 3 deletions
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 5597843d..6cb39e16 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
@@ -82,11 +82,11 @@ public class ExcludeArtifactRefactoring extends Refactoring {
}
protected IMavenProjectFacade getMavenProjectFacade(IFile pom) {
- return MavenPlugin.getDefault().getMavenProjectRegistry().create(pom, true, new NullProgressMonitor());
+ return MavenPlugin.getMavenProjectRegistry().create(pom, true, new NullProgressMonitor());
}
protected IMavenProjectFacade getMavenProjectFacade(MavenProject mavenProject) {
- return MavenPlugin.getDefault().getMavenProjectRegistry()
+ return MavenPlugin.getMavenProjectRegistry()
.getMavenProject(mavenProject.getGroupId(), mavenProject.getArtifactId(), mavenProject.getVersion());
}
@@ -225,7 +225,7 @@ public class ExcludeArtifactRefactoring extends Refactoring {
}
private Visitor locate(MavenProject project, IProgressMonitor monitor) throws CoreException {
- DependencyNode root = MavenPlugin.getDefault().getMavenModelManager()
+ DependencyNode root = MavenPlugin.getMavenModelManager()
.readDependencyTree(project, JavaScopes.TEST, monitor);
Visitor visitor = new Visitor(project);
root.accept(visitor);

Back to the top