- ui refactoring: duplicate code.

master
Lodici 2013-12-10 01:41:43 +00:00
parent e078039784
commit 903674de9c
1 changed files with 1 additions and 5 deletions

View File

@ -38,17 +38,13 @@ public class DeckEditorScreen
}
// CTR : open Deck Editor in standalone mode starting with an empty deck.
public DeckEditorScreen(final MagicFrame frame0) {
super(getScreenContent(), frame0);
this.frame = frame0;
this(frame0, null);
}
private static JPanel getScreenContent(final MagicDeck deck) {
content = new ExplorerPanel(deck);
return content;
}
private static JPanel getScreenContent() {
return getScreenContent(null);
}
/* (non-Javadoc)
* @see magic.ui.IMagActionBar#getLeftAction()