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 209158

Summary: User defined toolbar button
Product: ide Reporter: mariusz_m
Component: UIAssignee: Petr Somol <psomol>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jglick
Priority: P2    
Version: 7.1   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 211167    
Attachments: mock-up: user action buttons added to main toolbar
user action icon 1 large
user action icon 1 small
all nine user action icons, both large and small, zipped

Description mariusz_m 2012-03-05 08:49:41 UTC
What is missing in Netbeans IDE is user defined button/menu, with defined command line to pointed executive.
I work with embedded devices, and I have to run many applications/batch files to start debugging session, to flash target device, send reset command and so forth.
It will be very helpfull to define some buttons that could be placed on IDE toolbar, to run these scripts or programs.
Configuration should be project specific, not global. Button can have caption or an image with tooltip.
Code::Blocks have something similar - user can define Tools menu with caption, path to executive and arguments.
Comment 1 Petr Somol 2012-04-13 13:37:17 UTC
Created attachment 118245 [details]
mock-up: user action buttons added to main toolbar

I fully endorse this enhancement. I used to use it in UltraEdit for various purposes. Due to my own experience with the usefulness of such a functionality I change the priority of this enhancement to P2.

To start, I created a set of nine buttons that fit the NB conventions. I am attaching a mock-up screenshot with all buttons added to main toolbar. Note that this would not be the typical case - I expect users would usually need only one, two or three buttons.

The icons depict a paper airplane. I found this to be reasonable for the purpose of representing a series of user actions. The image is reasonably recognizable and symbolizes one's own creativity. Any more explicit tool image (screwdriver, hammer, pliers) would unwantedly suggest an action that is internal to IDE. The paper airplane shape allowed to add numbers to each icon, as well as differentiating by decent color differences. Thus, although all icons are recognizably the same in meaning, they are easily distinguishable among each other.

I am going to attach each icon file separately...
Comment 2 Petr Somol 2012-04-13 13:38:35 UTC
Created attachment 118246 [details]
user action icon 1 large
Comment 3 Petr Somol 2012-04-13 13:39:16 UTC
Created attachment 118247 [details]
user action icon 1 small
Comment 4 Petr Somol 2012-04-13 13:41:33 UTC
Created attachment 118248 [details]
all nine user action icons, both large and small, zipped
Comment 5 Jesse Glick 2012-04-13 17:04:37 UTC
Probably better to play with different approaches in unofficial plugins.

Note that you can binding toolbar buttons (and menu items and shortcuts) to Ant targets - check the target's context menu. Bug #153420 proposes adding a similar facility for Maven goals, though the cases are not exactly analogous.
Comment 6 Petr Somol 2012-05-29 14:31:40 UTC
Marking this issue as duplicate of 35582, because it addresses the same problem. Comments from both issues should nevertheless be taken into account.

*** This bug has been marked as a duplicate of bug 35582 ***