public void actionPerformed(AnActionEvent e) {
getMessagesTree().grabFocus();
StatementExecutionMessageNode execMessageNode = (StatementExecutionMessageNode) getMessagesTree().getSelectionPath().getLastPathComponent();
StatementExecutionResult executionResult = execMessageNode.getExecutionMessage().getExecutionResult();
StatementViewerPopup statementViewer = new StatementViewerPopup(executionResult);
statementViewer.show((Component) e.getInputEvent().getSource());
}
public void update(AnActionEvent e) {
boolean enabled =
getMessagesTree().getSelectionPath() != null &&