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

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.ui.util.FileDialogHelper

public final class FileDialogHelper
extends Object

A helper class that can be used to export projects.

Author:
Eugen Neufeld, David Soto Setzke

Method Summary
static String openExportDialog(org.eclipse.swt.widgets.Shell shell, String fileName)
          Opens an export file dialog.
static String openImportDialog(org.eclipse.swt.widgets.Shell shell)
          Opens an import file dialog.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

openExportDialog

public static String openExportDialog(org.eclipse.swt.widgets.Shell shell,
                                      String fileName)
Opens an export file dialog.

Parameters:
shell - the parent shell
fileName - the initial file name
Returns:
the absolute file path to the exported file, or null if export has been cancelled

openImportDialog

public static String openImportDialog(org.eclipse.swt.widgets.Shell shell)
Opens an import file dialog.

Parameters:
shell - the parent shell
Returns:
the absolute file path to the imported file, or null if import has been cancelled


Copyright © 2015. All Rights Reserved.