Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 264313

Summary: merge template do have the functionnality "Filters views..."
Product: [Modeling] Papyrus Reporter: Patrick Tessier <Patrick.Tessier>
Component: CoreAssignee: Patrick Tessier <Patrick.Tessier>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: fjcano, gmerin, jmunoz
Version: 0.7.0Keywords: plan
Target Milestone: M1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 264169    

Description Patrick Tessier CLA 2009-02-10 04:07:08 EST
Each diagram of papyrus has the possibility to do the action  "Filters views...". But nothign appear in class diagram for example.
In order to fill the treeview of the dialog box. The generated code of the DiagramEditpart has to be adapted to ViewInfo.class.
And the Visual Registry has to contains a set of methods to contruct an instance of ViewInfo.class.
Comment 1 Patrick Tessier CLA 2009-02-12 04:42:18 EST
Template have been merged for this fucntionnality.

But in diagram editpart 
I replace line :
es.cv.gvcase.mdt.common.util.DiagramEditPartsUtil.updateDiagram(this);
by 
org.eclipse.papyrus.diagram.common.util.MDTUtil.filterDiagramViews(this.getDiagramView());

In your code your are based on the canonical edit policy of GMF. But in Papyrus, this edit policy is diconnected in order to allow a light synchronisation.