public static ShowInContextBrowser getShowInContext(IFile previewFile,
boolean forceDBGPreview, String postFix) {
- String extension = previewFile.getFileExtension().toLowerCase();
+ //String extension = previewFile.getFileExtension().toLowerCase();
// boolean showHTMLFilesLocal = false;
// boolean showXMLFilesLocal = false;
- boolean isHTMLFileName = false;
- boolean isXMLFileName = false;
+// boolean isHTMLFileName = false;
+// boolean isXMLFileName = false;
String localhostURL;
if (!forceDBGPreview) {
// showHTMLFilesLocal =
// showXMLFilesLocal =
// ProjectPrefUtil.getPreviewBooleanValue(previewFile,
// IPreferenceConstants.PHP_SHOW_XML_FILES_LOCAL);
- isHTMLFileName = "html".equals(extension)
- || "htm".equals(extension) || "xhtml".equals(extension);
- isXMLFileName = "xml".equals(extension) || "xsd".equals(extension)
- || "dtd".equals(extension);
+// isHTMLFileName = "html".equals(extension)
+// || "htm".equals(extension) || "xhtml".equals(extension);
+// isXMLFileName = "xml".equals(extension) || "xsd".equals(extension)
+// || "dtd".equals(extension);
}
// if (showHTMLFilesLocal && isHTMLFileName) {
// localhostURL = previewFile.getLocation().toString();