From ea940e93d092e59dd6c1f8249c74441cb5c150d1 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Wed, 5 Dec 2012 18:26:47 +0100 Subject: [PATCH] IDEA-96190 Annotate stacktrace action: does not work (cherry picked from commit f59976c4fc15c3f97e7d62d0832c8e8fab355c7d) Conflicts: platform/lang-impl/src/com/intellij/unscramble/AnalyzeStacktraceUtil.java --- .../intellij/execution/filters/ExceptionWorker.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/java/openapi/src/com/intellij/execution/filters/ExceptionWorker.java b/java/openapi/src/com/intellij/execution/filters/ExceptionWorker.java index d9e01db682e7..e00d4d6ef7e0 100644 --- a/java/openapi/src/com/intellij/execution/filters/ExceptionWorker.java +++ b/java/openapi/src/com/intellij/execution/filters/ExceptionWorker.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2011 JetBrains s.r.o. + * Copyright 2000-2012 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. @@ -20,6 +20,7 @@ import com.intellij.openapi.application.ReadAction; import com.intellij.openapi.editor.colors.CodeInsightColors; import com.intellij.openapi.editor.colors.EditorColorsManager; import com.intellij.openapi.editor.markup.TextAttributes; +import com.intellij.openapi.fileEditor.OpenFileDescriptor; import com.intellij.openapi.project.Project; import com.intellij.openapi.roots.ProjectRootManager; import com.intellij.openapi.util.TextRange; @@ -208,7 +209,7 @@ public class ExceptionWorker { return null; } - private static class MyHyperlinkInfo implements HyperlinkInfo { + private static class MyHyperlinkInfo implements FileHyperlinkInfo { private final VirtualFile myVirtualFile; private final int myLineNumber; private final Project myProject; @@ -246,5 +247,11 @@ public class ExceptionWorker { new OpenFileHyperlinkInfo(myProject, currentVirtualFile, myLineNumber - 1).navigate(project); } + + @Nullable + @Override + public OpenFileDescriptor getDescriptor() { + return new OpenFileDescriptor(myProject, myVirtualFile, myLineNumber); + } } }