Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324554 - Diagram generation is incomplete for model extensions
Summary: Diagram generation is incomplete for model extensions
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sca (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-06 05:00 EDT by Vincent Zurczak CLA
Modified: 2017-03-30 14:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Zurczak CLA 2010-09-06 05:00:37 EDT
Create a composite file by hand.
Add it an extended element, e.g. a JBI binding.
Then, right-click it and ask to generate a composite diagram.
A diagram is generated, but the JBI binding has a buggy image.

In fact, the visual ID for this item was not resolved.
The error is in the class "org.eclipse.stp.sca.diagram.extension.view.factories.ElementViewFactory", in the method "int getVisualId(View view)".

In fact, we ven get a NPE because of this.
It seems the extended elements are not recognized by EMF ElementTypeRegistry. A default IElementType is returned, and this element cannot be associated with anything in the binding map.

A fix could be to change the map keys, to work with class names, instead of EMF types.