Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-ui-dev] Compile error in JDT UI tests

It looks like that the JDT UI tests wrongly implement IJavaElementDelta.
After releasing a new API to IJavaElementDelta, I noticed that the JDT UI
tests now have compile errors.
These should be fixed for next build.

Jerome

PS: The following patch is a temporary fix to these problems:

Index: ui/org/eclipse/jdt/ui/tests/packageview/TestDelta.java
===================================================================
RCS file:
/cvsroot/eclipse/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/packageview/TestDelta.java,v
retrieving revision 1.7
diff -u -r1.7 TestDelta.java
--- ui/org/eclipse/jdt/ui/tests/packageview/TestDelta.java  17 Jun 2005
15:49:46 -0000    1.7
+++ ui/org/eclipse/jdt/ui/tests/packageview/TestDelta.java  6 Oct 2005
15:26:38 -0000
@@ -18,6 +18,7 @@
 import org.eclipse.jdt.core.IJavaModel;
 import org.eclipse.jdt.core.IJavaProject;
 import org.eclipse.jdt.core.IPackageFragment;
+import org.eclipse.jdt.core.dom.CompilationUnit;

 /**
  * @author Jen's account
@@ -55,6 +56,9 @@
      public IJavaElementDelta[] getChangedChildren() {
            return null;
      }
+     public CompilationUnit getCompilationUnitAST() {
+           return null;
+     }
      /**
            * @see org.eclipse.jdt.core.IJavaElementDelta#getElement()
            */
Index: ui/org/eclipse/jdt/ui/tests/browsing/TestDelta.java
===================================================================
RCS file:
/cvsroot/eclipse/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/browsing/TestDelta.java,v
retrieving revision 1.6
diff -u -r1.6 TestDelta.java
--- ui/org/eclipse/jdt/ui/tests/browsing/TestDelta.java     17 Jun 2005
15:49:46 -0000    1.6
+++ ui/org/eclipse/jdt/ui/tests/browsing/TestDelta.java     6 Oct 2005
15:26:38 -0000
@@ -18,6 +18,7 @@
 import org.eclipse.jdt.core.IJavaModel;
 import org.eclipse.jdt.core.IJavaProject;
 import org.eclipse.jdt.core.IPackageFragment;
+import org.eclipse.jdt.core.dom.CompilationUnit;

 /**
  * A faux  delta for testing
@@ -54,6 +55,9 @@
      public IJavaElementDelta[] getChangedChildren() {
            return null;
      }
+     public CompilationUnit getCompilationUnitAST() {
+           return null;
+     }
      /*
       * @see org.eclipse.jdt.core.IJavaElementDelta#getElement()
       */



Back to the top