Altering Eclipse user name
Using StatET’s code generation templates is handy, but the standard Eclipse variable for ${user} just inserts the currently logged-in user’s account name. If you want a different name to appear when ${user} is called, one method is to alter the eclipse.ini file.
Specifically, add the line
-Duser.name = Your full name
at the end of the .ini file.
For instance, my eclipse.ini file looks like this:
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
–launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
–launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-Duser.name=Luke Miller
When I open a new R-script file in Eclipse now, StatET automatically inserts that user name.
You can further alter the generated code in the Eclipse Preferences window. Go to Window>Preferences and you’ll get the following window.
[caption id=”attachment_502″ align=”aligncenter” … Continue Reading