Bug #1919

RCP: 0.7.8, add 'unkown widget type' error message in macro input parameters form dialog box management

Ajouté par Serge Heiden il y a presque 9 ans. Mis à jour il y a plus de 6 ans.

Statut:New Début:06/11/2016
Priorité:Normal Echéance:
Assigné à:- % réalisé:

0%

Catégorie:Macros Temps passé: -
Version cible:TXM 0.X.X

Description

Currently macro input parameters form dialog box management silently aborts in case of unknown widget type.

This prevents the user to correct his macro because he is not aware that the parameters declaration is incorrect: a problem can come from many different places in a macro, and generally a diagnostic error message helps to deal with errors in other parts of the code.

The input parameters form dialog box management code must display a warning message in the console to help the user diagnose his parameters declaration problem.

Solution

Add code to the ParametersDialog.open() method to display an error message in the console when a widget type is unknown:

** MyMacro macro: unknown widget type 'XXX' for parameter 'foo', aborting.

Historique

#1 Mis à jour par Sebastien Jacquot il y a plus de 7 ans

  • Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.0

#2 Mis à jour par Matthieu Decorde il y a plus de 6 ans

  • Version cible changé de TXM 0.8.0 à TXM 0.X.X

Formats disponibles : Atom PDF