X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/internal/ui/text/phpdoc/JavaDocAutoIndentStrategy.java b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/internal/ui/text/phpdoc/JavaDocAutoIndentStrategy.java index 708a7b6..8f33483 100644 --- a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/internal/ui/text/phpdoc/JavaDocAutoIndentStrategy.java +++ b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/internal/ui/text/phpdoc/JavaDocAutoIndentStrategy.java @@ -14,7 +14,7 @@ package net.sourceforge.phpdt.internal.ui.text.phpdoc; 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; @@ -119,7 +119,7 @@ public class JavaDocAutoIndentStrategy extends String endTag = lineDelimiter + indentation + " */"; //$NON-NLS-1$ d.replace(c.offset, 0, endTag); //$NON-NLS-1$ // evaluate method signature - ICompilationUnit unit = getCompilationUnit(); + //ICompilationUnit unit = getCompilationUnit(); // if // (PHPeclipsePlugin.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS) @@ -150,26 +150,26 @@ public class JavaDocAutoIndentStrategy extends } } - 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