Save Actions. Yeah, I can see that that would be useful. I know the
hard part has already been done (there's a new action for removing
trailing whitespace for modified lines only, and they added some
infrastructure for save-time actions for that) so what's left is an
options panel for letting you choose arbitrary editor actions and then
hooking these up to the save-actions infrastructure.

Shouldn't take more than a few hours to code up. I'll take a stab at
it maybe this weekend and report back.

-- Tor

On Jun 18, 4:23 pm, Peter Becker <[email protected]> wrote:
> I feel similar. NetBeans is quite nice in many regards, but generally
> lacking in terms of code hygiene. Between NetBeans not even
> auto-formatting generated code and Eclipse fixing dozens of things as
> "Save Actions" a lot is still to be done.
>
> Let me elaborate. The premise is that I'm a bloody lazy guy, always
> trying to care about the least amount of things possible (partly due to
> bad memory ;-) ). So my standard Eclipse setup is configured to do a lot
> of things on save:
>  * format code (on most projects only lines I changed since I don't want
> messy commits)
>  * optimize imports (remove unnecessary, apply rules on use of .*, sort)
>  * add missing @Override and @Deprecated annotations
>  * remove trailing whitespace
>  * add missing braces
>  * add final to private members if possible
>
> Having Eclipse do that for me on every save means I don't have to care
> anymore. I like the code I read to be very neat, but I don't want to
> bother writing neat code myself, with my Eclipse setup I can write:
>
>   for(Class obj: getSomething()) doSomething();
>
> and Eclipse will turn it into:
>
>   for(Class obj: getSomething()) {
>     doSomething();
>   }
>
> or
>
>   for(Class obj: getSomething())
>   {
>     doSomething();
>   }
>
> depending on the project I'm working on (implied here is that I don't
> bother thinking about a project's coding style either once my Eclipse is
> all set up).
>
> On the opposite end is NetBeans, where I have to constantly call the
> code formatter and the import optimization. How can it not run at least
> the generated code through a formatter?
>
> It lacks the nice "copy imports with bits of code that use them", too.
> It's good enough that I don't need to look at the import list, but it
> certainly makes me think about imports more.
>
> Otherwise I quite like NetBeans, but I really notice that it's lack of
> automated code hygiene draws some of my attention away from solving real
> problems to dealing with trivialities. Therefore it is currently not my
> Java IDE, although I still use it for Groovy and JavaScript.
>
> So all you NetBeans devs on this list: there is some feedback of someone
> too lazy to file bug reports ;-)
>
>   Peter
>
> Casper Bang wrote:
> > Yes NetBeans HAS come a very long way but it's true its not there yet.
> > For me, one of the few really big things missing now is line wrapping.
> > I see people requesting this on the bug tracker almost every single
> > day.
>
> > /Casper
>
> > On 18 Jun., 20:48, Ryan Waterer <[email protected]> wrote:
>
> >> Erlend,
>
> >> Netbeans has come a very long way in the last couple of years.
>
> >> Since Tor has been talking about NetBeans, and the other Posse members have
> >> commented how fantastic it is, I decided to look into it again back in
> >> March.  I now develop exclusively using Netbeans at home, and have started
> >> the process of switching over at work.
>
> >> I suggest taking another look at it. :)
>
> >> --Ryan
>
> >> On Thu, Jun 18, 2009 at 12:18 PM, Erlend Hamnaberg 
> >> <[email protected]>wrote:
>
> >>> Don't get me started on the deficiency of Netbeans. This feature is a must
> >>> and has been in all others IDEs forever.
>
> >>> Why the hell isn't JAVA a language that needs attention in Netbeans?
> >>> Since this is written in Java, why isn't this the main language supported
> >>> Java is the LEAST developed language of them all.
> >>> You reallly need to focus on your main language, which should be Java.
>
> >>> I really like Netbeans. But until you get REAL editor support for JAVA, I
> >>> can't use it.
>
> >>> Just my rant on on a Thursday.
>
> >>> - Erlend
>
> >>> On Thu, Jun 18, 2009 at 7:15 PM, TorNorbye <[email protected]> wrote:
>
> >>>> Regarding "IDEs can only help to search for a class if I know its
> >>>> name.":
>
> >>>> As of NetBeans 6.5 you can search for symbols too (Navigate > Go To
> >>>> Symbol -- Ctrl-Shift-Cmd-O), not just classes - I use that sometimes
> >>>> when I can't remember the class name. If I remember the method, or
> >>>> field, I'm after I just use Go To Symbol to find it which takes me to
> >>>> the right class.
>
> >>>> -- Tor
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to