mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
OC-11821 Swift: extension appears in the list of inheriting types for itself (revert change)
This commit is contained in:
-8
@@ -21,7 +21,6 @@ import com.intellij.codeInsight.TargetElementUtilBase;
|
||||
import com.intellij.ide.util.PsiElementListCellRenderer;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.extensions.Extensions;
|
||||
import com.intellij.openapi.progress.ProgressIndicator;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.psi.PsiElement;
|
||||
@@ -81,16 +80,9 @@ public class GotoImplementationHandler extends GotoTargetHandler {
|
||||
}.searchImplementations(editor, source, offset),
|
||||
Collections.<AdditionalAction>emptyList());
|
||||
}
|
||||
postConfigure(editor, gotoData);
|
||||
return gotoData;
|
||||
}
|
||||
|
||||
private static void postConfigure(@NotNull Editor editor, @NotNull GotoTargetHandler.GotoData gotoData) {
|
||||
for (GotoTargetConfigurator configurator : Extensions.getExtensions(GotoTargetConfigurator.EP_NAME)) {
|
||||
configurator.postConfigure(editor, gotoData);
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected String getChooserTitle(PsiElement sourceElement, String name, int length) {
|
||||
|
||||
-29
@@ -1,29 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2015 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.
|
||||
*/
|
||||
package com.intellij.codeInsight.navigation;
|
||||
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author Alexander Lobas
|
||||
*/
|
||||
public interface GotoTargetConfigurator {
|
||||
ExtensionPointName<GotoTargetConfigurator> EP_NAME = ExtensionPointName.create("com.intellij.gotoTargetConfigurator");
|
||||
|
||||
void postConfigure(@NotNull Editor editor, @NotNull GotoTargetHandler.GotoData gotoData);
|
||||
}
|
||||
@@ -514,8 +514,6 @@
|
||||
interface="com.intellij.codeInsight.navigation.actions.GotoDeclarationHandler"/>
|
||||
<extensionPoint name="typeDeclarationProvider"
|
||||
interface="com.intellij.codeInsight.navigation.actions.TypeDeclarationProvider"/>
|
||||
<extensionPoint name="gotoTargetConfigurator"
|
||||
interface="com.intellij.codeInsight.navigation.GotoTargetConfigurator"/>
|
||||
<extensionPoint name="gotoTargetRendererProvider"
|
||||
interface="com.intellij.codeInsight.navigation.GotoTargetRendererProvider"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user