mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- CheckStyle.
This commit is contained in:
@@ -78,8 +78,12 @@ public class FightEffect extends SpellEffect {
|
|||||||
fighter2 = tgts.get(1);
|
fighter2 = tgts.get(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fighter1 != null) fighterList.add(fighter1);
|
if (fighter1 != null) {
|
||||||
if (fighter2 != null) fighterList.add(fighter2);
|
fighterList.add(fighter1);
|
||||||
|
}
|
||||||
|
if (fighter2 != null) {
|
||||||
|
fighterList.add(fighter2);
|
||||||
|
}
|
||||||
|
|
||||||
return fighterList;
|
return fighterList;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -146,12 +146,12 @@ public enum FControl {
|
|||||||
public void initialize() {
|
public void initialize() {
|
||||||
// Preloads skin components (using progress bar).
|
// Preloads skin components (using progress bar).
|
||||||
FSkin.loadFull();
|
FSkin.loadFull();
|
||||||
|
|
||||||
//This must be done here or at least between the skin being loaded and any FTabbedPanes being created.
|
//This must be done here or at least between the skin being loaded and any FTabbedPanes being created.
|
||||||
//Why,Swing? Why is this not a property of JTabbbedPane?
|
//Why,Swing? Why is this not a property of JTabbbedPane?
|
||||||
UIManager.put("TabbedPane.selected", FSkin.getColor(FSkin.Colors.CLR_ACTIVE));
|
UIManager.put("TabbedPane.selected", FSkin.getColor(FSkin.Colors.CLR_ACTIVE));
|
||||||
UIManager.put("TabbedPane.contentOpaque", FSkin.getColor(FSkin.Colors.CLR_THEME));
|
UIManager.put("TabbedPane.contentOpaque", FSkin.getColor(FSkin.Colors.CLR_THEME));
|
||||||
UIManager.put("TabbedPane.unselectedBackground", FSkin.getColor(FSkin.Colors.CLR_THEME2));
|
UIManager.put("TabbedPane.unselectedBackground", FSkin.getColor(FSkin.Colors.CLR_THEME2));
|
||||||
|
|
||||||
// Does not use progress bar, due to be deprecated with battlefield refactoring.
|
// Does not use progress bar, due to be deprecated with battlefield refactoring.
|
||||||
CardFaceSymbols.loadImages();
|
CardFaceSymbols.loadImages();
|
||||||
|
|||||||
@@ -326,7 +326,7 @@ public class CEditorDraftingProcess extends ACEditorBase<CardPrinted, DeckGroup>
|
|||||||
|
|
||||||
//Re-rename buttons
|
//Re-rename buttons
|
||||||
VCardCatalog.SINGLETON_INSTANCE.getBtnAdd().setText(ccAddLabel);
|
VCardCatalog.SINGLETON_INSTANCE.getBtnAdd().setText(ccAddLabel);
|
||||||
|
|
||||||
//Re-add buttons
|
//Re-add buttons
|
||||||
VCardCatalog.SINGLETON_INSTANCE.getBtnAdd4().setVisible(true);
|
VCardCatalog.SINGLETON_INSTANCE.getBtnAdd4().setVisible(true);
|
||||||
VCurrentDeck.SINGLETON_INSTANCE.getBtnRemove().setVisible(true);
|
VCurrentDeck.SINGLETON_INSTANCE.getBtnRemove().setVisible(true);
|
||||||
|
|||||||
@@ -318,7 +318,7 @@ public final class EditorTableModel<T extends InventoryItem> extends AbstractTab
|
|||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public void add(final TableColumnInfo<T> col0) {
|
public void add(final TableColumnInfo<T> col0) {
|
||||||
this.sorter = null;
|
this.sorter = null;
|
||||||
|
|
||||||
// Found at top level, should invert
|
// Found at top level, should invert
|
||||||
if (colsToSort.size() > 0 && colsToSort.get(0).equals(col0)) {
|
if (colsToSort.size() > 0 && colsToSort.get(0).equals(col0)) {
|
||||||
this.colsToSort.get(0).setSortState(
|
this.colsToSort.get(0).setSortState(
|
||||||
@@ -357,13 +357,14 @@ public final class EditorTableModel<T extends InventoryItem> extends AbstractTab
|
|||||||
}
|
}
|
||||||
|
|
||||||
public TableSorterCascade<InventoryItem> getSorter() {
|
public TableSorterCascade<InventoryItem> getSorter() {
|
||||||
if ( this.sorter == null )
|
if (this.sorter == null) {
|
||||||
this.sorter = createSorter();
|
this.sorter = createSorter();
|
||||||
|
}
|
||||||
return this.sorter;
|
return this.sorter;
|
||||||
}
|
}
|
||||||
|
|
||||||
private TableSorterCascade<InventoryItem> createSorter()
|
private TableSorterCascade<InventoryItem> createSorter() {
|
||||||
{
|
|
||||||
final List<TableSorter<InventoryItem>> oneColSorters
|
final List<TableSorter<InventoryItem>> oneColSorters
|
||||||
= new ArrayList<TableSorter<InventoryItem>>(maxSortDepth);
|
= new ArrayList<TableSorter<InventoryItem>>(maxSortDepth);
|
||||||
|
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ public enum VEditorPreferences implements IVDoc<CEditorPreferences> {
|
|||||||
public JCheckBox getChbCatalogAI() {
|
public JCheckBox getChbCatalogAI() {
|
||||||
return chbCatalogAI;
|
return chbCatalogAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return {@link javax.swing.JCheckBox} */
|
/** @return {@link javax.swing.JCheckBox} */
|
||||||
public JCheckBox getChbCatalogPower() {
|
public JCheckBox getChbCatalogPower() {
|
||||||
return chbCatalogPower;
|
return chbCatalogPower;
|
||||||
@@ -232,7 +232,7 @@ public enum VEditorPreferences implements IVDoc<CEditorPreferences> {
|
|||||||
public JCheckBox getChbDeckAI() {
|
public JCheckBox getChbDeckAI() {
|
||||||
return chbDeckAI;
|
return chbDeckAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return {@link javax.swing.JCheckBox} */
|
/** @return {@link javax.swing.JCheckBox} */
|
||||||
public JCheckBox getChbDeckPower() {
|
public JCheckBox getChbDeckPower() {
|
||||||
return chbDeckPower;
|
return chbDeckPower;
|
||||||
|
|||||||
@@ -92,8 +92,8 @@ public class GuiDownloadSetPicturesLQ extends GuiDownloader {
|
|||||||
// read token names and urls
|
// read token names and urls
|
||||||
final ArrayList<DownloadObject> cList = new ArrayList<DownloadObject>();
|
final ArrayList<DownloadObject> cList = new ArrayList<DownloadObject>();
|
||||||
|
|
||||||
Iterable<CardPrinted> allPrinted = Iterables.concat(CardDb.instance().getAllTraditionalCards(),CardDb.instance().getAllNonTraditionalCards());
|
Iterable<CardPrinted> allPrinted = Iterables.concat(CardDb.instance().getAllTraditionalCards(), CardDb.instance().getAllNonTraditionalCards());
|
||||||
|
|
||||||
for (final CardPrinted c : allPrinted) {
|
for (final CardPrinted c : allPrinted) {
|
||||||
final String setCode3 = c.getEdition();
|
final String setCode3 = c.getEdition();
|
||||||
if (StringUtils.isBlank(setCode3) || "???".equals(setCode3)) {
|
if (StringUtils.isBlank(setCode3) || "???".equals(setCode3)) {
|
||||||
|
|||||||
@@ -352,18 +352,18 @@ public abstract class GuiDownloader extends DefaultBoundedRangeModel implements
|
|||||||
System.out.println("Can't create folder" + base.getAbsolutePath());
|
System.out.println("Can't create folder" + base.getAbsolutePath());
|
||||||
}
|
}
|
||||||
// Don't allow redirections here!
|
// Don't allow redirections here!
|
||||||
|
|
||||||
URL imageUrl = new URL(url);
|
URL imageUrl = new URL(url);
|
||||||
HttpURLConnection conn = (HttpURLConnection)imageUrl.openConnection();
|
HttpURLConnection conn = (HttpURLConnection) imageUrl.openConnection();
|
||||||
conn.setInstanceFollowRedirects(false);
|
conn.setInstanceFollowRedirects(false);
|
||||||
conn.connect();
|
conn.connect();
|
||||||
|
|
||||||
if (conn.getResponseCode() != 200) {
|
if (conn.getResponseCode() != 200) {
|
||||||
conn.disconnect();
|
conn.disconnect();
|
||||||
System.out.println("Skipped Download for: " + fileDest.getPath());
|
System.out.println("Skipped Download for: " + fileDest.getPath());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
in = new BufferedInputStream(conn.getInputStream());
|
in = new BufferedInputStream(conn.getInputStream());
|
||||||
out = new BufferedOutputStream(new FileOutputStream(fileDest));
|
out = new BufferedOutputStream(new FileOutputStream(fileDest));
|
||||||
|
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ public enum EDocID { /** */
|
|||||||
HAND_1 (null), /** */
|
HAND_1 (null), /** */
|
||||||
HAND_2 (null), /** */
|
HAND_2 (null), /** */
|
||||||
HAND_3 (null), /** */
|
HAND_3 (null), /** */
|
||||||
|
|
||||||
COMMAND_0 (null), /** */
|
COMMAND_0 (null), /** */
|
||||||
COMMAND_1 (null), /** */
|
COMMAND_1 (null), /** */
|
||||||
COMMAND_2 (null), /** */
|
COMMAND_2 (null), /** */
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ public enum VHomeUI implements IVTopLevelUI {
|
|||||||
//allSubmenus.add(VSubmenuExit.SINGLETON_INSTANCE);
|
//allSubmenus.add(VSubmenuExit.SINGLETON_INSTANCE);
|
||||||
|
|
||||||
allSubmenus.add(VSubmenuArchenemy.SINGLETON_INSTANCE);
|
allSubmenus.add(VSubmenuArchenemy.SINGLETON_INSTANCE);
|
||||||
|
|
||||||
allSubmenus.add(VSubmenuVanguard.SINGLETON_INSTANCE);
|
allSubmenus.add(VSubmenuVanguard.SINGLETON_INSTANCE);
|
||||||
|
|
||||||
// For each group: init its panel
|
// For each group: init its panel
|
||||||
|
|||||||
Reference in New Issue
Block a user