Bug 382332

Summary: [Examples] In Hummingbird20 Connection SourcePort property editor shows invalid Port options
Product: [Automotive] Sphinx Reporter: Jabier Martinez <jabimail>
Component: CoreAssignee: Stephan Eberle <stephaneberle9>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: idydieng, stephaneberle9
Version: 0.7.0Keywords: example
Target Milestone: 0.7.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch for Connection SourcePort property descriptor idydieng: iplog+

Description Jabier Martinez CLA 2012-06-12 05:24:27 EDT
Created attachment 217197 [details]
Patch for Connection SourcePort property descriptor

In Hummingbird20 instancemodel editors, it will be desired that when you are selecting a Connection SourcePort, the combobox only returns valid ports that fit target component provided interfaces.

As solution, I overrided "addSourcePortPropertyDescriptor" method in "ExtendedConnectionItemProvider" and added a Sphinx's "ExtendedItemPropertyDescriptor". Using this class I overrided the "getChoices" method and implement the logic there to get the valid ports, or no option if no source or target component are defined, and also no option if their related component types are not defined.
Comment 1 Stephan Eberle CLA 2012-06-23 02:26:03 EDT
Fixed by applying proposed patch.
Comment 2 Balazs Grill CLA 2021-07-14 02:14:08 EDT
Mass-closing Resolved tickets