Bug #847
RCP: x.x, macro Parameters dialog box fields of type 'File' fail with empty value
Statut: | Closed | Début: | 05/06/2014 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 100% |
|
Catégorie: | Macros | Temps passé: | - | |
Version cible: | TXM 0.7.6 |
Description
If the field is empty an exception is raised. This bevavior hinder us if we want non-mandatory File fields
Historique
#1 Mis à jour par Serge Heiden il y a plus de 11 ans
- Sujet changé de RCP: x.x,Parameters dialog File field failed with empty value à RCP: x.x, macro Parameters dialog box fields of type 'File' fail with empty value
#2 Mis à jour par Matthieu Decorde il y a plus de 11 ans
- % réalisé changé de 0 à 80
#3 Mis à jour par Matthieu Decorde il y a environ 11 ans
- Tracker changé de Task à Bug
#4 Mis à jour par Matthieu Decorde il y a environ 11 ans
- % réalisé changé de 80 à 90
Tested with macro
// STANDARD DECLARATIONS import org.kohsuke.args4j.* import groovy.transform.Field import org.txm.rcpapplication.swt.widget.parameters.* // BEGINNING OF PARAMETERS @Field @Option(name="file",usage="an example file", widget="File", required=false, def="C:/Temp/foo.txt") def file @Field @Option(name="folder",usage="an example folder", widget="Folder", required=false, def="C:/Temp") def folder // Open the parameters input dialog box if (!ParametersDialog.open(this)) return; // END OF PARAMETERS println "file $file" println "folder $folder"
#5 Mis à jour par Matthieu Decorde il y a environ 11 ans
- % réalisé changé de 90 à 100
#6 Mis à jour par Matthieu Decorde il y a environ 11 ans
- Statut changé de New à Closed
#7 Mis à jour par Matthieu Decorde il y a environ 10 ans
- Catégorie mis à Macros