import java.util.Locale;
import net.sourceforge.phpdt.core.IJavaModelMarker;
-import net.sourceforge.phpdt.core.JavaModelException;
import net.sourceforge.phpdt.core.JavaCore;
+import net.sourceforge.phpdt.core.JavaModelException;
import net.sourceforge.phpdt.core.compiler.IProblem;
-import net.sourceforge.phpdt.internal.compiler.Compiler;
import net.sourceforge.phpdt.internal.compiler.CompilationResult;
+import net.sourceforge.phpdt.internal.compiler.Compiler;
import net.sourceforge.phpdt.internal.compiler.DefaultErrorHandlingPolicies;
import net.sourceforge.phpdt.internal.compiler.ICompilerRequestor;
import net.sourceforge.phpdt.internal.compiler.problem.AbortCompilation;
-import net.sourceforge.phpdt.internal.core.Util;
+import net.sourceforge.phpdt.internal.core.util.Util;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFolder;
// if (duplicateTypeNames == null)
// duplicateTypeNames = new ArrayList();
// duplicateTypeNames.add(compoundName);
-// createErrorFor(compilationUnit.resource, Util.bind("build.duplicateClassFile", new String(typeName))); //$NON-NLS-1$
+// createErrorFor(compilationUnit.resource, ProjectPrefUtil.bind("build.duplicateClassFile", new String(typeName))); //$NON-NLS-1$
// continue;
// }
// newState.recordLocatorForType(qualifiedTypeName, typeLocator);
// newState.record(sourceLocator, qualifiedRefs, simpleRefs, mainTypeName, definedTypeNames);
//}
-protected IContainer createFolder(IPath packagePath, IContainer outputFolder) throws CoreException {
- if (packagePath.isEmpty()) return outputFolder;
- IFolder folder = outputFolder.getFolder(packagePath);
- if (!folder.exists()) {
- createFolder(packagePath.removeLastSegments(1), outputFolder);
- folder.create(true, true, null);
- folder.setDerived(true);
- }
- return folder;
-}
+//protected IContainer createFolder(IPath packagePath, IContainer outputFolder) throws CoreException {
+// if (packagePath.isEmpty()) return outputFolder;
+// IFolder folder = outputFolder.getFolder(packagePath);
+// if (!folder.exists()) {
+// createFolder(packagePath.removeLastSegments(1), outputFolder);
+// folder.create(true, true, null);
+// folder.setDerived(true);
+// }
+// return folder;
+//}
protected RuntimeException internalException(CoreException t) {
ImageBuilderInternalException imageBuilderException = new ImageBuilderInternalException(t);
if (childPath.segmentCount() > 2) return false; // is a subfolder of a package
for (int j = 0, k = sourceLocations.length; j < k; j++) {
- if (childPath.equals(sourceLocations[j].binaryFolder.getFullPath())) return true;
+// if (childPath.equals(sourceLocations[j].binaryFolder.getFullPath())) return true;
if (childPath.equals(sourceLocations[j].sourceFolder.getFullPath())) return true;
}
// skip default output folder which may not be used by any source folder
- return childPath.equals(javaBuilder.javaProject.getOutputLocation());
+ return false; //childPath.equals(javaBuilder.javaProject.getOutputLocation());
}
/**
// compute a user-friendly location
IJavaElement element = JavaCore.create(resource);
- if (element instanceof org.eclipse.jdt.core.ICompilationUnit) { // try to find a finer grain element
- org.eclipse.jdt.core.ICompilationUnit unit = (org.eclipse.jdt.core.ICompilationUnit) element;
+ if (element instanceof net.sourceforge.phpdt.core.ICompilationUnit) { // try to find a finer grain element
+ net.sourceforge.phpdt.core.ICompilationUnit unit = (net.sourceforge.phpdt.core.ICompilationUnit) element;
IJavaElement fragment = unit.getElementAt(problem.getSourceStart());
if (fragment != null) element = fragment;
}