Re-disabled Alpha and Beta in the Custom quest format dialog.

Very minor checkstyle (removed extra whitespace).
This commit is contained in:
RumbleBBU
2013-02-12 08:05:23 +00:00
parent c21689690f
commit 22a707e213

View File

@@ -48,6 +48,7 @@ public class DialogChooseSets {
List<FCheckBox> otherSets = new ArrayList<FCheckBox>();
for (CardEdition ce : editions) {
if (choosableSet(ce)) {
String code = ce.getCode();
FCheckBox box = new FCheckBox(String.format("%s (%s)", ce.getName(), code));
box.setName(code);
@@ -59,6 +60,7 @@ public class DialogChooseSets {
default: otherSets.add(box); break;
}
}
}
FPanel p = new FPanel(new MigLayout("insets 0, gap 0, center, wrap 3"));
p.setOpaque(false);
@@ -143,6 +145,10 @@ public class DialogChooseSets {
return pnl;
}
private boolean choosableSet(final CardEdition ce) {
return !("LEA".equalsIgnoreCase(ce.getCode()) || "LEB".equalsIgnoreCase(ce.getCode()));
}
private void handleOk() {
for (FCheckBox box : choices) {
if (box.isSelected()) {