Bug fix: ProjectRspMsg.config is optional and can be null while loading a project
This commit is contained in:
parent
b5e56ca2bf
commit
edf5d445e5
1 changed files with 16 additions and 10 deletions
|
|
@ -78,18 +78,24 @@ public class EditorWindow extends GuiWindow {
|
|||
|
||||
//handle config
|
||||
propertySheet.getItems().clear();
|
||||
Enumeration<String> propertyNames = (Enumeration<String>) msg.config.propertyNames();
|
||||
while(propertyNames.hasMoreElements()){ //populate propertySheet with all config elements
|
||||
String propertyName = propertyNames.nextElement();
|
||||
String propertyValue = msg.config.getProperty(propertyName);
|
||||
ComboBoxProperty comboProperty = new ComboBoxProperty(propertyName, propertyValue, null);
|
||||
propertySheet.getItems().add(comboProperty);
|
||||
if(msg.config != null){
|
||||
logger.fine("the project has a configuration - populating property sheet");
|
||||
Enumeration<String> propertyNames = (Enumeration<String>) msg.config.propertyNames();
|
||||
while(propertyNames.hasMoreElements()){ //populate propertySheet with all config elements
|
||||
String propertyName = propertyNames.nextElement();
|
||||
String propertyValue = msg.config.getProperty(propertyName);
|
||||
ComboBoxProperty comboProperty = new ComboBoxProperty(propertyName, propertyValue, null);
|
||||
propertySheet.getItems().add(comboProperty);
|
||||
}
|
||||
|
||||
//request alternative values for config of this project type
|
||||
projectType = msg.type;
|
||||
sendProjectTypeReqMsg(projectType);
|
||||
|
||||
}else{
|
||||
logger.fine("the project has no configuration");
|
||||
}
|
||||
|
||||
//request alternative values for config of this project type
|
||||
projectType = msg.type;
|
||||
sendProjectTypeReqMsg(projectType);
|
||||
|
||||
//handle file list
|
||||
List<String> fileList = msg.fileList;
|
||||
fileTreeView.getRoot().getChildren().clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue