From cbf6d0b8800fdb144e0312f9d8ce5bc31ebf38e6 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 16 Jun 2010 16:10:33 +0400 Subject: [PATCH] Mercurial: components -> services --- plugins/hg4idea/src/META-INF/plugin.xml | 20 +++++++------------ .../hg4idea/command/HgCommandService.java | 3 ++- 2 files changed, 9 insertions(+), 14 deletions(-) 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) {