org.eclipse.emf.emfstore.internal.client.ui.util
Class EMFStoreFileDialogHelperImpl
java.lang.Object
org.eclipse.emf.emfstore.internal.client.ui.util.EMFStoreFileDialogHelperImpl
- All Implemented Interfaces:
- EMFStoreFileDialogHelper
public class EMFStoreFileDialogHelperImpl
- extends Object
- implements EMFStoreFileDialogHelper
EMFStoreFileDialogHelper
using the RWT implementation of the FileDialog
.
- Author:
- jfaltermeier
Method Summary |
String |
getPathForExport(org.eclipse.swt.widgets.Shell shell,
String fileName)
Returns the file path to export a model element to. |
String |
getPathForImport(org.eclipse.swt.widgets.Shell shell)
Returns the absolute file path of the file selected by the user. |
EMFStoreFileDialogHelperImpl
public EMFStoreFileDialogHelperImpl()
getPathForImport
public String getPathForImport(org.eclipse.swt.widgets.Shell shell)
- Returns the absolute file path of the file selected by the user.
- Specified by:
getPathForImport
in interface EMFStoreFileDialogHelper
- Parameters:
shell
- The shell to open the FileDialog
- Returns:
- the absolute filename or
null
if no file was selected - See Also:
EMFStoreFileDialogHelper.getPathForImport(org.eclipse.swt.widgets.Shell)
getPathForExport
public String getPathForExport(org.eclipse.swt.widgets.Shell shell,
String fileName)
- Returns the file path to export a model element to.
- Specified by:
getPathForExport
in interface EMFStoreFileDialogHelper
- Parameters:
shell
- The shell to open the FileDialog
fileName
- a proposed filename for the export
- Returns:
- the file path
- See Also:
EMFStoreFileDialogHelper.getPathForExport(org.eclipse.swt.widgets.Shell,
java.lang.String)
Copyright © 2015. All Rights Reserved.