Skip to content

Commit

Permalink
source refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
nicol authored and nicol committed Sep 19, 2023
1 parent 05b6ed0 commit afe71ca
Show file tree
Hide file tree
Showing 28 changed files with 39 additions and 38 deletions.
1 change: 1 addition & 0 deletions .temp-NetworkCli-classpath-arg-1695124264247.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import org.jdesktop.beansbinding.Bindings;
import org.magic.api.beans.MTGRuling;
import org.magic.api.beans.MagicCard;
import org.magic.gui.components.MagicTextPane;
import org.magic.gui.components.ManaPanel;
import org.magic.gui.components.card.MagicTextPane;
import org.magic.gui.components.card.ManaPanel;

public class LightDescribeCardPanel extends JPanel {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import org.magic.game.model.ManaPool;
import org.magic.game.model.Player;
import org.magic.gui.components.ManaPanel;
import org.magic.gui.components.card.ManaPanel;
import org.utils.patterns.observer.Observable;
import org.utils.patterns.observer.Observer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.magic.api.beans.enums.EnumColors;
import org.magic.game.model.AbstractSpell;
import org.magic.game.model.abilities.AbstractAbilities;
import org.magic.gui.components.MagicTextPane;
import org.magic.gui.components.card.MagicTextPane;
import org.magic.services.MTGConstants;

public class SpellRendererPanel extends JPanel {
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/org/magic/gui/CollectionPanelGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,22 @@
import org.magic.api.interfaces.MTGDao;
import org.magic.gui.abstracts.AbstractBuzyIndicatorComponent;
import org.magic.gui.abstracts.MTGUIComponent;
import org.magic.gui.components.CardSearchPanel;
import org.magic.gui.components.CardStockPanel;
import org.magic.gui.components.CardsDeckCheckerPanel;
import org.magic.gui.components.CardsEditionTablePanel;
import org.magic.gui.components.GedPanel;
import org.magic.gui.components.GroupedShoppingPanel;
import org.magic.gui.components.JLazyLoadingTree;
import org.magic.gui.components.PackagesBrowserPanel;
import org.magic.gui.components.PricesTablePanel;
import org.magic.gui.components.TokensTablePanel;
import org.magic.gui.components.card.CardSearchPanel;
import org.magic.gui.components.card.CardStockPanel;
import org.magic.gui.components.card.CardsEditionTablePanel;
import org.magic.gui.components.card.MagicCardDetailPanel;
import org.magic.gui.components.card.MagicEditionDetailPanel;
import org.magic.gui.components.card.TokensTablePanel;
import org.magic.gui.components.charts.HistoryPricesPanel;
import org.magic.gui.components.charts.ManaRepartitionPanel;
import org.magic.gui.components.charts.RarityRepartitionPanel;
import org.magic.gui.components.charts.TypeRepartitionPanel;
import org.magic.gui.components.deck.CardsDeckCheckerPanel;
import org.magic.gui.components.dialog.MassCollectionImporterDialog;
import org.magic.gui.components.dialog.MassMoverDialog;
import org.magic.gui.components.dialog.WebSiteGeneratorDialog;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/magic/gui/ConfigurationPanelGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
import org.magic.api.interfaces.MTGTrackingService;
import org.magic.api.interfaces.MTGWallpaperProvider;
import org.magic.gui.abstracts.MTGUIComponent;
import org.magic.gui.components.ConfigurationPanel;
import org.magic.gui.components.tech.ConfigurationPanel;
import org.magic.gui.components.tech.HelpCompononent;
import org.magic.gui.models.conf.PluginTreeTableModel;
import org.magic.gui.renderer.MTGPluginTreeCellRenderer;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/magic/gui/MagicGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
import org.magic.api.pricers.impl.MagicCardMarketPricer2;
import org.magic.gui.abstracts.MTGUIComponent;
import org.magic.gui.components.BinderTagsEditorComponent;
import org.magic.gui.components.CardSearchPanel;
import org.magic.gui.components.ScriptPanel;
import org.magic.gui.components.card.CardSearchPanel;
import org.magic.gui.components.dialog.AboutDialog;
import org.magic.gui.components.dialog.ChromeDownloader;
import org.magic.gui.components.dialog.TipsOfTheDayDialog;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/magic/gui/StockPanelGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@
import org.magic.api.interfaces.MTGPriceSuggester;
import org.magic.gui.abstracts.AbstractBuzyIndicatorComponent;
import org.magic.gui.abstracts.MTGUIComponent;
import org.magic.gui.components.CardsDeckCheckerPanel;
import org.magic.gui.components.GedPanel;
import org.magic.gui.components.GradingEditorPane;
import org.magic.gui.components.PriceSuggesterComponent;
import org.magic.gui.components.PricesTablePanel;
import org.magic.gui.components.card.MagicCardDetailPanel;
import org.magic.gui.components.charts.HistoryPricesPanel;
import org.magic.gui.components.deck.CardsDeckCheckerPanel;
import org.magic.gui.components.dialog.CardSearchImportDialog;
import org.magic.gui.components.shops.StockItemsSynchronizationPanel;
import org.magic.gui.components.tech.ObjectViewerPanel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.magic.gui.components;
package org.magic.gui.components.card;

import java.awt.BorderLayout;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.magic.gui.components;
package org.magic.gui.components.card;

import static org.magic.services.tools.MTG.capitalize;
import static org.magic.services.tools.MTG.getEnabledPlugin;
Expand Down Expand Up @@ -59,13 +59,18 @@
import org.magic.game.gui.components.HandPanel;
import org.magic.gui.abstracts.AbstractBuzyIndicatorComponent;
import org.magic.gui.abstracts.MTGUIComponent;
import org.magic.gui.components.card.MagicCardDetailPanel;
import org.magic.gui.components.card.MagicEditionDetailPanel;
import org.magic.gui.components.GedPanel;
import org.magic.gui.components.IASuggestionPanel;
import org.magic.gui.components.ImagePanel;
import org.magic.gui.components.PricesTablePanel;
import org.magic.gui.components.RulesPanel;
import org.magic.gui.components.SimilarityCardPanel;
import org.magic.gui.components.charts.CmcChartPanel;
import org.magic.gui.components.charts.HistoryPricesPanel;
import org.magic.gui.components.charts.ManaRepartitionPanel;
import org.magic.gui.components.charts.RarityRepartitionPanel;
import org.magic.gui.components.charts.TypeRepartitionPanel;
import org.magic.gui.components.deck.CardsDeckCheckerPanel;
import org.magic.gui.components.dialog.AdvancedSearchQueryDialog;
import org.magic.gui.components.tech.CriteriaComponent;
import org.magic.gui.components.tech.ObjectViewerPanel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.magic.gui.components;
package org.magic.gui.components.card;

import static org.magic.services.tools.MTG.getEnabledPlugin;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.magic.gui.components;
package org.magic.gui.components.card;

import static org.magic.services.tools.MTG.capitalize;
import static org.magic.services.tools.MTG.getEnabledPlugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
import org.magic.api.interfaces.MTGCardsExport;
import org.magic.api.interfaces.MTGDao;
import org.magic.api.interfaces.MTGPictureProvider;
import org.magic.gui.components.MagicTextPane;
import org.magic.gui.components.ManaPanel;
import org.magic.services.MTGConstants;
import org.magic.services.MTGControler;
import org.magic.services.logging.MTGLogger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.magic.api.beans.enums.EnumExtra;
import org.magic.api.interfaces.MTGCardsProvider;
import org.magic.gui.abstracts.MTGUIComponent;
import org.magic.gui.components.CardSearchPanel;
import org.magic.gui.components.widgets.JLangLabel;
import org.magic.services.MTGConstants;
import org.magic.services.tools.UITools;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.magic.gui.components;
package org.magic.gui.components.card;

import java.awt.BorderLayout;
import java.awt.Dimension;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.magic.gui.components;
package org.magic.gui.components.card;

import java.awt.FlowLayout;
import java.awt.Image;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.magic.gui.components;
package org.magic.gui.components.card;

import static org.magic.services.tools.MTG.getEnabledPlugin;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.magic.gui.components;
package org.magic.gui.components.deck;

import java.awt.BorderLayout;
import java.awt.event.ComponentAdapter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
import org.magic.game.model.Player;
import org.magic.gui.abstracts.AbstractBuzyIndicatorComponent;
import org.magic.gui.abstracts.MTGUIComponent;
import org.magic.gui.components.CardStockPanel;
import org.magic.gui.components.IASuggestionPanel;
import org.magic.gui.components.RulesPanel;
import org.magic.gui.components.card.CardStockPanel;
import org.magic.gui.components.card.ComboFinderPanel;
import org.magic.gui.components.card.MagicCardDetailPanel;
import org.magic.gui.components.charts.CmcChartPanel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import org.magic.api.beans.MagicCard;
import org.magic.api.beans.MagicDeck;
import org.magic.api.interfaces.MTGPictureProvider;
import org.magic.gui.components.ManaPanel;
import org.magic.gui.components.card.ManaPanel;
import org.magic.gui.components.editor.JTagsPanel;
import org.magic.gui.components.widgets.JLangLabel;
import org.magic.services.MTGControler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import javax.swing.WindowConstants;

import org.magic.api.beans.MagicCard;
import org.magic.gui.components.CardSearchPanel;
import org.magic.gui.components.card.CardSearchPanel;
import org.magic.services.MTGConstants;

public class CardSearchImportDialog extends JDialog {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import javax.swing.text.BadLocationException;

import org.magic.api.interfaces.MTGTextGenerator;
import org.magic.gui.components.MagicTextPane;
import org.magic.gui.components.card.MagicTextPane;
import org.magic.services.MTGConstants;

public class JSuggestedPanel extends JComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
import org.magic.api.interfaces.MTGTextGenerator;
import org.magic.api.interfaces.abstracts.AbstractPicturesEditorProvider;
import org.magic.gui.abstracts.MTGUIComponent;
import org.magic.gui.components.MagicTextPane;
import org.magic.gui.components.ManaPanel;
import org.magic.gui.components.card.MagicTextPane;
import org.magic.gui.components.card.ManaPanel;
import org.magic.services.MTGConstants;
import org.magic.services.network.URLTools;
import org.magic.services.tools.ImageTools;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import javax.swing.border.LineBorder;

import org.magic.api.beans.MagicCard;
import org.magic.gui.components.ManaPanel;
import org.magic.gui.components.card.ManaPanel;
import org.magic.services.MTGControler;
import org.magic.services.providers.IconSetProvider;
import org.magic.services.tools.UITools;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import org.magic.api.beans.shop.Contact;
import org.magic.gui.abstracts.AbstractBuzyIndicatorComponent;
import org.magic.gui.abstracts.MTGUIComponent;
import org.magic.gui.components.CardStockPanel;
import org.magic.gui.components.card.CardStockPanel;
import org.magic.gui.components.tech.ObjectViewerPanel;
import org.magic.gui.models.ContactTableModel;
import org.magic.services.MTGConstants;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.magic.gui.components;
package org.magic.gui.components.tech;

import static org.magic.services.tools.MTG.capitalize;
import static org.magic.services.tools.MTG.getEnabledPlugin;
Expand Down Expand Up @@ -60,8 +60,6 @@
import org.magic.gui.abstracts.AbstractBuzyIndicatorComponent;
import org.magic.gui.abstracts.MTGUIComponent;
import org.magic.gui.components.dialog.DefaultStockEditorDialog;
import org.magic.gui.components.tech.MTGAuthenticatorEditor;
import org.magic.gui.components.tech.ShortKeyManagerUI;
import org.magic.gui.components.widgets.JFontChooser;
import org.magic.gui.components.widgets.JLangLabel;
import org.magic.gui.components.widgets.JResizerPanel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.magic.api.beans.MagicCard;
import org.magic.api.beans.MagicEdition;
import org.magic.api.beans.enums.EnumColors;
import org.magic.gui.components.ManaPanel;
import org.magic.gui.components.card.ManaPanel;
import org.magic.services.MTGConstants;
import org.magic.services.providers.IconSetProvider;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/magic/gui/renderer/ManaCellRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

import org.magic.gui.components.ManaPanel;
import org.magic.gui.components.card.ManaPanel;

public class ManaCellRenderer implements TableCellRenderer {

Expand Down

0 comments on commit afe71ca

Please sign in to comment.