harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r557697 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/dnd/DropTarget.java
Date Thu, 19 Jul 2007 17:25:31 GMT
Author: ayza
Date: Thu Jul 19 10:25:30 2007
New Revision: 557697

URL: http://svn.apache.org/viewvc?view=rev&rev=557697
Log:
Add NotImplementedException to some stub methods. See HARMONY-4500.

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/dnd/DropTarget.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/dnd/DropTarget.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/dnd/DropTarget.java?view=diff&rev=557697&r1=557696&r2=557697
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/dnd/DropTarget.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/dnd/DropTarget.java
Thu Jul 19 10:25:30 2007
@@ -35,6 +35,7 @@
 
 import org.apache.harmony.awt.datatransfer.DTK;
 import org.apache.harmony.awt.internal.nls.Messages;
+import org.apache.harmony.luni.util.NotImplementedException;
 
 public class DropTarget implements DropTargetListener, Serializable {
 
@@ -49,17 +50,14 @@
             point = p;
         }
 
-        protected void stop() {
-            // TODO implement
+        protected void stop() throws NotImplementedException{
         }
 
-        protected void updateLocation(Point newLocn) {
+        protected void updateLocation(Point newLocn) throws NotImplementedException {
             point = (Point)newLocn.clone();
-            // TODO implement
         }
 
-        public void actionPerformed(ActionEvent e) {
-            // TODO implement
+        public void actionPerformed(ActionEvent e) throws NotImplementedException{
         }
 
     }
@@ -112,12 +110,11 @@
         return new DropTargetAutoScroller(c, p);
     }
 
-    public void removeNotify(ComponentPeer peer) {
+    public void removeNotify(ComponentPeer peer) throws NotImplementedException{
         context.removeNotify();
-        // TODO: implement
     }
 
-    public void addNotify(ComponentPeer peer) {
+    public void addNotify(ComponentPeer peer) throws NotImplementedException {
         if(component == null) {
             return;
         }
@@ -125,7 +122,6 @@
         DTK dtk = DTK.getDTK();
         DropTargetContextPeer dtp = dtk.createDropTargetContextPeer(context);
         context.addNotify(dtp);
-        // TODO: implement
     }
 
     public synchronized void removeDropTargetListener(DropTargetListener dtl) {



Mime
View raw message