diff --git a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/dialogs/FileSelectionDialog.java b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/dialogs/FileSelectionDialog.java deleted file mode 100644 index b830853496c..00000000000 --- a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/dialogs/FileSelectionDialog.java +++ /dev/null @@ -1,81 +0,0 @@ -/******************************************************************************** - * Copyright (c) 2002, 2006 IBM Corporation. All rights reserved. - * This program and the accompanying materials are made available under the terms - * of the Eclipse Public License v1.0 which accompanies this distribution, and is - * available at http://www.eclipse.org/legal/epl-v10.html - * - * Initial Contributors: - * The following IBM employees contributed to the Remote System Explorer - * component that contains this file: David McKnight, Kushal Munir, - * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson, - * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. - * - * Contributors: - * {Name} (company) - description of contribution. - ********************************************************************************/ - -package org.eclipse.rse.files.ui.dialogs; -import org.eclipse.rse.files.ui.widgets.FileSelectionForm; -import org.eclipse.rse.files.ui.widgets.SystemSelectRemoteFileOrFolderForm; -import org.eclipse.swt.widgets.Shell; - - -/** - * Dialog used to select a file based on a dialog similar to the SaveAs - */ -public class FileSelectionDialog - extends SystemSelectRemoteFileOrFolderDialog - implements ISaveAsDialog -{ - - - private FileSelectionForm form; - - /** - * Constructor - * - * @param shell The shell to hang the dialog off of - * - */ - protected FileSelectionDialog(Shell shell) - { - super(shell, false); - } - /** - * Constructor when you want to supply your own title. - * - * @param shell The shell to hang the dialog off of - * @param title The title to give the dialog - */ - protected FileSelectionDialog(Shell shell, String title) - { - super(shell, title, true); - } - - public static FileSelectionDialog getFileSelectionDialog( - Shell shell, - String title) - { - return new FileSelectionDialog(shell, title); - } - - public static FileSelectionDialog getFileSelectionDialog(Shell shell) - { - return new FileSelectionDialog(shell); - } - - protected SystemSelectRemoteFileOrFolderForm getForm(boolean fileMode) - { - form = new FileSelectionForm(getMessageLine(), this, fileMode); - super.getForm(fileMode); - return form; - } - /** - * Return file name specified - * @return File name - */ - public String getFileName() - { - return form.getFileName(); - } -} \ No newline at end of file