X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/phpdoc/PHPDocUtil.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/phpdoc/PHPDocUtil.java index 136ad57..7043892 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/phpdoc/PHPDocUtil.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/phpdoc/PHPDocUtil.java @@ -55,19 +55,19 @@ public class PHPDocUtil { } } - static String getEncoding(String filename) { - String encoding = null; - IFile file = PHPeclipsePlugin.getWorkspace().getRoot() - .getFileForLocation(new Path(filename)); - if (file != null) { - try { - encoding = file.getCharset(); - } catch (CoreException e) { - // TODO: should log the fact that we could not get the encoding? - } - } - return encoding; - } +// static String getEncoding(String filename) { +// String encoding = null; +// IFile file = PHPeclipsePlugin.getWorkspace().getRoot() +// .getFileForLocation(new Path(filename)); +// if (file != null) { +// try { +// encoding = file.getCharset(); +// } catch (CoreException e) { +// // TODO: should log the fact that we could not get the encoding? +// } +// } +// return encoding; +// } public static String getUsage(String filename, PHPIdentifierLocation location) { @@ -128,7 +128,7 @@ public class PHPDocUtil { if (file != null) { try { return new InputStreamReader(new FileInputStream(file - .getFullPath().toString()), file.getCharset()); + .getLocation().toString()), file.getCharset()); } catch (UnsupportedEncodingException e) { // do nothing } catch (FileNotFoundException e) {