diff --git a/platform/platform-impl/src/com/intellij/ide/ui/customization/CustomActionsSchema.java b/platform/platform-impl/src/com/intellij/ide/ui/customization/CustomActionsSchema.java index fd2d3d70fca6..0fd6ac8846b8 100644 --- a/platform/platform-impl/src/com/intellij/ide/ui/customization/CustomActionsSchema.java +++ b/platform/platform-impl/src/com/intellij/ide/ui/customization/CustomActionsSchema.java @@ -20,9 +20,9 @@ import com.intellij.openapi.actionSystem.ActionGroup; import com.intellij.openapi.actionSystem.ActionManager; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.IdeActions; -import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.application.PathManager; -import com.intellij.openapi.components.ExportableApplicationComponent; +import com.intellij.openapi.components.ExportableComponent; +import com.intellij.openapi.components.ServiceManager; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.keymap.impl.ui.ActionsTreeUtil; import com.intellij.openapi.keymap.impl.ui.Group; @@ -48,7 +48,8 @@ import java.util.List; * User: anna * Date: Jan 20, 2005 */ -public class CustomActionsSchema implements ExportableApplicationComponent, NamedJDOMExternalizable { +public class CustomActionsSchema implements ExportableComponent, NamedJDOMExternalizable { + @NonNls private static final String ACTIONS_SCHEMA = "custom_actions_schema"; @NonNls private static final String ACTIVE = "active"; @NonNls private static final String ELEMENT_ACTION = "action"; @@ -79,7 +80,7 @@ public class CustomActionsSchema implements ExportableApplicationComponent, Name private static final Logger LOG = Logger.getInstance("#" + CustomActionsSchema.class.getName()); public static CustomActionsSchema getInstance() { - return ApplicationManager.getApplication().getComponent(CustomActionsSchema.class); + return ServiceManager.getService(CustomActionsSchema.class); } public void addAction(ActionUrl url) { @@ -338,17 +339,6 @@ public void removeIconCustomization(String actionId) { return IdeBundle.message("title.custom.actions.schemas"); } - @NotNull - public String getComponentName() { - return "com.intellij.ide.ui.customization.CustomizableActionsSchemas"; - } - - public void initComponent() { - } - - public void disposeComponent() { - } - public String getExternalFileName() { return "customization"; } diff --git a/platform/platform-resources/src/META-INF/PlatformExtensions.xml b/platform/platform-resources/src/META-INF/PlatformExtensions.xml index 3aa7e19f8cc3..415c3390a7b0 100644 --- a/platform/platform-resources/src/META-INF/PlatformExtensions.xml +++ b/platform/platform-resources/src/META-INF/PlatformExtensions.xml @@ -20,6 +20,8 @@ + + diff --git a/platform/platform-resources/src/componentSets/Platform.xml b/platform/platform-resources/src/componentSets/Platform.xml index d3c8dd3fdf75..5244b44a9b35 100644 --- a/platform/platform-resources/src/componentSets/Platform.xml +++ b/platform/platform-resources/src/componentSets/Platform.xml @@ -75,9 +75,6 @@ com.intellij.ide.TipOfTheDayManager - - com.intellij.ide.ui.customization.CustomActionsSchema - com.intellij.ide.ui.LafManager com.intellij.ide.ui.LafManagerImpl