Bug 382332 - [Examples] In Hummingbird20 Connection SourcePort property editor shows invalid Port options
Summary: [Examples] In Hummingbird20 Connection SourcePort property editor shows inval...
Status: CLOSED FIXED
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.7.0   Edit
Assignee: Stephan Eberle CLA
QA Contact:
URL:
Whiteboard:
Keywords: example
Depends on:
Blocks:
 
Reported: 2012-06-12 05:24 EDT by Jabier Martinez CLA
Modified: 2021-07-14 02:14 EDT (History)
2 users (show)

See Also:


Attachments
Patch for Connection SourcePort property descriptor (2.98 KB, application/octet-stream)
2012-06-12 05:24 EDT, Jabier Martinez CLA
idydieng: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
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