improved PHP parser
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / html / HTMLFormattingStrategy.java
index e3d00d4..eba86b6 100644 (file)
@@ -1,13 +1,13 @@
 package net.sourceforge.phpeclipse.phpeditor.html;
 
-import net.sourceforge.phpeclipse.phpeditor.PHPEditor;
-import net.sourceforge.phpeclipse.phpeditor.PHPSourceViewerConfiguration;
+import net.sourceforge.phpdt.ui.text.PHPSourceViewerConfiguration;
 
 import org.eclipse.jface.text.BadLocationException;
 import org.eclipse.jface.text.IDocument;
 import org.eclipse.jface.text.formatter.IFormattingStrategy;
 import org.eclipse.jface.text.source.ISourceViewer;
 import org.eclipse.jface.text.source.SourceViewer;
+import org.eclipse.ui.texteditor.ITextEditor;
 
 /**
  * @author chrisl
@@ -24,7 +24,7 @@ public class HTMLFormattingStrategy implements IFormattingStrategy, IHTMLConstan
        private PHPSourceViewerConfiguration fConfig;
        private ISourceViewer fViewer;
        //
-       private PHPEditor fEditor;
+       private ITextEditor fEditor;
        private int fTabWidth;
 
        ////////////////////////////////////////////////////////////////////////
@@ -97,7 +97,7 @@ public class HTMLFormattingStrategy implements IFormattingStrategy, IHTMLConstan
         * @param line the text line
         * @param tabWidth the width of the '\t' character.
         * 
-        * @see org.eclipse.jdt.internal.corext.util.Strings.computeIndent(String,int)
+        * @see net.sourceforge.phpdt.internal.corext.util.Strings.computeIndent(String,int)
         */
        public static int computeIndent(String line, int tabWidth) {
                int result = 0;