Esempio n. 1
0
 /**
  * This can be used to update the resource set's resource factory registry with all needed
  * factories.
  *
  * @param resourceSet The resource set which registry has to be updated.
  * @generated
  */
 @Override
 public void registerResourceFactories(ResourceSet resourceSet) {
   super.registerResourceFactories(resourceSet);
   // TODO If you need additional resource factories registrations, do them here. The following
   // line is an example for UML.
   // resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(UMLResource.FILE_EXTENSION, UMLResource.Factory.INSTANCE);
 }
Esempio n. 2
0
  /**
   * This can be used to update the resource set's resource factory registry with all needed
   * factories.
   *
   * @param resourceSet The resource set which registry has to be updated.
   */
  @Override
  public void registerResourceFactories(ResourceSet resourceSet) {
    super.registerResourceFactories(resourceSet);

    resourceSet
        .getResourceFactoryRegistry()
        .getExtensionToFactoryMap()
        .put("apd", new EcoreResourceFactoryImpl());
  }
Esempio n. 3
0
  /**
   * This can be used to update the resource set's resource factory registry with all needed
   * factories.
   *
   * @param resourceSet The resource set which registry has to be updated.
   * @generated
   */
  @Override
  public void registerResourceFactories(ResourceSet resourceSet) {
    super.registerResourceFactories(resourceSet);
    /*
     * TODO If you need additional resource factories registrations, you can register them here. the following line
     * (in comment) is an example of the resource factory registration for UML. If you want to change the content
     * of this method, do NOT forget to change the "@generated" tag in the Javadoc of this method to "@generated NOT".
     * Without this new tag, any compilation of the Acceleo module with the main template that has caused the creation
     * of this class will revert your modifications.
     *
     * To learn more about the registration of Resource Factories, have a look at the Acceleo Launcher documentation (Help -> Help Contents).
     */

    // resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(UMLResource.FILE_EXTENSION, UMLResource.Factory.INSTANCE);
  }