Changeset 22688
- Timestamp:
- 03/09/10 11:58:28 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mnw21/pathquery_refactor/intermine/web/main/src/org/intermine/web/logic/query/DisplayConstraint.java
r22651 r22688 416 416 // <c:if test="${!(editingNode.type == 'String' && (op.value == '<=' 417 417 //|| op.value == '>='))}"> 418 419 418 // TODO this should show different options if a dropdown is to be used 420 419 boolean existPossibleValues = 420 (getPossibleValues() != null && getPossibleValues().size() > 0) ? true : false; 421 421 for (ConstraintOp op : allOps) { 422 if (!existPossibleValues && (op.getIndex() == 6 || op.getIndex() == 7)) { 423 continue; 424 } 422 425 validOps.add(new DisplayConstraintOption(op.toString(), op.getIndex())); 423 426 } 424 425 for (ConstraintOp op : PathConstraintMultiValue.VALID_OPS) {426 validOps.add(new DisplayConstraintOption(op.toString(),427 if (existPossibleValues) { 428 for (ConstraintOp op : PathConstraintMultiValue.VALID_OPS) { 429 validOps.add(new DisplayConstraintOption(op.toString(), 427 430 op.getIndex())); 428 }429 431 } 432 } 430 433 } else if (isLookup()) { 431 434 // this must be a LOOKUP constraint
Note: See TracChangeset
for help on using the changeset viewer.
