Mercurial > projects > dwt-addons
comparison dwtx/jface/fieldassist/TextContentAdapter.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 * |
102 */ | 102 */ |
103 public void setCursorPosition(Control control, int position) { | 103 public void setCursorPosition(Control control, int position) { |
104 (cast(Text) control).setSelection(new Point(position, position)); | 104 (cast(Text) control).setSelection(new Point(position, position)); |
105 } | 105 } |
106 | 106 |
107 /* | 107 /** |
108 * (non-Javadoc) | |
109 * | |
110 * @see dwtx.jface.fieldassist.IControlContentAdapter2#getSelection(dwt.widgets.Control) | 108 * @see dwtx.jface.fieldassist.IControlContentAdapter2#getSelection(dwt.widgets.Control) |
111 * | 109 * |
112 * @since 3.4 | 110 * @since 3.4 |
113 */ | 111 */ |
114 public Point getSelection(Control control) { | 112 public Point getSelection(Control control) { |
115 return (cast(Text) control).getSelection(); | 113 return (cast(Text) control).getSelection(); |
116 } | 114 } |
117 | 115 |
118 /* | 116 /** |
119 * (non-Javadoc) | |
120 * | |
121 * @see dwtx.jface.fieldassist.IControlContentAdapter2#setSelection(dwt.widgets.Control, | 117 * @see dwtx.jface.fieldassist.IControlContentAdapter2#setSelection(dwt.widgets.Control, |
122 * dwt.graphics.Point) | 118 * dwt.graphics.Point) |
123 * | 119 * |
124 * @since 3.4 | 120 * @since 3.4 |
125 */ | 121 */ |