Adding a project descrition field to the NewProjectDialog
This commit is contained in:
parent
4bcd9aa2a3
commit
016b4b07f5
4 changed files with 17 additions and 11 deletions
|
|
@ -346,9 +346,9 @@ public class CoderClient extends Application{
|
|||
sendProjectTypeReqMsg();
|
||||
}
|
||||
@Override
|
||||
public void create(String newProjectName, String projectType) {
|
||||
public void create(String newProjectName, String projectType, String projectDescription) {
|
||||
projectSelectionWindow = newProjectDialog;
|
||||
sendProjectCreateReqMsg(newProjectName, projectType);
|
||||
sendProjectCreateReqMsg(newProjectName, projectType, projectDescription);
|
||||
selectProjectDialog.setProject(newProjectName);
|
||||
editorWindow.showOnStage(mainStage);
|
||||
}
|
||||
|
|
@ -362,11 +362,12 @@ public class CoderClient extends Application{
|
|||
closeCurrentSession();
|
||||
}
|
||||
}
|
||||
private void sendProjectCreateReqMsg(String projectName, String projectType){
|
||||
private void sendProjectCreateReqMsg(String projectName, String projectType, String projectDescription){
|
||||
CoderMessage msg = new CoderMessage();
|
||||
msg.ProjectCreateReq = new ProjectCreateReqMsg();
|
||||
msg.ProjectCreateReq.name = projectName;
|
||||
msg.ProjectCreateReq.type = projectType;
|
||||
msg.ProjectCreateReq.description = projectDescription;
|
||||
try {
|
||||
session.send(msg);
|
||||
} catch (IOException e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue