Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2011-04-06 17:53:18 -0400
committerIgor Fedorenko2011-04-06 20:30:01 -0400
commit1cc5b9d5675ce5c12b65dba5b0e1ab728f346373 (patch)
tree2ea849f915d8422bf8457fa810e395c209a1c9ea /org.eclipse.m2e.editor.xml
parent34f8c611dc55b1bc853e8b432a9f30b71c4b2db2 (diff)
downloadm2e-core-1cc5b9d5675ce5c12b65dba5b0e1ab728f346373.tar.gz
m2e-core-1cc5b9d5675ce5c12b65dba5b0e1ab728f346373.tar.xz
m2e-core-1cc5b9d5675ce5c12b65dba5b0e1ab728f346373.zip
Introduced IMavenProjectRegistry to replace MavenProjectManager
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
Diffstat (limited to 'org.eclipse.m2e.editor.xml')
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/PomContentAssistProcessor.java2
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/XmlUtils.java2
2 files changed, 2 insertions, 2 deletions
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 0e648cdd..9b9c475a 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
@@ -330,7 +330,7 @@ public class PomContentAssistProcessor extends XMLContentAssistProcessor {
public static String findRelativePath(ISourceViewer viewer, String groupId, String artifactId, String version) {
if (groupId != null && artifactId != null && version != null) {
- IMavenProjectFacade facade = MavenPlugin.getDefault().getMavenProjectManager().getMavenProject(groupId, artifactId, version);
+ IMavenProjectFacade facade = MavenPlugin.getDefault().getMavenProjectRegistry().getMavenProject(groupId, artifactId, version);
if (facade != null) {
//now add the proposal for relativePath
IFile parentPomFile = facade.getPom();
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 dfce5ce0..2261e7a0 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
@@ -156,7 +156,7 @@ public class XmlUtils {
}
String[] splitStrings = modelId.split(":");
assert splitStrings.length == 3;
- IMavenProjectFacade facade = MavenPlugin.getDefault().getMavenProjectManager().getMavenProject(splitStrings[0], splitStrings[1], splitStrings[2]);
+ IMavenProjectFacade facade = MavenPlugin.getDefault().getMavenProjectRegistry().getMavenProject(splitStrings[0], splitStrings[1], splitStrings[2]);
if (facade != null) {
file = facade.getPomFile();
} else {

Back to the top