}
}
//Repeat of SingleFieldConstraint checks but for ConnectiveContraints (oh why don't they extend a single common ancestor)
if ( con instanceof ConnectiveConstraint && f != null && f.getFactType() != null ) {
ConnectiveConstraint cc = (ConnectiveConstraint) con;
if ( SuggestionCompletionEngine.isCEPOperator( cc.getOperator() ) ) {
if ( cc.getFieldType().equals( SuggestionCompletionEngine.TYPE_THIS ) ) {
if ( sce.isFactTypeAnEvent( f.getFactType() ) ) {
return true;
} else if ( cc.getFieldType().equals( SuggestionCompletionEngine.TYPE_DATE ) ) {
if ( sce.isFactTypeAnEvent( f.getFactType() ) ) {
return true;
}
}
}
} else if ( cc.getFieldType().equals( SuggestionCompletionEngine.TYPE_THIS ) ) {
if ( f.getFactType().equals( this.pattern.getFactType() ) ) {
return true;
}
if ( fieldConstraint != null && fieldConstraint.equals( this.pattern.getFactType() ) ) {
return true;