******************************************************************************/
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;
}
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);
// 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);
// 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) {