Search in sources :

Example 1 with QueryBuilder

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();
}
Also used : WizardContext(de.catma.ui.dialog.wizard.WizardContext) QueryTree(de.catma.queryengine.querybuilder.QueryTree) QueryBuilder(de.catma.ui.module.analyze.querybuilder.QueryBuilder)

Aggregations

QueryTree (de.catma.queryengine.querybuilder.QueryTree)1 WizardContext (de.catma.ui.dialog.wizard.WizardContext)1 QueryBuilder (de.catma.ui.module.analyze.querybuilder.QueryBuilder)1