Caleb Williams
2016-10-07 01:20:26 UTC
Hey all:
In an effort reduce some of the bloat of the panel package
(net.sf.freecol.client.gui.panel), I have moved seven files having to do
with Labels (all implementing JLabel) into this a new label package
(..panel.label) as well as created a simple wrapper called FreeColLabel
that eventually will hold common parts of all Labels and eventually step
between JLabel and the rest of the contents of the label package.
This change has been fully tested via `ant testall` and with live game play
and no ill effects were found so far. The commit is available as [bd86a6] @
<
https://sourceforge.net/p/freecol/git/ci/bd86a60a4c61db8936f9d118fe82cde6cee74389/>
for your perusal.
I believe it's possible that splitting the panel package into at least one
other sub package for dialog-specific panels could help separate some
functionality, but this would be a larger move and one I wouldn't take
without a larger consensus of the dev community.
Thanks,
--
*Caleb R. Williams*
In an effort reduce some of the bloat of the panel package
(net.sf.freecol.client.gui.panel), I have moved seven files having to do
with Labels (all implementing JLabel) into this a new label package
(..panel.label) as well as created a simple wrapper called FreeColLabel
that eventually will hold common parts of all Labels and eventually step
between JLabel and the rest of the contents of the label package.
This change has been fully tested via `ant testall` and with live game play
and no ill effects were found so far. The commit is available as [bd86a6] @
<
https://sourceforge.net/p/freecol/git/ci/bd86a60a4c61db8936f9d118fe82cde6cee74389/>
for your perusal.
I believe it's possible that splitting the panel package into at least one
other sub package for dialog-specific panels could help separate some
functionality, but this would be a larger move and one I wouldn't take
without a larger consensus of the dev community.
Thanks,
--
*Caleb R. Williams*