summaryrefslogtreecommitdiff
path: root/platform/lang-impl/src/com/intellij/ide/actions/GotoRelatedFileAction.java
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2014-08-19 12:53:10 -0700
committerTor Norbye <tnorbye@google.com>2014-08-19 12:53:10 -0700
commit02cf98d65c798d368fcec43ed64a001d513bdd4f (patch)
treee39e210ab20917b7e5ffdce14a42f5747506eed0 /platform/lang-impl/src/com/intellij/ide/actions/GotoRelatedFileAction.java
parent2e5965e996aad62ab1338b09d54caaf99ff3dd6a (diff)
downloadidea-02cf98d65c798d368fcec43ed64a001d513bdd4f.tar.gz
Snapshot idea/138.1503 from git://git.jetbrains.org/idea/community.git
Change-Id: Ie01af1d8710ec0ff51d90301bda1a18b0b5c0faf
Diffstat (limited to 'platform/lang-impl/src/com/intellij/ide/actions/GotoRelatedFileAction.java')
-rw-r--r--platform/lang-impl/src/com/intellij/ide/actions/GotoRelatedFileAction.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/platform/lang-impl/src/com/intellij/ide/actions/GotoRelatedFileAction.java b/platform/lang-impl/src/com/intellij/ide/actions/GotoRelatedFileAction.java
index 6d734d52a584..e86caec534f6 100644
--- a/platform/lang-impl/src/com/intellij/ide/actions/GotoRelatedFileAction.java
+++ b/platform/lang-impl/src/com/intellij/ide/actions/GotoRelatedFileAction.java
@@ -15,6 +15,7 @@
*/
package com.intellij.ide.actions;
+import com.intellij.codeInsight.navigation.NavigationUtil;
import com.intellij.navigation.GotoRelatedItem;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.ui.popup.JBPopup;
@@ -25,22 +26,25 @@ import org.jetbrains.annotations.Nullable;
import java.util.List;
/**
- * @deprecated API compatibility. Utility methods will be moved to NavigationUtil
+ * @deprecated API compatibility. Utility methods moved to NavigationUtil.
+ * todo [neuro] REMOVE-ME when September Ends..
* @author gregsh
*/
public class GotoRelatedFileAction {
/**
- * @deprecated This method will be moved to NavigationUtil
+ * @deprecated
+ * @see com.intellij.codeInsight.navigation.NavigationUtil#getRelatedItemsPopup(java.util.List, String)
*/
public static JBPopup createPopup(List<? extends GotoRelatedItem> items, final String title) {
- return GotoRelatedSymbolAction.createPopup(items, title);
+ return NavigationUtil.getRelatedItemsPopup(items, title);
}
/**
- * @deprecated This method will be moved to NavigationUtil
+ * @deprecated
+ * @see com.intellij.codeInsight.navigation.NavigationUtil#collectRelatedItems(com.intellij.psi.PsiElement, com.intellij.openapi.actionSystem.DataContext)
*/
public static List<GotoRelatedItem> getItems(@NotNull PsiElement contextElement, @Nullable DataContext dataContext) {
- return GotoRelatedSymbolAction.getItems(contextElement, dataContext);
+ return NavigationUtil.collectRelatedItems(contextElement, dataContext);
}
}