comparison dwt/widgets/FileDialog.d @ 259:c0d810de7093

Update SWT 3.4M7 to 3.4
author Frank Benoit <benoit@tionex.de>
date Sun, 29 Jun 2008 14:33:38 +0200
parents 5a30aa9820f3
children 07d9ed8927b6
comparison
equal deleted inserted replaced
257:cc1d3de0e80b 259:c0d810de7093
1 /******************************************************************************* 1 /*******************************************************************************
2 * Copyright (c) 2000, 2007 IBM Corporation and others. 2 * Copyright (c) 2000, 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 *
39 * Note: Only one of the styles SAVE and OPEN may be specified. 39 * Note: Only one of the styles SAVE and OPEN may be specified.
40 * </p><p> 40 * </p><p>
41 * IMPORTANT: This class is intended to be subclassed <em>only</em> 41 * IMPORTANT: This class is intended to be subclassed <em>only</em>
42 * within the DWT implementation. 42 * within the DWT implementation.
43 * </p> 43 * </p>
44 *
45 * @see <a href="http://www.eclipse.org/swt/snippets/#filedialog">FileDialog snippets</a>
46 * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample, Dialog tab</a>
47 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
44 */ 48 */
45 public class FileDialog : Dialog { 49 public class FileDialog : Dialog {
46 String [] filterNames; 50 String [] filterNames;
47 String [] filterExtensions; 51 String [] filterExtensions;
48 String filterPath = ""; 52 String filterPath = "";
591 * Set the file extensions which the dialog will 595 * Set the file extensions which the dialog will
592 * use to filter the files it shows to the argument, 596 * use to filter the files it shows to the argument,
593 * which may be null. 597 * which may be null.
594 * <p> 598 * <p>
595 * The strings are platform specific. For example, on 599 * The strings are platform specific. For example, on
596 * Windows, an extension filter string is typically of 600 * some platforms, an extension filter string is typically
597 * the form "*.extension", where "*.*" matches all files. 601 * of the form "*.extension", where "*.*" matches all files.
602 * For filters with multiple extensions, use semicolon as
603 * a separator, e.g. "*.jpg;*.png".
598 * </p> 604 * </p>
599 * 605 *
600 * @param extensions the file extension filter 606 * @param extensions the file extension filter
601 * 607 *
602 * @see #setFilterNames to specify the user-friendly 608 * @see #setFilterNames to specify the user-friendly
623 */ 629 */
624 public void setFilterIndex (int index) { 630 public void setFilterIndex (int index) {
625 filterIndex = index; 631 filterIndex = index;
626 } 632 }
627 /** 633 /**
628 * Sets the the names that describe the filter extensions 634 * Sets the names that describe the filter extensions
629 * which the dialog will use to filter the files it shows 635 * which the dialog will use to filter the files it shows
630 * to the argument, which may be null. 636 * to the argument, which may be null.
631 * <p> 637 * <p>
632 * Each name is a user-friendly short description shown for 638 * Each name is a user-friendly short description shown for
633 * its corresponding filter. The <code>names</code> array must 639 * its corresponding filter. The <code>names</code> array must