Class ECPFileDialogHelperImpl
- java.lang.Object
-
- org.eclipse.emf.ecp.internal.ui.util.ECPFileDialogHelperImpl
-
- All Implemented Interfaces:
ECPFileDialogHelper
public class ECPFileDialogHelperImpl extends java.lang.Object implements ECPFileDialogHelper
ECPFileDialogHelper
using the SWT implementation of theFileDialog
.- Author:
- jfaltermeier
-
-
Constructor Summary
Constructors Constructor Description ECPFileDialogHelperImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPathForExport(org.eclipse.swt.widgets.Shell shell, java.lang.String fileName)
Returns the file path to export a model element to.java.lang.String
getPathForImport(org.eclipse.swt.widgets.Shell shell)
Returns the absolute file path of the file selected by the user.
-
-
-
Method Detail
-
getPathForImport
public java.lang.String getPathForImport(org.eclipse.swt.widgets.Shell shell)
Returns the absolute file path of the file selected by the user.- Specified by:
getPathForImport
in interfaceECPFileDialogHelper
- Parameters:
shell
- The shell to open theFileDialog
- Returns:
- the absolute filename or
null
if no file was selected - See Also:
ECPFileDialogHelper.getPathForImport(org.eclipse.swt.widgets.Shell)
-
getPathForExport
public java.lang.String getPathForExport(org.eclipse.swt.widgets.Shell shell, java.lang.String fileName)
Returns the file path to export a model element to.- Specified by:
getPathForExport
in interfaceECPFileDialogHelper
- Parameters:
shell
- The shell to open theFileDialog
fileName
- a proposed filename for the export- Returns:
- the file path
- See Also:
ECPFileDialogHelper.getPathForExport(org.eclipse.swt.widgets.Shell, java.lang.String)
-
-