how to open some url in default web browser by click lineMarker icon
Answered
hi,
I want open web in browser when i click lineMarker, like this:
I define a class extend RelatedItemLineMarkerProvider, but the NavigationGutterIconBuilder target is PsiElement not a callback function, I have no idea to open in browser.
Thanks
Please sign in to leave a comment.
Hi,
You don't have to use NavigationGutterIconBuilder to build the marker info. You can create LineMarkerInfo via the constructor and provide your custom GutterIconNavigationHandler implementation that will open the browser.
You can find multiple examples of GutterIconNavigationHandler implementations in the Platform code:
Thanks, I did it