Class ResourceSetCommand

  • All Implemented Interfaces:
    Callable<Integer>
    Direct Known Subclasses:
    ModelCommand

    public abstract class ResourceSetCommand
    extends DelegatingCommand
    Base class for commands which use ResourceSet. This command creates a resource set, registers all known packages, loads resources specified with -r option.
    Author:
    Pavel
    • Method Detail

      • getEPackages

        protected Collection<org.eclipse.emf.ecore.EPackage> getEPackages()
        Returns:
        EPackage's to register with the resource set for loading the model. This implementation returns all registered packages.
      • createResourceSet

        protected org.eclipse.emf.ecore.resource.ResourceSet createResourceSet()
        Creates an empty resource set with registered packages and XMIResourceFactoryImpl and loads resource to it.
        Returns:
      • createEmptyResourceSet

        protected org.eclipse.emf.ecore.resource.ResourceSet createEmptyResourceSet()
        Creates a ResourceSet with all known packages registered and with XMIResourceFactoryImpl
        Returns: