Difference: DpHipeTools (13 vs. 14)

Revision 142008-02-20 - NicolaDeCandussio

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

Adding Tools to HIPE

Line: 20 to 20
 
Added:
>
>
<--
   Some short-cuts  
-->
 

Task Registry

Up to now you have made you task globally available to the system by specifying an instance of that task within the __init__.py file of your sub-system, e.g.:
Line: 121 to 126
  The Modifier interface consists of two explicit contracts
  • Support the drag and drop features (the set/getVariableSelection)
  • Support the inspection for Object (the set/getObject)
Changed:
<
<
and two implicit contracts inherited by the ExtensionRegistry
>
>
and two implicit contracts inherited by the %EXTENSION_REGISTRY%
 
  • Be JComponent
  • Have an empty constructor
Line: 171 to 176
 
  • Assign the Signature to display ( the setSignature)
  • Return a map of parameters and assigned values ( the getParameters note return value ca be simplified to Map<TaskParameter, VariableSelection> )
  • Clear and check user inputs (used by the default buttons)
Changed:
<
<
and the two implicit contracts inherited by the ExtensionRegistry
>
>
and the two implicit contracts inherited by the Extension Registry
 
  • Be JComponent
  • Have an empty constructor
Line: 180 to 185
 

Changed:
<
<
The registration of the Task Signature Component is done again in the __init__.py via theExtensionRegistry with the usual syntax (please note the name of the factory: factory.editor.tool.task.signature).
>
>
The registration of the Task Signature Component is done again in the __init__.py via the Extension Registry with the usual syntax (please note the name of the factory: factory.editor.tool.task.signature).
 
REGISTRY.register(COMPONENT,Extension(
        "Rotate Signature",

Line: 188 to 193
  "factory.editor.tool.task.signature", "herschel.ia.image.Rotate"))
Deleted:
<
<
, where:
  • id is a unique identifier
  • implSignatureComponent - implementation of SignatureComponent interface
  • implTask - implementation of your task for which this input dialog applies
 
Changed:
<
<
See also the Extension Registry documentation for more details.
>
>
See also the Extension Registry documentation for more details.
 
Line: 211 to 213
  The TaskPanel interface consists of three explicit contracts
  • Support the setVariableSelection for initial assignment from the Tool Window
  • Assign the Task to display ( the setTask)
Changed:
<
<
  • Set the SiteEvent handler for notifying request of execution (the setSiteEventHandler)
and the two implicit contracts inherited by the ExtensionRegistry
>
>
  • Notify request of executions to the framework by
    • Allow for setting the Site Event handler for notifying request of execution (the setSiteEventHandler method )
    • Notify the execution requests calling the trigger method of SiteEventHandler passing ExecutionRequestEvent (a viable implementation called TaskExecutionEvent is available.
and the two implicit contracts inherited by the Extension Registry
 
  • Be JComponent
  • Have an empty constructor
Line: 221 to 225
 

Changed:
<
<
The registration of the Task Panel Component is done again in the __init__.py via theExtensionRegistry with the usual syntax (please note the name of the factory: factory.editor.tool.task.signature).
>
>
The registration of the Task Panel Component is done again in the __init__.py via the Extension Registry with the usual syntax (please note the name of the factory: factory.editor.tool.task.signature).
 
REGISTRY.register(COMPONENT,Extension(

Changed:
<
<
"Default Task Panel", "herschel.ia.task.gui.dialog.JTaskPanel",
>
>
"Rotate Task Panel", "herschel.ia.task.example.RotatePanel",
  "factory.editor.tool.task",
Changed:
<
<
"herschel.ia.task.Task"));
>
>
"herschel.ia.image.Rotate"));
 
Deleted:
<
<
, where:
  • id is a unique identifier
  • implSignatureComponent - implementation of SignatureComponent interface
  • implTask - implementation of your task for which this input dialog applies
 
Changed:
<
<
See also the Extension Registry documentation for more details.
>
>
See also the Extension Registry documentation for more details.
 
 
This site is powered by the TWiki collaboration platform Powered by Perl