1) Moved net.sourceforge.phpeclipse.ui\src\net\sourceforge\phpdt back to net.sourcefo...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / actions / PHPEclipseShowAction.java
index 75f1995..1b5ca01 100644 (file)
@@ -13,9 +13,9 @@ import java.net.URL;
 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;
 
@@ -70,24 +70,24 @@ public class PHPEclipseShowAction implements IObjectActionDelegate {
                                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) {