import java.text.BreakIterator;
import net.sourceforge.phpdt.core.ICompilationUnit;
-import net.sourceforge.phpdt.core.IJavaElement;
+//import net.sourceforge.phpdt.core.IJavaElement;
import net.sourceforge.phpdt.core.IMethod;
import net.sourceforge.phpdt.core.ISourceRange;
import net.sourceforge.phpdt.core.IType;
}
}
- private String createJavaDocTags(IDocument document,
- DocumentCommand command, String indentation, String lineDelimiter,
- ICompilationUnit unit) throws CoreException, BadLocationException {
- IJavaElement element = unit.getElementAt(command.offset);
- if (element == null)
- return null;
-
- switch (element.getElementType()) {
- case IJavaElement.TYPE:
- return createTypeTags(document, command, indentation,
- lineDelimiter, (IType) element);
-
- case IJavaElement.METHOD:
- return createMethodTags(document, command, indentation,
- lineDelimiter, (IMethod) element);
-
- default:
- return null;
- }
- }
+// private String createJavaDocTags(IDocument document,
+// DocumentCommand command, String indentation, String lineDelimiter,
+// ICompilationUnit unit) throws CoreException, BadLocationException {
+// IJavaElement element = unit.getElementAt(command.offset);
+// if (element == null)
+// return null;
+//
+// switch (element.getElementType()) {
+// case IJavaElement.TYPE:
+// return createTypeTags(document, command, indentation,
+// lineDelimiter, (IType) element);
+//
+// case IJavaElement.METHOD:
+// return createMethodTags(document, command, indentation,
+// lineDelimiter, (IMethod) element);
+//
+// default:
+// return null;
+// }
+// }
/*
* Removes start and end of a comment and corrects indentation and line