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}";
```
请先登录再写评论。
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.FakePsiElementand usenavigate()to open tool window.