diff --git a/platform/core-api/src/com/intellij/openapi/components/ProjectComponent.java b/platform/core-api/src/com/intellij/openapi/components/ProjectComponent.java index f37de284a5ed..d5aa161955dc 100644 --- a/platform/core-api/src/com/intellij/openapi/components/ProjectComponent.java +++ b/platform/core-api/src/com/intellij/openapi/components/ProjectComponent.java @@ -1,4 +1,4 @@ -// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.components; /** @@ -12,7 +12,11 @@ package com.intellij.openapi.components; * {@link #initComponent()} and {@link #projectOpened()} methods will be called for each project even if user doesn't use any feature of your * plugin. So consider using specific extensions instead to ensure that the plugin will not impact IDE performance until user calls its * actions explicitly. + * + * @deprecated Components are deprecated; please see http://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_components.html for + * guidelines on migrating to other APIs. */ +@Deprecated public interface ProjectComponent extends BaseComponent { /** * Invoked when the project corresponding to this component instance is opened.
diff --git a/platform/extensions/src/com/intellij/openapi/components/BaseComponent.java b/platform/extensions/src/com/intellij/openapi/components/BaseComponent.java index 66c805233d8a..ad7258e3ac82 100644 --- a/platform/extensions/src/com/intellij/openapi/components/BaseComponent.java +++ b/platform/extensions/src/com/intellij/openapi/components/BaseComponent.java @@ -1,9 +1,13 @@ -// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.components; /** * The base interface class for all components. + * + * @deprecated Components are deprecated; please see http://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_components.html for + * guidelines on migrating to other APIs. */ +@Deprecated public interface BaseComponent extends NamedComponent { /** * @deprecated Use {@link com.intellij.openapi.components.PersistentStateComponent#initializeComponent()} or perform initialization in constructor for non-persistence component.