Eclipse 3.x compatible;
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / JavaProject.java
index 2a0a680..a634464 100644 (file)
@@ -151,14 +151,14 @@ public class JavaProject
                if (externalPath == null)
                        return null;
 
-//             if (JavaModelManager.VERBOSE) {
-//                     System.out.println("JAVA MODEL - Canonicalizing " + externalPath.toString()); //$NON-NLS-1$
-//             }
+               if (JavaModelManager.VERBOSE) {
+                       System.out.println("JAVA MODEL - Canonicalizing " + externalPath.toString()); //$NON-NLS-1$
+               }
 
                if (IS_CASE_SENSITIVE) {
-//                     if (JavaModelManager.VERBOSE) {
-//                             System.out.println("JAVA MODEL - Canonical path is original path (file system is case sensitive)"); //$NON-NLS-1$
-//                     }
+                       if (JavaModelManager.VERBOSE) {
+                               System.out.println("JAVA MODEL - Canonical path is original path (file system is case sensitive)"); //$NON-NLS-1$
+                       }
                        return externalPath;
                }
 
@@ -166,9 +166,9 @@ public class JavaProject
                IWorkspace workspace = ResourcesPlugin.getWorkspace();
                if (workspace == null) return externalPath; // protection during shutdown (30487)
                if (workspace.getRoot().findMember(externalPath) != null) {
-//                     if (JavaModelManager.VERBOSE) {
-//                             System.out.println("JAVA MODEL - Canonical path is original path (member of workspace)"); //$NON-NLS-1$
-//                     }
+                       if (JavaModelManager.VERBOSE) {
+                               System.out.println("JAVA MODEL - Canonical path is original path (member of workspace)"); //$NON-NLS-1$
+                       }
                        return externalPath;
                }
 
@@ -178,9 +178,9 @@ public class JavaProject
                                new Path(new File(externalPath.toOSString()).getCanonicalPath());
                } catch (IOException e) {
                        // default to original path
-//                     if (JavaModelManager.VERBOSE) {
-//                             System.out.println("JAVA MODEL - Canonical path is original path (IOException)"); //$NON-NLS-1$
-//                     }
+                       if (JavaModelManager.VERBOSE) {
+                               System.out.println("JAVA MODEL - Canonical path is original path (IOException)"); //$NON-NLS-1$
+                       }
                        return externalPath;
                }
                
@@ -188,9 +188,9 @@ public class JavaProject
                int canonicalLength = canonicalPath.segmentCount();
                if (canonicalLength == 0) {
                        // the java.io.File canonicalization failed
-//                     if (JavaModelManager.VERBOSE) {
-//                             System.out.println("JAVA MODEL - Canonical path is original path (canonical path is empty)"); //$NON-NLS-1$
-//                     }
+                       if (JavaModelManager.VERBOSE) {
+                               System.out.println("JAVA MODEL - Canonical path is original path (canonical path is empty)"); //$NON-NLS-1$
+                       }
                        return externalPath;
                } else if (externalPath.isAbsolute()) {
                        result = canonicalPath;
@@ -201,9 +201,9 @@ public class JavaProject
                        if (canonicalLength >= externalLength) {
                                result = canonicalPath.removeFirstSegments(canonicalLength - externalLength);
                        } else {
-//                             if (JavaModelManager.VERBOSE) {
-//                                     System.out.println("JAVA MODEL - Canonical path is original path (canonical path is " + canonicalPath.toString() + ")"); //$NON-NLS-1$ //$NON-NLS-2$
-//                             }
+                               if (JavaModelManager.VERBOSE) {
+                                       System.out.println("JAVA MODEL - Canonical path is original path (canonical path is " + canonicalPath.toString() + ")"); //$NON-NLS-1$ //$NON-NLS-2$
+                               }
                                return externalPath;
                        }
                }
@@ -212,9 +212,9 @@ public class JavaProject
                if (externalPath.getDevice() == null) {
                        result = result.setDevice(null);
                } 
-//             if (JavaModelManager.VERBOSE) {
-//                     System.out.println("JAVA MODEL - Canonical path is " + result.toString()); //$NON-NLS-1$
-//             }
+               if (JavaModelManager.VERBOSE) {
+                       System.out.println("JAVA MODEL - Canonical path is " + result.toString()); //$NON-NLS-1$
+               }
                return result;
        }