How to implement custom string redirection?

已回答

I want to redirect an API path to a tree node in custom window, just like below:

```

String path = “/users/{id}”;

let path="/users/{id}";

```

0

You mean provide navigation/goto declaration from the code to your custom toolwindow? 

Using “Select In..” popup via com.intellij.ide.SelectInTarget.

Or for “goto declaration”, resolve the reference from the String literal to dummy com.intellij.psi.impl.FakePsiElement and use navigate() to open tool window.

0

请先登录再写评论。