X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/util/Util.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/util/Util.java index cb88c85..1cafdf9 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/util/Util.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/util/Util.java @@ -42,9 +42,9 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; -import org.eclipse.jface.text.BadLocationException; -import org.eclipse.text.edits.MalformedTreeException; -import org.eclipse.text.edits.TextEdit; +//import org.eclipse.jface.text.BadLocationException; +//import org.eclipse.text.edits.MalformedTreeException; +//import org.eclipse.text.edits.TextEdit; /** * Provides convenient utility methods to other types in this package. @@ -378,21 +378,21 @@ public class Util { * * @return the updated string */ - public final static String editedString(String original, TextEdit edit) { - if (edit == null) { - return original; - } - SimpleDocument document = new SimpleDocument(original); - try { - edit.apply(document, TextEdit.NONE); - return document.get(); - } catch (MalformedTreeException e) { - e.printStackTrace(); - } catch (BadLocationException e) { - e.printStackTrace(); - } - return original; - } +// public final static String editedString(String original, TextEdit edit) { +// if (edit == null) { +// return original; +// } +// SimpleDocument document = new SimpleDocument(original); +// try { +// edit.apply(document, TextEdit.NONE); +// return document.get(); +// } catch (MalformedTreeException e) { +// e.printStackTrace(); +// } catch (BadLocationException e) { +// e.printStackTrace(); +// } +// return original; +// } /** * Returns true iff str.toLowerCase().endsWith(end.toLowerCase())