How to toggle(Turn Off) the Info, Warning actions button in message handler from code?

I got the message handler using the following code.

MessagesViewTool tool = mpsProject.getComponent(MessagesViewTool.class);
if (tool != null) {
handler = tool.newHandler("Make", true);
}

I want to turn off the Show Info/Warning buttons .

Is there a way to configure these actions from code?

0
1 comment
Avatar
Permanently deleted user

There's no mechanism in MPS to control buttons on this toolbar. You can try IDEA's ActionToolbar#getActions of QuickActionProvider#getActions, UI component of the message list has to be QuickActionProvider.

1

Please sign in to leave a comment.