On the topic of getter/setters, it seems strange that the create
getter/setter interface isn't just part of the active templates. It seems
like they really should be so that we could alter the templates as required.
For instance, I prefer a slightly different style (final for setXXX
parameter) and just define a new template 'attr' as:
protected $attr_type$ $attr_var$;
public
void set$attr$ (final $attr_type$ $attr_var$)
{
this.$attr_var$ = $attr_var$;
return;
}
.
.
.
which is more flexible than how this works in 2.5. I suppose it would
probably be even more prudent to put some javadoc comments atop each of the
methods, as well using this mechanism. The same holds true for the class and
interface templates.
If there was a way to parameterize them that might be interesting, too. For
instance, I use multiple templates 'attr', 'attr-ro' (read-only) for minor
variations.
--lee
-----Original Message-----
From: Jordan Zimmerman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 6:25 PM
To: '[EMAIL PROTECTED]'
Subject: [Eap-list] Code Style features for Ariadna
First off, you guys are becoming like "rock stars" to me. I've been waiting
for the new feature list everyday like I would wait for my favorite band's
new album...
Is there any chance that Ariadna will have code style changes to support
other coding styles than JDK? For me, all names are lowercase with
underscore separators. Data members are appended with "_mbr". E.g.
class my_class_name
{
public void my_method()
{
}
private int my_data_mbr;
}
My coding style makes IDEA features such as Generate Getter/Setter much less
useful.
Also, while I'm on the subject...
* I put my private data/methods at the bottom of the class, not the top.
Several of the refactorings seem to always put this at the top. It would be
nice to have control over this.
* I like to align variable declarations. When IDEA inserts variables, it
doesn't align them. E.g.
int var_one;
char var_two;
===========================
Jordan Zimmerman
Altura International
Catalog City
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list