Re: jde-wiz-get-set-methods

2004-02-19 Thread Jeff Jensen
Thanks!  I hope your enhancement is included in the next JDE!  I also have the 
same issue - deleting the generated get/sets for statics.


Quoting Petter Måhlén [EMAIL PROTECTED]:

 Hi,
 
 I've been annoyed about one thing with generating the getter/setter methods
 for a while. I usually have private static members in my classes for things
 like loggers that are initialised once and should never be touched or
 accessible from the outside. When running the jde-wiz-get-set-methods
 function, it always adds static getter/setter methods for these static
 members. I have used my meager elisp skills to modify the behaviour by
 including a customisable variable, jde-wiz-get-set-include-static, which if
 false, means that getter/setter methods are not generated for static
 members. The default value is true, meaning that the present behaviour is
 kept.
 
 It seems to work OK, but maybe somebody with better elisp skills should
 double-check if there is a nicer way to do this. And maybe this is not a
 feature that would interest anybody but me, in which case it should not be
 added. :)
 
 / Petter


jde-wiz-get-set-methods opening brace placement

2002-04-30 Thread Molitor, Stephen

I've noticed that jde-wiz-get-set-methods does not put a space between the
')' ending the argument list, and the opening brace of the method.  It
formats it like this:

public void setFoo(int foo){

Notice that there is no space before the opening brace.

Is this on purpose, or an oversight?  The get method is formatted with a
space.  There doesn't seem to be a template available, so I hacked my copy
of jde-wiz.el.  (I can send a patch, but basically I just added a space
before the '{').

Thanks.

Steve Molitor
[EMAIL PROTECTED]




RE: jde-wiz-get-set-methods opening brace placement

2002-04-30 Thread Molitor, Stephen

I'm using JDEE version 2.2.9beta9.1

-Original Message-
From: Molitor, Stephen 
Sent: Tuesday, April 30, 2002 9:13 AM
To: [EMAIL PROTECTED]
Subject: jde-wiz-get-set-methods opening brace placement


I've noticed that jde-wiz-get-set-methods does not put a space between the
')' ending the argument list, and the opening brace of the method.  It
formats it like this:

public void setFoo(int foo){

Notice that there is no space before the opening brace.

Is this on purpose, or an oversight?  The get method is formatted with a
space.  There doesn't seem to be a template available, so I hacked my copy
of jde-wiz.el.  (I can send a patch, but basically I just added a space
before the '{').

Thanks.

Steve Molitor
[EMAIL PROTECTED]