Class EMFPartOneClassFile

Direct Known Subclasses:
EMFPartCSVArchive

public class EMFPartOneClassFile extends EMFExcelFile
An Excel file that contains only a part of the whole scenario data that is related to some selected EClass of objects.

The EMFPartExcelFile class is used to augment tabular data editing done via the UI of a desktop application with editing in Excel.
Exporting/importing a partial scenario should work faster than that of the whole scenario.
Besides, partial export allows users to focus on editing only the data they are interested in. A partially exported scenario typically contains 3-7 Excel sheets, while the data model of a complex application may be large enough to map to 50+ Excel sheets.

  • Field Details

    • oneClassLoaded

      protected final org.eclipse.emf.ecore.EClass oneClassLoaded
  • Constructor Details

    • EMFPartOneClassFile

      public EMFPartOneClassFile(com.amalgamasimulation.emf.excel.EMFTransform<?> transform, com.amalgamasimulation.emf.excel.EObjectsContext eObjectsContext, org.eclipse.emf.ecore.EClass oneClassLoaded)
  • Method Details

    • initRootEClassAndSheets

      protected void initRootEClassAndSheets()
      Overrides:
      initRootEClassAndSheets in class IDataSource
    • createPartEditSheet

      protected MainClassPartEditSheet createPartEditSheet(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EReference reference, IDataSource book, boolean onlyAttributies)
    • preRead

      protected boolean preRead(AtomicReference<String> currentSheetName, com.amalgamasimulation.emf.excel.TableFileContext tableFileContext)
      Description copied from class: IDataSource
      Calls EMFInstanceSheet.preRead() for all EMFInstanceSheets.
      Overrides:
      preRead in class IDataSource
      Parameters:
      currentSheetName - Contains the name of the current EMFInstanceSheet whose EMFInstanceSheet.preRead() method is being called. The currentSheetName must be updated in this method before each EMFInstanceSheet.preRead() call.
    • read

      public void read(com.amalgamasimulation.emf.excel.TableFileContext tableFileContext)
      Overrides:
      read in class IDataSource