Bug 29458 Templates for constructor
When I have an existing constructor within a class, which has a single line comment and I attempt to convert this comment to a multi lie comment, it inserts the 'typecomment' tempalte. In addition, the comment is not correctly indented. For example: before: /** * My typecomment */ public class MyClass { /** my constructor */ public MyClass() { } } after (placing cursor before 'my contructor' and hitting enter): /** * My typecomment */ public class MyClass { /** * My typecomment */ my constructor */ public MyClass() { } }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocAutoIndentStrategy.java
return false;
			
		lineContents= lineContents.substring(1).trim().toLowerCase();
		
		if (lineContents.length() == 0)
			return false;
		
		if (lineContents.startsWith("@")) 
			return false;
		
		if (lineContents.startsWith("<") && !isInlineTag(lineContents)) 
			return false;
		return true;
	}
	protected void jdocHandleBackspaceDelete(IDocument document, DocumentCommand c) {
		
		if (!getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_FORMAT_JAVADOCS))
			return;
			
		try {
			String text= document.get(c.offset, c.length);
			int line= document.getLineOfOffset(c.offset);
			int lineOffset= document.getLineOffset(line);
			
			String lineDelimiter= document.getLineDelimiter(line);
			if (lineDelimiter != null && lineDelimiter.equals(text)) {
				
				String prefix= jdocExtractLinePrefix(document, line + 1);
				
				if (prefix.length() > 0) {