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

Bug 293325

Summary: [Palette] Update code generation for the editor
Product: [Modeling] Papyrus Reporter: Remi Schnekenburger <rschnekenburger>
Component: CoreAssignee: Remi Schnekenburger <rschnekenburger>
Status: RESOLVED FIXED QA Contact: Project Inbox <mdt-papyrus-inbox>
Severity: enhancement    
Priority: P3    
Version: 0.7.0   
Target Milestone: M3   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 291778    

Description Remi Schnekenburger CLA 2009-10-26 11:48:47 EDT
Code generation for GMF editors for Papyrus must be updated to listen for preferences. Moving generic code from Papyrus specific editor to its super class (GMF generated editor)
Comment 1 Remi Schnekenburger CLA 2009-10-26 14:22:34 EDT
commited with rev. 654
1. code generator updated
2. class diagram and use case diagrams generated to check validity.

To regenerate diagram:
1. in the gmfgen, use the action "add icon" on the Palette definition (child element of the DiagramEditPart node)
2. (optional) correct the ids for the tool and group elements. See the gmfgen of class diag or use case diag
2. remove existing palette extension in plugin.xml 
3. generate with the papyrus generator.

If red square instead of icon => problem with the small or large icon field for the tool in the palette definition. It happens for example for constraint links, as no UML element is directly linked to this element.