org.eclipse.emf.emfstore.internal.client.ui.util
Class EMFStoreFileDialogHelperImpl

java.lang.Object
  extended by 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

Constructor Summary
EMFStoreFileDialogHelperImpl()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EMFStoreFileDialogHelperImpl

public EMFStoreFileDialogHelperImpl()
Method Detail

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.