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 - Adding a shortcut for an Ant target to a custom toolbar doesn't work
Summary: Adding a shortcut for an Ant target to a custom toolbar doesn't work
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: UI (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@ide
Depends on:
Reported: 2016-09-26 11:50 UTC by tkellerer
Modified: 2016-09-26 11:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


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