IJPL-797 intellij.platform.refactoring hide internal API

GitOrigin-RevId: 3874be9ca7b53bbe70f8143628543485ea615901
This commit is contained in:
Max Medvedev
2024-09-04 15:23:22 +02:00
committed by intellij-monorepo-bot
parent 3f27a3edf1
commit 6d10c711e0
13 changed files with 34 additions and 49 deletions

View File

@@ -17,7 +17,6 @@ a:com.intellij.codeInsight.highlighting.HighlightManager
@:com.intellij.codeInsight.highlighting.HighlightManager$HideFlags
- java.lang.annotation.Annotation
*:com.intellij.find.FindInProjectSearchEngine
- sf:EP_NAME:com.intellij.openapi.extensions.ExtensionPointName
- a:createSearcher(com.intellij.find.FindModel,com.intellij.openapi.project.Project):com.intellij.find.FindInProjectSearchEngine$FindInProjectSearcher
*:com.intellij.find.FindInProjectSearchEngine$FindInProjectSearcher
- a:isCovered(com.intellij.openapi.vfs.VirtualFile):Z
@@ -119,7 +118,7 @@ c:com.intellij.find.findUsages.PsiElement2UsageTargetAdapter
- navigate(Z):V
- showSettings():V
- update():V
c:com.intellij.ide.actions.FqnUtil
f:com.intellij.ide.actions.FqnUtil
- <init>():V
- s:elementToFqn(com.intellij.psi.PsiElement,com.intellij.openapi.editor.Editor):java.lang.String
- s:getFileFqn(com.intellij.psi.PsiFile):java.lang.String
@@ -136,7 +135,6 @@ f:com.intellij.ide.actions.QualifiedNameProviderUtil
- s:getQualifiedName(com.intellij.psi.PsiElement):java.lang.String
- s:qualifiedNameToElement(java.lang.String,com.intellij.openapi.project.Project):com.intellij.psi.PsiElement
com.intellij.ide.actions.VirtualFileQualifiedNameProvider
- sf:EP_NAME:com.intellij.openapi.extensions.ExtensionPointName
- a:getQualifiedName(com.intellij.openapi.project.Project,com.intellij.openapi.vfs.VirtualFile):java.lang.String
com.intellij.lang.ContextAwareActionHandler
- a:isAvailableForQuickList(com.intellij.openapi.editor.Editor,com.intellij.psi.PsiFile,com.intellij.openapi.actionSystem.DataContext):Z
@@ -144,8 +142,8 @@ f:com.intellij.lang.LanguageRefactoringSupport
- com.intellij.lang.LanguageExtension
- sf:INSTANCE:com.intellij.lang.LanguageRefactoringSupport
- forContext(com.intellij.psi.PsiElement):com.intellij.lang.refactoring.RefactoringSupportProvider
- s:getInstance():com.intellij.lang.LanguageRefactoringSupport
a:com.intellij.lang.refactoring.InlineActionHandler
- sf:EP_NAME:com.intellij.openapi.extensions.ExtensionPointName
- <init>():V
- a:canInlineElement(com.intellij.psi.PsiElement):Z
- canInlineElementInEditor(com.intellij.psi.PsiElement,com.intellij.openapi.editor.Editor):Z
@@ -272,7 +270,7 @@ com.intellij.refactoring.RefactoringHelper
- sf:EP_NAME:com.intellij.openapi.extensions.ExtensionPointName
- a:performOperation(com.intellij.openapi.project.Project,java.lang.Object):V
- a:prepareOperation(com.intellij.usageView.UsageInfo[],java.util.List):java.lang.Object
c:com.intellij.refactoring.RefactoringSettings
f:com.intellij.refactoring.RefactoringSettings
- com.intellij.openapi.components.PersistentStateComponent
- ASK_FOR_RENAME_DECLARATION_WHEN_RENAME_FILE:Z
- MOVE_SEARCH_FOR_REFERENCES_FOR_FILE:Z
@@ -398,7 +396,7 @@ c:com.intellij.refactoring.extractMethod.SimpleDuplicatesFinder
- p:isDuplicateFragment(com.intellij.psi.PsiElement):com.intellij.refactoring.extractMethod.SimpleMatch
- p:isVariable(com.intellij.psi.PsiElement):Z
- setReplacement(com.intellij.psi.PsiElement):V
c:com.intellij.refactoring.extractMethod.SimpleMatch
f:com.intellij.refactoring.extractMethod.SimpleMatch
- <init>(com.intellij.psi.PsiElement,com.intellij.psi.PsiElement):V
- changeOutput(java.lang.String):V
- changeParameter(java.lang.String,java.lang.String):V
@@ -406,7 +404,7 @@ c:com.intellij.refactoring.extractMethod.SimpleMatch
- getChangedParameters():java.util.Map
- getEndElement():com.intellij.psi.PsiElement
- getStartElement():com.intellij.psi.PsiElement
c:com.intellij.refactoring.listeners.RefactoringElementListenerComposite
f:com.intellij.refactoring.listeners.RefactoringElementListenerComposite
- com.intellij.refactoring.listeners.RefactoringElementListener
- com.intellij.refactoring.listeners.UndoRefactoringElementListener
- <init>():V
@@ -447,19 +445,9 @@ a:com.intellij.refactoring.listeners.UndoRefactoringElementAdapter
- f:elementRenamed(com.intellij.psi.PsiElement):V
- pa:refactored(com.intellij.psi.PsiElement,java.lang.String):V
- f:undoElementMovedOrRenamed(com.intellij.psi.PsiElement,java.lang.String):V
f:com.intellij.refactoring.listeners.impl.RefactoringListenerManagerImpl
- com.intellij.refactoring.listeners.RefactoringListenerManager
- <init>(com.intellij.openapi.project.Project):V
- addListenerProvider(com.intellij.refactoring.listeners.RefactoringElementListenerProvider):V
- startTransaction():com.intellij.refactoring.listeners.impl.RefactoringTransaction
com.intellij.refactoring.listeners.impl.RefactoringTransaction
- a:commit():V
- a:getElementListener(com.intellij.psi.PsiElement):com.intellij.refactoring.listeners.RefactoringElementListener
c:com.intellij.refactoring.listeners.impl.RefactoringTransactionImpl
- com.intellij.refactoring.listeners.impl.RefactoringTransaction
- <init>(com.intellij.openapi.project.Project,java.util.List):V
- commit():V
- getElementListener(com.intellij.psi.PsiElement):com.intellij.refactoring.listeners.RefactoringElementListener
com.intellij.refactoring.rename.NameSuggestionProvider
- sf:EP_NAME:com.intellij.openapi.extensions.ExtensionPointName
- a:getSuggestedNames(com.intellij.psi.PsiElement,com.intellij.psi.PsiElement,java.util.Set):com.intellij.psi.codeStyle.SuggestedNameInfo
@@ -571,7 +559,6 @@ com.intellij.refactoring.rename.RenameRefactoringDialog
- a:performRename(java.lang.String):V
- a:show():V
a:com.intellij.refactoring.rename.RenameRefactoringDialogProvider
- sf:EP_NAME:com.intellij.openapi.extensions.ExtensionPointName
- <init>():V
- a:createDialog(com.intellij.openapi.project.Project,com.intellij.psi.PsiElement,com.intellij.psi.PsiElement,com.intellij.openapi.editor.Editor):com.intellij.refactoring.rename.RenameRefactoringDialog
- isApplicable(com.intellij.refactoring.rename.RenamePsiElementProcessorBase):Z

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.find;
import com.intellij.openapi.extensions.ExtensionPointName;
@@ -16,6 +16,7 @@ import java.util.Collection;
*/
@ApiStatus.Experimental
public interface FindInProjectSearchEngine {
@ApiStatus.Internal
ExtensionPointName<FindInProjectSearchEngine> EP_NAME = ExtensionPointName.create("com.intellij.findInProjectSearchEngine");
/**

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide.actions;
import com.intellij.codeInsight.TargetElementUtilBase;
@@ -22,7 +22,7 @@ import org.jetbrains.annotations.Nullable;
import java.io.File;
public class FqnUtil {
public final class FqnUtil {
@Nullable
public static String getQualifiedNameFromProviders(@Nullable PsiElement element) {
if (element == null) return null;

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide.actions;

View File

@@ -1,13 +1,15 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide.actions;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public interface VirtualFileQualifiedNameProvider {
@ApiStatus.Internal
ExtensionPointName<VirtualFileQualifiedNameProvider> EP_NAME =
ExtensionPointName.create("com.intellij.virtualFileQualifiedNameProvider");

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.lang;
import com.intellij.lang.refactoring.RefactoringSupportProvider;
@@ -25,7 +25,7 @@ public final class LanguageRefactoringSupport extends LanguageExtension<Refactor
@Nullable
public RefactoringSupportProvider forContext(@NotNull PsiElement element) {
List<RefactoringSupportProvider> providers = INSTANCE.allForLanguage(element.getLanguage());
List<RefactoringSupportProvider> providers = allForLanguage(element.getLanguage());
for (RefactoringSupportProvider provider : providers) {
if (provider.isAvailable(element)) {
return provider;

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.lang.refactoring;
@@ -8,6 +8,7 @@ import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.NlsActions.ActionText;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Nullable;
/**
@@ -17,6 +18,7 @@ import org.jetbrains.annotations.Nullable;
* Natural loading order can be changed by providing attribute "order" during registration in plugin.xml.
*/
public abstract class InlineActionHandler {
@ApiStatus.Internal
public static final ExtensionPointName<InlineActionHandler> EP_NAME = ExtensionPointName.create("com.intellij.inlineActionHandler");
/**

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.refactoring;
import com.intellij.openapi.application.ApplicationManager;
@@ -10,7 +10,7 @@ import com.intellij.util.xmlb.XmlSerializerUtil;
import org.jetbrains.annotations.NotNull;
@State(name = "BaseRefactoringSettings", storages = @Storage("baseRefactoring.xml"), category = SettingsCategory.CODE)
public class RefactoringSettings implements PersistentStateComponent<RefactoringSettings> {
public final class RefactoringSettings implements PersistentStateComponent<RefactoringSettings> {
public static RefactoringSettings getInstance() {
return ApplicationManager.getApplication().getService(RefactoringSettings.class);
}

View File

@@ -1,3 +1,4 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.refactoring.extractMethod;
import com.intellij.psi.PsiElement;
@@ -6,7 +7,7 @@ import org.jetbrains.annotations.NotNull;
import java.util.HashMap;
import java.util.Map;
public class SimpleMatch {
public final class SimpleMatch {
PsiElement myStartElement;
PsiElement myEndElement;
private final Map<String, String> myChangedParameters;

View File

@@ -1,18 +1,4 @@
/*
* Copyright 2000-2009 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.refactoring.listeners;
@@ -22,7 +8,7 @@ import org.jetbrains.annotations.NotNull;
import java.util.List;
public class RefactoringElementListenerComposite implements RefactoringElementListener, UndoRefactoringElementListener {
public final class RefactoringElementListenerComposite implements RefactoringElementListener, UndoRefactoringElementListener {
private final List<RefactoringElementListener> myListeners = ContainerUtil.createLockFreeCopyOnWriteList();
public void addListener(final RefactoringElementListener listener){

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.refactoring.listeners.impl;
@@ -6,10 +6,12 @@ import com.intellij.openapi.project.Project;
import com.intellij.refactoring.listeners.RefactoringElementListenerProvider;
import com.intellij.refactoring.listeners.RefactoringListenerManager;
import com.intellij.util.containers.ContainerUtil;
import org.jetbrains.annotations.ApiStatus;
import java.util.ArrayList;
import java.util.List;
@ApiStatus.Internal
public final class RefactoringListenerManagerImpl extends RefactoringListenerManager {
private final List<RefactoringElementListenerProvider> myListenerProviders = ContainerUtil.createLockFreeCopyOnWriteList();
private final Project myProject;

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.refactoring.listeners.impl;
@@ -11,6 +11,7 @@ import com.intellij.psi.SmartPsiElementPointer;
import com.intellij.refactoring.listeners.RefactoringElementListener;
import com.intellij.refactoring.listeners.RefactoringElementListenerProvider;
import com.intellij.refactoring.listeners.UndoRefactoringElementListener;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
@@ -18,7 +19,8 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class RefactoringTransactionImpl implements RefactoringTransaction {
@ApiStatus.Internal
public final class RefactoringTransactionImpl implements RefactoringTransaction {
private static final Logger LOG = Logger.getInstance(RefactoringTransactionImpl.class);
/**

View File

@@ -1,14 +1,16 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.refactoring.rename;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public abstract class RenameRefactoringDialogProvider {
@ApiStatus.Internal
public static final ExtensionPointName<RenameRefactoringDialogProvider>
EP_NAME = ExtensionPointName.create("com.intellij.renameRefactoringDialogProvider");