import java.util.Iterator;
import net.sourceforge.phpeclipse.PHPeclipsePlugin;
-import net.sourceforge.phpeclipse.ui.IPreferenceConstants;
+//import net.sourceforge.phpeclipse.ui.IPreferenceConstants;
import net.sourceforge.phpeclipse.ui.editor.ShowExternalPreviewAction;
-import net.sourceforge.phpeclipse.ui.overlaypages.ProjectPrefUtil;
+//import net.sourceforge.phpeclipse.ui.overlaypages.ProjectPrefUtil;
import net.sourceforge.phpeclipse.webbrowser.IWebBrowser;
import net.sourceforge.phpeclipse.webbrowser.internal.BrowserManager;
case IResource.FILE:
// single file:
IFile previewFile = (IFile) resource;
- String extension = previewFile.getFileExtension()
- .toLowerCase();
- boolean bringToTopPreview = ProjectPrefUtil
- .getPreviewBooleanValue(
- previewFile,
- IPreferenceConstants.PHP_BRING_TO_TOP_PREVIEW_DEFAULT);
+// String extension = previewFile.getFileExtension()
+// .toLowerCase();
+// boolean bringToTopPreview = ProjectPrefUtil
+// .getPreviewBooleanValue(
+// previewFile,
+// IPreferenceConstants.PHP_BRING_TO_TOP_PREVIEW_DEFAULT);
// boolean showHTMLFilesLocal =
// ProjectPrefUtil.getPreviewBooleanValue(previewFile,
// IPreferenceConstants.PHP_SHOW_HTML_FILES_LOCAL);
// boolean showXMLFilesLocal =
// ProjectPrefUtil.getPreviewBooleanValue(previewFile,
// IPreferenceConstants.PHP_SHOW_XML_FILES_LOCAL);
- boolean isHTMLFileName = "html".equals(extension)
- || "htm".equals(extension)
- || "xhtml".equals(extension);
- boolean isXMLFileName = "xml".equals(extension)
- || "xsd".equals(extension)
- || "dtd".equals(extension);
+// boolean isHTMLFileName = "html".equals(extension)
+// || "htm".equals(extension)
+// || "xhtml".equals(extension);
+// boolean isXMLFileName = "xml".equals(extension)
+// || "xsd".equals(extension)
+// || "dtd".equals(extension);
String localhostURL;
// if (showHTMLFilesLocal && isHTMLFileName) {