Bug 561742

Summary: [AF] Editor (Diagram/Table/Model2Doc) model creation must have a larger common API
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: OthersAssignee: Project Inbox <mdt-papyrus-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: pauline.deville
Version: 4.7.0Keywords: api, consistency, plan
Target Milestone: 6.0.0   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Bug Depends on: 561371    
Bug Blocks:    

Description Vincent Lorenzo CLA 2020-04-03 11:19:27 EDT
Currently in Papyrus, each editor (Diagram, Table, DocumentStructureTemplate) use its own API to create the new editor and register it in the notation file (or in another place), and to open or not, the created editor. 

The purpose of this bug is to create a new clean, clear, useful and well defined API for the editor creation, with minor required override for each specific editor. 

here some existing commands (which implement AbstractHandler and I think it should not at this leavel)...: 
org.eclipse.papyrus.infra.gmfdiag.common.AbstractPapyrusGmfCreateDiagramCommandHandler
org.eclipse.papyrus.infra.nattable.common.internal.command.ITableCreationCommand
org.eclipse.papyrus.infra.nattable.common.handlers.PolicyDefinedTableHandler
org.eclipse.papyrus.model2doc.documentview.ui.menu.handler.CreateDocumentViewEditorHandler

More generally, the editor (Diagram/Table/Model2Doc) must share more API.