Changeset 259:c0d810de7093
- Timestamp:
- 06/29/08 08:33:38
(2 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
Update SWT 3.4M7 to 3.4
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r240 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2007 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 70 | 70 | * will not withdraw support for a <em>HINT</em> once it is made available. |
|---|
| 71 | 71 | * </p> |
|---|
| | 72 | * |
|---|
| | 73 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 72 | 74 | */ |
|---|
| 73 | 75 | |
|---|
| … | … | |
| 444 | 446 | * @see dwt.widgets.Event |
|---|
| 445 | 447 | * |
|---|
| | 448 | * @see dwt.custom.CCombo#addVerifyListener |
|---|
| 446 | 449 | * @see dwt.widgets.Combo#addVerifyListener |
|---|
| | 450 | * @see dwt.custom.StyledText#addVerifyListener |
|---|
| 447 | 451 | * @see dwt.widgets.Text#addVerifyListener |
|---|
| 448 | 452 | * @see dwt.events.VerifyListener#verifyText |
|---|
| r238 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2005 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 44 | 44 | * @see DWTException |
|---|
| 45 | 45 | * @see DWT#error(int) |
|---|
| | 46 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 46 | 47 | */ |
|---|
| 47 | 48 | |
|---|
| r238 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2005 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 35 | 35 | * |
|---|
| 36 | 36 | * @see DWTError |
|---|
| | 37 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 37 | 38 | */ |
|---|
| 38 | 39 | |
|---|
| r72 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2004 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 18 | 18 | * Accessible object. |
|---|
| 19 | 19 | * |
|---|
| | 20 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| | 21 | * |
|---|
| 20 | 22 | * @since 2.0 |
|---|
| 21 | 23 | */ |
|---|
| r72 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2005 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 46 | 46 | * @see AccessibleControlListener |
|---|
| 47 | 47 | * @see AccessibleControlEvent |
|---|
| | 48 | * @see <a href="http://www.eclipse.org/swt/snippets/#accessibility">Accessibility snippets</a> |
|---|
| | 49 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 48 | 50 | * |
|---|
| 49 | 51 | * @since 2.0 |
|---|
| r72 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2003 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 32 | 32 | * @see AccessibleListener |
|---|
| 33 | 33 | * @see AccessibleEvent |
|---|
| | 34 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 34 | 35 | * |
|---|
| 35 | 36 | * @since 2.0 |
|---|
| r72 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2006 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 38 | 38 | * @see AccessibleControlListener |
|---|
| 39 | 39 | * @see AccessibleControlEvent |
|---|
| | 40 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 40 | 41 | * |
|---|
| 41 | 42 | * @since 2.0 |
|---|
| r238 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2004 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 33 | 33 | * @see AccessibleControlListener |
|---|
| 34 | 34 | * @see AccessibleControlAdapter |
|---|
| | 35 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 35 | 36 | * |
|---|
| 36 | 37 | * @since 2.0 |
|---|
| r238 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2004 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 30 | 30 | * @see AccessibleListener |
|---|
| 31 | 31 | * @see AccessibleAdapter |
|---|
| | 32 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 32 | 33 | * |
|---|
| 33 | 34 | * @since 2.0 |
|---|
| r255 |
r259 |
|
| 168 | 168 | } |
|---|
| 169 | 169 | bool action = false, hypertext = false, selection = false, text = false; |
|---|
| 170 | | if (event.detail !is 0) { /* a role was specified */ |
|---|
| | 170 | if (event.detail !is 0) { /* a role was specified */ |
|---|
| 171 | 171 | for (int i = 0; i < actionRoles.length; i++) { |
|---|
| 172 | 172 | if (event.detail is actionRoles [i]) { |
|---|
| r72 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2003 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 38 | 38 | * @see AccessibleTextListener |
|---|
| 39 | 39 | * @see AccessibleTextEvent |
|---|
| | 40 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 40 | 41 | * |
|---|
| 41 | 42 | * @since 3.0 |
|---|
| r238 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2004 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 32 | 32 | * @see AccessibleTextListener |
|---|
| 33 | 33 | * @see AccessibleTextAdapter |
|---|
| | 34 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 34 | 35 | * |
|---|
| 35 | 36 | * @since 3.0 |
|---|
| r150 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2004 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 39 | 39 | * <dt><b>Styles:</b><dd>VERTICAL, HORIZONTAL, BORDER |
|---|
| 40 | 40 | * </dl> |
|---|
| | 41 | * |
|---|
| | 42 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 41 | 43 | */ |
|---|
| 42 | 44 | public class AnimatedProgress : Canvas { |
|---|
| r238 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2005 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 62 | 62 | * visual line = "R3R2R1" + "R6R5R4" |
|---|
| 63 | 63 | * </pre> |
|---|
| | 64 | * |
|---|
| | 65 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 64 | 66 | */ |
|---|
| 65 | 67 | public class BidiSegmentEvent : TypedEvent { |
|---|
| r238 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2006 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 35 | 35 | * |
|---|
| 36 | 36 | * @see StyledText#setLineBullet(int, int, Bullet) |
|---|
| | 37 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 37 | 38 | * |
|---|
| 38 | 39 | * @since 3.2 |
|---|
| 39 | 40 | */ |
|---|
| 40 | 41 | public class Bullet { |
|---|
| | 42 | /** |
|---|
| | 43 | * The bullet type. Possible values are: |
|---|
| | 44 | * <ul> |
|---|
| | 45 | * <li><code>ST.BULLET_DOT</code></li> |
|---|
| | 46 | * <li><code>ST.BULLET_NUMBER</code></li> |
|---|
| | 47 | * <li><code>ST.BULLET_LETTER_LOWER</code></li> |
|---|
| | 48 | * <li><code>ST.BULLET_LETTER_UPPER</code></li> |
|---|
| | 49 | * <li><code>ST.BULLET_TEXT</code></li> |
|---|
| | 50 | * <li><code>ST.BULLET_CUSTOM</code></li> |
|---|
| | 51 | * </ul> |
|---|
| | 52 | */ |
|---|
| 41 | 53 | public int type; |
|---|
| | 54 | |
|---|
| | 55 | /** |
|---|
| | 56 | * The bullet style. |
|---|
| | 57 | */ |
|---|
| 42 | 58 | public StyleRange style; |
|---|
| | 59 | |
|---|
| | 60 | /** |
|---|
| | 61 | * The bullet text. |
|---|
| | 62 | */ |
|---|
| 43 | 63 | public String text; |
|---|
| | 64 | |
|---|
| 44 | 65 | int[] linesIndices; |
|---|
| 45 | 66 | int count; |
|---|
| 46 | 67 | |
|---|
| 47 | 68 | /** |
|---|
| 48 | | * Create a new bullet the specified style, the type is set to ST.BULLET_DOT. |
|---|
| | 69 | * Create a new bullet with the specified style, and type <code>ST.BULLET_DOT</code>. |
|---|
| 49 | 70 | * The style must have a glyph metrics set. |
|---|
| 50 | 71 | * |
|---|
| … | … | |
| 62 | 83 | * The style must have a glyph metrics set. |
|---|
| 63 | 84 | * |
|---|
| | 85 | * @param type the bullet type |
|---|
| 64 | 86 | * @param style the style |
|---|
| 65 | 87 | * |
|---|
| r238 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2006 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 24 | 24 | /** |
|---|
| 25 | 25 | * Support for showing a Busy Cursor during a long running process. |
|---|
| | 26 | * |
|---|
| | 27 | * @see <a href="http://www.eclipse.org/swt/snippets/#busyindicator">BusyIndicator snippets</a> |
|---|
| | 28 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 26 | 29 | */ |
|---|
| 27 | 30 | public class BusyIndicator { |
|---|
| r150 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2007 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 53 | 53 | * IMPORTANT: This class is <em>not</em> intended to be subclassed. |
|---|
| 54 | 54 | * </p> |
|---|
| | 55 | * |
|---|
| | 56 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 55 | 57 | * |
|---|
| 56 | 58 | * @since 3.0 |
|---|
| r255 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2007 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 77 | 77 | * <dd>DefaultSelection, Modify, Selection, Verify</dd> |
|---|
| 78 | 78 | * </dl> |
|---|
| | 79 | * |
|---|
| | 80 | * @see <a href="http://www.eclipse.org/swt/snippets/#ccombo">CCombo snippets</a> |
|---|
| | 81 | * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: CustomControlExample</a> |
|---|
| | 82 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 79 | 83 | */ |
|---|
| 80 | 84 | public final class CCombo : Composite { |
|---|
| … | … | |
| 529 | 533 | } |
|---|
| 530 | 534 | void dropDown (bool drop) { |
|---|
| 531 | | if (drop is isDropped ()) return; |
|---|
| | 535 | if (drop is isDropped () || !isVisible()) return; |
|---|
| 532 | 536 | if (!drop) { |
|---|
| 533 | 537 | popup.setVisible (false); |
|---|
| … | … | |
| 1576 | 1580 | */ |
|---|
| 1577 | 1581 | if (isDisposed ()) return; |
|---|
| 1578 | | if (!visible) popup.setVisible(false); |
|---|
| | 1582 | // TEMPORARY CODE |
|---|
| | 1583 | if (popup is null || popup.isDisposed ()) return; |
|---|
| | 1584 | if (!visible) popup.setVisible (false); |
|---|
| 1579 | 1585 | } |
|---|
| 1580 | 1586 | /** |
|---|
| r240 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2006 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 66 | 66 | * IMPORTANT: This class is <em>not</em> intended to be subclassed. |
|---|
| 67 | 67 | * </p> |
|---|
| | 68 | * |
|---|
| | 69 | * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: CustomControlExample</a> |
|---|
| | 70 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 68 | 71 | */ |
|---|
| 69 | 72 | public class CLabel : Canvas { |
|---|
| r253 |
r259 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2007 IBM Corporation and others. |
|---|
| | 2 | * Copyright (c) 2000, 2008 IBM Corporation and others. |
|---|
| 3 | 3 | * All rights reserved. This program and the accompanying materials |
|---|
| 4 | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
|---|
| … | … | |
| 79 | 79 | * IMPORTANT: This class is <em>not</em> intended to be subclassed. |
|---|
| 80 | 80 | * </p> |
|---|
| | 81 | * |
|---|
| | 82 | * @see <a href="http://www.eclipse.org/swt/snippets/#ctabfolder">CTabFolder, CTabItem snippets</a> |
|---|
| | 83 | * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: CustomControlExample</a> |
|---|
| | 84 | * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
|---|
| 81 | 85 | */ |
|---|
| 82 | 86 | |
|---|