X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/builder/IncrementalImageBuilder.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/builder/IncrementalImageBuilder.java index 1d382fb..3a47e0e 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/builder/IncrementalImageBuilder.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/builder/IncrementalImageBuilder.java @@ -495,7 +495,7 @@ public class IncrementalImageBuilder extends AbstractImageBuilder { .println("Compile this added source file " + typeLocator); //$NON-NLS-1$ sourceFiles.add(new SourceFile((IFile) resource, md, ((IFile) resource).getCharset())); - String typeName = typePath.toString(); + //String typeName = typePath.toString(); // if (!newState.isDuplicateLocator(typeName, typeLocator)) // { // adding // // dependents @@ -632,39 +632,39 @@ public class IncrementalImageBuilder extends AbstractImageBuilder { } } - protected void finishedWith(String sourceLocator, CompilationResult result, - char[] mainTypeName, ArrayList definedTypeNames, - ArrayList duplicateTypeNames) throws CoreException { - // char[][] previousTypeNames = - // newState.getDefinedTypeNamesFor(sourceLocator); - // if (previousTypeNames == null) - // previousTypeNames = new char[][]{mainTypeName}; - // IPath packagePath = null; - // next : for (int i = 0, l = previousTypeNames.length; i < l; i++) { - // char[] previous = previousTypeNames[i]; - // for (int j = 0, m = definedTypeNames.size(); j < m; j++) - // if (CharOperation.equals(previous, (char[]) definedTypeNames.get(j))) - // continue next; - // SourceFile sourceFile = (SourceFile) result.getCompilationUnit(); - // if (packagePath == null) { - // int count = sourceFile.sourceLocation.sourceFolder.getFullPath() - // .segmentCount(); - // packagePath = sourceFile.resource.getFullPath().removeFirstSegments( - // count).removeLastSegments(1); - // } - // if (secondaryTypesToRemove == null) - // this.secondaryTypesToRemove = new SimpleLookupTable(); - // ArrayList types = (ArrayList) secondaryTypesToRemove - // .get(sourceFile.sourceLocation.binaryFolder); - // if (types == null) - // types = new ArrayList(definedTypeNames.size()); - // types.add(packagePath.append(new String(previous))); - // secondaryTypesToRemove.put(sourceFile.sourceLocation.binaryFolder, - // types); - // } - // super.finishedWith(sourceLocator, result, mainTypeName, - // definedTypeNames, duplicateTypeNames); - } +// protected void finishedWith(String sourceLocator, CompilationResult result, +// char[] mainTypeName, ArrayList definedTypeNames, +// ArrayList duplicateTypeNames) throws CoreException { +// // char[][] previousTypeNames = +// // newState.getDefinedTypeNamesFor(sourceLocator); +// // if (previousTypeNames == null) +// // previousTypeNames = new char[][]{mainTypeName}; +// // IPath packagePath = null; +// // next : for (int i = 0, l = previousTypeNames.length; i < l; i++) { +// // char[] previous = previousTypeNames[i]; +// // for (int j = 0, m = definedTypeNames.size(); j < m; j++) +// // if (CharOperation.equals(previous, (char[]) definedTypeNames.get(j))) +// // continue next; +// // SourceFile sourceFile = (SourceFile) result.getCompilationUnit(); +// // if (packagePath == null) { +// // int count = sourceFile.sourceLocation.sourceFolder.getFullPath() +// // .segmentCount(); +// // packagePath = sourceFile.resource.getFullPath().removeFirstSegments( +// // count).removeLastSegments(1); +// // } +// // if (secondaryTypesToRemove == null) +// // this.secondaryTypesToRemove = new SimpleLookupTable(); +// // ArrayList types = (ArrayList) secondaryTypesToRemove +// // .get(sourceFile.sourceLocation.binaryFolder); +// // if (types == null) +// // types = new ArrayList(definedTypeNames.size()); +// // types.add(packagePath.append(new String(previous))); +// // secondaryTypesToRemove.put(sourceFile.sourceLocation.binaryFolder, +// // types); +// // } +// // super.finishedWith(sourceLocator, result, mainTypeName, +// // definedTypeNames, duplicateTypeNames); +// } // protected void removeClassFile(IPath typePath, IContainer outputFolder) // throws CoreException {