- added include declarations to Outline view
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / problem / ProblemReporter.java
index dfb3f18..9df2dae 100644 (file)
@@ -295,11 +295,11 @@ public class ProblemReporter extends ProblemHandler implements ProblemReasons {
         new String(method.selector), parametersAsShortString(method)},
         messageSend.sourceStart, messageSend.sourceEnd);
   }
-  public void cannotImportPackage(ImportReference importRef) {
-    String[] arguments = new String[]{CharOperation.toString(importRef.tokens)};
-    this.handle(IProblem.CannotImportPackage, arguments, arguments,
-        importRef.sourceStart, importRef.sourceEnd);
-  }
+//  public void cannotImportPackage(ImportReference importRef) {
+//    String[] arguments = new String[]{CharOperation.toString(importRef.tokens)};
+//    this.handle(IProblem.CannotImportPackage, arguments, arguments,
+//        importRef.sourceStart, importRef.sourceEnd);
+//  }
   public void cannotInstantiate(TypeReference typeRef, TypeBinding type) {
     this.handle(IProblem.InvalidClassInstantiation, new String[]{new String(
         type.readableName())},
@@ -556,11 +556,11 @@ public class ProblemReporter extends ProblemHandler implements ProblemReasons {
   //           expression.sourceStart,
   //           expression.sourceEnd);
   //}
-  public void conflictingImport(ImportReference importRef) {
-    String[] arguments = new String[]{CharOperation.toString(importRef.tokens)};
-    this.handle(IProblem.ConflictingImport, arguments, arguments,
-        importRef.sourceStart, importRef.sourceEnd);
-  }
+//  public void conflictingImport(ImportReference importRef) {
+//    String[] arguments = new String[]{CharOperation.toString(importRef.tokens)};
+//    this.handle(IProblem.ConflictingImport, arguments, arguments,
+//        importRef.sourceStart, importRef.sourceEnd);
+//  }
   public void constantOutOfFormat(NumberLiteral lit) {
     // the literal is not in a correct format
     // this code is called on IntLiteral and LongLiteral
@@ -651,11 +651,11 @@ public class ProblemReporter extends ProblemHandler implements ProblemReasons {
         new String(type.shortReadableName()), fieldDecl.name()},
         fieldDecl.sourceStart, fieldDecl.sourceEnd);
   }
-  public void duplicateImport(ImportReference importRef) {
-    String[] arguments = new String[]{CharOperation.toString(importRef.tokens)};
-    this.handle(IProblem.DuplicateImport, arguments, arguments,
-        importRef.sourceStart, importRef.sourceEnd);
-  }
+//  public void duplicateImport(ImportReference importRef) {
+//    String[] arguments = new String[]{CharOperation.toString(importRef.tokens)};
+//    this.handle(IProblem.DuplicateImport, arguments, arguments,
+//        importRef.sourceStart, importRef.sourceEnd);
+//  }
   public void duplicateInitializationOfBlankFinalField(FieldBinding field,
       Reference reference) {
     String[] arguments = new String[]{new String(field.readableName())};
@@ -1052,48 +1052,48 @@ public class ProblemReporter extends ProblemHandler implements ProblemReasons {
     this.handle(IProblem.InvalidVoidExpression, NoArgument, NoArgument,
         location.sourceStart, location.sourceEnd);
   }
-  public void importProblem(ImportReference importRef, Binding expectedImport) {
-    int problemId = expectedImport.problemId();
-    int id;
-    switch (problemId) {
-      case NotFound :
-        // 1
-        id = IProblem.ImportNotFound;
-        break;
-      case NotVisible :
-        // 2
-        id = IProblem.ImportNotVisible;
-        break;
-      case Ambiguous :
-        // 3
-        id = IProblem.ImportAmbiguous;
-        break;
-      case InternalNameProvided :
-        // 4
-        id = IProblem.ImportInternalNameProvided;
-        break;
-      case InheritedNameHidesEnclosingName :
-        // 5
-        id = IProblem.ImportInheritedNameHidesEnclosingName;
-        break;
-      case NoError :
-      // 0
-      default :
-        needImplementation(); // want to fail to see why we were
-        // here...
-        return;
-    }
-    String argument;
-    if (expectedImport instanceof ProblemReferenceBinding) {
-      argument = CharOperation
-          .toString(((ProblemReferenceBinding) expectedImport).compoundName);
-    } else {
-      argument = CharOperation.toString(importRef.tokens);
-    }
-    String[] arguments = new String[]{argument};
-    this.handle(id, arguments, arguments, importRef.sourceStart,
-        importRef.sourceEnd);
-  }
+//  public void importProblem(ImportReference importRef, Binding expectedImport) {
+//    int problemId = expectedImport.problemId();
+//    int id;
+//    switch (problemId) {
+//      case NotFound :
+//        // 1
+//        id = IProblem.ImportNotFound;
+//        break;
+//      case NotVisible :
+//        // 2
+//        id = IProblem.ImportNotVisible;
+//        break;
+//      case Ambiguous :
+//        // 3
+//        id = IProblem.ImportAmbiguous;
+//        break;
+//      case InternalNameProvided :
+//        // 4
+//        id = IProblem.ImportInternalNameProvided;
+//        break;
+//      case InheritedNameHidesEnclosingName :
+//        // 5
+//        id = IProblem.ImportInheritedNameHidesEnclosingName;
+//        break;
+//      case NoError :
+//      // 0
+//      default :
+//        needImplementation(); // want to fail to see why we were
+//        // here...
+//        return;
+//    }
+//    String argument;
+//    if (expectedImport instanceof ProblemReferenceBinding) {
+//      argument = CharOperation
+//          .toString(((ProblemReferenceBinding) expectedImport).compoundName);
+//    } else {
+//      argument = CharOperation.toString(importRef.tokens);
+//    }
+//    String[] arguments = new String[]{argument};
+//    this.handle(id, arguments, arguments, importRef.sourceStart,
+//        importRef.sourceEnd);
+//  }
   public void incompatibleExceptionInThrowsClause(SourceTypeBinding type,
       MethodBinding currentMethod, MethodBinding inheritedMethod,
       ReferenceBinding exceptionType) {
@@ -1956,13 +1956,13 @@ public class ProblemReporter extends ProblemHandler implements ProblemReasons {
             new String(inheritedMethod.declaringClass.shortReadableName())},
         localMethod.sourceStart(), localMethod.sourceEnd());
   }
-  public void packageCollidesWithType(CompilationUnitDeclaration compUnitDecl) {
-    String[] arguments = new String[]{CharOperation
-        .toString(compUnitDecl.currentPackage.tokens)};
-    this.handle(IProblem.PackageCollidesWithType, arguments, arguments,
-        compUnitDecl.currentPackage.sourceStart,
-        compUnitDecl.currentPackage.sourceEnd);
-  }
+//  public void packageCollidesWithType(CompilationUnitDeclaration compUnitDecl) {
+//    String[] arguments = new String[]{CharOperation
+//        .toString(compUnitDecl.currentPackage.tokens)};
+//    this.handle(IProblem.PackageCollidesWithType, arguments, arguments,
+//        compUnitDecl.currentPackage.sourceStart,
+//        compUnitDecl.currentPackage.sourceEnd);
+//  }
   public void packageIsNotExpectedPackage(
       CompilationUnitDeclaration compUnitDecl) {
     String[] arguments = new String[]{CharOperation
@@ -2441,11 +2441,11 @@ public class ProblemReporter extends ProblemHandler implements ProblemReasons {
     this.handle(IProblem.ArgumentIsNeverUsed, arguments, arguments,
         localDecl.sourceStart, localDecl.sourceEnd);
   }
-  public void unusedImport(ImportReference importRef) {
-    String[] arguments = new String[]{CharOperation.toString(importRef.tokens)};
-    this.handle(IProblem.UnusedImport, arguments, arguments,
-        importRef.sourceStart, importRef.sourceEnd);
-  }
+//  public void unusedImport(ImportReference importRef) {
+//    String[] arguments = new String[]{CharOperation.toString(importRef.tokens)};
+//    this.handle(IProblem.UnusedImport, arguments, arguments,
+//        importRef.sourceStart, importRef.sourceEnd);
+//  }
   public void unusedLocalVariable(LocalDeclaration localDecl) {
     String[] arguments = new String[]{localDecl.name()};
     this.handle(IProblem.LocalVariableIsNeverUsed, arguments, arguments,