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 268203

Summary: Adding a shortcut for an Ant target to a custom toolbar doesn't work
Product: ide Reporter: tkellerer <tkellerer>
Component: UIAssignee: issues@ide <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description tkellerer 2016-09-26 11:50:32 UTC
When adding a shortcut for an Ant target (from an external build.xml) to a custom toolbar, the item is not show in the toolbar.

To reproduce:

* Right click on the toolbar, choose "Customize"
* Click on "Add toolbar"
* Add an item to the new toolbar, otherwise the new toolbar will not be saved. Then close the "Customize Toolbar" window.
* Right click on the target in the custom Ant build script (from within the "Favorites" window)
* Choose "Create Shortcut"
* Select "Add a Toolbar Button"
* Select the previously created toolbar
* Enter a text for the button (e.g. "Custom Thing")
* Click "Finish"

I now expect the toolbar to contain a button that is labelled with "Custom Thing", but the toolbar is not changed.

The definition is saved in a file inside confg/Actions/Build/ and the Toolbars sub-directory in the Userdir does contain a directory that contains a .shadow file to the created action, but the toolbar doesn't show that action.