Bug 3793 Wrong formating when creating inner class using wizard (1GEUE91)
- select TestCase - create a new class using TestCase as an eclosing type observe: - new type is added at the end. Quasi standard is having the new type at the beginning. - new type doesn't have indention. NOTES: GDA (6/5/01 11:08:09 AM) defer
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/TypePage.java
List interfaces= getSuperInterfaces();
		int last= interfaces.size() - 1;
		if (last >= 0) {
			if (fIsClass) {
				buf.append(" implements "); 
			} else {
				buf.append(" extends "); 
			}
			for (int i= 0; i <= last; i++) {
				String typename= (String) interfaces.get(i);
				imports.addImport(typename);
				buf.append(Signature.getSimpleName(typename));
				if (i < last) {
					buf.append(", "); 
				}
			}
		}
	}
	/*
	 * Called from createType to construct the source for this type
	 */		
	private String createTypeBody(IImportsStructure imports, String lineDelimiter) {	
		StringBuffer buf= new StringBuffer();
		
		int modifiers= getModifiers();
		buf.append(Flags.toString(modifiers));
		if (modifiers != 0) {
			buf.append(' ');
		}
		buf.append(fIsClass ? "class " : "interface ");