Re: Shortcuts for single-file and targets

Jesse Glick <[email protected]>
Newsgroups gmane.comp.java.netbeans.user-interface
Organization Sun Microsystems / NetBeans
Message-ID <[email protected]>
LAYAT Jérôme wrote:
> [...] I would just want to create a custom action [...] With this
> feature it would be possible to launch any single-file ant target
> using a shortcut without using the "existing action" workaround. It
> would be a simpler way to extend netbeans than having to create a
> module for each simple task like this one I've talked about.
> 
> Maybe this is already possible...

Maybe you missed the really simple way: expand your build script in the 
Explorer, right-click any target, and choose Create Shortcut from the 
context menu. You can bind it to any keystroke, or add a menu item, etc.

Note that this facility is in a sense independent of the project system: 
the Ant script does not need to be part of a project, or if it is the 
project does not need to be open. It would be nice to be able to make a 
global menu item / shortcut / etc. that would act on e.g. the selected 
project, though what the UI to configure and use this should be is not 
obvious (to me anyway). Related: #21249, #58588, #50111.

-J.

-- 
[email protected]   x22801   netbeans.org   ant.apache.org
Well... everybody has to eat shaving cream, once in a while.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.