Summary: | Show diagrams in the aird file with the common navigator without showing the contents of semantic model files | ||
---|---|---|---|
Product: | [Modeling] Sirius | Reporter: | Koen Staal <koen.staal> |
Component: | Core | Assignee: | Project inbox <sirius.core-inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | laurent.redor |
Version: | unspecified | Keywords: | triaged |
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Whiteboard: |
Description
Koen Staal
2017-05-04 02:03:01 EDT
Thanks for your detailed enhancement submit. Nevertheless, we have currently not planned to work on it in the following releases. But you can provide your own filter by using something like: <extension point="org.eclipse.ui.navigator.navigatorContent"> <commonFilter activeByDefault="false" class="myPackage.MyViewerFilter" id="test.myFilter" name="My filter" visibleInUI="true"> </commonFilter> </extension> <extension point="org.eclipse.ui.navigator.viewer"> <viewerContentBinding viewerId="org.eclipse.sirius.ui.tools.views.model.explorer"> <includes> <contentExtension pattern="test.*"/> </includes> </viewerContentBinding> </extension> (In reply to Laurent Redor from comment #1) > Thanks for your detailed enhancement submit. > > Nevertheless, we have currently not planned to work on it in the following > releases. > > But you can provide your own filter by using something like: > > <extension > point="org.eclipse.ui.navigator.navigatorContent"> > <commonFilter > activeByDefault="false" > class="myPackage.MyViewerFilter" > id="test.myFilter" > name="My filter" > visibleInUI="true"> > </commonFilter> > </extension> > <extension > point="org.eclipse.ui.navigator.viewer"> > <viewerContentBinding > viewerId="org.eclipse.sirius.ui.tools.views.model.explorer"> > <includes> > <contentExtension pattern="test.*"/> > </includes> > </viewerContentBinding> > </extension> Thanks for your suggestion. However there are 2 problems with this solution. It hides the error/warning decorator on the file, we made a bug report of this a while back: https://bugs.eclipse.org/bugs/show_bug.cgi?id=454424 The file will still have the expandable indicator (little triangle) infront of the model file until eclipse actually tries to expand it. Only then the filter gets applied and the triangle dissapears (because there is nothing to show) |