forked from External/mage
removed the Session out of local scope and introduced a static SessionHandler that acts as interface to remote.Session
This commit is contained in:
parent
360823ec2e
commit
3019991473
28 changed files with 545 additions and 271 deletions
|
|
@ -31,6 +31,7 @@ import java.util.UUID;
|
|||
import javax.swing.JComponent;
|
||||
import mage.client.MageFrame;
|
||||
import mage.client.MagePane;
|
||||
import mage.client.SessionHandler;
|
||||
import mage.client.plugins.impl.Plugins;
|
||||
|
||||
/**
|
||||
|
|
@ -70,7 +71,7 @@ public class TablesPane extends MagePane {
|
|||
}
|
||||
|
||||
public void showTables() {
|
||||
UUID roomId = MageFrame.getSession().getMainRoomId();
|
||||
UUID roomId = SessionHandler.getSession().getMainRoomId();
|
||||
if (roomId != null) {
|
||||
this.setTitle("Tables");
|
||||
tablesPanel.showTables(roomId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue