Mercurial > projects > dwt-mac
diff dwt/widgets/FileDialog.d @ 90:c7f7f4d7091a
All widgets are ported
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Tue, 30 Dec 2008 18:54:31 +0100 |
parents | cce7edf30dae |
children | 63a09873578e |
line wrap: on
line diff
--- a/dwt/widgets/FileDialog.d Tue Dec 30 17:01:10 2008 +0100 +++ b/dwt/widgets/FileDialog.d Tue Dec 30 18:54:31 2008 +0100 @@ -49,9 +49,9 @@ * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> */ public class FileDialog : Dialog { - String [] filterNames = new String [0]; - String [] filterExtensions = new String [0]; - String [] fileNames = new String [0]; + String [] filterNames; + String [] filterExtensions; + String [] fileNames; String filterPath = "", fileName = ""; int filterIndex = -1; bool overwrite = true; //TODO: if setOverwrite(false) is implemented, change default to false for consistency @@ -101,6 +101,10 @@ public this (Shell parent, int style) { super (parent, checkStyle (parent, style)); checkSubclass (); + + filterNames = new String [0]; + filterExtensions = new String [0]; + fileNames = new String [0]; } /**