Feature #1362
RCP: X.X, Corpus view double click on extensions' functions
Status: | New | Start date: | 05/27/2015 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% |
|
Category: | UI / Editor | Spent time: | - | |
Target version: | TXM 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.
History
#1 Updated by Matthieu Decorde over 7 years ago
- Description updated (diff)
#2 Updated by Matthieu Decorde over 7 years ago
- Target version changed from TXM 0.7.7 to TXM 0.7.8
#3 Updated by Matthieu Decorde over 7 years ago
- Target version changed from TXM 0.7.8 to TXM 0.8.0a (split/restructuration)
#4 Updated by Sebastien Jacquot almost 6 years ago
- Description updated (diff)
#5 Updated by Sebastien Jacquot almost 6 years ago
- Description updated (diff)
#6 Updated by Sebastien Jacquot over 4 years ago
- Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0
#7 Updated by Matthieu Decorde almost 4 years ago
- Target version changed from TXM 0.8.0 to TXM X.X