diff dwtx/jface/viewers/FocusCellHighlighter.d @ 70:46a6e0e6ccd4

Merge with d-fied sources of 3.4M7
author Frank Benoit <benoit@tionex.de>
date Thu, 22 May 2008 01:36:46 +0200
parents b6c35faf97c8
children 5df4896124c7
line wrap: on
line diff
--- a/dwtx/jface/viewers/FocusCellHighlighter.d	Mon May 19 13:41:06 2008 +0200
+++ b/dwtx/jface/viewers/FocusCellHighlighter.d	Thu May 22 01:36:46 2008 +0200
@@ -7,6 +7,8 @@
  *
  * Contributors:
  *     IBM Corporation - initial API and implementation
+ *     Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation
+ *                                                 bugfix in: 182800
  * Port to the D programming language:
  *     Frank Benoit <benoit@tionex.de>
  ******************************************************************************/
@@ -40,9 +42,12 @@
     }
 
     /**
-     * Called by the framework when the focus cell has changed. Subclasses may extend.
+     * Called by the framework when the focus cell has changed. Subclasses may
+     * extend.
      *
-     * @param cell the new focus cell
+     * @param cell
+     *            the new focus cell
+     * @deprecated use {@link #focusCellChanged(ViewerCell, ViewerCell)} instead
      */
     protected void focusCellChanged(ViewerCell cell) {
     }
@@ -51,6 +56,26 @@
     }
 
     /**
+     * Called by the framework when the focus cell has changed. Subclasses may
+     * extend.
+     * <p>
+     * <b>The default implementation for this method calls
+     * focusCellChanged(ViewerCell). Subclasses should override this method
+     * rather than {@link #focusCellChanged(ViewerCell)} .</b>
+     *
+     * @param newCell
+     *            the new focus cell or <code>null</code> if no new cell
+     *            receives the focus
+     * @param oldCell
+     *            the old focus cell or <code>null</code> if no cell has been
+     *            focused before
+     * @since 3.4
+     */
+    protected void focusCellChanged(ViewerCell newCell, ViewerCell oldCell) {
+        focusCellChanged(newCell);
+    }
+
+    /**
      * This method is called by the framework to initialize this cell
      * highlighter object. Subclasses may extend.
      */