|
From: <caw...@us...> - 2007-07-11 15:25:00
|
Revision: 2745
http://svn.sourceforge.net/rubyeclipse/?rev=2745&view=rev
Author: cawilliams
Date: 2007-07-11 08:24:59 -0700 (Wed, 11 Jul 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/RubySourceLocator.java
Modified: trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/RubySourceLocator.java
===================================================================
--- trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/RubySourceLocator.java 2007-07-11 15:24:15 UTC (rev 2744)
+++ trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/RubySourceLocator.java 2007-07-11 15:24:59 UTC (rev 2745)
@@ -106,7 +106,7 @@
private IFile workspaceFile;
public SourceElement(String aFilename, RubySourceLocator pSourceLocator) {
filename = aFilename;
- if (filename.startsWith("./")) {
+ if (filename.startsWith("./") && pSourceLocator.projectName != null && pSourceLocator.projectName.trim().length() > 0) {
filename = "/" + pSourceLocator.projectName + filename.substring(1);
}
workspaceFile = RdtDebugCorePlugin.getWorkspace().getRoot().getFileForLocation(new Path(filename));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|