Mercurial > projects > dwt-addons
comparison dwtx/jface/fieldassist/ComboContentAdapter.d @ 90:7ffeace6c47f
Update 3.4M7 to 3.4
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 06 Jul 2008 23:30:07 +0200 |
parents | 5df4896124c7 |
children |
comparison
equal
deleted
inserted
replaced
89:040da1cb0d76 | 90:7ffeace6c47f |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 * Copyright (c) 2005, 2007 IBM Corporation and others. | 2 * Copyright (c) 2005, 2008 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | 3 * All rights reserved. This program and the accompanying materials |
4 * are made available under the terms of the Eclipse Public License v1.0 | 4 * are made available under the terms of the Eclipse Public License v1.0 |
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 * |
130 */ | 130 */ |
131 public void setCursorPosition(Control control, int index) { | 131 public void setCursorPosition(Control control, int index) { |
132 (cast(Combo) control).setSelection(new Point(index, index)); | 132 (cast(Combo) control).setSelection(new Point(index, index)); |
133 } | 133 } |
134 | 134 |
135 /* | 135 /** |
136 * (non-Javadoc) | |
137 * | |
138 * @see dwtx.jface.fieldassist.IControlContentAdapter2#getSelection(dwt.widgets.Control) | 136 * @see dwtx.jface.fieldassist.IControlContentAdapter2#getSelection(dwt.widgets.Control) |
139 * | 137 * |
140 * @since 3.4 | 138 * @since 3.4 |
141 */ | 139 */ |
142 public Point getSelection(Control control) { | 140 public Point getSelection(Control control) { |
143 return (cast(Combo) control).getSelection(); | 141 return (cast(Combo) control).getSelection(); |
144 } | 142 } |
145 | 143 |
146 /* | 144 /** |
147 * (non-Javadoc) | |
148 * | |
149 * @see dwtx.jface.fieldassist.IControlContentAdapter2#setSelection(dwt.widgets.Control, | 145 * @see dwtx.jface.fieldassist.IControlContentAdapter2#setSelection(dwt.widgets.Control, |
150 * dwt.graphics.Point) | 146 * dwt.graphics.Point) |
151 * | 147 * |
152 * @since 3.4 | 148 * @since 3.4 |
153 */ | 149 */ |