Feature #1362
RCP: X.X, Corpus view double click on extensions' functions
Statut: | New | Début: | 27/05/2015 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 0% |
|
Catégorie: | UI / Editor | Temps passé: | - | |
Version cible: | TXM 0.X.X |
Description
The corpora view should be able to manage commands added by extension.
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
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.
Historique
#1 Mis à jour par Matthieu Decorde il y a plus de 10 ans
- Description mis à jour (diff)
#2 Mis à jour par Matthieu Decorde il y a environ 10 ans
- Version cible changé de TXM 0.7.7 à TXM 0.7.8
#3 Mis à jour par Matthieu Decorde il y a environ 10 ans
- Version cible changé de TXM 0.7.8 à TXM 0.8.0a (split/restructuration)
#4 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Description mis à jour (diff)
#5 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Description mis à jour (diff)
#6 Mis à jour par Sebastien Jacquot il y a plus de 7 ans
- Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.0
#7 Mis à jour par Matthieu Decorde il y a plus de 6 ans
- Version cible changé de TXM 0.8.0 à TXM 0.X.X