Project: JDT
Bug 42214 New template variable that gets replaced by file name w/o extension [code manipulation]
Reported: 2003-08-28 10:00:16 | Status: resolved fixed

I would like there to be a template variable, for example "filename", that works like the "file" variable, except the variable's value doesn't contain the file extension. This would allow me to create template such as the following: public final class ${filename} extends TestCase { public static Test suite() { final TestSuite suite = new TestSuite(${filename}.class); ... } ... }

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/CompilationUnitContextType.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContextType.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaDocContextType.java