Skip to content

[1589] Add filter to hide expose elements in SysON Explorer View#1600

Merged
AxelRICHARD merged 1 commit into
mainfrom
fro/enh/hide-expose-element
Oct 15, 2025
Merged

[1589] Add filter to hide expose elements in SysON Explorer View#1600
AxelRICHARD merged 1 commit into
mainfrom
fro/enh/hide-expose-element

Conversation

@frouene

@frouene frouene commented Oct 10, 2025

Copy link
Copy Markdown
Contributor

Bug: #1589

PLEASE READ ALL ITEMS AND CHECK ONLY RELEVANT CHECKBOXES BELOW

Project management

  • Has the pull request been added to the relevant milestone?
  • Have the priority: and pr: labels been added to the pull request? (In case of doubt, start with the labels priority: low and pr: to review later)
  • Have the relevant issues been added to the pull request?
  • Have the relevant labels been added to the issues? (area:, type:)
  • Have the relevant issues been added to the same project milestone as the pull request?

Changelog and release notes

  • Has the CHANGELOG.adoc + doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc been updated to reference the relevant issues?
  • Have the relevant API breaks been described in the CHANGELOG.adoc + doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?
  • In case of a change with a visual impact, are there any screenshots in the doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?
  • In case of a key change, has the change been added to Key highlights section in doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?
  • Are the new / upgraded dependencies mentioned in the relevant section of the CHANGELOG.adoc + doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?

Documentation

  • Have you included an update of the documentation in your pull request? Please ask yourself if an update (installation manual, user manual, developer manual...) is needed and add one accordingly.

Tests

  • Is the code properly tested? Any pull request (fix, enhancement or new feature) should come with a test (or several). It could be unit tests, integration tests or cypress tests depending on the context. Only doc and releng pull request do not need for tests.

filters.add(new TreeFilter(HIDE_SYSML_STANDARD_LIBRARIES_TREE_FILTER_ID, "Hide SysML Standard Libraries", false));
filters.add(new TreeFilter(HIDE_USER_LIBRARIES_TREE_FILTER_ID, "Hide User Libraries", false));
filters.add(new TreeFilter(HIDE_ROOT_NAMESPACES_ID, "Hide Root Namespaces", true));
filters.add(new TreeFilter(HIDE_EXPOSE_ELEMENTS_TREE_ITEM_FILTER_ID, "Hide Expose Elements", true));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I enabled it by default.

@AxelRICHARD AxelRICHARD left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems you forgot to update SysONExplorerTreePathProvider and to create an IExplorerTreeItemAlteredContentProvider for the new filter


image::gv-inherited-port.png[Inherited port, width=65%,height=65%]

- Add a new filter in the explorer to hide expose elements in `ViewUsage`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also update the documentation please?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the list of available filters and updated the image.

@frouene frouene force-pushed the fro/enh/hide-expose-element branch 2 times, most recently from 024de8c to 5300b89 Compare October 13, 2025 09:54
@frouene

frouene commented Oct 13, 2025

Copy link
Copy Markdown
Contributor Author

It seems you forgot to update SysONExplorerTreePathProvider and to create an IExplorerTreeItemAlteredContentProvider for the new filter

Done

Bug: #1589
Signed-off-by: Florian ROUËNÉ <florian.rouene@obeosoft.com>
@AxelRICHARD AxelRICHARD force-pushed the fro/enh/hide-expose-element branch from 5300b89 to ed96897 Compare October 13, 2025 11:35
@AxelRICHARD AxelRICHARD merged commit 2c1e8f2 into main Oct 15, 2025
4 checks passed
@AxelRICHARD AxelRICHARD deleted the fro/enh/hide-expose-element branch October 15, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add new Explorer view filter allowing to hide Expose elements

2 participants