I implemented these two missing methods.

2006-05-24  Sven de Marothy  <[EMAIL PROTECTED]>

        * java/awt/dnd/DragGestureRecognizer.java
        (resetRecognizer): Implement.
        (fireDragGestureRecognized): Implement.


Index: java/awt/dnd/DragGestureRecognizer.java
===================================================================
RCS file: /sources/classpath/classpath/java/awt/dnd/DragGestureRecognizer.java,v
retrieving revision 1.4
diff -U3 -r1.4 DragGestureRecognizer.java
--- java/awt/dnd/DragGestureRecognizer.java	22 Mar 2006 19:15:24 -0000	1.4
+++ java/awt/dnd/DragGestureRecognizer.java	24 May 2006 19:32:27 -0000
@@ -1,5 +1,5 @@
 /* DragGestureRecognizer.java --
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002,2006 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -130,7 +130,7 @@
   public void resetRecognizer()
     throws NotImplementedException
   {
-    throw new Error("not implemented");
+    events = new ArrayList();
   }
 
   /**
@@ -154,10 +154,15 @@
     dragGestureListener = null;
   }
 
+  /**
+   * Fires a <code>DragGestureEvent</code> to the DragGestureListener
+   * associated with this object, if there is one.
+   */
   protected void fireDragGestureRecognized(int dragAction, Point p)
-    throws NotImplementedException
   {
-    throw new Error("not implemented");
+    if(dragGestureListener != null)
+      dragGestureListener.dragGestureRecognized
+	(new DragGestureEvent(this, dragAction, p, events));
   }
 
   protected void appendEvent(InputEvent e)

Reply via email to