Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Papyrus/Mars Work Description/Improvments/Search UI

< Papyrus‎ | Mars Work Description
Revision as of 05:30, 23 February 2015 by Shuai.li88.gmail.com (Talk | contribs) (Major Changes and Improvments)

Quick Overview

The Papyrus search UI is a dialog integrated into the Eclipse search interfaces. Its role is to let the user search for elements and attributes in the UML models and diagrams created with Papyrus.

There are two kinds queries that the user can provide: text query or OCL query. For each kind of query, the user can use a simple search mode, or an advanced search mode. In the simple search mode, the user must search among all elements and attributes in the model. In the advanced search mode, the user can choose the types of elements and attributes to search for, as well as element stereotypes.

The improvement work done for Mars focuses mainly on the advanced search mode. Along with bug fixes, the new advanced search mode of Mars improves the UI for stereotypes displaying, and adds new options to search for stereotyped elements.

Major Changes and Improvments

The advanced search UI has been improved for stereotypes searching. The new UI is the following:

File:Advanced Search UI.jpg

The major zones of the new UI are the following:

  • Zone A: This is the text query and its options. The main difference in Mars is the addition of the explanatory text.
  • Zone B: This filtered checkbox tree viewer shows the UML elements that the user wants to search for. The major difference concerns the selection of elements. When an element is selected, all of its attributes are selected. When the last attribute of an element is deselected, the element is deselected. Selection bugs, when the UI refreshes for any reason, have been fixed.
  • Zone C: This is a new filtered checkbox tree viewer. It shows the stereotypes that are applied in the selected resources, i.e. the selected models for the search. Attributes of stereotypes also appear. The behavior of the tree viewer is the same as the behavior of the zone B tree viewer.
  • Zone D: These two new checkboxes add options to search for stereotyped elements. When "Enforce all and only selected stereotypes are applied" is checked, UML elements must and must only have the selected stereotypes applied to be eligible for search. When "Enforce at least one stereotype is applied" is checked, a UML element must at least have one selected stereotype applied, to be eligible for search. If none of the checkboxes are checked, then stereotyped elements are returned, but also any UML element selected by the user in zone B, even if they do not have a selected stereotype applied.
  • Zone E: Buttons to select/deselect all stereotypes in zone D have been added. Bugs on "Refresh lists" button have been fixed.

Minor Changes and Bugzilla References

The following bugs are fixed:

Bug 456874 - Error when searching in the models for a specific String

  • Problem: Index out of bound exception when searching for some strings.
  • Solution: Fixed the computation of offsets and length for matches found in a string.

Bug 459431 - Refresh types button removes attributes of elements after filter

  • Problem: Attributes of elements or stereotypes are hidden after the refresh button is clicked, in some instances.
  • Solution: Fixed UI refreshing backend.

Bug 459429 - Unnecessary UI refresh when selecting same search kind

  • Problem: The UI refreshes when the user selects the same search mode he/she is already in.
  • Solution: UI now remembers search mode.

Bug 459425 - In advanced search, selecting an element should select all of its attributes by default

  • Problem: The user could select an element, but its attributes aren't selected automatically.
  • Solution: Selecting an element now selects all of its attributes. Deselecting the last attribute of an element also deselects the element. Backend bugs were also fixed to reflect correctly the user selection.

Bug 460580 - Active diagram resource loading bug

  • Problem: When a diagram is opened, the model resource is not loaded correctly for search. The search then returns nothing, even when elements are found.
  • Solution: Fixed resource loading in described case.

Bug 459417 - Text above search textbox

  • Problem: Explanatory text above search UI query textbox was not shown.
  • Solution: Explanatory text is now shown and more explicit on effects of leaving the text query blank.

Ongoing and Future Work

Back to the top