Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354945 - [model explorer] search and filter
Summary: [model explorer] search and filter
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Views (show other bugs)
Version: 0.8.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Camille Letavernier CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-17 08:34 EDT by Raphael Faudou CLA
Modified: 2017-09-08 09:43 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Faudou CLA 2011-08-17 08:34:06 EDT
Currently we have a limited "search" dialog box to find elements in the model. We need to have both a "search" functionality to be able to see and select all occurences of a given request, but we need also to be able to "filter" the model explorer to limit the elements visible (both functionalities exist in TOPCASED and are really appreciated by the community). 

My suggestion is to combine both functionalities (serach and filter) to provide the end user a simple but powerfull edit area to select things, and the ability to benefit from this search to filter the model explorer (a kind of facet applied dynamically on the basis of the search result).

In a first version I see somehting quite simple:
1/ edit area to provide the "search" characters with possible special characters (*,@, +...) and with a syntax to search for attributes with a given value (xx=YYY) and for specific types. This already exists in TOPCASED.

Display options: 
a) show all relevant occurences in the model explorer => requires tree expansion and might be slow for large models
b) show relevant occurences  in the model explorer with a limited depth (not all levels expanded) but with information mentioned about found elements when a package is not expanded
c) results displayed in an other dedicated view, from which it will be possible to navigate with hyperlinks. 

2/ Filter area with the following possibilities (that can be combined)
 2.1 : filter on search results (model explorer is limited to the branches that lead to elements found with the search) and filter icon is shown as active with special color.
 2.2 : filter only diagrams
 2.3 : apply one or several existing facets

Generics requirements:
* this wizard should work for all languages and not only UML and profiles => should work at EMF level.
* It should be possible to store the search and filter queries with a name to provide "shortcuts" for end user.
Comment 1 Patrick Tessier CLA 2013-04-30 05:08:37 EDT
 could you verify with the task 399856: [Search] Papyrus shall provide model-aware search capability
https://bugs.eclipse.org/bugs/show_bug.cgi?id=399856 in order to fusion this tasks
Comment 2 Camille Letavernier CLA 2013-04-30 05:20:22 EDT
Bug 399856 only provides support for search; not for filters.

Most dialogs in Papyrus now provide a basic filter (With * and ? tokens) which could easily be reused in the ModelExplorer
Comment 3 Christian Damus CLA 2015-07-23 05:20:20 EDT
+1

A quick filter field in the Model Explorer that can match element names and types (accounting for metaclass inheritance) is essential for models of non-trivial size.