View | Details | Raw Unified | Return to bug 225506 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/rse/files/ui/dialogs/FileDialogFactory.java (-7 / +27 lines)
Lines 1-11 Link Here
1
/*********************************************************************************
1
/*********************************************************************************
2
 * Copyright (c) 2008 IBM Corporation. All rights reserved.
2
 * Copyright (c) 2008 IBM Corporation. All rights reserved.
3
 * This program and the accompanying materials are made available under the terms
3
 * This program and the accompanying materials are made available under the terms
4
 * of the Eclipse Public License v1.0 which accompanies this distribution, and is 
4
 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
5
 * available at http://www.eclipse.org/legal/epl-v10.html
5
 * available at http://www.eclipse.org/legal/epl-v10.html
6
 * 
6
 *
7
 * Contributors:
7
 * Contributors:
8
 * Xuan Chen (IBM) - [225506] initial contribution 
8
 * Xuan Chen (IBM) - [225506] initial contribution
9
 * Martin Oberhuber (Wind River) - [225506] Adding Javadoc
9
 *********************************************************************************/
10
 *********************************************************************************/
10
package org.eclipse.rse.files.ui.dialogs;
11
package org.eclipse.rse.files.ui.dialogs;
11
12
Lines 13-31 Link Here
13
import org.eclipse.swt.widgets.Shell;
14
import org.eclipse.swt.widgets.Shell;
14
15
15
/**
16
/**
16
 * @author xuanchen
17
 * Utility class with factory methods for creating some RSE Standard Dialogs,
18
 * for working with remote files.
17
 *
19
 *
20
 * @noextend This class is not intended to be subclassed by clients.
21
 * @noinstantiate This class is not intended to be instantiated by clients.
22
 * @since org.eclipse.rse.files.ui 3.0
18
 */
23
 */
19
public class FileDialogFactory {
24
public class FileDialogFactory {
20
	
25
26
	/**
27
	 * Create an ISaveAsDialog instance with the given title, initialized for
28
	 * selecting a file to save to.
29
	 *
30
	 * @param shell parent shell for the dialog
31
	 * @param title title for the dialog
32
	 * @return New ISaveAsDialog instance
33
	 */
21
	public static ISaveAsDialog makeSaveAsDialog(Shell shell, String title)
34
	public static ISaveAsDialog makeSaveAsDialog(Shell shell, String title)
22
	{
35
	{
23
		return new SaveAsDialog(shell, title);
36
		return new SaveAsDialog(shell, title);
24
	}
37
	}
25
	
38
39
	/**
40
	 * Create an ISaveAsDialog instance, initialized for selecting a folder to
41
	 * save to. The dialog title will be a standard title ("Browse for Folder").
42
	 *
43
	 * @param shell parent shell for the dialog
44
	 * @return new ISaveAsDialog instance
45
	 */
26
	public static ISaveAsDialog makeSaveAsDialog(Shell shell)
46
	public static ISaveAsDialog makeSaveAsDialog(Shell shell)
27
	{
47
	{
28
		return new SaveAsDialog(shell);
48
		return new SaveAsDialog(shell);
29
	}	
49
	}
30
50
31
}
51
}

Return to bug 225506