Community
Participate
Working Groups
Build Identifier: Version: 3.7.1 Build id: M20110909-1335 The search function as currently implemented does not traverse EReferences and LinkItems. This means that some tree items (for instance, a Class' ownedAttributes) cannot be found. The comitted solution involves: *A change to the NavigatorSearchDialog pattern search algorithm, allowing traversal of problematic elements: this is done using an Adapter mechanism so additional components contributing to the Model Explorer can easily extend it. *A change to CustomCommonViewer and ModelExplorerView's reveal methods' matching algorithm, with a complete MatchingItem refactoring. This overhaul includes the creation of an IReferencable interface exposing a getElementBehind() method, which additional components can implement to declare their own match logic Reproducible: Always Steps to Reproduce: 1.Create a Papyrus UML model with a Class and a Property belonging to that Class. 2.Use the search dialog to find that property. 3.The property cannot be found.
Created attachment 211721 [details] Proposed patch for branch 0.8.X See comment above.
Comment on attachment 211721 [details] Proposed patch for branch 0.8.X I, Philippe Roland, have written 100% of the code contributed to fix this bug. I have the right to contribute this code and have filled the headers with the appropriate License. This contribution has been checked by and committed under the responsability of Tristan Faure
commited on the branch
backported to the trunk