[teiid-dev] Cdk Plugin - Export Feature added
Ramesh Reddy
rareddy at redhat.com
Tue Dec 1 17:26:26 EST 2009
On Tue, 2009-12-01 at 13:49 -0800, Michael Walker wrote:
> Ramesh, what's your take on providing template code vs.
> auto-generating code using the standard Eclipse mechanisms, and
> augmenting it as needed?
As I understand even the standard Eclipse mechanisms use some kind of
templates as a starting point to generate the "targets", like the ones
that Sanjay mentioned earlier in the thread.
When we say template code, we will put in something like
public class ${name}Connector extends Connector{
public Connection getConnection(){
return new ${name}Connection();
}
}
which will generate code like (assumed that name of my connector is
"Google")
public class GoogleConnector extends Connector{
public Connection getConnection(){
return new GoogleConnection();
}
}
obviously, there is big task of keeping the template code in-line with
Connector API/Base classes.
However, if there is alternative way to keep them in sync always, I
would prefer that. Do you think there is way in eclipse to accomplish
this? If so, can you please share your experience.
Thanks
Ramesh..
More information about the teiid-dev
mailing list