Author: timotei
Date: Sat Jul 30 10:01:24 2011
New Revision: 50487

URL: http://svn.gna.org/viewcvs/wesnoth?rev=50487&view=rev
Log:
eclipse plugin: Fix the path computing logic
and remove a debug statement

Modified:
    trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/projects/ProjectUtils.java

Modified: 
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/projects/ProjectUtils.java
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/projects/ProjectUtils.java?rev=50487&r1=50486&r2=50487&view=diff
==============================================================================
--- trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/projects/ProjectUtils.java 
(original)
+++ trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/projects/ProjectUtils.java 
Sat Jul 30 10:01:24 2011
@@ -118,15 +118,13 @@
                    String projectPath = null;
 
                    if (handle.getLocation() == null && description != null)
-                       projectPath = description.getLocationURI().toString( 
).substring( 1 );
+                       projectPath = description.getLocationURI().getPath( 
).toString( ).substring( 1 );
                    else if ( handle.getLocation( ) != null )
                        projectPath = handle.getLocation().toOSString();
                    else // project is in workspace
                        projectPath =
                            ResourcesPlugin.getWorkspace( ).getRoot( 
).getLocation( ).toOSString( )
                            + "/" + handle.getProject( ).getName( );
-
-                   System.out.println( projectPath );
 
                    monitor.subTask(Messages.ProjectUtils_0);
 


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to