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 - Can't remove Java (Ant) Option from OptionsDialog
Summary: Can't remove Java (Ant) Option from OptionsDialog
Status: RESOLVED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-21 18:02 UTC by ngx472
Modified: 2014-04-25 17:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Missing Java Option from recreated XML layer (32.90 KB, image/jpeg)
2014-04-25 17:50 UTC, ngx472
Details

Note You need to log in before you can comment on or make changes to this bug.
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