Changing template for creation of methods and variables [message #218101] |
Tue, 30 March 2004 07:24  |
Eclipse User |
|
|
|
Hi,
I have a coding convention that requires me to do something like:
//******************************
// Method: method()
// ----------------
/**
* Javadoc goes here
*/
//******************************
void method() {
// stuff here
} //method()
Where do I go to tell Eclipse to generate new methods in this manner?
Also, the coding convention wants variables that use different prefixes,
depending on the type, whether it's a class variable or an instance
variable, etc. Is there a way to customize this also? And then tell
Eclipse that generating getters and setters should not use those prefixes?
For example:
class Foo {
int m_iFooVar;
int getFooVar() {
return m_iFooVar;
}
int setFooVar(int p_iFooVar) {
m_iFooVar = p_iFooVar;
}
}
I don't expect this to be possible, but you can't know unless you ask,
right? :-)
L
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03662 seconds