the validation of model's name (ID) is not working well. There are two problems:
1) the GUI can lead users to be confused, e.g., the "teste22" project is currently selected in the Project Explorer View, but in the first page of the window, the "teste" project was selected. Then, if he types a name already used for a model it can be confusing. A suggestion is to REMOVE the first page (Project Page), using a single page, and then to use a dropdown (combobox) similar to the "Category" field,
OR keep with two pages, but showing in Model Page which project was selected.
2) There is a problem with Name (ID) validation (duplicated name): it shows an error when it should not do it (teste2 is the name of a model available in the user's local models library).
How to reproduce: 1) using the Model Builder, create a new model to your local library, 2) try to create a new model (File -> New Model) with the same Name (ID) used in the previous step. The restriction must be applied only to prevent creating a new file (model) with the same name of an existing one, inside the same project (folder). There is no reason to avoid using an equal name for two models if they are inside different projects (folders) or if the same name was used by a model of the library (DengueME Lib or user's lib).
3) Models of User's Library are not being presented. After copying the folder Models of DengueME Lib to the directory, the Model Page presented the existing models as expected. However, the models created by user with ModelBuilder were not presented.
@Guelmisp The model page has some problems: it is enabling the "Create" button when it should not be.
Case 1: how to reproduce: 1) Select a model, 2) Type an invalid name - the button will be disabled, 3) Click on some language (R or TerraME) in the box - the button remains disabled; 4) Type a valid name - the button will be enabled. However, none model is selected.
Case 2: how to reproduce: 1) Select a model, 2) Type an invalid name - the button will be disabled, 3) Click on some language (R or TerraME), 4) Click on some model - the button will be enabled.
This is the PR related to #16, it changes how the user can create a new model on DengueME interface.
Changes proposed in this pull request:
Closes #16