- ui refactoring: duplicate code.
parent
e078039784
commit
903674de9c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue