Re: Re: Shortcuts for single-file and targets

LAYAT Jérôme <[email protected]>
Newsgroups gmane.comp.java.netbeans.user-interface
Message-ID <[email protected]>
I've just tried the method you've described (expand your build script in the
Explorer, right-click any target...) but as I expected this does not set the
"magical" property ${files} with the current selected file in the IDE (
http://www.netbeans.org/kb/articles/freeform-config-40.html#comp_sing ). I
keep on my custom ide-action...

--
LAYAT Jérôme
www.hortis.ch - "La rencontre de l'Agilité et de l'Open-source" -
mobile +41 78 637 92 34
Admin/Contributeur www.xp-swiss.org


Quoting Jesse Glick <[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.
>
>


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
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.