import net.sourceforge.phpdt.internal.core.JavaProject;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
IPath path = new Path(getFileName());
IProject project = getProject().getProject();
- return project.getLocation().toOSString() + "/" + getFileName();
+ //return project.getLocation().toOSString() + "/" + getFileName();
+ IResource file = project.findMember(path);
+ return file.getProjectRelativePath().toOSString();
}
public String getFileName() {
IProject project = getProject().getProject();
if (!useRemoteDebugger())
- return project.getLocation().toOSString();
+ return project.getFullPath().toOSString();
else {
try {
return configuration.getAttribute(
return "";
}
+ public boolean useDBGSessionInExternalBrowser() {
+ try {
+ return configuration
+ .getAttribute(
+ PHPLaunchConfigurationAttribute.OPEN_DBGSESSION_IN_EXTERNAL_BROWSER,
+ false);
+ } catch (CoreException e) {
+ PHPLaunchingPlugin.log(e);
+ }
+ return false;
+ }
+
+ public boolean useRelaunchOnScriptTermination() {
+ try {
+ return configuration
+ .getAttribute(
+ PHPLaunchConfigurationAttribute.RELAUNCH_ON_SCRIPT_TERMINATION,
+ false);
+ } catch (CoreException e) {
+ PHPLaunchingPlugin.log(e);
+ }
+ return false;
+ }
}