mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
goto: navigate in success case only (IDEA-182556)
This commit is contained in:
@@ -388,8 +388,8 @@ public class MarkerType {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFinished() {
|
||||
super.onFinished();
|
||||
public void onSuccess() {
|
||||
super.onSuccess();
|
||||
PsiElement oneElement = getTheOnlyOneElement();
|
||||
if (oneElement instanceof NavigatablePsiElement) {
|
||||
((NavigatablePsiElement)oneElement).navigate(true);
|
||||
@@ -445,8 +445,8 @@ public class MarkerType {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFinished() {
|
||||
super.onFinished();
|
||||
public void onSuccess() {
|
||||
super.onSuccess();
|
||||
PsiElement oneElement = getTheOnlyOneElement();
|
||||
if (oneElement instanceof NavigatablePsiElement) {
|
||||
((NavigatablePsiElement)oneElement).navigate(true);
|
||||
|
||||
+2
-2
@@ -71,8 +71,8 @@ public class GotoImplementationHandler extends GotoTargetHandler {
|
||||
GotoData gotoData = new GotoData(source, targets, Collections.emptyList());
|
||||
gotoData.listUpdaterTask = new ImplementationsUpdaterTask(gotoData, editor, offset, reference) {
|
||||
@Override
|
||||
public void onFinished() {
|
||||
super.onFinished();
|
||||
public void onSuccess() {
|
||||
super.onSuccess();
|
||||
PsiElement oneElement = getTheOnlyOneElement();
|
||||
if (oneElement != null && navigateToElement(oneElement)) {
|
||||
myPopup.cancel();
|
||||
|
||||
Reference in New Issue
Block a user