mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[core-api] fix deprecation problems
GitOrigin-RevId: d3a4a73a13ad7024956ffd1ffa5b69b64cfe8e2e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3c636e8181
commit
86847abcec
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
* Copyright 2000-2019 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -15,6 +15,9 @@
|
||||
*/
|
||||
package com.intellij.openapi.project;
|
||||
|
||||
/**
|
||||
* @deprecated obsolete API
|
||||
*/
|
||||
@Deprecated
|
||||
public enum DumbModePermission {
|
||||
MAY_START_MODAL,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
* Copyright 2000-2019 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -24,8 +24,11 @@ import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
|
||||
public class ProjectCoreUtil {
|
||||
|
||||
/**
|
||||
* @deprecated for internal use only, see {@link #theOnlyOpenProject()}
|
||||
*/
|
||||
@Deprecated
|
||||
@ApiStatus.Internal
|
||||
public static volatile Project theProject;
|
||||
@@ -42,8 +45,9 @@ public class ProjectCoreUtil {
|
||||
|
||||
/**
|
||||
* For internal usage only.
|
||||
* Please use {@link com.intellij.psi.PsiElement#getProject()} or {@link com.intellij.openapi.project.ProjectManager#getOpenProjects()} instead.
|
||||
* @return the only open project if there is one, null if no projects open, or several projects are open, or default project is created
|
||||
*
|
||||
* @return the only open project if there is one, {@code null} if no projects open, or several projects are open, or default project is created
|
||||
* @deprecated Please use {@link com.intellij.psi.PsiElement#getProject()} or {@link com.intellij.openapi.project.ProjectManager#getOpenProjects()} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
@ApiStatus.Internal
|
||||
|
||||
@@ -46,7 +46,7 @@ public interface PlatformIcons {
|
||||
Icon ASPECT_ICON = AllIcons.Nodes.Aspect;
|
||||
|
||||
/**
|
||||
* @deprecated {@link AllIcons.Nodes#Tag}
|
||||
* @deprecated use {@link AllIcons.Nodes#Tag}
|
||||
*/
|
||||
@Deprecated
|
||||
Icon ADVICE_ICON = AllIcons.Nodes.Tag;
|
||||
@@ -106,13 +106,13 @@ public interface PlatformIcons {
|
||||
Icon IMPORT_ICON = AllIcons.ToolbarDecorator.Import;
|
||||
|
||||
/**
|
||||
* @use {@link #FOLDER_ICON}
|
||||
* @deprecated use {@link #FOLDER_ICON}
|
||||
*/
|
||||
@Deprecated
|
||||
Icon DIRECTORY_CLOSED_ICON = FOLDER_ICON;
|
||||
|
||||
/**
|
||||
* @use {@link #FOLDER_ICON}
|
||||
* @deprecated use {@link #FOLDER_ICON}
|
||||
*/
|
||||
@Deprecated
|
||||
Icon DIRECTORY_OPEN_ICON = FOLDER_ICON;
|
||||
|
||||
Reference in New Issue
Block a user