mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-17 05:55:22 +02:00
[189973] removing FileSelectionDialog
This commit is contained in:
parent
712ecaaf14
commit
a0d82da8f6
1 changed files with 0 additions and 81 deletions
|
@ -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();
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue