Task #1669
RCP: SWT, add a function to programmatically split an editor area
Statut: | Closed | Début: | 11/02/2016 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 100% |
|
Catégorie: | UI / Editor | Temps passé: | - | |
Version cible: | TXM 0.7.8 |
Description
Add a function to programmatically split an editor area, dedicated for example to:
- open an edition below a concordance editor on double clicking on a table row
- open a concordance below a progression on double clicking on a chart point
- etc.
It's not possible to do that in Eclipse 3.x without simulate a fake drag and drop event.
It's possible to do that in 4.x using MPart but not EditorPart.
Solution 1¶
Simulate a fake drag and drop event and give it to org.eclipse.ui.internal.SplitHandler.
Solution 2¶
Use MPart, MPartStack, etc.
It's possible to get a MPart 4.x from an EditorPart 3.x using compatibility layer like this:
MPart part = (MPart) editor.getSite().getService(MPart.class);
Demandes liées
Historique
#1 Mis à jour par Sebastien Jacquot il y a plus de 9 ans
- Statut changé de New à Resolved
- % réalisé changé de 50 à 80
Solution 2 has been implemented.
It is used by the functionalities that synchronize Progression chart and Concordance and editor.
See: /org.txm.rcp/src/main/java/org/txm/rcpapplication/utils/SWTEditorsUtils.java
#2 Mis à jour par Sebastien Jacquot il y a plus de 6 ans
New location: /org.txm.rcp/src/main/java/org/txm/rcp/utils/SWTEditorsUtils.java
#3 Mis à jour par Sebastien Jacquot il y a plus de 5 ans
- % réalisé changé de 80 à 100
#4 Mis à jour par Matthieu Decorde il y a plus de 4 ans
- Statut changé de Resolved à Closed