Summary: | [Examples] In Hummingbird20 Connection SourcePort property editor shows invalid Port options | ||||||
---|---|---|---|---|---|---|---|
Product: | [Automotive] Sphinx | Reporter: | Jabier Martinez <jabimail> | ||||
Component: | Core | Assignee: | Stephan Eberle <stephaneberle9> | ||||
Status: | CLOSED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | idydieng, stephaneberle9 | ||||
Version: | 0.7.0 | Keywords: | example | ||||
Target Milestone: | 0.7.0 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Attachments: |
|
Fixed by applying proposed patch. Mass-closing Resolved tickets |
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.