X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/actions/PHPOpenIncludeEditorAction.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/actions/PHPOpenIncludeEditorAction.java index 1dcf6eb..b388f2f 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/actions/PHPOpenIncludeEditorAction.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/actions/PHPOpenIncludeEditorAction.java @@ -8,7 +8,7 @@ ******************************************************************************/ package net.sourceforge.phpeclipse.actions; -import net.sourceforge.phpdt.internal.compiler.parser.Scanner; +import net.sourceforge.phpeclipse.PHPeclipsePlugin; import net.sourceforge.phpeclipse.phpeditor.PHPEditor; import org.eclipse.core.resources.IContainer; @@ -67,7 +67,7 @@ public class PHPOpenIncludeEditorAction extends ActionDelegate } return editorInput.getFile().getParent(); } - private IFile getWikiFile(IProject project, IFileEditorInput editorInput, String relativeFilename) { + private IFile getIncludeFile(IProject project, IFileEditorInput editorInput, String relativeFilename) { // IContainer container = getWorkingLocation(editorInput); // String fullPath = project.getLocation().toString(); Path path = new Path(relativeFilename); @@ -99,7 +99,7 @@ public class PHPOpenIncludeEditorAction extends ActionDelegate // System.out.println(word); if (relativeFilename != null && !relativeFilename.equals("")) { - IFile file = getWikiFile(fProject, (IFileEditorInput) fEditor + IFile file = getIncludeFile(fProject, (IFileEditorInput) fEditor .getEditorInput(), relativeFilename); try { // createNewFileIfNeeded(file); @@ -110,7 +110,8 @@ public class PHPOpenIncludeEditorAction extends ActionDelegate // getActivePage().reuseEditor(reusableEditor, new // FileEditorInput(file)); // } else { - IDE.openEditor(getActivePage(), file, true); +// IDE.openEditor(getActivePage(), file, true); + PHPeclipsePlugin.getDefault().openFileInTextEditor(file.getLocation().toString()); // redrawText(); // } } catch (Exception e) {