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
if (list != null && list.size() > 0) {
// String workspaceLocation =
// PHPeclipsePlugin.getWorkspace().getRoot().getLocation().toString();
- String workspaceLocation = fProject.getLocation()
+ String workspaceLocation = fProject.getFullPath()
.toString()
+ java.io.File.separatorChar;
// PHPeclipsePlugin.getWorkspace().getRoot()
// .getLocation().toString();
- String workspaceLocation = fProject.getLocation().toString()
+ String workspaceLocation = fProject.getFullPath().toString()
+ java.io.File.separatorChar;
// TODO show all entries of the list in a dialog box
// at the moment always the first entry will be opened