queryEditorPanel.registerCompletionChangeListener(new CompletionChangeHint());
return queryEditorPanel;
}
private ButtonsPanel initButtons(final EditorPanel editorPanel, Form<String> editorForm) {
ButtonsPanel buttonsPanel = new ButtonsPanel("buttons");
buttonsPanel.withResultOrientation((t, o) -> queryResultPanel.switchView(t, ViewType.fromOrientation(o)));
buttonsPanel.withCompletion((t, p) -> {
cqlCompletionHintPanel.setVisible(p);
t.add(cqlCompletionHintPanel);
});
buttonsPanel.withExportQueryResult(t -> queryResultExport.initiateDownload(t, lastQuery));
buttonsPanel.withExecQuery(t -> handleExecQuery(t, editorPanel), editorForm);
buttonsPanel.withAddToFavourites();
add(buttonsPanel);
return buttonsPanel;
}