Difference: DpHipeTools (47 vs. 48)

Revision 482010-02-11 - JavierDiaz

Line: 1 to 1
 
META TOPICPARENT name="DpHipe"

Adding Tools to HIPE

Line: 83 to 83
  Name of the Task (getName()) : reduce Name of the variable in Jython : reduce
Added:
>
>
Warning, important For naming tasks we follow the Java conventions, we use camel-case , not underscores : "reduceLight" is valid, "reduce_light" is not. Info log messages are produced for invalid task names.
 

Prime input validation

Line: 157 to 159
 
  • While you can always write SomeTask(param = null) in Console, using a task dialog you will get SomeTask(): for GUIs "null is not allowed". The task machinery will take nulls as if the parameter has been ignored by the user.
  • Modifiers have no notion of the optionality of parameters: if they have a valid value, they will return it. The task machinery will not generate a parameter assignment if the value equals the default.
  • Specialized modifiers:
Changed:
<
<
    • Will only store variables compatible with the type.
    • They do not to accept variables set to None.
>
>
    • Will mark as errorenous variables incompatible with the type (dynamically), but will accept any variable.
 

Implement a Modifier
Line: 274 to 275
  See also the Extension Registry documentation for more details.
Added:
>
>
Warning, important NOTE: Conventions for labels for input parameters: (see DM). The static function
 public static JLabel getDecoratedLabel(TaskParameter tp, boolean isPrimeInput, String altName) 
provides a decorated label (including tooltip) that follows the standard style.

If some other function needs to be made public so that tasks can follow the default style, they will be added above.

 
 
This site is powered by the TWiki collaboration platform Powered by Perl