bugfix 1198893, syntax coloring gets confused after single line comment with question...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / actions / PHPEclipseShowAction.java
index fff0369..d6881ed 100644 (file)
@@ -2,8 +2,8 @@
  * Copyright (c) 2000, 2002 IBM Corp. and others. All rights reserved. This program and the accompanying materials are made
  * available under the terms of the Common Public License v1.0 which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors: IBM Corporation - Initial implementation 
+ *
+ * Contributors: IBM Corporation - Initial implementation
  *               www.phpeclipse.de
  **********************************************************************************************************************************/
 package net.sourceforge.phpeclipse.actions;
@@ -72,22 +72,23 @@ public class PHPEclipseShowAction implements IObjectActionDelegate {
           IFile previewFile = (IFile) resource;
           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 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);
 
           String localhostURL;
-          if (showHTMLFilesLocal && isHTMLFileName) {
-            localhostURL = "file://"+previewFile.getLocation().toString();
-          } else if (showXMLFilesLocal && isXMLFileName) {
-            localhostURL = "file://"+previewFile.getLocation().toString();
-          } else if ((localhostURL = ShowExternalPreviewAction.getLocalhostURL(store, previewFile)) == null) {
+//          if (showHTMLFilesLocal && isHTMLFileName) {
+//            localhostURL = "file://"+previewFile.getLocation().toString();
+//          } else if (showXMLFilesLocal && isXMLFileName) {
+//            localhostURL = "file://"+previewFile.getLocation().toString();
+//          } else
+          if ((localhostURL = ShowExternalPreviewAction.getLocalhostURL(store, previewFile)) == null) {
             MessageDialog.openInformation(shell, "Couldn't create localhost URL",
             "Please configure your localhost and documentRoot");
             return;
           }
-        
+
           try {
 //            if (store.getBoolean(PHPeclipsePlugin.USE_EXTERNAL_BROWSER_PREF)) {
 //              String[] arguments = { localhostURL };