(CustomColormap cm, List blockList)
| 581 | } |
| 582 | |
| 583 | private static void addToBlockList(CustomColormap cm, List blockList) |
| 584 | { |
| 585 | int[] aint = cm.getMatchBlockIds(); |
| 586 | |
| 587 | if (aint != null && aint.length > 0) |
| 588 | { |
| 589 | for (int i = 0; i < aint.length; ++i) |
| 590 | { |
| 591 | int j = aint[i]; |
| 592 | |
| 593 | if (j < 0) |
| 594 | { |
| 595 | warn("Invalid block ID: " + j); |
| 596 | } |
| 597 | else |
| 598 | { |
| 599 | addToList(cm, blockList, j); |
| 600 | } |
| 601 | } |
| 602 | } |
| 603 | else |
| 604 | { |
| 605 | warn("No match blocks: " + Config.arrayToString(aint)); |
| 606 | } |
| 607 | } |
| 608 | |
| 609 | private static void addToList(CustomColormap cm, List list, int id) |
| 610 | { |
no test coverage detected