Bug #1919

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

Added by Serge Heiden almost 4 years ago. Updated over 1 year ago.

Status:New Start date:11/06/2016
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Macros Spent time: -
Target version:TXM 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.

History

#1 Updated by Sebastien Jacquot about 2 years ago

  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0

#2 Updated by Matthieu Decorde over 1 year ago

  • Target version changed from TXM 0.8.0 to TXM X.X

Also available in: Atom PDF