Class LoaderFromTXTAndCSVFile

java.lang.Object
com.amalgamasimulation.desktop.ui.internal.PartialLoadAndSaveManager
com.amalgamasimulation.desktop.ui.views.LoaderFromTXTAndCSVFile

public class LoaderFromTXTAndCSVFile extends com.amalgamasimulation.desktop.ui.internal.PartialLoadAndSaveManager
Author:
Ionov Ivan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if editing via Excel is available.
    void
    openDialog(org.eclipse.swt.widgets.Shell shell)
    Shows a dialog that enables data export or upload.
    void
    setDataForLoading(org.eclipse.emf.ecore.EClass loadingEClass, Supplier<org.eclipse.emf.ecore.EObject> rootObject, com.amalgamasimulation.emf.excel.EMFExcelTransform<? extends org.eclipse.emf.ecore.EObject> emfExcelTransform, Supplier<org.eclipse.emf.ecore.util.ECrossReferenceAdapter> crossReferenceAdapter)
     

    Methods inherited from class com.amalgamasimulation.desktop.ui.internal.PartialLoadAndSaveManager

    getActionAfterCommand, getActionBeforeCommand, getCrossReferenceAdapter, getEditingEClass, getEmfExcelTransform, getRootObject, setActionAfterCommand, setActionBeforeCommand, setData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LoaderFromTXTAndCSVFile

      public LoaderFromTXTAndCSVFile()
  • Method Details

    • setDataForLoading

      public void setDataForLoading(org.eclipse.emf.ecore.EClass loadingEClass, Supplier<org.eclipse.emf.ecore.EObject> rootObject, com.amalgamasimulation.emf.excel.EMFExcelTransform<? extends org.eclipse.emf.ecore.EObject> emfExcelTransform, Supplier<org.eclipse.emf.ecore.util.ECrossReferenceAdapter> crossReferenceAdapter)
    • openDialog

      public void openDialog(org.eclipse.swt.widgets.Shell shell)
      Description copied from class: com.amalgamasimulation.desktop.ui.internal.PartialLoadAndSaveManager
      Shows a dialog that enables data export or upload.
      Specified by:
      openDialog in class com.amalgamasimulation.desktop.ui.internal.PartialLoadAndSaveManager
      Parameters:
      shell - parent Shell object for the dialog
    • checkAvailableEditing

      public boolean checkAvailableEditing()
      Description copied from class: com.amalgamasimulation.desktop.ui.internal.PartialLoadAndSaveManager
      Checks if editing via Excel is available. If not - call PartialLoadAndSaveManager.setData(EClass, Supplier, EMFExcelTransform, Supplier) with appropriate parameters.
      Overrides:
      checkAvailableEditing in class com.amalgamasimulation.desktop.ui.internal.PartialLoadAndSaveManager
      Returns:
      true, if editing is available, false otherwise
      See Also:
      • PartialLoadAndSaveManager.setData(EClass, Supplier, EMFExcelTransform, Supplier)