Refactory: remove unused classes, imports, fields and methods.
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / src / net / sourceforge / phpeclipse / actions / PHPEclipseShowAction.java
index a0b64f3..f0ea56a 100644 (file)
@@ -13,10 +13,10 @@ 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.WebUI;
 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;
 
@@ -71,24 +71,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) {