Difference: DpHipeTools (28 vs. 29)

Revision 292008-10-20 - JaimeSaiz

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

Adding Tools to HIPE

Line: 179 to 179
  parameter.setModifier(new MyModifer());
Changed:
<
<
Warning, important If your Modifier is registered as the default one for a type, it may be instantiated during the initialization. This means that the JComponents used for your Modifier may not have the same GUI theme than the application, because the GUI theme is set just after the initialization of the registry. In that case, you may consider to write your custom Signature Component, which would be instantiated after the theme is set.
>
>
Warning, important If a modifier is associated to a task parameter in the task constructor, like in the example above, it is instantiated during initialization, when the task is created. This means that the JComponents used for your Modifier may not have the same GUI theme than the application, because the GUI theme is set just after the initialization of the registry. In that case, you may consider to write a custom Signature Component instead, which would be instantiated after the theme is set.
 
Line: 219 to 219
  protected Map<TaskParameter, Modifier> makeModifierMap() {

SignatureApi signature = getSignature();

Changed:
<
<
Map<TaskParameter, Modifier> map = new LinkedHashMap<TaskParameter, Modifier>();
>
>
Map<TaskParameter, Modifier> m = new LinkedHashMap<TaskParameter, Modifier>();
 
Changed:
<
<
map.put(signature.getTaskParameter("file"), new JFilePathModifier(SAVE)); map.put(signature.getTaskParameter("number"), new JIntegerModifier());
>
>
m.put(signature.getTaskParameter("file"), new JFilePathModifier(SAVE)); m.put(signature.getTaskParameter("number"), new JIntegerModifier());
 
Changed:
<
<
return map;
>
>
return m;
  } }
 
This site is powered by the TWiki collaboration platform Powered by Perl