Feature #1362
Mis à jour par Sebastien Jacquot il y a plus de 8 ans
The corpora view should be able to manage commands added by extension.
h3. Solution 1
The extensions commands must :
* extend IAdaptable (to show a label and an icon)
* implement the "Function" interface and the
** override the openEditor() function to be openable with a double-click in the corpora View
The CorporaView must manage the "Function" objets and call their "openEditor" function
h3. Solution 2
Since the commands should not be linked to the UI a better approach is to use an AdapterFactory rather than implements IAdaptable. Then each command plug-in must add a double click selection listener to the CorporaView tree viewer calling the AbstractHandler defined for the command. viewer.
h3. Solution 1
The extensions commands must :
* extend IAdaptable (to show a label and an icon)
* implement the "Function" interface and the
** override the openEditor() function to be openable with a double-click in the corpora View
The CorporaView must manage the "Function" objets and call their "openEditor" function
h3. Solution 2
Since the commands should not be linked to the UI a better approach is to use an AdapterFactory rather than implements IAdaptable. Then each command plug-in must add a double click selection listener to the CorporaView tree viewer calling the AbstractHandler defined for the command. viewer.