This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243969

Summary: Can't remove Java (Ant) Option from OptionsDialog
Product: platform Reporter: ngx472 <ngx472>
Component: Options&SettingsAssignee: Theofanis Oikonomou <theofanis>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Missing Java Option from recreated XML layer

Description ngx472 2014-04-21 18:02:48 UTC
I have an SQL Editor Platform Project
I would like to remove the Java Option from the OptionsDialog layer entry
I usually do that by using the view "xml layer in context" and by deleting the unwanted entries
However, the Java (which just has an Ant) subfolder does not appear
It may be related to https://netbeans.org/bugzilla/show_bug.cgi?id=218710
Comment 1 Theofanis Oikonomou 2014-04-25 13:28:44 UTC
Doesn't adding the following in your layer.xml file do what you want?

<filesystem>
  ...
  <folder name="OptionsDialog">
    <file name="Java.instance_hidden"/> => to hide Java category all-together

    <folder name="Java"> 
      <file name="Ant.instance_hidden"/>  => to hide Java/Ant sub-category
    </folder>

  </folder>
  ...
</filesystem>
Comment 2 ngx472 2014-04-25 17:49:03 UTC
Thanks This did exactly the work
I was fooled by another bug which is that the <Layer in Context> view is broken as it did not show the Java folder. (see attached pic)
I generally delete entries from this view.
Comment 3 ngx472 2014-04-25 17:50:49 UTC
Created attachment 146945 [details]
Missing Java Option from recreated XML layer