1 11 12 package org.eclipse.jdt.internal.ui.text.comment; 13 14 19 public class JavaDocLine extends MultiCommentLine { 20 21 22 public static final String JAVADOC_START_PREFIX= "/**"; 24 30 protected JavaDocLine(final CommentRegion region) { 31 super(region); 32 } 33 34 37 protected void formatUpperBorder(final CommentRange range, final String indentation, final int length) { 38 39 final CommentRegion parent= getParent(); 40 41 if (parent.isSingleLine() && parent.getSize() == 1) { 42 parent.logEdit(getStartingPrefix() + CommentRegion.COMMENT_RANGE_DELIMITER, 0, range.getOffset()); 43 } else 44 super.formatUpperBorder(range, indentation, length); 45 } 46 47 50 protected String getStartingPrefix() { 51 return JAVADOC_START_PREFIX; 52 } 53 } 54 | Popular Tags |