Interface ECPFileDialogHelper

  • All Known Implementing Classes:
    ECPFileDialogHelperImpl

    public interface ECPFileDialogHelper
    Interface defining methods for retrieving Filepaths from a FileDialog.
    Author:
    jfaltermeier
    • Method Summary

      All Methods Instance Methods Abstract 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

        java.lang.String getPathForImport​(org.eclipse.swt.widgets.Shell shell)
        Returns the absolute file path of the file selected by the user.
        Parameters:
        shell - The shell to open the FileDialog
        Returns:
        the absolute filename or null if no file was selected
      • getPathForExport

        java.lang.String getPathForExport​(org.eclipse.swt.widgets.Shell shell,
                                          java.lang.String fileName)
        Returns the file path to export a model element to.
        Parameters:
        shell - The shell to open the FileDialog
        fileName - a proposed filename for the export
        Returns:
        the file path