- added include declarations to Outline view
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / parser / SourceTypeConverter.java
index 732407a..4452e00 100644 (file)
@@ -103,16 +103,16 @@ public class SourceTypeConverter implements CompilerModifiers {
                int end = sourceType.getNameSourceEnd();
 
                /* convert package and imports */
-               if (sourceType.getPackageName() != null
-                       && sourceType.getPackageName().length > 0)
-                       // if its null then it is defined in the default package
-                       this.unit.currentPackage =
-                               createImportReference(sourceType.getPackageName(), start, end);
+//             if (sourceType.getPackageName() != null
+//                     && sourceType.getPackageName().length > 0)
+//                     // if its null then it is defined in the default package
+//                     this.unit.currentPackage =
+//                             createImportReference(sourceType.getPackageName(), start, end);
                char[][] importNames = sourceType.getImports();
                int importCount = importNames == null ? 0 : importNames.length;
                this.unit.imports = new ImportReference[importCount];
-               for (int i = 0; i < importCount; i++)
-                       this.unit.imports[i] = createImportReference(importNames[i], start, end);
+//             for (int i = 0; i < importCount; i++)
+//                     this.unit.imports[i] = createImportReference(importNames[i], start, end);
                /* convert type(s) */
                int typeCount = sourceTypes.length;
                this.unit.types = new ArrayList(typeCount);
@@ -313,33 +313,33 @@ public class SourceTypeConverter implements CompilerModifiers {
        /*
         * Build an import reference from an import name, e.g. java.lang.*
         */
-       private ImportReference createImportReference(
-               char[] importName,
-               int start,
-               int end) {
-
-               /* count identifiers */
-               int max = importName.length;
-               int identCount = 0;
-               for (int i = 0; i < max; i++) {
-                       if (importName[i] == '.')
-                               identCount++;
-               }
-               /* import on demand? */
-               boolean onDemand = importName[max - 1] == '*';
-               if (!onDemand)
-                       identCount++; // one more ident than dots
-
-               long[] positions = new long[identCount];
-               long position = (long) start << 32 + end;
-               for (int i = 0; i < identCount; i++) {
-                       positions[i] = position;
-               }
-               return new ImportReference(
-                       CharOperation.splitOn('.', importName, 0, max - (onDemand ? 2 : 0)),
-                       positions,
-                       onDemand);
-       }
+//     private ImportReference createImportReference(
+//             char[] importName,
+//             int start,
+//             int end) {
+//
+//             /* count identifiers */
+//             int max = importName.length;
+//             int identCount = 0;
+//             for (int i = 0; i < max; i++) {
+//                     if (importName[i] == '.')
+//                             identCount++;
+//             }
+//             /* import on demand? */
+//             boolean onDemand = importName[max - 1] == '*';
+//             if (!onDemand)
+//                     identCount++; // one more ident than dots
+//
+//             long[] positions = new long[identCount];
+//             long position = (long) start << 32 + end;
+//             for (int i = 0; i < identCount; i++) {
+//                     positions[i] = position;
+//             }
+//             return new ImportReference(
+//                     CharOperation.splitOn('.', importName, 0, max - (onDemand ? 2 : 0)),
+//                     positions,
+//                     onDemand);
+//     }
 
        /*
         * Build a type reference from a readable name, e.g. java.lang.Object[][]