Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Monomachus
    @Monomachus
    Hello @junichi11, I have a NewFile wizard and from it I create the file itself, but I also need to create another file Repository, it is about issue #1, I think I need to make changes in [Symfony2EntityWizardIterator.instantiate method] (https://github.com/nbphpcouncil/nb-symfony-templates-plugin/blob/master/src/org/nbphpcouncil/modules/php/symfony2/filetemplates/Symfony2EntityWizardIterator.java#L51), but the file I am already creating is taking info from Wizard, I want to create another file in the same method, how should this be done?
    junichi11
    @junichi11
    It seems that you return only one FileObject. (i.e. return Collections.singleton(fo);) So, please try to create another FileObject then change it to the following:
    Set<FileOjbect> files = new HashSet<>();
    files.add(fo1);
    files.add(fo2);
    return files;
    junichi11
    @junichi11
    Sorry, I misunderstood. Do you want to create another new file from a existing template file?
    Monomachus
    @Monomachus
    Yes another one but in sum to have two
    junichi11
    @junichi11

    It's possible. Please try to get your template file like the following:

    // e.g. ClassWithNamespace.php
    FileObject templateFile = FileUtil.getConfigFile("Templates/Scripting/ClassWithNamespace.php");

    Then your template files may have namespace problem. I think that we should also fix it.