Page 1 of 1

TableSorter.java use?

PostPosted: 05 Nov 2010, 14:23
by slapshot5
What is TableSorter.java used for? Anything? It's constructor calls a function that reads from cards.txt, which can't be helping anything. (It for sure gets called when opening the Deck Editor.)

Does this need to be updated to use cardsfolder, or can this be nuked, and references deleted/updated?

-slapshot5

Re: TableSorter.java use?

PostPosted: 05 Nov 2010, 17:50
by mtgrares
TableSorter is used to sort the cards in the Deck Editor. It sorts by card name, etc...

TableModel.sort() creates TableSorter and the code looks ok, although I can't be 100% sure. If you have problems look at Gui_DeckEditor since it calls TableModel.

The two lines in the TableSorter constructor that reads cards.txt looks like it could be removed.

Code: Select all
if(cardsTxt == null)
      cardsTxt = readCardsTxt();
(I wrote this code a long, long time ago in a galaxy far, far away.)