Workaround for feature request #1154254 (sticky browser URL) that solves bug #1827766...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / actions / OpenDeclarationEditorAction.java
index 6d4e18b..9c35add 100644 (file)
@@ -82,12 +82,15 @@ public class OpenDeclarationEditorAction {
                                IPath path = PHPFileUtil.determineFilePath(filename,
                                                currentFile, fProject);
                                if (path != null) {
-                                       IFile file = PHPFileUtil.createFile(path, fProject);
-                                       if (file != null && file.exists()) {
-                                               PHPeclipsePlugin.getDefault().openFileInTextEditor(
-                                                               file.getLocation().toString());
-                                               return;
-                                       }
+                                       //IFile file = PHPFileUtil.createFile(path, fProject);
+                                       //if (file != null && file.exists()) {
+                                       //      PHPeclipsePlugin.getDefault().openFileInTextEditor(
+                                       //                      file.getLocation().toString());
+                                       //      return;
+                                       //}
+                                       PHPeclipsePlugin.getDefault().openFileInTextEditor(
+                                                       path.toString());
+                                       return;
                                }
                        } catch (Exception e) {
                                // ignore