Re: double click on ant targets in nb4.0 and 4.1beta
Jesse Glick <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.user-interface |
|---|---|
| Organization | Sun Microsystems / NetBeans |
| Message-ID | <[email protected]> |
Torgeir Veimo wrote: >>> This is very annoying for seasoned nb users. Is there a way to >>> change it back to how it used to be? >> >> Not currently. Note that you can run a target by right-clicking it, >> or by right-clicking the main node. > > It would be good to be able to define the default action among > several actions, In fact you can already do this for the context menu for the *main node* for several file types - if you customize the context menu (Options dialog) and put the desired action at the top. (Technically: DataNode.getPreferredAction() defaults to using the first element of getActions(false), so DataNode subclasses which override this method to hardcode a particular action should preferably be changed to not do so.) However this technique is not applicable to other nodes, such as Ant target nodes. It would not be a lot of work to make the target context menu configurable by users, but would require (1) introducing some sort of API for where this information is stored, (2) introducing a UI to configure it (and where would you expect to find such a thing??). > and make the default be bold in the context menu, so it's easy to > spot. This would indeed be nice in general, so please vote for http://www.netbeans.org/issues/show_bug.cgi?id=9679 -J. -- [email protected] x22801 netbeans.org ant.apache.org if I had known it was harmless I would have killed it myself