Search in sources :

Example 21 with QueriesEntityFactory

use of org.whole.lang.queries.factories.QueriesEntityFactory in project whole by wholeplatform.

the class ActionsUIContentAssistVisitor method createNotEqualsQuery.

protected IEntity createNotEqualsQuery(IEntity prototype) {
    Expression expression = createStageUpFragment(Expression, EntityUtils.clone(prototype));
    QueriesEntityFactory qef = QueriesEntityFactory.instance;
    return qef.createNot(qef.createExpressionTest(qef.createPointwiseEquals(qef.createSelfStep(), expression)));
}
Also used : Expression(org.whole.lang.queries.model.Expression) Expression(org.whole.lang.queries.reflect.QueriesEntityDescriptorEnum.Expression) QueriesEntityFactory(org.whole.lang.queries.factories.QueriesEntityFactory)

Aggregations

QueriesEntityFactory (org.whole.lang.queries.factories.QueriesEntityFactory)21 IEntity (org.whole.lang.model.IEntity)17 Test (org.junit.Test)11 PathExpression (org.whole.lang.queries.model.PathExpression)6 ITemplateManager (org.whole.lang.templates.ITemplateManager)6 Actions (org.whole.lang.actions.model.Actions)4 GroupAction (org.whole.lang.actions.model.GroupAction)4 ActionsUIEntityFactory (org.whole.lang.actions.ui.factories.ActionsUIEntityFactory)4 ILanguageKit (org.whole.lang.reflect.ILanguageKit)4 XmlModel (org.whole.lang.models.codebase.XmlModel)3 Model (org.whole.lang.models.model.Model)3 ArrayList (java.util.ArrayList)2 IBindingManager (org.whole.lang.bindings.IBindingManager)2 ClasspathPersistenceProvider (org.whole.lang.codebase.ClasspathPersistenceProvider)2 Path (org.whole.lang.queries.model.Path)2 HashSet (java.util.HashSet)1 IEclipseContext (org.eclipse.e4.core.contexts.IEclipseContext)1 ActionsEntityFactory (org.whole.lang.actions.factories.ActionsEntityFactory)1 ActionCall (org.whole.lang.actions.model.ActionCall)1 ActionFactory (org.whole.lang.e4.ui.actions.ActionFactory)1