Removed unused code
This commit is contained in:
parent
ecda338715
commit
dfbdbb5bfe
4 changed files with 8 additions and 17 deletions
|
|
@ -24,11 +24,6 @@ public class CoderClient extends Application{
|
|||
|
||||
//GUI elements
|
||||
private Stage mainStage;
|
||||
private EditorWindow editorWindow;
|
||||
private LoginDialog loginDialog;
|
||||
private SelectProjectDialog selectProjectDialog;
|
||||
private SelectServerDialog selectServerDialog;
|
||||
private NewProjectDialog newProjectDialog;
|
||||
|
||||
public static void main(String[] args) {
|
||||
Application.launch(args);
|
||||
|
|
@ -53,12 +48,14 @@ public class CoderClient extends Application{
|
|||
//setup GUI elements
|
||||
this.mainStage = mainStage;
|
||||
mainStage.setTitle("CoderClient");
|
||||
SelectServerDialog selectServerDialog = null;
|
||||
LoginDialog loginDialog = null;
|
||||
try{
|
||||
this.selectServerDialog = new SelectServerDialog(this);
|
||||
this.loginDialog = new LoginDialog(this);
|
||||
this.selectProjectDialog = new SelectProjectDialog(this);
|
||||
this.newProjectDialog = new NewProjectDialog(this);
|
||||
this.editorWindow = new EditorWindow(this);
|
||||
selectServerDialog = new SelectServerDialog(this);
|
||||
loginDialog = new LoginDialog(this);
|
||||
new SelectProjectDialog(this);
|
||||
new NewProjectDialog(this);
|
||||
new EditorWindow(this);
|
||||
}catch(IOException e){
|
||||
logger.log(Level.SEVERE, "could not load all GUI elements", e);
|
||||
exit();
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ import com.coder.client.session.SessionEventHandler;
|
|||
|
||||
public class LoginDialog extends GuiWindow {
|
||||
public static final Logger logger = LogUtil.getLogger();
|
||||
private CoderClient client;
|
||||
|
||||
private SessionHandler sessionHandler;
|
||||
|
||||
|
|
@ -35,7 +34,6 @@ public class LoginDialog extends GuiWindow {
|
|||
|
||||
public LoginDialog(final CoderClient client) throws IOException {
|
||||
super(LoginDialog.class.getResource("LoginDialog.fxml"));
|
||||
this.client = client;
|
||||
|
||||
this.sessionHandler = SessionHandler.getInstance();
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ import com.coder.client.session.ProjectTypeRspMsgListener;
|
|||
|
||||
public class NewProjectDialog extends GuiWindow {
|
||||
public static final Logger logger = LogUtil.getLogger();
|
||||
private CoderClient client;
|
||||
|
||||
private SessionHandler sessionHandler;
|
||||
private ProjectHandler projectHandler;
|
||||
|
|
@ -51,7 +50,6 @@ public class NewProjectDialog extends GuiWindow {
|
|||
super(NewProjectDialog.class.getResource("NewProjectDialog.fxml"));
|
||||
projectTypeList = FXCollections.observableArrayList();
|
||||
projectTypeComboBox.setItems(projectTypeList);
|
||||
this.client = client;
|
||||
|
||||
this.sessionHandler = SessionHandler.getInstance();
|
||||
this.projectHandler = ProjectHandler.getInstance();
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ import com.coder.server.message.ProjectRspMsg;
|
|||
public class SelectProjectDialog extends GuiWindow {
|
||||
public static final Logger logger = LogUtil.getLogger();
|
||||
private ObservableList<ProjectListItem> projectList;
|
||||
private CoderClient client;
|
||||
|
||||
private SessionHandler sessionHandler;
|
||||
private ProjectHandler projectHandler;
|
||||
|
|
@ -55,10 +54,9 @@ public class SelectProjectDialog extends GuiWindow {
|
|||
|
||||
public SelectProjectDialog(final CoderClient client) throws IOException {
|
||||
super(SelectProjectDialog.class.getResource("SelectProjectDialog.fxml"));
|
||||
this.client = client;
|
||||
|
||||
this.sessionHandler = SessionHandler.getInstance();
|
||||
this.projectHandler = projectHandler.getInstance();
|
||||
this.projectHandler = ProjectHandler.getInstance();
|
||||
|
||||
sessionHandler.addSessionEventHandler(new SessionEventHandler() {
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue