mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Updated Parameter cast to pass in DeckImport Constructor
DeckImport will now get an instance of the CDeckEditor rather than the more generic ACEditorBase. This is to allow more refined access to methods. Also, all lives in forge-gui-desktop, therefore there should be no conflict with mobile app ui. Signed-off-by: leriomaggio <valeriomaggio@gmail.com>
This commit is contained in:
@@ -119,8 +119,8 @@ public enum CCurrentDeck implements ICDoc {
|
|||||||
* Opens dialog for importing a deck from a different MTG software.
|
* Opens dialog for importing a deck from a different MTG software.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
private <TItem extends InventoryItem, TModel extends DeckBase> void importDeck() {
|
private <TModel extends DeckBase> void importDeck() {
|
||||||
final ACEditorBase<TItem, TModel> ed = (ACEditorBase<TItem, TModel>)
|
final CDeckEditor<TModel> ed = (CDeckEditor<TModel>)
|
||||||
CDeckEditorUI.SINGLETON_INSTANCE.getCurrentEditorController();
|
CDeckEditorUI.SINGLETON_INSTANCE.getCurrentEditorController();
|
||||||
final DeckImport dImport = new DeckImport(ed);
|
final DeckImport dImport = new DeckImport(ed);
|
||||||
dImport.setModalityType(ModalityType.APPLICATION_MODAL);
|
dImport.setModalityType(ModalityType.APPLICATION_MODAL);
|
||||||
|
|||||||
Reference in New Issue
Block a user