(String line)
| 508 | } |
| 509 | |
| 510 | private void parseAlignmentLine(String line) |
| 511 | { |
| 512 | final String alignment = line.substring(IOConstants.TAG_ALIGNMENT.length() + 1); |
| 513 | PCAlignment align = Globals.getContext().getReferenceContext() |
| 514 | .silentlyGetConstructedCDOMObject(PCAlignment.class, alignment); |
| 515 | |
| 516 | if (align != null) |
| 517 | { |
| 518 | if (!RaceAlignment.canBeAlignment(thePC.getRace(), align)) |
| 519 | { |
| 520 | ShowMessageDelegate.showMessageDialog("Invalid alignment. Setting to <none selected>", |
| 521 | Constants.APPLICATION_NAME, MessageType.INFORMATION); |
| 522 | align = getNoAlignment(); |
| 523 | } |
| 524 | AlignmentCompat.setCurrentAlignment(thePC.getCharID(), align); |
| 525 | |
| 526 | return; |
| 527 | } |
| 528 | |
| 529 | final String message = LanguageBundle.getFormattedString("Warnings.PCGenParser.IllegalAlignment", //$NON-NLS-1$ |
| 530 | line); |
| 531 | warnings.add(message); |
| 532 | } |
| 533 | |
| 534 | /** |
| 535 | * Ignore cost for gear (Y/N) |
no test coverage detected