# HG changeset patch # User Frank Benoit # Date 1223389106 -7200 # Node ID 349b8c12e243e34da33f662eb1fcb19a4851a6dd # Parent 0e2b4fed7a0f539300dee6844d72b7747d76e3be Sync dwt/custom with dwt-linux diff -r 0e2b4fed7a0f -r 349b8c12e243 dwt/custom/BidiSegmentEvent.d --- a/dwt/custom/BidiSegmentEvent.d Tue Oct 07 14:44:44 2008 +0200 +++ b/dwt/custom/BidiSegmentEvent.d Tue Oct 07 16:18:26 2008 +0200 @@ -1,4 +1,4 @@ -/******************************************************************************* +/******************************************************************************* * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 @@ -12,10 +12,11 @@ *******************************************************************************/ module dwt.custom.BidiSegmentEvent; +import dwt.dwthelper.utils; + import dwt.events.TypedEvent; import dwt.custom.StyledTextEvent; -import dwt.dwthelper.utils; /** * This event is sent to BidiSegmentListeners when a line is to diff -r 0e2b4fed7a0f -r 349b8c12e243 dwt/custom/Bullet.d --- a/dwt/custom/Bullet.d Tue Oct 07 14:44:44 2008 +0200 +++ b/dwt/custom/Bullet.d Tue Oct 07 16:18:26 2008 +0200 @@ -1,4 +1,4 @@ -/******************************************************************************* +/******************************************************************************* * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 @@ -12,11 +12,12 @@ *******************************************************************************/ module dwt.custom.Bullet; +import dwt.dwthelper.utils; + import dwt.DWT; import dwt.custom.StyleRange; import dwt.custom.ST; import dwt.dwthelper.System; -import dwt.dwthelper.utils; /** * Instances of this class represent bullets in the StyledText. diff -r 0e2b4fed7a0f -r 349b8c12e243 dwt/custom/BusyIndicator.d --- a/dwt/custom/BusyIndicator.d Tue Oct 07 14:44:44 2008 +0200 +++ b/dwt/custom/BusyIndicator.d Tue Oct 07 16:18:26 2008 +0200 @@ -18,8 +18,8 @@ import dwt.graphics.Cursor; import dwt.widgets.Display; import dwt.widgets.Shell; +import dwt.dwthelper.Runnable; import dwt.dwthelper.utils; -import dwt.dwthelper.Runnable; /** * Support for showing a Busy Cursor during a long running process. diff -r 0e2b4fed7a0f -r 349b8c12e243 dwt/custom/CCombo.d --- a/dwt/custom/CCombo.d Tue Oct 07 14:44:44 2008 +0200 +++ b/dwt/custom/CCombo.d Tue Oct 07 16:18:26 2008 +0200 @@ -205,7 +205,7 @@ */ public void add (String string) { checkWidget(); - // DWT extension: allow null string + // DWT extension: allow null for zero length string //if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); list.add (string); } @@ -233,7 +233,7 @@ */ public void add (String string, int index) { checkWidget(); - // DWT extension: allow null string + // DWT extension: allow null for zero length string //if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); list.add (string, index); } @@ -878,7 +878,7 @@ */ public int indexOf (String string) { checkWidget (); - // DWT extension: allow null string + // DWT extension: allow null for zero length string //if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); return list.indexOf (string); } @@ -900,7 +900,7 @@ */ public int indexOf (String string, int start) { checkWidget (); - // DWT extension: allow null string + // DWT extension: allow null for zero length string //if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); return list.indexOf (string, start); } @@ -1244,7 +1244,7 @@ */ public void remove (String string) { checkWidget(); - // DWT extension: allow null string + // DWT extension: allow null for zero length string //if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); list.remove (string); } @@ -1435,7 +1435,6 @@ * @param items the array of items * * @exception IllegalArgumentException * @exception DWTException