Convert specific strings found in the process output to clickable hyperlinks in Tool Window

Answered

Hi,

How can I convert specific strings (based on regex expression) found in the process output to clickable hyperlinks in Tool Window.

I am creating Console View manually using TextConsoleBuilderFactory.createBuilder(project).getConsole().

I have below sample output of the process (ColoredProcessHandler). The output is divided into three columns:

abc [check out] [..........]

def [check out] [..........]

fgk [already checked out] [linked with the package]

 

I want to make text of 1st column clickable and show action group menu on mouse click.

 

Thanks

 

0
1 comment

Such clickable text is an implementation of the Notification action, like:

These three links are implemented in UpdateChecker.kt

0

Please sign in to leave a comment.