comparison 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
comparison
equal deleted inserted replaced
69:07b9d96fd764 70:46a6e0e6ccd4
5 * which accompanies this distribution, and is available at 5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html 6 * http://www.eclipse.org/legal/epl-v10.html
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * IBM Corporation - initial API and implementation 9 * IBM Corporation - initial API and implementation
10 * Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation
11 * bugfix in: 182800
10 * Port to the D programming language: 12 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de> 13 * Frank Benoit <benoit@tionex.de>
12 ******************************************************************************/ 14 ******************************************************************************/
13 15
14 module dwtx.jface.viewers.FocusCellHighlighter; 16 module dwtx.jface.viewers.FocusCellHighlighter;
38 public ViewerCell getFocusCell() { 40 public ViewerCell getFocusCell() {
39 return viewer.getColumnViewerEditor().getFocusCell(); 41 return viewer.getColumnViewerEditor().getFocusCell();
40 } 42 }
41 43
42 /** 44 /**
43 * Called by the framework when the focus cell has changed. Subclasses may extend. 45 * Called by the framework when the focus cell has changed. Subclasses may
46 * extend.
44 * 47 *
45 * @param cell the new focus cell 48 * @param cell
49 * the new focus cell
50 * @deprecated use {@link #focusCellChanged(ViewerCell, ViewerCell)} instead
46 */ 51 */
47 protected void focusCellChanged(ViewerCell cell) { 52 protected void focusCellChanged(ViewerCell cell) {
48 } 53 }
49 package void focusCellChanged_package(ViewerCell cell){ 54 package void focusCellChanged_package(ViewerCell cell){
50 focusCellChanged(cell); 55 focusCellChanged(cell);
56 }
57
58 /**
59 * Called by the framework when the focus cell has changed. Subclasses may
60 * extend.
61 * <p>
62 * <b>The default implementation for this method calls
63 * focusCellChanged(ViewerCell). Subclasses should override this method
64 * rather than {@link #focusCellChanged(ViewerCell)} .</b>
65 *
66 * @param newCell
67 * the new focus cell or <code>null</code> if no new cell
68 * receives the focus
69 * @param oldCell
70 * the old focus cell or <code>null</code> if no cell has been
71 * focused before
72 * @since 3.4
73 */
74 protected void focusCellChanged(ViewerCell newCell, ViewerCell oldCell) {
75 focusCellChanged(newCell);
51 } 76 }
52 77
53 /** 78 /**
54 * This method is called by the framework to initialize this cell 79 * This method is called by the framework to initialize this cell
55 * highlighter object. Subclasses may extend. 80 * highlighter object. Subclasses may extend.