package net.sourceforge.phpeclipse.phpeditor.html;
-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.editors.text.TextEditor;
+import org.eclipse.ui.texteditor.ITextEditor;
/**
* @author chrisl
*
* To change this generated comment edit the template variable "typecomment":
- * Window>Preferences>Java>Templates.
+ * Window>Preferences>Java>ObfuscatorIgnores.
* To enable and disable the creation of type comments go to
* Window>Preferences>Java>Code Generation.
*/
private PHPSourceViewerConfiguration fConfig;
private ISourceViewer fViewer;
//
- private TextEditor fEditor;
+ private ITextEditor fEditor;
private int fTabWidth;
////////////////////////////////////////////////////////////////////////
}
public static String getLineDelimiterFor(IDocument doc) {
- // new for: 1GF5UU0: ITPJUI:WIN2000 - "Organize Imports" in java editor inserts lines in wrong format
String lineDelim = null;
try {
lineDelim = doc.getLineDelimiter(0);
* @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;