Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 290752

Summary: Hide Xtext Languages preference page without children
Product: [Modeling] TMF Reporter: Dénes Harmath <thsoft>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipse, Heiko.Behrens, sven.efftinge, tom.seidel
Version: 0.7.2Keywords: helpwanted
Target Milestone: M5Flags: sven.efftinge: helios+
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Dénes Harmath CLA 2009-09-28 17:26:50 EDT
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; hu; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Build Identifier: I20090611-1540

By default, an Xtext project plugin puts its DSL-specific preference pages under the preference page named Xtext Languages. I can override this by editing the UI plugin's plugin.xml, but the empty Xtext Languages preference page remains, which is annoying. I want to hide it, but only if it has no child preference pages contributed by other Xtext plugins. It would be nice to make this possible.

Reproducible: Always
Comment 1 Heiko Behrens CLA 2009-11-05 08:16:41 EST
During the last iteration Sven had a look into this and wasn't able to find a non-programmatic solution. Since this is not what we wanted to achieve, we are running out of ideas at the moment.

I will reschedule this bug to no milestone and mark the bug as "help wanted".
Comment 2 Tom Seidel CLA 2009-11-05 08:56:23 EST
A possible solution could be writing a XSL-Transformer Hook, checking if there are preference pages under the "XText Languages". If not this contribution can be supressed within this Hook.
Comment 3 Sven Efftinge CLA 2010-01-21 06:07:06 EST
As the examples are now no longer installed, the preference page isn't polluted anymore. I'll remove the common "Xtext Languages" preference page all together, so that a language get's its own top level entry.
Comment 4 Dénes Harmath CLA 2010-01-21 06:13:43 EST
That's a great way to go! Thanks!
Comment 5 Sven Efftinge CLA 2010-01-22 04:58:06 EST
fixed
Comment 6 Karsten Thoms CLA 2017-09-19 16:00:14 EDT
Closing bug which were set to RESOLVED before Eclipse Neon.0.