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

Bug 348866

Summary: [SysML Block Definition Diagram] Part, Ref creation incorrectly allowed on Block header after inherited element creation
Product: [Modeling] Papyrus Reporter: Yann Tanguy <yann.tanguy>
Component: CoreAssignee: Yann Tanguy <yann.tanguy>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 0.8.0   
Target Milestone: SR1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 346739    
Bug Blocks:    

Description Yann Tanguy CLA 2011-06-09 07:09:54 EDT
The creation of inherited element (ex: Package, InstanceSpecification...) triggers the related ViewProvider loading.
Once loaded the class provides(ViewForKind) methods always returns true (only the diagram type is checked) even in case
the provider is not able to create a view.

The ViewProvider implementation has to be fixed, but the CreateEditPolicy should also make sure a non-null view can be created before returning the view creation command.
Comment 1 Yann Tanguy CLA 2011-07-07 16:57:17 EDT
In r5004:
- EditPolicy fixes (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=346739)
- Palette factory now directly rely on IElementTypes from service edit (except for CommentAnnotated and ConstraintConstrained links)
- plugin.xml provider loading condition modified accordingly to previous change
- BDD view provider implementation corrected
Comment 2 Yann Tanguy CLA 2011-07-27 04:28:12 EDT
Merge in trunk : r5130.