diff --git a/plugins/hg4idea/src/META-INF/plugin.xml b/plugins/hg4idea/src/META-INF/plugin.xml index f68e0a57d997..22def9baecd4 100644 --- a/plugins/hg4idea/src/META-INF/plugin.xml +++ b/plugins/hg4idea/src/META-INF/plugin.xml @@ -27,6 +27,13 @@ + + + + @@ -65,19 +72,6 @@ - - - org.zmlx.hg4idea.HgGlobalSettings - - - - - org.zmlx.hg4idea.command.HgCommandService - - - org.zmlx.hg4idea.HgProjectSettings - - org.zmlx.hg4idea.HgVcsMessages diff --git a/plugins/hg4idea/src/org/zmlx/hg4idea/command/HgCommandService.java b/plugins/hg4idea/src/org/zmlx/hg4idea/command/HgCommandService.java index ddc5381d88bb..550d99d27625 100644 --- a/plugins/hg4idea/src/org/zmlx/hg4idea/command/HgCommandService.java +++ b/plugins/hg4idea/src/org/zmlx/hg4idea/command/HgCommandService.java @@ -14,6 +14,7 @@ package org.zmlx.hg4idea.command; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.application.ModalityState; +import com.intellij.openapi.components.ServiceManager; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.project.Project; import com.intellij.openapi.vfs.VirtualFile; @@ -57,7 +58,7 @@ public final class HgCommandService { } public static HgCommandService getInstance(Project project) { - return project.getComponent(HgCommandService.class); + return ServiceManager.getService(project, HgCommandService.class); } HgCommandResult execute(VirtualFile repo, String operation, List arguments) {