use of de.catma.ui.module.analyze.querybuilder.QueryBuilder in project catma by forTEXT.
the class AnalyzeView method showQueryBuilder.
private void showQueryBuilder() {
WizardContext wizardContext = new WizardContext();
wizardContext.put(QueryBuilder.ContextKey.QUERY_TREE, new QueryTree());
QueryBuilder queryBuilder = new QueryBuilder(project, wizardContext, new SaveCancelListener<WizardContext>() {
@Override
public void savePressed(WizardContext result) {
QueryTree queryTree = (QueryTree) result.get(QueryBuilder.ContextKey.QUERY_TREE);
String query = queryTree.toString();
queryBox.setValue(new NamedQuery(query));
}
});
queryBuilder.show();
}
Aggregations