Class CSVSettingsDialog

java.lang.Object
org.eclipse.swt.widgets.Dialog
de.uka.ipd.sdq.sensorframework.visualisation.dialogs.CSVSettingsDialog

public class CSVSettingsDialog extends Dialog
Deprecated.
Superseded by EDP2.
A dialog for the settings of the CSV data export.
  • Field Details

    • result

      protected Object result
      Deprecated.
    • frmDialog

      protected Shell frmDialog
      Deprecated.
  • Constructor Details

    • CSVSettingsDialog

      public CSVSettingsDialog(String pathParentDir, String fileOrDirName, String fileExtension, DialogType type)
      Deprecated.
      Create the dialog.
      Parameters:
      pathParentDir - Default path of the parent directory.
      fileOrDirName - If the type is FILE then it means the default file name or if the type is DIRECTORY then it means the child directory name (but not a whole path).
      fileExtension - Default file extension (only for type = FILE).
      type - The type of the dialog either DialogType.DIRECTORY stands for SWT DirectoryDialog for choosing a directory path or DialogType.FILE stands for SWT FileDialog for choosing a file path.
  • Method Details

    • open

      public Object open()
      Deprecated.
      Open the dialog while you cancel or click on the Save As Button.
      Returns:
      The result is not defined at the moment.
    • getValidPath

      public boolean getValidPath()
      Deprecated.
      Returns:
      isPathValid()
    • getPath

      public String getPath()
      Deprecated.
      Returns:
      The complete target path for the CSV export.
    • isHeader

      public boolean isHeader()
      Deprecated.
      Returns:
      true: Save CSV file with integrated header.
      false: Save CSV file without any header.
    • getSeparator

      public String getSeparator()
      Deprecated.
      Returns:
      The chosen separator which is one of the following characters:

      • Semicolon ";"
      • Comma ","
      • Tabulator "\t"
    • dispose

      public void dispose()
      Deprecated.
      Dispose the resources of the dialog widgets.
    • isPathValid

      public boolean isPathValid()
      Deprecated.
      Returns:
      true if a path is chosen and the both dialog are not canceled or
      false if one of the dialogs is canceled or the path is an empty string.